---
type: api
title: Get search application details
description: ## Required authorization
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/operation/operation-search-application-get
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/operation/operation-search-application-get
products:
  - Elasticsearch
---

# Get search application details

Availability: 8.8+

## Paths

- `GET` `/_application/search_application/{name}`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/authentication#basicauth)
- [Bearer auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/authentication#bearerauth)

#### Path Parameters

- `name` (string Name)
  The name of the search application

## Description



## Required authorization

* Cluster privileges: `manage_search_application`

## Response

`application/json`

- `indices` ([] string IndexName)
  Indices that are part of the Search Application.
- `analytics_collection_name` (string Name)
  Analytics collection associated to the Search Application.
- `template` ({} SearchApplicationTemplate)
  Search template to use on search operations.
  - `script` (string Script)
    The associated mustache template.
- `name` (string Name)
  Search Application name
- `updated_at_millis` (EpochTimeUnitMillis)
  Last time the Search Application was updated.
## Code Examples

#### Console

```console
GET _application/search_application/my-app/
```

#### JavaScript

```javascript
const response = await client.searchApplication.get({
  name: "my-app",
});
```

#### Python

```python
resp = client.search_application.get(
    name="my-app",
)
```

#### curl

```curl
curl -X GET "$ELASTICSEARCH_URL/_application/search_application/my-app/" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY"
```

#### Java

```java
client.searchApplication().get(g -> g
    .name("my-app")
);
```

#### C#

```c#
var response = await client.SearchApplication.GetAsync(name: "my-app");
```

#### PHP

```php
$resp = $client->searchApplication()->get([
    "name" => "my-app",
]);
```

#### Ruby

```ruby
response = client.search_application.get(
  name: "my-app"
)
```

## Response Examples

#### Search application get response example1

A sucessful response from `GET _application/search_application/my-app/`.

```json
{
  "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": "*"
      }
    }
  }
}
```

