List Search Applications

List Search Applications

New API reference

For the most up-to-date API details, refer to Search application APIs.

This functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features.

Returns information about Search Applications.

Request

GET _application/search_application/

Prerequisites

Requires the manage_search_application cluster privilege.

Path parameters

q

(Optional, string) Query in the Lucene query string syntax, to return only search applications matching the query.

size

(Optional, integer) Maximum number of results to retrieve.

from

(Optional, integer) The offset from the first result to fetch.

Response codes

Examples

The following example lists all configured search applications:

  1. resp = client.search_application.list()
  2. print(resp)
  1. const response = await client.searchApplication.list();
  2. console.log(response);
  1. GET _application/search_application/

The following example queries the first three search applications whose names start with app:

  1. resp = client.search_application.list(
  2. from_="0",
  3. size="3",
  4. q="app*",
  5. )
  6. print(resp)
  1. const response = await client.searchApplication.list({
  2. from: 0,
  3. size: 3,
  4. q: "app*",
  5. });
  6. console.log(response);
  1. GET _application/search_application?from=0&size=3&q=app*

A sample response:

  1. {
  2. "count": 2,
  3. "results": [
  4. {
  5. "name": "app-1",
  6. "updated_at_millis": 1690981129366
  7. },
  8. {
  9. "name": "app-2",
  10. "updated_at_millis": 1691501823939
  11. }
  12. ]
  13. }