Package org.elasticsearch.search.runtime
Class StringScriptFieldFuzzyQuery
java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.search.runtime.AbstractStringScriptFieldAutomatonQuery
org.elasticsearch.search.runtime.StringScriptFieldFuzzyQuery
public class StringScriptFieldFuzzyQuery extends AbstractStringScriptFieldAutomatonQuery
-
Field Summary
Fields Modifier and Type Field Description protected static float
MATCH_COST
We don't have the infrastructure to estimate the match cost of a script so we just use a big number. -
Method Summary
Modifier and Type Method Description static StringScriptFieldFuzzyQuery
build(Script script, StringFieldScript.LeafFactory leafFactory, java.lang.String fieldName, java.lang.String term, int maxEdits, int prefixLength, boolean transpositions)
org.apache.lucene.search.Weight
createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost)
boolean
equals(java.lang.Object obj)
int
hashCode()
protected boolean
matches(StringFieldScript scriptContext, int docId)
java.lang.String
toString(java.lang.String field)
Methods inherited from class org.elasticsearch.search.runtime.AbstractStringScriptFieldAutomatonQuery
matches, visit
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
MATCH_COST
protected static final float MATCH_COSTWe don't have the infrastructure to estimate the match cost of a script so we just use a big number.- See Also:
- Constant Field Values
-
-
Method Details
-
build
public static StringScriptFieldFuzzyQuery build(Script script, StringFieldScript.LeafFactory leafFactory, java.lang.String fieldName, java.lang.String term, int maxEdits, int prefixLength, boolean transpositions) -
toString
public final java.lang.String toString(java.lang.String field)- Specified by:
toString
in classorg.apache.lucene.search.Query
-
hashCode
public int hashCode() -
equals
public boolean equals(java.lang.Object obj) -
matches
-
createWeight
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) throws java.io.IOException- Overrides:
createWeight
in classorg.apache.lucene.search.Query
- Throws:
java.io.IOException
-