Lucene++ - a full-featured, c++ search engine
API Documentation
virtual int32_t docFreq(const TermPtr &term)=0
Returns the number of documents containing term.
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
boost::shared_ptr< Filter > FilterPtr
Definition: LuceneTypes.h:358
virtual QueryPtr rewrite(const QueryPtr &query)=0
Called to re-write queries into primitive queries.
boost::shared_ptr< Term > TermPtr
Definition: LuceneTypes.h:233
boost::shared_ptr< Query > QueryPtr
Definition: LuceneTypes.h:420
virtual void setSimilarity(const SimilarityPtr &similarity)
Set the Similarity implementation used by this Searcher.
An abstract base class for search implementations. Implements the main search methods.
Definition: Searcher.h:18
virtual int32_t maxDoc()=0
Returns one greater than the largest possible document number.
virtual DocumentPtr doc(int32_t n, const FieldSelectorPtr &fieldSelector)=0
Get the Document at the n'th position. The FieldSelector may be used to determine what Fields to load...
boost::shared_ptr< Document > DocumentPtr
Definition: LuceneTypes.h:74
Definition: AbstractAllTermDocs.h:12
The interface for search implementations.
Definition: Searchable.h:24
boost::shared_ptr< Weight > WeightPtr
Definition: LuceneTypes.h:480
Base class for all Lucene classes.
Definition: LuceneObject.h:31
virtual SimilarityPtr getSimilarity()
Return the Similarity implementation used by this Searcher.
virtual WeightPtr createWeight(const QueryPtr &query)
Creates a weight for query.
boost::shared_ptr< TopFieldDocs > TopFieldDocsPtr
Definition: LuceneTypes.h:474
virtual void close()=0
Frees resources associated with this Searcher. Be careful not to call this method while you are still...
boost::shared_ptr< Collector > CollectorPtr
Definition: LuceneTypes.h:295
boost::shared_ptr< TopDocs > TopDocsPtr
Definition: LuceneTypes.h:471
SimilarityPtr similarity
The Similarity implementation used by this searcher.
Definition: Searcher.h:23
virtual Collection< int32_t > docFreqs(Collection< TermPtr > terms)
For each term in the terms array, calculates the number of documents containing term....
boost::shared_ptr< FieldSelector > FieldSelectorPtr
Definition: LuceneTypes.h:77
boost::shared_ptr< Sort > SortPtr
Definition: LuceneTypes.h:442
virtual DocumentPtr doc(int32_t n)=0
Returns the stored fields of document i.
boost::shared_ptr< Similarity > SimilarityPtr
Definition: LuceneTypes.h:435
boost::shared_ptr< Explanation > ExplanationPtr
Definition: LuceneTypes.h:333
clucene.sourceforge.net