For simple searches, you can use the simple query string as a URL parameter to execute the Search API. For complex queries, you can write JSON query strings using DSL in the request body. All Search APIs can be applied to multiple indices. Let's show three search examples, with one index, two indices, and all indices. The following screenshot shows how to search all documents with the cf_etf index. 314 documents are identified:
The following screenshot shows how to search all documents with two indices, the cf_etf index, and cf_view index. 316 documents are identified:
The following screenshot shows how to search all documents with all indices. 318 documents are identified:
We will first introduce the URI search and then the request body search in a separate subsection.