Package org.elasticsearch.search.runtime
Class AbstractStringScriptFieldAutomatonQuery
java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.search.runtime.AbstractStringScriptFieldAutomatonQuery
- Direct Known Subclasses:
StringScriptFieldFuzzyQuery,StringScriptFieldRegexpQuery,StringScriptFieldWildcardQuery
public abstract class AbstractStringScriptFieldAutomatonQuery
extends org.apache.lucene.search.Query
-
Field Summary
Fields Modifier and Type Field Description protected static floatMATCH_COSTWe don't have the infrastructure to estimate the match cost of a script so we just use a big number. -
Constructor Summary
Constructors Constructor Description AbstractStringScriptFieldAutomatonQuery(Script script, StringFieldScript.LeafFactory leafFactory, java.lang.String fieldName, org.apache.lucene.util.automaton.ByteRunAutomaton automaton) -
Method Summary
Modifier and Type Method Description org.apache.lucene.search.WeightcreateWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost)booleanequals(java.lang.Object obj)inthashCode()protected booleanmatches(java.util.List<java.lang.String> values)Does the value match this query?protected booleanmatches(StringFieldScript scriptContext, int docId)voidvisit(org.apache.lucene.search.QueryVisitor visitor)Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString, toStringMethods 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
-
-
Constructor Details
-
AbstractStringScriptFieldAutomatonQuery
public AbstractStringScriptFieldAutomatonQuery(Script script, StringFieldScript.LeafFactory leafFactory, java.lang.String fieldName, org.apache.lucene.util.automaton.ByteRunAutomaton automaton)
-
-
Method Details
-
matches
protected final boolean matches(java.util.List<java.lang.String> values)Does the value match this query? -
visit
public final void visit(org.apache.lucene.search.QueryVisitor visitor)- Overrides:
visitin classorg.apache.lucene.search.Query
-
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:
createWeightin classorg.apache.lucene.search.Query- Throws:
java.io.IOException
-
hashCode
public int hashCode()- Specified by:
hashCodein classorg.apache.lucene.search.Query
-
equals
public boolean equals(java.lang.Object obj)- Specified by:
equalsin classorg.apache.lucene.search.Query
-