Package org.elasticsearch.search.runtime
Class BooleanScriptFieldTermQuery
java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.search.runtime.AbstractScriptFieldQuery<BooleanFieldScript>
org.elasticsearch.search.runtime.BooleanScriptFieldTermQuery
-
Field Summary
Fields inherited from class org.elasticsearch.search.runtime.AbstractScriptFieldQuery
MATCH_COST
-
Constructor Summary
ConstructorDescriptionBooleanScriptFieldTermQuery(Script script, BooleanFieldScript.LeafFactory leafFactory, String fieldName, boolean term)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
protected boolean
matches(int trues, int falses)
Does the value match this query?protected boolean
matches(BooleanFieldScript scriptContext, int docId)
void
visit(org.apache.lucene.search.QueryVisitor visitor)
Methods inherited from class org.elasticsearch.search.runtime.AbstractScriptFieldQuery
createWeight
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
Constructor Details
-
BooleanScriptFieldTermQuery
public BooleanScriptFieldTermQuery(Script script, BooleanFieldScript.LeafFactory leafFactory, String fieldName, boolean term)
-
-
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
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractScriptFieldQuery<BooleanFieldScript>
-
equals
- Overrides:
equals
in classAbstractScriptFieldQuery<BooleanFieldScript>
-
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
-