Create or update a search application Beta
Path parameters
-
The name of the search application to be created or updated.
Query parameters
-
create boolean
If
true
, this request cannot replace or update existing Search Applications.
Body Required
-
Indices that are part of the Search Application.
-
updated_at_millis number
Time unit for milliseconds
-
analytics_collection_name string
-
template object
Additional properties are allowed.
PUT /_application/search_application/{name}
curl \
-X PUT http://api.example.com/_application/search_application/{name} \
-H "Content-Type: application/json" \
-d '{"name":"string","indices":["string"],"":42.0,"analytics_collection_name":"string","template":{"script":{"source":"string","id":"string","params":{"additionalProperty1":{},"additionalProperty2":{}},"":"painless","options":{"additionalProperty1":"string","additionalProperty2":"string"}}}}'
Request examples
{
"name": "string",
"indices": [
"string"
],
"": 42.0,
"analytics_collection_name": "string",
"template": {
"script": {
"source": "string",
"id": "string",
"params": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"": "painless",
"options": {
"additionalProperty1": "string",
"additionalProperty2": "string"
}
}
}
}
Response examples (200)
{
"result": "created"
}