Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is DFS in Elasticsearch "DFS_QUERY_THEN_FETCH"?

What is DFS in Elasticsearch "DFS_QUERY_THEN_FETCH"?

what is the abbreviations of DFS?

like image 690
Guo Avatar asked Sep 17 '16 12:09

Guo


1 Answers

The DFS stands for "Distributed Frequency Search".
Excerpt from the elasticsearch documentation :

The second workaround is to add ?search_type=dfs_query_then_fetch to your search requests. The dfs stands for Distributed Frequency Search, and it tells Elasticsearch to first retrieve the local IDF from each shard in order to calculate the global IDF across the whole index.

Tip Don’t use dfs_query_then_fetch in production. It really isn’t required. Just having enough data will ensure that your term frequencies are well distributed. There is no reason to add this extra DFS step to every query that you r

like image 96
keety Avatar answered Sep 25 '22 11:09

keety