| java.lang.Object org.apache.lucene.search.Scorer org.apache.lucene.search.PhraseScorer
All known Subclasses: org.apache.lucene.search.SloppyPhraseScorer, org.apache.lucene.search.ExactPhraseScorer,
PhraseScorer | abstract class PhraseScorer extends Scorer (Code) | | Expert: Scoring functionality for phrase queries.
A document is considered matching if it contains the phrase-query terms
at "valid" positons. What "valid positions" are
depends on the type of the phrase query: for an exact phrase query terms are required
to appear in adjacent locations, while for a sloppy phrase query some distance between
the terms is allowed. The abstract method
PhraseScorer.phraseFreq() of extending classes
is invoked for each document containing all the phrase query terms, in order to
compute the frequency of the phrase query in that document. A non zero frequency
means a match.
|
norms | protected byte[] norms(Code) | | |
value | protected float value(Code) | | |
firstToLast | final protected void firstToLast()(Code) | | |
phraseFreq | abstract protected float phraseFreq() throws IOException(Code) | | For a document containing all the phrase query terms, compute the
frequency of the phrase in that document.
A non zero frequency means a match.
Note, that containing all phrase terms does not guarantee a match - they have to be found in matching locations.
frequency of the phrase in current doc, 0 if not found. |
pqToList | final protected void pqToList()(Code) | | |
|
|