The search API
editThe search API
edit[preview] This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
A search consists of one or more queries that are combined and sent to Elasticsearch. Documents that match a search’s queries are returned in the hits, or search results, of the response.
A search may also contain additional information used to better process its queries. For example, a search may be limited to a specific index or only return a specific number of results.
You can use the search API to search and
aggregate data stored in Elasticsearch data streams or indices.
The API’s query
request body parameter accepts queries written in
Query DSL.
For more information, refer to the search API overview in the classic Elasticsearch docs.