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
ConstructorsConstructorDescriptionBooleanScriptFieldExistsQuery(Script script, BooleanFieldScript.LeafFactory leafFactory, String fieldName) -
Method Summary
Methods inherited from class org.elasticsearch.search.runtime.AbstractScriptFieldQuery
createWeight, equals, hashCodeMethods 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:
toStringin classorg.apache.lucene.search.Query
-
matches
- Specified by:
matchesin classAbstractScriptFieldQuery<BooleanFieldScript>
-
visit
public final void visit(org.apache.lucene.search.QueryVisitor visitor) - Overrides:
visitin classorg.apache.lucene.search.Query
-