Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef INDEXSEARCHER_H
8 #define INDEXSEARCHER_H
63 virtual int32_t docFreq(
const TermPtr& term);
66 virtual int32_t maxDoc();
92 virtual void setDefaultFieldSortScoring(
bool doTrackScores,
bool doMaxScore);
95 void ConstructSearcher(
const IndexReaderPtr& reader,
bool closeReader);
#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
bool fieldSortDoMaxScore
Definition: IndexSearcher.h:52
bool fieldSortDoTrackScores
Definition: IndexSearcher.h:51
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-...
Collection< int32_t > docStarts
Definition: IndexSearcher.h:49
bool closeReader
Definition: IndexSearcher.h:46
Collection< IndexReaderPtr > subReaders
Definition: IndexSearcher.h:48
boost::shared_ptr< Document > DocumentPtr
Definition: LuceneTypes.h:74
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< Weight > WeightPtr
Definition: LuceneTypes.h:480
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
boost::shared_ptr< TopFieldDocs > TopFieldDocsPtr
Definition: LuceneTypes.h:474
boost::shared_ptr< Collector > CollectorPtr
Definition: LuceneTypes.h:295
Implements search over a single IndexReader.
Definition: IndexSearcher.h:23
virtual ExplanationPtr explain(const QueryPtr &query, int32_t doc)
Returns an Explanation that describes how doc scored against query.
boost::shared_ptr< TopDocs > TopDocsPtr
Definition: LuceneTypes.h:471
boost::shared_ptr< Directory > DirectoryPtr
Definition: LuceneTypes.h:489
boost::shared_ptr< FieldSelector > FieldSelectorPtr
Definition: LuceneTypes.h:77
boost::shared_ptr< Sort > SortPtr
Definition: LuceneTypes.h:442
boost::shared_ptr< Explanation > ExplanationPtr
Definition: LuceneTypes.h:333
clucene.sourceforge.net