public class SimpleConcordanceFuzzyQuery
extends org.apache.lucene.search.Query
TextFragments. Phrase positions inside the TM
source or target segments are not generated by this query.| Modifier and Type | Class and Description |
|---|---|
protected class |
SimpleConcordanceFuzzyQuery.SimpleConcordanceFuzzyWeight |
| Constructor and Description |
|---|
SimpleConcordanceFuzzyQuery(float threshold)
Construct a SimpleConcordanceFuzzyQuery specifying the fuzzy threshold.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.apache.lucene.index.Term term)
Add a search
Term to the query. |
org.apache.lucene.search.Weight |
createWeight(org.apache.lucene.search.Searcher searcher) |
void |
extractTerms(Set terms) |
org.apache.lucene.search.Query |
rewrite(org.apache.lucene.index.IndexReader reader) |
String |
toString(String field) |
public SimpleConcordanceFuzzyQuery(float threshold)
threshold - - value between 0.0 and 1.0, where 1.0 is a perfect match and 0.0 is no match.public void add(org.apache.lucene.index.Term term)
Term to the query.term - - Term generated by a Lucene Analyzerpublic org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.Searcher searcher)
throws IOException
createWeight in class org.apache.lucene.search.QueryIOExceptionpublic void extractTerms(Set terms)
extractTerms in class org.apache.lucene.search.Querypublic org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader)
throws IOException
rewrite in class org.apache.lucene.search.QueryIOExceptionCopyright © 2019. All rights reserved.