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.