# More like this querying

**URL:** <https://discuss.elastic.co/t/more-like-this-querying/180721>\
**Category:** Elasticsearch\
**Created:** [May 12, 2019, 8:41pm UTC](https://discuss.elastic.co/t/more-like-this-querying/180721 "2019-05-12T20:41:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ozymandy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ozymandy/32/44522_2.png) [@Ozymandy](https://discuss.elastic.co/u/Ozymandy)\
**Post date:** [May 12, 2019, 8:41pm UTC](https://discuss.elastic.co/t/more-like-this-querying/180721/1 "2019-05-12T20:41:26Z")

</div>

I am trying to use more like this query for finding similar documents and faced with two issues

1. I set min\_should\_match to 70% and got results like matched documents only by one word. And strange thing that these words are like "and" or "the". This is an example which I got with explain:true  
"weight(title:and in 0) [PerFieldSimilarity], result of:". Matched document has words like "celebrates" and "birthday" which I assume have more IDF than the word "and". So how can I control clauses which MLT choose to search? (excepts of doc\_freq, term\_freq and word\_length). I found that if I set min\_should\_match to integer, then I get more suitable results.
2. Matched documents have no interconnection. For example the document "aaa bbb ccc" can match the document "aaa bbb ccc ddd eee". But "aaa bbb ccc ddd eee" cannot match "aaa bbb ccc" document.  
I tried to change default similarity to bm25 or classic, but it has no effect.

---

<div class="post-metadata">

**Author:** ![Ozymandy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ozymandy/32/44522_2.png) [@Ozymandy](https://discuss.elastic.co/u/Ozymandy)\
**Post date:** [May 13, 2019, 7:44pm UTC](https://discuss.elastic.co/t/more-like-this-querying/180721/2 "2019-05-13T19:44:26Z")

</div>

Maybe someone knows how to resolve these issues.

---

<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:** [June 10, 2019, 7:44pm UTC](https://discuss.elastic.co/t/more-like-this-querying/180721/3 "2019-06-10T19:44:37Z")

</div>

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