# Different relevance scoring in EL 2 and EL 5

**URL:** <https://discuss.elastic.co/t/different-relevance-scoring-in-el-2-and-el-5/63893>\
**Category:** Elasticsearch\
**Created:** [October 25, 2016, 3:01pm UTC](https://discuss.elastic.co/t/different-relevance-scoring-in-el-2-and-el-5/63893 "2016-10-25T15:01:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mumpi](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@mumpi](https://discuss.elastic.co/u/mumpi)\
**Post date:** [October 25, 2016, 3:01pm UTC](https://discuss.elastic.co/t/different-relevance-scoring-in-el-2-and-el-5/63893/1 "2016-10-25T15:01:15Z")

</div>

With almost identical settings / mappings / data in EL 2 and EL 5 I see different result ordering by "\_score,desc". EL 2-Results are visually much better (documents containing all terms appear first; documents with more hits appear first).

I know that sounds not really precise. Is there any hint, what could be responsible for this new behaviour?

My Setup: Newspaper documents. I have separate indexes for languages and time-periodes; differences in mappings reflect only different language treatments.  
Only difference in mappings from EL 2 to EL 5: \_all is now enabled:false. which reduced the index-size dramatically.  
Settings: Although it is now default I did not change similarity setting ("similarity": { "smdSimilarity": {"type": "BM25"}}.

Many thanks for any hint.  
Best regards, Jürg

---

<div class="post-metadata">

**Author:** ![mumpi](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@mumpi](https://discuss.elastic.co/u/mumpi)\
**Post date:** [October 26, 2016, 5:52am UTC](https://discuss.elastic.co/t/different-relevance-scoring-in-el-2-and-el-5/63893/2 "2016-10-26T05:52:08Z")

</div>

Sorry folks; after deeper investigations I found a possible error in my mapping; it did not index parts of the text containing the tested query-words. Shame on me. I repair it and come back if the problem still persists.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 26, 2016, 7:49am UTC](https://discuss.elastic.co/t/different-relevance-scoring-in-el-2-and-el-5/63893/3 "2016-10-26T07:49:04Z")

</div>

Hey,

glad you found it. I moved the topic over the elasticsearch forum, as this is not an x-pack specific question. Please report back and help us track down possible issues, if you find them.

--Alex

---

<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 5, 2017, 10:09pm UTC](https://discuss.elastic.co/t/different-relevance-scoring-in-el-2-and-el-5/63893/4 "2017-07-05T22:09:42Z")

</div>


