Package org.apache.lucene.search
Class PhraseMatcher
java.lang.Object
org.apache.lucene.search.PhraseMatcher
- Direct Known Subclasses:
ExactPhraseMatcher,SloppyPhraseMatcher
Base class for exact and sloppy phrase matching
To find matches on a document, first advance approximation() to the relevant document,
then call reset(). Clients can then call nextMatch() to iterate over the
matches
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Method Summary
Modifier and TypeMethodDescriptionfloatAn estimate of the average cost of finding all matches on a documentabstract booleanFind the next match on the current document, returningfalseif there are none.abstract voidreset()Called afterapproximation()has been advanced
-
Method Details
-
reset
Called afterapproximation()has been advanced- Throws:
IOException
-
nextMatch
Find the next match on the current document, returningfalseif there are none.- Throws:
IOException
-
getMatchCost
public float getMatchCost()An estimate of the average cost of finding all matches on a document- See Also:
-