Learning Elastic Stack 7.0(Second Edition)
上QQ阅读APP看书,第一时间看更新

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.