- Learning Elastic Stack 7.0(Second Edition)
- Pranav Shukla Sharath Kumar M N
- 65字
- 2025-04-04 14:18:53
Searching all documents in one index
The following code will search for all documents, but only within the catalog index:
GET /catalog/_search
You can also be more specific and include the type in addition to the index name, like so:
GET /catalog/_doc/_search
The version with the _doc type name produces a deprecation warning because each index is supposed to contain only one type.