Get search application details Beta; Added in 8.8.0

GET /_application/search_application/{name}

Required authorization

  • Cluster privileges: manage_search_application

Path parameters

  • name string Required

    The name of the search application

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • indices array[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.

      Hide template attribute Show template attribute object
      • script object Required

        The associated mustache template.

        Hide script attributes Show script attributes object
        • source string

          The script source.

        • params object

          Specifies any named parameters that are passed into the script as variables. Use parameters instead of hard-coded values to decrease compile time.

        • options object
    • name string Required

      Search Application name

    • Time unit for milliseconds

GET /_application/search_application/{name}
GET _application/search_application/my-app/ 
resp = client.search_application.get( name="my-app", )
const response = await client.searchApplication.get({ name: "my-app", });
response = client.search_application.get( name: "my-app" )
$resp = $client->searchApplication()->get([ "name" => "my-app", ]);
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_application/search_application/my-app/"
client.searchApplication().get(g -> g .name("my-app") ); 
Response examples (200)
A sucessful response from `GET _application/search_application/my-app/`.
{ "name": "my-app", "indices": [ "index1", "index2" ], "updated_at_millis": 1682105622204, "template": { "script": { "source": { "query": { "query_string": { "query": "{{query_string}}", "default_field": "{{default_field}}" } } }, "lang": "mustache", "options": { "content_type": "application/json;charset=utf-8" }, "params": { "query_string": "*", "default_field": "*" } } } }