# Bad results due to sharding!

**URL:** <https://discuss.elastic.co/t/bad-results-due-to-sharding/18689>\
**Category:** Elasticsearch\
**Created:** [July 16, 2014, 6:25am UTC](https://discuss.elastic.co/t/bad-results-due-to-sharding/18689 "2014-07-16T06:25:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karan\_Verma](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@Karan\_Verma](https://discuss.elastic.co/u/Karan_Verma)\
**Post date:** [July 16, 2014, 6:25am UTC](https://discuss.elastic.co/t/bad-results-due-to-sharding/18689/1 "2014-07-16T06:25:47Z")

</div>

Hello

I have the default configuration of the elastic search node: 5 shards and 1  
replica. I query the node which matches on particular field which is the  
same for many documents in these 5 shards. However the search results have  
different scores due to the tf-idf for that document in that particular  
shard. Ideal scenario for me would be to have the same score for the  
document for the same fields across different shards and I could break ties  
by ordering on a second criteria which is important to me. How to  
accomplish this?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/ca607a86-1233-4d32-bde2-128a8596c34f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ca607a86-1233-4d32-bde2-128a8596c34f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 16, 2014, 6:47am UTC](https://discuss.elastic.co/t/bad-results-due-to-sharding/18689/2 "2014-07-16T06:47:03Z")

</div>

Have a look at [http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-search-type.html#dfs-query-and-fetch](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-search-type.html#dfs-query-and-fetch)

It should help.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 juil. 2014 à 08:25, Karan Verma [karan@healthtap.com](mailto:karan@healthtap.com) a écrit :

Hello

I have the default configuration of the elastic search node: 5 shards and 1 replica. I query the node which matches on particular field which is the same for many documents in these 5 shards. However the search results have different scores due to the tf-idf for that document in that particular shard. Ideal scenario for me would be to have the same score for the document for the same fields across different shards and I could break ties by ordering on a second criteria which is important to me. How to accomplish this?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/ca607a86-1233-4d32-bde2-128a8596c34f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ca607a86-1233-4d32-bde2-128a8596c34f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8319E687-4FBD-4E85-BB80-F3FAFDDFF54A%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/8319E687-4FBD-4E85-BB80-F3FAFDDFF54A%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:15am UTC](https://discuss.elastic.co/t/bad-results-due-to-sharding/18689/3 "2017-07-06T01:15:34Z")

</div>


