Package org.elasticsearch.script
Class TermsSetQueryScript
java.lang.Object
org.elasticsearch.script.TermsSetQueryScript
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA factory to construct statefulTermsSetQueryScriptfactories for a specific index.static interfaceA factory to constructTermsSetQueryScriptinstances. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTermsSetQueryScript(Map<String,Object> params, SearchLookup lookup, org.apache.lucene.index.LeafReaderContext leafContext) -
Method Summary
Modifier and TypeMethodDescriptionabstract Numberexecute()Map<String,ScriptDocValues<?>>getDoc()The doc lookup for the Lucene segment this script was created for.Return the parameters for this script.longReturn the result as a long.voidsetDocument(int docid)Set the current document to run the script on next.
-
Field Details
-
PARAMETERS
-
CONTEXT
-
-
Constructor Details
-
TermsSetQueryScript
public TermsSetQueryScript(Map<String,Object> params, SearchLookup lookup, org.apache.lucene.index.LeafReaderContext leafContext) -
TermsSetQueryScript
protected TermsSetQueryScript()
-
-
Method Details
-
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
-