# How does MLT with multiple like documents work?

**URL:** <https://discuss.elastic.co/t/how-does-mlt-with-multiple-like-documents-work/120755>\
**Category:** Elasticsearch\
**Created:** [February 21, 2018, 2:53am UTC](https://discuss.elastic.co/t/how-does-mlt-with-multiple-like-documents-work/120755 "2018-02-21T02:53:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Lam](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@Patrick\_Lam](https://discuss.elastic.co/u/Patrick_Lam)\
**Post date:** [February 21, 2018, 2:53am UTC](https://discuss.elastic.co/t/how-does-mlt-with-multiple-like-documents-work/120755/1 "2018-02-21T02:53:56Z")

</div>

Hi,

I'm wondering how an MLT query with multiple "like" free text documents works. I assumed that it would basically either concatenate all the texts together, extract the best N words, and match some percent of them to get the results OR it would do that process separate for each like document and only return results that match to every like document.

However, I tried doing a basic test where I did the following:

1. like: "this is my long text"
2. like: ["this is my long text", "this is my long text"]

Basically I had two scenarios. The first one, I had some long text that I used as my like document. The second, I put the exact same long text in twice. I expected to return the same results in both cases. However, in the first case, I returned 8,271 results in my example. In the second case, I returned only 2 results.

Can anybody explain why that is?

---

<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:** [March 21, 2018, 2:54am UTC](https://discuss.elastic.co/t/how-does-mlt-with-multiple-like-documents-work/120755/2 "2018-03-21T02:54:05Z")

</div>

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