Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef MULTISEARCHER_H
8 #define MULTISEARCHER_H
Collection< SearchablePtr > getSearchables()
Return the array of Searchables this searches.
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
boost::shared_ptr< Filter > FilterPtr
Definition: LuceneTypes.h:358
boost::shared_ptr< Term > TermPtr
Definition: LuceneTypes.h:233
virtual DocumentPtr doc(int32_t n, const FieldSelectorPtr &fieldSelector)
Get the Document at the n'th position. The FieldSelector may be used to determine what Fields to load...
virtual int32_t docFreq(const TermPtr &term)
Returns the number of documents containing term.
virtual void close()
Frees resources associated with this Searcher. Be careful not to call this method while you are still...
boost::shared_ptr< Query > QueryPtr
Definition: LuceneTypes.h:420
An abstract base class for search implementations. Implements the main search methods.
Definition: Searcher.h:18
virtual TopFieldDocsPtr search(const QueryPtr &query, const FilterPtr &filter, int32_t n, const SortPtr &sort)
Search implementation with arbitrary sorting. Finds the top n hits for query, applying filter if non-...
virtual TopFieldDocsPtr search(const WeightPtr &weight, const FilterPtr &filter, int32_t n, const SortPtr &sort)
Low-level search implementation with arbitrary sorting. Finds the top n hits for query,...
virtual ExplanationPtr explain(const WeightPtr &weight, int32_t doc)
Low-level implementation method. Returns an Explanation that describes how doc scored against weight.
virtual void search(const WeightPtr &weight, const FilterPtr &filter, const CollectorPtr &results)
Lower-level search API.
int32_t _maxDoc
Definition: MultiSearcher.h:31
boost::shared_ptr< Document > DocumentPtr
Definition: LuceneTypes.h:74
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< Weight > WeightPtr
Definition: LuceneTypes.h:480
int32_t subSearcher(int32_t n)
Returns index of the searcher for document n in the array used to construct this searcher.
virtual QueryPtr rewrite(const QueryPtr &query)
Called to re-write queries into primitive queries.
boost::shared_ptr< TopFieldDocs > TopFieldDocsPtr
Definition: LuceneTypes.h:474
virtual WeightPtr createWeight(const QueryPtr &query)
Create weight in multiple index scenario.
Collection< int32_t > getStarts()
boost::shared_ptr< Collector > CollectorPtr
Definition: LuceneTypes.h:295
MultiSearcher(Collection< SearchablePtr > searchables)
Creates a searcher which searches searchers.
Collection< SearchablePtr > searchables
Definition: MultiSearcher.h:26
boost::shared_ptr< TopDocs > TopDocsPtr
Definition: LuceneTypes.h:471
int32_t subDoc(int32_t n)
Returns the document number of document n within its sub-index.
virtual TopDocsPtr search(const WeightPtr &weight, const FilterPtr &filter, int32_t n)
Low-level search implementation. Finds the top n hits for query, applying filter if non-null....
virtual int32_t maxDoc()
Returns one greater than the largest possible document number.
boost::shared_ptr< FieldSelector > FieldSelectorPtr
Definition: LuceneTypes.h:77
boost::shared_ptr< Sort > SortPtr
Definition: LuceneTypes.h:442
Collection< int32_t > starts
Definition: MultiSearcher.h:30
Implements search over a set of Searchables.
Definition: MultiSearcher.h:19
boost::shared_ptr< Explanation > ExplanationPtr
Definition: LuceneTypes.h:333
virtual DocumentPtr doc(int32_t n)
Returns the stored fields of document i.
clucene.sourceforge.net