Package org.elasticsearch.script
Class TermsSetQueryScript
java.lang.Object
org.elasticsearch.script.TermsSetQueryScript
public abstract class TermsSetQueryScript
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTermsSetQueryScript.FactoryA factory to construct statefulTermsSetQueryScriptfactories for a specific index.static interfaceTermsSetQueryScript.LeafFactoryA factory to constructTermsSetQueryScriptinstances. -
Field Summary
Fields Modifier and Type Field Description static ScriptContext<TermsSetQueryScript.Factory>CONTEXTstatic java.lang.String[]PARAMETERS -
Constructor Summary
Constructors Modifier Constructor Description protectedTermsSetQueryScript()TermsSetQueryScript(java.util.Map<java.lang.String,java.lang.Object> params, SearchLookup lookup, org.apache.lucene.index.LeafReaderContext leafContext) -
Method Summary
Modifier and Type Method Description abstract java.lang.Numberexecute()java.util.Map<java.lang.String,ScriptDocValues<?>>getDoc()The doc lookup for the Lucene segment this script was created for.java.util.Map<java.lang.String,java.lang.Object>getParams()Return the parameters for this script.longrunAsLong()Return the result as a long.voidsetDocument(int docid)Set the current document to run the script on next.
-
Field Details
-
PARAMETERS
public static final java.lang.String[] PARAMETERS -
CONTEXT
-
-
Constructor Details
-
TermsSetQueryScript
public TermsSetQueryScript(java.util.Map<java.lang.String,java.lang.Object> params, SearchLookup lookup, org.apache.lucene.index.LeafReaderContext leafContext) -
TermsSetQueryScript
protected TermsSetQueryScript()
-
-
Method Details
-
getParams
public java.util.Map<java.lang.String,java.lang.Object> getParams()Return the parameters for this script. -
getDoc
The doc lookup for the Lucene segment this script was created for. -
setDocument
public void setDocument(int docid)Set the current document to run the script on next. -
runAsLong
public long runAsLong()Return the result as a long. This is used by aggregation scripts over long fields. -
execute
public abstract java.lang.Number execute()
-