Package org.elasticsearch.script
Class DocBasedScript
java.lang.Object
org.elasticsearch.script.DocBasedScript
- Direct Known Subclasses:
AbstractFieldScript,AggregationScript,FieldScript,FilterScript,NumberSortScript,ScoreScript,ScriptedMetricAggContexts.MapScript,StringSortScript
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondocAsMap()Map<String,ScriptDocValues<?>> getDoc()The doc lookup for the Lucene segment this script was created for.voidsetDocument(int docID) Set the current document to run the script on next.
-
Field Details
-
docReader
-
-
Constructor Details
-
DocBasedScript
-
-
Method Details
-
field
-
fields
-
setDocument
public void setDocument(int docID) Set the current document to run the script on next. -
docAsMap
-
getDoc
The doc lookup for the Lucene segment this script was created for.
-