public class NearestFuzzyQuery extends Query
Constructor and Description |
---|
NearestFuzzyQuery(Analyzer analyzer)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addTerms(String queryString,
String fieldName)
Adds user input for "fuzzification"
|
boolean |
equals(Object other) |
int |
hashCode() |
Query |
rewrite(IndexReader reader) |
String |
toString(String field) |
void |
visit(QueryVisitor visitor) |
classHash, createWeight, sameClassAs, toString
public NearestFuzzyQuery(Analyzer analyzer)
analyzer
- the analyzer used to process the query textpublic void addTerms(String queryString, String fieldName)
queryString
- The string which will be parsed by the analyzer and for which fuzzy variants will be parsedpublic Query rewrite(IndexReader reader) throws IOException
rewrite
in class Query
IOException
public void visit(QueryVisitor visitor)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.