Package org.apache.lucene.search
Class ExactPhraseMatcher
java.lang.Object
org.apache.lucene.search.PhraseMatcher
org.apache.lucene.search.ExactPhraseMatcher
Expert: Find exact phrases
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Constructor Summary
ConstructorsConstructorDescriptionExactPhraseMatcher(PhraseQuery.PostingsAndFreq[] postings, ScoreMode scoreMode, Similarity.SimScorer scorer, float matchCost) Expert: Creates ExactPhraseMatcher instance -
Method Summary
Modifier and TypeMethodDescriptionintintbooleanFind the next match on the current document, returningfalseif there are none.voidreset()Called afterPhraseMatcher.approximation()has been advancedintintMethods inherited from class org.apache.lucene.search.PhraseMatcher
getMatchCost
-
Constructor Details
-
ExactPhraseMatcher
public ExactPhraseMatcher(PhraseQuery.PostingsAndFreq[] postings, ScoreMode scoreMode, Similarity.SimScorer scorer, float matchCost) Expert: Creates ExactPhraseMatcher instance
-
-
Method Details
-
reset
Description copied from class:PhraseMatcherCalled afterPhraseMatcher.approximation()has been advanced- Specified by:
resetin classPhraseMatcher- Throws:
IOException
-
nextMatch
Description 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
- Throws:
IOException
-
endOffset
- Throws:
IOException
-