Package org.apache.lucene.search
Class ExactPhraseMatcher
- java.lang.Object
-
- org.apache.lucene.search.PhraseMatcher
-
- org.apache.lucene.search.ExactPhraseMatcher
-
public final class ExactPhraseMatcher extends PhraseMatcher
Expert: Find exact phrases- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description ExactPhraseMatcher(PhraseQuery.PostingsAndFreq[] postings, ScoreMode scoreMode, Similarity.SimScorer scorer, float matchCost)Expert: Creates ExactPhraseMatcher instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intendOffset()intendPosition()booleannextMatch()Find the next match on the current document, returningfalseif there are none.voidreset()Called afterPhraseMatcher.approximation()has been advancedintstartOffset()intstartPosition()-
Methods inherited from class org.apache.lucene.search.PhraseMatcher
getMatchCost
-
-
-
-
Constructor Detail
-
ExactPhraseMatcher
public ExactPhraseMatcher(PhraseQuery.PostingsAndFreq[] postings, ScoreMode scoreMode, Similarity.SimScorer scorer, float matchCost)
Expert: Creates ExactPhraseMatcher instance
-
-
Method Detail
-
reset
public void reset() throws IOExceptionDescription copied from class:PhraseMatcherCalled afterPhraseMatcher.approximation()has been advanced- Specified by:
resetin classPhraseMatcher- Throws:
IOException
-
nextMatch
public boolean nextMatch() throws IOExceptionDescription copied from class:PhraseMatcherFind the next match on the current document, returningfalseif there are none.- Specified by:
nextMatchin classPhraseMatcher- Throws:
IOException
-
startPosition
public int startPosition()
-
endPosition
public int endPosition()
-
startOffset
public int startOffset() throws IOException- Throws:
IOException
-
endOffset
public int endOffset() throws IOException- Throws:
IOException
-
-