- Learning Elastic Stack 7.0(Second Edition)
- Pranav Shukla Sharath Kumar M N
- 70字
- 2025-04-04 14:18:53
Searching all the documents of a particular type in all indexes
The following will search all the indexes in the cluster, but only documents of the product type will be searched:
GET /_all/_doc/_search
This feature can be quite handy when you have multiple indexes, with each index containing the exact same type. This type of query can help you query data for that type from all indexes.