Module: Xapit
- Defined in:
- lib/xapit.rb,
lib/xapit/facet.rb,
lib/xapit/query.rb,
lib/xapit/config.rb,
lib/xapit/collection.rb,
lib/xapit/membership.rb,
lib/xapit/facet_option.rb,
lib/xapit/facet_blueprint.rb,
lib/xapit/index_blueprint.rb,
lib/xapit/indexers/simple_indexer.rb,
lib/xapit/indexers/classic_indexer.rb,
lib/xapit/indexers/abstract_indexer.rb,
lib/xapit/query_parsers/simple_query_parser.rb,
lib/xapit/query_parsers/classic_query_parser.rb,
lib/xapit/query_parsers/abstract_query_parser.rb
Overview
Looking for more documentation? A good place to start is Xapit::Membership
Defined Under Namespace
Modules: Membership Classes: AbstractIndexer, AbstractQueryParser, ClassicIndexer, ClassicQueryParser, Collection, Config, Facet, FacetBlueprint, FacetOption, IndexBlueprint, Query, SimpleIndexer, SimpleQueryParser
Class Method Summary collapse
-
.index_all(*args, &block) ⇒ Object
Index all membership classes with xapit defined.
-
.search(*args) ⇒ Object
Used to perform a search on all indexed models.
Class Method Details
.index_all(*args, &block) ⇒ Object
Index all membership classes with xapit defined. Delegates to Xapit::IndexBlueprint. You will likely want to call Xapit::Config.remove_database before this.
10 11 12 |
# File 'lib/xapit.rb', line 10 def self.index_all(*args, &block) IndexBlueprint.index_all(*args, &block) end |
.search(*args) ⇒ Object
Used to perform a search on all indexed models. The returned collection can contain instances of different classes which were indexed.
# perform a simple full text search
@records = Xapit.search("phone")
See Xapit::Membership for details on search options.
21 22 23 |
# File 'lib/xapit.rb', line 21 def self.search(*args) Collection.new(nil, *args) end |