# Elastic search more like this Query score issue in 5.x

**URL:** <https://discuss.elastic.co/t/elastic-search-more-like-this-query-score-issue-in-5-x/92801>\
**Category:** Elasticsearch\
**Created:** [July 12, 2017, 12:14pm UTC](https://discuss.elastic.co/t/elastic-search-more-like-this-query-score-issue-in-5-x/92801 "2017-07-12T12:14:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanjaykanani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sanjaykanani/32/25488_2.png) [@sanjaykanani](https://discuss.elastic.co/u/sanjaykanani)\
**Post date:** [July 12, 2017, 12:14pm UTC](https://discuss.elastic.co/t/elastic-search-more-like-this-query-score-issue-in-5-x/92801/1 "2017-07-12T12:14:31Z")

</div>

Recently we have changed Elasticsearch version from 2.4 to 5.4 .

we found one issue in more like this query in version 5.x .

following query is used to find out similar documents by text

**INPUT Query**

> POST /test/\_search  
> {  
> "size": 10000,  
> "stored\_fields": [  
> "docid"  
> ],  
> "\_source": false,  
> "query": {  
> "more\_like\_this": {  
> "fields": [  
> "textcontent"  
> ],  
> "like": [  
> {  
> "\_index": "test",  
> "\_type": "object",  
> "\_id": "AV0c9jvZXF-b5U5aNAWB"  
> }  
> ],  
> "max\_query\_terms": 5000,  
> "min\_term\_freq": 1,  
> "min\_doc\_freq": 1  
> }  
> }  
> }

**Output of Elasticsearch 2.4**

> {

> "took": 16,  
> "timed\_out": false,  
> "\_shards": {  
> "total": 1,  
> "successful": 1,  
> "failed": 0  
> },  
> "hits": {  
> "total": 3,  
> "max\_score": 1.5381224,  
> "hits": [  
> {  
> "\_index": "test",  
> "\_type": "object",  
> "\_id": "AVzjOOdilllQ-Gyal6Z9",  
> "\_score": 1.5381224,  
> "fields": {  
> "docid": [  
> "2"  
> ]  
> }  
> }, {  
> "\_index": "test",  
> "\_type": "object",  
> "\_id": "AVzjOOdilllQ-Gyal63Z",  
> "\_score": .5381224,  
> "fields": {  
> "docid": [  
> "3"  
> ]  
> }  
> }, {  
> "\_index": "test",  
> "\_type": "object",  
> "\_id": "AVzjOOdilllQ-Gyal6Z",  
> "\_score": .381224,  
> "fields": {  
> "docid": [  
> "4"  
> ]  
> }  
> }

**Output of Elasticsearch 5.4**

> {  
> "took": 16,  
> "timed\_out": false,  
> "\_shards": {  
> "total": 1,  
> "successful": 1,  
> "failed": 0  
> },  
> "hits": {  
> "total": 3,  
> "max\_score": 1.5381224,  
> "hits": [  
> {  
> "\_index": "test",  
> "\_type": "object",  
> "\_id": "AVzjOOdilllQ-Gyal6Z9",  
> "\_score": 168.5381224,  
> "fields": {  
> "docid": [  
> "2"  
> ]  
> }  
> }, {  
> "\_index": "test",  
> "\_type": "object",  
> "\_id": "AVzjOOdilllQ-Gyal63Z",  
> "\_score": 164.5381224,  
> "fields": {  
> "docid": [  
> "3"  
> ]  
> }  
> }, {  
> "\_index": "test",  
> "\_type": "object",  
> "\_id": "AVzjOOdilllQ-Gyal6Z",  
> "\_score": 132.381224,  
> "fields": {  
> "docid": [  
> "4"  
> ]  
> }  
> }}

The output is same in both versions except the score of the documents. version 5.4 is giving more score than 2.4. We are dependent on score for our work so if the score changes then its a problem for us. Please provide solution for this?

---

<div class="post-metadata">

**Author:** ![sanjaykanani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sanjaykanani/32/25488_2.png) [@sanjaykanani](https://discuss.elastic.co/u/sanjaykanani)\
**Post date:** [July 13, 2017, 5:02am UTC](https://discuss.elastic.co/t/elastic-search-more-like-this-query-score-issue-in-5-x/92801/2 "2017-07-13T05:02:51Z")

</div>

By changing the settings for default similarity algorithm to "classic" we solved this issue.

---

<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:** [August 10, 2017, 5:02am UTC](https://discuss.elastic.co/t/elastic-search-more-like-this-query-score-issue-in-5-x/92801/3 "2017-08-10T05:02:58Z")

</div>

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