# Document Frequenct in dfs\_query\_then\_fetch

**URL:** https://discuss.elastic.co/t/document-frequenct-in-dfs-query-then-fetch/65637
**Category:** Elasticsearch
**Created:** [November 10, 2016, 10:55am UTC](https://discuss.elastic.co/t/document-frequenct-in-dfs-query-then-fetch/65637 "2016-11-10T10:55:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![SOURABH\_SUMAN](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@SOURABH\_SUMAN](https://discuss.elastic.co/u/SOURABH_SUMAN)
#### Post date: [November 10, 2016, 10:55am UTC](https://discuss.elastic.co/t/document-frequenct-in-dfs-query-then-fetch/65637/1 "2016-11-10T10:55:46Z")

</div>

I am trying to fetch docFrequency across all shards for each response. I tried default search(query\_then\_fetch ) and dfs\_query\_then\_fetch. Both of them returned different score , but the docFrequency was same for the matched result. So, Is the docFrequency **global** in both the cases or is it from a particular shard only in both cases ? And how can i get the global frequency ?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [December 8, 2016, 10:55am UTC](https://discuss.elastic.co/t/document-frequenct-in-dfs-query-then-fetch/65637/2 "2016-12-08T10:55:47Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
