Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef CONSTANTSCOREQUERY_H
8 #define CONSTANTSCOREQUERY_H
46 friend class ConstantWeight;
47 friend class ConstantScorer;
virtual ~ConstantScoreQuery()
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
boost::shared_ptr< Filter > FilterPtr
Definition: LuceneTypes.h:358
virtual int32_t hashCode()
Return hash code for this object.
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
ConstantScoreQuery(const FilterPtr &filter)
boost::shared_ptr< Query > QueryPtr
Definition: LuceneTypes.h:420
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< Weight > WeightPtr
Definition: LuceneTypes.h:480
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
virtual String toString(const String &field)
Prints a user-readable version of this query.
The abstract base class for queries.
Definition: Query.h:31
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Returns a clone of this query.
FilterPtr getFilter()
Returns the encapsulated filter.
virtual QueryPtr rewrite(const IndexReaderPtr &reader)
Called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into ...
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 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...
A query that wraps a filter and simply returns a constant score equal to the query boost for every do...
Definition: ConstantScoreQuery.h:18
virtual String toString()
Prints a query to a string.
boost::shared_ptr< Searcher > SearcherPtr
Definition: LuceneTypes.h:434
FilterPtr filter
Definition: ConstantScoreQuery.h:23
clucene.sourceforge.net