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.
-
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 '{"indices":["string"],"analytics_collection_name":"string","template":{"script":{"source":"string","id":"string","params":{"additionalProperty1":{},"additionalProperty2":{}},"":"painless","options":{"additionalProperty1":"string","additionalProperty2":"string"}}}}'
Request examples
{
"indices": [
"string"
],
"analytics_collection_name": "string",
"template": {
"script": {
"source": "string",
"id": "string",
"params": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"": "painless",
"options": {
"additionalProperty1": "string",
"additionalProperty2": "string"
}
}
}
}
Response examples (200)
{
"result": "created"
}