The search API allows you to execute a search query and get back search hits that match the query. The query can either be provided using a simple query string as a parameter, or using a request body.
All search APIs can be applied across multiple types within an index, and across multiple indices with support for the multi index syntax. For example, we can search on all documents across all types within the twitter index:
We can also search within specific types:
We can also search all tweets with a certain tag across several indices (for example, when each user has his own index):
Or we can search all tweets across all available indices using
Or even search across all indices and all types: