The search API performs a search using a query string, a parameter, or a request body as the search criteria, and then it returns exact matches. The multi-index syntax is used by most search APIs to search over multiple indices, as follows:
- Users can search all of the documents in a specific index using the cactus_flower user:
- This can also be applied using a tag:
- To search all the indices, use the _all tag instead of the index name:
In the preceding query, we can query through all the available Elasticsearch indices for the tag using wow. Now, let's see how we can perform a URI-based search in Elasticsearch.