October 2019
Beginner
186 pages
5h 39m
English
The multi search API allows for the execution of search requests within the same API:
$ cat requests{"index":"test"}{"query":{"match_all":{}},"from":0,"size":10}{"index":"test","search_type":"dfs_query_then_fetch"}{"query":{"match_all":{}}}{}{"query":{"match_all":{}}}{"query" : {"match_all":{}}}{"search_type":"dfs_query_then_fetch"}{"query":{"match_all":{}}}
The header indicates which indices are to be searched, that is, search_type, preference, and routing.
Read now
Unlock full access