Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
61 virtual String toString(
const String& field);
64 virtual String toString();
double boost
Definition: Query.h:36
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
boost::shared_ptr< Query > QueryPtr
Definition: LuceneTypes.h:420
virtual WeightPtr weight(const SearcherPtr &searcher)
Constructs and initializes a Weight for a top-level query.
virtual void extractTerms(SetTerm terms)
Adds all terms occurring in this query to the terms set. Only works if this query is in its rewritten...
virtual QueryPtr rewrite(const IndexReaderPtr &reader)
Called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into ...
virtual void setBoost(double b)
Sets the boost for this query clause to b. Documents matching this clause will (in addition to the no...
Definition: AbstractAllTermDocs.h:12
virtual SimilarityPtr getSimilarity(const SearcherPtr &searcher)
Returns the Similarity implementation to be used for this query. Subclasses may override this method ...
boost::shared_ptr< Weight > WeightPtr
Definition: LuceneTypes.h:480
Base class for all Lucene classes.
Definition: LuceneObject.h:31
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
virtual int32_t hashCode()
Return hash code for this object.
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Returns a clone of this query.
The abstract base class for queries.
Definition: Query.h:31
static QueryPtr mergeBooleanQueries(Collection< BooleanQueryPtr > queries)
Merges the clauses of a set of BooleanQuery's into a single BooleanQuery.
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
virtual WeightPtr createWeight(const SearcherPtr &searcher)
Constructs an appropriate Weight implementation for this query. Only implemented by primitive queries...
boost::shared_ptr< Similarity > SimilarityPtr
Definition: LuceneTypes.h:435
virtual QueryPtr combine(Collection< QueryPtr > queries)
Called when re-writing queries under MultiSearcher.
String boostString()
Return given boost value as a string.
virtual double getBoost()
Gets the boost for this clause. Documents matching this clause will (in addition to the normal weight...
boost::shared_ptr< Searcher > SearcherPtr
Definition: LuceneTypes.h:434
clucene.sourceforge.net