Search type
Searches can be executed using different paths. The distribution search operation is scattered to all the relevant shards, and then the results are retrieved. It will sort through the results and check for correctability. Since each shard is independent, the searches of term frequencies happen over all the shards. To provide an accurate ranking, the term frequencies of the shards need to be used to calculate a global term frequency, which will then be applied to the query in each shard search.
Elasticsearch allows control over the type of search to be performed on a per search request basis. The settings are configured in the search_type parameter in the query string. The first setting that can be used is the query_then_fetch ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access