Create or update a search application

  • PUT /_application/search_application/{name}
Auth

Required privileges

Index privileges manage
Cluster privileges manage_search_application

Path parameters

name string required

The name of the search application to be created or updated.

Query parameters

create boolean · default: false

If true, this request cannot replace or update existing Search Applications.

Request body

indices string[] required

Indices that are part of the Search Application.

analytics_collection_name string

Analytics collection associated to the Search Application.

template object

Search template to use on search operations.

script string required

The associated mustache template.

Response

application/json
result enum required
Values: created updated deleted not_found noop