Package org.elasticsearch.search.runtime
Class BooleanScriptFieldExistsQuery
java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.search.runtime.AbstractScriptFieldQuery<BooleanFieldScript>
org.elasticsearch.search.runtime.BooleanScriptFieldExistsQuery
-
Field Summary
Fields inherited from class org.elasticsearch.search.runtime.AbstractScriptFieldQuery
MATCH_COST
-
Constructor Summary
ConstructorDescriptionBooleanScriptFieldExistsQuery(Script script, BooleanFieldScript.LeafFactory leafFactory, String fieldName)
-
Method Summary
Methods inherited from class org.elasticsearch.search.runtime.AbstractScriptFieldQuery
createWeight, equals, hashCode
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
Constructor Details
-
BooleanScriptFieldExistsQuery
public BooleanScriptFieldExistsQuery(Script script, BooleanFieldScript.LeafFactory leafFactory, String fieldName)
-
-
Method Details
-
matches
protected boolean matches(int trues, int falses)Does the value match this query?- Parameters:
trues
- the number of true values returned by the scriptfalses
- the number of false values returned by the script
-
toString
- Specified by:
toString
in classorg.apache.lucene.search.Query
-
matches
- Specified by:
matches
in classAbstractScriptFieldQuery<BooleanFieldScript>
-
visit
public final void visit(org.apache.lucene.search.QueryVisitor visitor)- Overrides:
visit
in classorg.apache.lucene.search.Query
-