Package org.elasticsearch.script
Class TermsSetQueryScript
org.elasticsearch.script.TermsSetQueryScript
public abstract class TermsSetQueryScript
extends
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A factory to construct statefulTermsSetQueryScript
factories for a specific index.static interface
A factory to constructTermsSetQueryScript
instances. -
Field Summary
Modifier and TypeFieldDescriptionstatic []
-
Constructor Summary
ModifierConstructorDescriptionprotected
<,> params, SearchLookup lookup, org.apache.lucene.index.LeafReaderContext leafContext)
-
Method Summary
Modifier and TypeMethodDescriptionabstract
execute()
<,ScriptDocValues<?>>
getDoc()
The doc lookup for the Lucene segment this script was created for.<,>
Return the parameters for this script.long
Return the result as a long.void
setDocument(int docid)
Set the current document to run the script on next.Methods inherited from class java.lang.
, , , , , , , , , ,
-
Field Details
-
PARAMETERS
public static final [] PARAMETERS -
CONTEXT
-
-
Constructor Details
-
TermsSetQueryScript
public TermsSetQueryScript(<,> params, SearchLookup lookup, org.apache.lucene.index.LeafReaderContext leafContext) -
TermsSetQueryScript
protected TermsSetQueryScript()
-
-
Method Details
-
getParams
public <,> 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 execute()
-