7 #ifndef VALUESOURCEQUERY_H
8 #define VALUESOURCEQUERY_H
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
The abstract base class for queries.
Definition: Query.h:31
virtual String toString()
Prints a query to a string.
A Query that sets the scores of document to the values obtained from a ValueSource.
Definition: ValueSourceQuery.h:22
ValueSourceQuery(const ValueSourcePtr &valSrc)
Create a value source query.
virtual int32_t hashCode()
Return hash code for this object.
ValueSourcePtr valSrc
Definition: ValueSourceQuery.h:30
virtual WeightPtr createWeight(const SearcherPtr &searcher)
Constructs an appropriate Weight implementation for this query. Only implemented by primitive queries...
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 ~ValueSourceQuery()
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
virtual QueryPtr rewrite(const IndexReaderPtr &reader)
Called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into ...
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Returns a clone of this query.
virtual String toString(const String &field)
Prints a query to a string, with field assumed to be the default field and omitted.
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
boost::shared_ptr< Query > QueryPtr
Definition: LuceneTypes.h:420
boost::shared_ptr< Searcher > SearcherPtr
Definition: LuceneTypes.h:434
boost::shared_ptr< ValueSource > ValueSourcePtr
Definition: LuceneTypes.h:476
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
boost::shared_ptr< Weight > WeightPtr
Definition: LuceneTypes.h:480