Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef DISJUNCTIONMAXQUERY_H
8 #define DISJUNCTIONMAXQUERY_H
93 friend class DisjunctionMaxWeight;
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Collection< QueryPtr >::iterator end()
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Create a shallow copy of us - used in rewriting if necessary.
Collection< QueryPtr >::iterator begin()
An iterator over the disjuncts.
virtual bool equals(const LuceneObjectPtr &other)
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
void add(Collection< QueryPtr > disjuncts)
Add a collection of disjuncts to this disjunction.
virtual String toString(const String &field)
Pretty print us.
virtual ~DisjunctionMaxQuery()
boost::shared_ptr< Query > QueryPtr
Definition: LuceneTypes.h:420
A query that generates the union of documents produced by its subqueries, and that scores each docume...
Definition: DisjunctionMaxQuery.h:27
Collection< QueryPtr > disjuncts
The subqueries.
Definition: DisjunctionMaxQuery.h:44
virtual int32_t hashCode()
Return hash code for this object.
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< Weight > WeightPtr
Definition: LuceneTypes.h:480
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
The abstract base class for queries.
Definition: Query.h:31
DisjunctionMaxQuery(Collection< QueryPtr > disjuncts, double tieBreakerMultiplier)
Creates a new DisjunctionMaxQuery.
void add(const QueryPtr &query)
Add a subquery to this disjunction.
double tieBreakerMultiplier
Multiple of the non-max disjunct scores added into our final score. Non-zero values support tie-break...
Definition: DisjunctionMaxQuery.h:51
virtual void extractTerms(SetTerm terms)
Adds all terms occurring in this query to the terms set.
DisjunctionMaxQuery(double tieBreakerMultiplier=0.0)
Creates a new empty DisjunctionMaxQuery. Use add() to add the subqueries.
virtual QueryPtr rewrite(const IndexReaderPtr &reader)
Optimize our representation and our subqueries representations.
virtual String toString()
Prints a query to a string.
virtual WeightPtr createWeight(const SearcherPtr &searcher)
Create the Weight used to score us.
boost::shared_ptr< Searcher > SearcherPtr
Definition: LuceneTypes.h:434
clucene.sourceforge.net