Uses of Class
org.elasticsearch.script.Script
-
-
Uses of Script in org.elasticsearch.action.search
Methods in org.elasticsearch.action.search with parameters of type Script Modifier and Type Method Description SearchRequestBuilderSearchRequestBuilder. addScriptField(String name, Script script)Adds a script based field to load and return. -
Uses of Script in org.elasticsearch.action.update
Methods in org.elasticsearch.action.update that return Script Modifier and Type Method Description ScriptUpdateRequest. script()Methods in org.elasticsearch.action.update with parameters of type Script Modifier and Type Method Description UpdateRequestUpdateRequest. script(Script script)The script to execute.UpdateRequestBuilderUpdateRequestBuilder. setScript(Script script)The script to execute. -
Uses of Script in org.elasticsearch.common.lucene.search.function
Constructors in org.elasticsearch.common.lucene.search.function with parameters of type Script Constructor Description ScriptScoreFunction(Script sScript, ScoreScript.LeafFactory script, String indexName, int shardId, Version indexVersion)ScriptScoreQuery(Query subQuery, Script script, ScoreScript.LeafFactory scriptBuilder, Float minScore, String indexName, int shardId, Version indexVersion) -
Uses of Script in org.elasticsearch.index.query
Methods in org.elasticsearch.index.query that return Script Modifier and Type Method Description ScriptTermsSetQueryBuilder. getMinimumShouldMatchScript()ScriptScriptQueryBuilder. script()Methods in org.elasticsearch.index.query with parameters of type Script Modifier and Type Method Description InnerHitBuilderInnerHitBuilder. addScriptField(String name, Script script)TermsSetQueryBuilderTermsSetQueryBuilder. setMinimumShouldMatchScript(Script minimumShouldMatchScript)Constructors in org.elasticsearch.index.query with parameters of type Script Constructor Description ScriptQueryBuilder(Script script) -
Uses of Script in org.elasticsearch.index.query.functionscore
Methods in org.elasticsearch.index.query.functionscore that return Script Modifier and Type Method Description ScriptScriptScoreFunctionBuilder. getScript()Constructors in org.elasticsearch.index.query.functionscore with parameters of type Script Constructor Description ScriptScoreFunctionBuilder(Script script)ScriptScoreQueryBuilder(QueryBuilder query, Script script)Creates a script_score query that executes the provided script function on documents that match a query. -
Uses of Script in org.elasticsearch.index.rankeval
Methods in org.elasticsearch.index.rankeval that return types with arguments of type Script Modifier and Type Method Description Map<String,Script>RankEvalSpec. getTemplates()Returns the template to base test requests on. -
Uses of Script in org.elasticsearch.index.reindex
Methods in org.elasticsearch.index.reindex that return Script Modifier and Type Method Description ScriptAbstractBulkIndexByScrollRequest. getScript()Script to modify the documents before they are processed.Methods in org.elasticsearch.index.reindex with parameters of type Script Modifier and Type Method Description SelfAbstractBulkIndexByScrollRequest. setScript(Script script)Script to modify the documents before they are processed. -
Uses of Script in org.elasticsearch.script
Methods in org.elasticsearch.script that return Script Modifier and Type Method Description static ScriptScript. parse(Settings settings)Parse the script configured in the given settings.static ScriptScript. parse(XContentParser parser)Convenience method to callparse(XContentParser, String)using the default scripting language.static ScriptScript. parse(XContentParser parser, String defaultLang)This will parse XContent into aScript.Methods in org.elasticsearch.script with parameters of type Script Modifier and Type Method Description <FactoryType>
FactoryTypeScriptService. compile(Script script, ScriptContext<FactoryType> context)Compiles a script using the given context. -
Uses of Script in org.elasticsearch.search.aggregations.bucket.composite
Methods in org.elasticsearch.search.aggregations.bucket.composite that return Script Modifier and Type Method Description ScriptCompositeValuesSourceBuilder. script()Gets the script to use for this sourceMethods in org.elasticsearch.search.aggregations.bucket.composite with parameters of type Script Modifier and Type Method Description ABCompositeValuesSourceBuilder. script(Script script)Sets the script to use for this source -
Uses of Script in org.elasticsearch.search.aggregations.bucket.histogram
Methods in org.elasticsearch.search.aggregations.bucket.histogram with parameters of type Script Modifier and Type Method Description protected ValuesSourceTypeDateHistogramAggregationBuilder. resolveScriptAny(Script script)protected ValuesSourceTypeHistogramAggregationBuilder. resolveScriptAny(Script script) -
Uses of Script in org.elasticsearch.search.aggregations.bucket.range
Methods in org.elasticsearch.search.aggregations.bucket.range with parameters of type Script Modifier and Type Method Description IpRangeAggregationBuilderIpRangeAggregationBuilder. script(Script script) -
Uses of Script in org.elasticsearch.search.aggregations.bucket.significant.heuristics
Constructors in org.elasticsearch.search.aggregations.bucket.significant.heuristics with parameters of type Script Constructor Description ScriptHeuristic(Script script) -
Uses of Script in org.elasticsearch.search.aggregations.metrics
Methods in org.elasticsearch.search.aggregations.metrics that return Script Modifier and Type Method Description ScriptScriptedMetricAggregationBuilder. combineScript()Get thecombinescript.ScriptScriptedMetricAggregationBuilder. initScript()Get theinitscript.ScriptScriptedMetricAggregationBuilder. mapScript()Get themapscript.ScriptScriptedMetricAggregationBuilder. reduceScript()Get thereducescript.Methods in org.elasticsearch.search.aggregations.metrics with parameters of type Script Modifier and Type Method Description ScriptedMetricAggregationBuilderScriptedMetricAggregationBuilder. combineScript(Script combineScript)Set thecombinescript.ScriptedMetricAggregationBuilderScriptedMetricAggregationBuilder. initScript(Script initScript)Set theinitscript.ScriptedMetricAggregationBuilderScriptedMetricAggregationBuilder. mapScript(Script mapScript)Set themapscript.ScriptedMetricAggregationBuilderScriptedMetricAggregationBuilder. reduceScript(Script reduceScript)Set thereducescript.TopHitsAggregationBuilderTopHitsAggregationBuilder. scriptField(String name, Script script)Adds a script field under the given name with the provided script.TopHitsAggregationBuilderTopHitsAggregationBuilder. scriptField(String name, Script script, boolean ignoreFailure)Adds a script field under the given name with the provided script. -
Uses of Script in org.elasticsearch.search.aggregations.pipeline
Constructors in org.elasticsearch.search.aggregations.pipeline with parameters of type Script Constructor Description BucketScriptPipelineAggregationBuilder(String name, Map<String,String> bucketsPathsMap, Script script)BucketScriptPipelineAggregationBuilder(String name, Script script, String... bucketsPaths)BucketSelectorPipelineAggregationBuilder(String name, Map<String,String> bucketsPathsMap, Script script)BucketSelectorPipelineAggregationBuilder(String name, Script script, String... bucketsPaths)MovFnPipelineAggregationBuilder(String name, String bucketsPath, Script script, int window) -
Uses of Script in org.elasticsearch.search.aggregations.support
Methods in org.elasticsearch.search.aggregations.support that return Script Modifier and Type Method Description ScriptMultiValuesSourceFieldConfig.Builder. getScript()ScriptMultiValuesSourceFieldConfig. getScript()ScriptValuesSourceAggregationBuilder. script()Gets the script to use for this aggregation.Methods in org.elasticsearch.search.aggregations.support with parameters of type Script Modifier and Type Method Description protected ValueTypeValuesSourceAggregationBuilder. defaultValueType(Script script)Provide a hook for aggregations to have finer grained control of the ValueType for script values.static <VS extends ValuesSource>
ValuesSourceConfig<VS>ValuesSourceConfig. resolve(QueryShardContext context, ValueType valueType, String field, Script script, Object missing, ZoneId timeZone, String format)Resolve aValuesSourceConfiggiven configuration parameters.static <VS extends ValuesSource>
ValuesSourceConfig<VS>ValuesSourceConfig. resolve(QueryShardContext context, ValueType valueType, String field, Script script, Object missing, ZoneId timeZone, String format, Function<Script,ValuesSourceType> resolveScriptAny)Resolve aValuesSourceConfiggiven configuration parameters.protected ValuesSourceTypeValuesSourceAggregationBuilder. resolveScriptAny(Script script)Provide a hook for aggregations to have finer grained control of the ValuesSourceType for script values.ABValuesSourceAggregationBuilder. script(Script script)Sets the script to use for this aggregation.MultiValuesSourceFieldConfig.BuilderMultiValuesSourceFieldConfig.Builder. setScript(Script script)Method parameters in org.elasticsearch.search.aggregations.support with type arguments of type Script Modifier and Type Method Description static <VS extends ValuesSource>
ValuesSourceConfig<VS>ValuesSourceConfig. resolve(QueryShardContext context, ValueType valueType, String field, Script script, Object missing, ZoneId timeZone, String format, Function<Script,ValuesSourceType> resolveScriptAny)Resolve aValuesSourceConfiggiven configuration parameters. -
Uses of Script in org.elasticsearch.search.builder
Methods in org.elasticsearch.search.builder that return Script Modifier and Type Method Description ScriptSearchSourceBuilder.ScriptField. script()Methods in org.elasticsearch.search.builder with parameters of type Script Modifier and Type Method Description SearchSourceBuilderSearchSourceBuilder. scriptField(String name, Script script)Adds a script field under the given name with the provided script.SearchSourceBuilderSearchSourceBuilder. scriptField(String name, Script script, boolean ignoreFailure)Adds a script field under the given name with the provided script.Constructors in org.elasticsearch.search.builder with parameters of type Script Constructor Description ScriptField(String fieldName, Script script, boolean ignoreFailure) -
Uses of Script in org.elasticsearch.search.sort
Methods in org.elasticsearch.search.sort that return Script Modifier and Type Method Description ScriptScriptSortBuilder. script()Get the script used in this sort.Methods in org.elasticsearch.search.sort with parameters of type Script Modifier and Type Method Description static ScriptSortBuilderSortBuilders. scriptSort(Script script, ScriptSortBuilder.ScriptSortType type)Constructs a new script based sort.Constructors in org.elasticsearch.search.sort with parameters of type Script Constructor Description ScriptSortBuilder(Script script, ScriptSortBuilder.ScriptSortType type)Constructs a script sort builder with the given script. -
Uses of Script in org.elasticsearch.search.suggest.phrase
Methods in org.elasticsearch.search.suggest.phrase that return Script Modifier and Type Method Description ScriptPhraseSuggestionBuilder. collateQuery()gets the query used for filtering out suggested phrases (collation).Methods in org.elasticsearch.search.suggest.phrase with parameters of type Script Modifier and Type Method Description PhraseSuggestionBuilderPhraseSuggestionBuilder. collateQuery(Script collateQueryTemplate)Sets a query used for filtering out suggested phrases (collation).
-