Run a script | Elasticsearch API documentation (original) (raw)
Dismiss highlight Show more
application/json
Body
- Values are
painless_test
,filter
,score
,boolean_field
,date_field
,double_field
,geo_point_field
,ip_field
,keyword_field
,long_field
, orcomposite_field
. - Hide context_setup attributes Show context_setup attributes object
- Document that's temporarily indexed in-memory and accessible from the script.
- An Elasticsearch Query DSL (Domain Specific Language) object that defines a query.
External documentation
- Hide script attributes Show script attributes object
- Specifies any named parameters that are passed into the script as variables. Use parameters instead of hard-coded values to decrease compile time.
Hide params attribute Show params attribute object
* *
object Additional properties lang string
Values are
painless
,expression
,mustache
, orjava
.- Hide options attribute Show options attribute object
* *
string Additional properties
- Specifies any named parameters that are passed into the script as variables. Use parameters instead of hard-coded values to decrease compile time.
Responses
- 200 application/json
Hide response attribute Show response attribute object