#define LUCENE_INTERFACE(Name)
Definition LuceneObject.h:19
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
The interface for search implementations.
Definition Searchable.h:24
virtual int32_t docFreq(const TermPtr &term)=0
Returns the number of documents containing term.
virtual TopFieldDocsPtr search(const WeightPtr &weight, const FilterPtr &filter, int32_t n, const SortPtr &sort)=0
Low-level search implementation with arbitrary sorting. Finds the top n hits for query,...
virtual TopDocsPtr search(const WeightPtr &weight, const FilterPtr &filter, int32_t n)=0
Low-level search implementation. Finds the top n hits for query, applying filter if non-null....
virtual DocumentPtr doc(int32_t n)=0
Returns the stored fields of document i.
virtual void close()=0
Frees resources associated with this Searcher. Be careful not to call this method while you are still...
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...
virtual int32_t maxDoc()=0
Returns one greater than the largest possible document number.
virtual void search(const WeightPtr &weight, const FilterPtr &filter, const CollectorPtr &collector)=0
Lower-level search API.
virtual QueryPtr rewrite(const QueryPtr &query)=0
Called to re-write queries into primitive queries.
virtual ~Searchable()
Definition Searchable.h:27
virtual Collection< int32_t > docFreqs(Collection< TermPtr > terms)=0
For each term in the terms array, calculates the number of documents containing term....
virtual ExplanationPtr explain(const WeightPtr &weight, int32_t doc)=0
Low-level implementation method. Returns an Explanation that describes how doc scored against weight.
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< TopDocs > TopDocsPtr
Definition LuceneTypes.h:471
boost::shared_ptr< Query > QueryPtr
Definition LuceneTypes.h:420
boost::shared_ptr< FieldSelector > FieldSelectorPtr
Definition LuceneTypes.h:77
boost::shared_ptr< Term > TermPtr
Definition LuceneTypes.h:233
boost::shared_ptr< Collector > CollectorPtr
Definition LuceneTypes.h:295
boost::shared_ptr< Explanation > ExplanationPtr
Definition LuceneTypes.h:333
boost::shared_ptr< Sort > SortPtr
Definition LuceneTypes.h:442
boost::shared_ptr< TopFieldDocs > TopFieldDocsPtr
Definition LuceneTypes.h:474
boost::shared_ptr< Document > DocumentPtr
Definition LuceneTypes.h:74
boost::shared_ptr< Filter > FilterPtr
Definition LuceneTypes.h:358
boost::shared_ptr< Weight > WeightPtr
Definition LuceneTypes.h:480