42 virtual int32_t
docID();
44 virtual double score();
45 virtual int32_t
advance(int32_t target);
bool more
Definition: PhraseScorer.h:34
boost::shared_ptr< PhraseQueue > PhraseQueuePtr
Definition: LuceneTypes.h:412
virtual int32_t nextDoc()
Advances to the next document in the set and returns the doc it is currently on, or NO_MORE_DOCS if t...
double currentFreq()
Phrase frequency in current doc as computed by phraseFreq().
Scoring functionality for phrase queries. A document is considered matching if it contains the phrase...
Definition: PhraseScorer.h:21
boost::shared_ptr< Weight > WeightPtr
Definition: LuceneTypes.h:480
double value
Definition: PhraseScorer.h:31
SimilarityPtr similarity
Definition: Scorer.h:29
ByteArray norms
Definition: PhraseScorer.h:30
virtual double score()
Returns the score of the current document matching the query. Initially invalid, until nextDoc() or a...
virtual int32_t advance(int32_t target)
Advances to the first beyond the current whose document number is greater than or equal to target...
PhrasePositionsPtr last
Definition: PhraseScorer.h:37
PhraseScorer(const WeightPtr &weight, Collection< TermPositionsPtr > tps, Collection< int32_t > offsets, const SimilarityPtr &similarity, ByteArray norms)
Common scoring functionality for different types of queries.
Definition: Scorer.h:22
bool firstTime
Definition: PhraseScorer.h:33
bool doNext()
Next without initial increment.
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12
WeightPtr weight
Definition: PhraseScorer.h:26
virtual int32_t docID()
Returns the following:
double freq
Definition: PhraseScorer.h:39
PhrasePositionsPtr first
Definition: PhraseScorer.h:36
boost::shared_ptr< PhrasePositions > PhrasePositionsPtr
Definition: LuceneTypes.h:410
Utility template class to handle collections that can be safely copied and shared.
Definition: Collection.h:17
virtual String toString()
Returns a string representation of the object.
boost::shared_ptr< Similarity > SimilarityPtr
Definition: LuceneTypes.h:435
PhraseQueuePtr pq
Definition: PhraseScorer.h:35
virtual double phraseFreq()=0
For a document containing all the phrase query terms, compute the frequency of the phrase in that doc...