Package org.elasticsearch.search.runtime
Class AbstractScriptFieldQuery<S extends AbstractFieldScript>
java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.search.runtime.AbstractScriptFieldQuery<S>
- Direct Known Subclasses:
AbstractStringScriptFieldAutomatonQuery
,BooleanScriptFieldExistsQuery
,BooleanScriptFieldTermQuery
,DoubleScriptFieldExistsQuery
,DoubleScriptFieldRangeQuery
,DoubleScriptFieldTermQuery
,DoubleScriptFieldTermsQuery
,GeoPointScriptFieldDistanceFeatureQuery
,GeoPointScriptFieldExistsQuery
,GeoPointScriptFieldGeoShapeQuery
,IpScriptFieldExistsQuery
,IpScriptFieldRangeQuery
,IpScriptFieldTermQuery
,IpScriptFieldTermsQuery
,LongScriptFieldDistanceFeatureQuery
,LongScriptFieldExistsQuery
,LongScriptFieldRangeQuery
,LongScriptFieldTermQuery
,LongScriptFieldTermsQuery
,StringScriptFieldExistsQuery
,StringScriptFieldPrefixQuery
,StringScriptFieldRangeQuery
,StringScriptFieldTermQuery
,StringScriptFieldTermsQuery
public abstract class AbstractScriptFieldQuery<S extends AbstractFieldScript>
extends org.apache.lucene.search.Query
Abstract base class for building queries based on script fields.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static float
We don't have the infrastructure to estimate the match cost of a script so we just use a big number. -
Method Summary
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString, toString, visit
-
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
-
createWeight
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) throws IOException- Overrides:
createWeight
in classorg.apache.lucene.search.Query
- Throws:
IOException
-
matches
-
hashCode
public int hashCode()- Specified by:
hashCode
in classorg.apache.lucene.search.Query
-
equals
- Specified by:
equals
in classorg.apache.lucene.search.Query
-