# More Like This API

**URL:** <https://discuss.elastic.co/t/more-like-this-api/11577>\
**Category:** Elasticsearch\
**Created:** [April 15, 2013, 2:26am UTC](https://discuss.elastic.co/t/more-like-this-api/11577 "2013-04-15T02:26:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marlo](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@marlo](https://discuss.elastic.co/u/marlo)\
**Post date:** [April 15, 2013, 2:26am UTC](https://discuss.elastic.co/t/more-like-this-api/11577/1 "2013-04-15T02:26:08Z")

</div>

I understand the MLT API to just be a combination of the Get API and MLT  
query. The fields specified in 'mlt\_fields' are used for both text  
extraction to input into 'like\_text' in the MLT query and also what fields  
to compare against in the MLT query. My question is, is this correct and if  
so, is all text placed in like\_text (even if fields specified result in  
hundreds of words)?

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)\
**Post date:** [April 15, 2013, 7:44am UTC](https://discuss.elastic.co/t/more-like-this-api/11577/2 "2013-04-15T07:44:28Z")

</div>

What you are describing is correct. The `mlt_fields` is used get the fields  
and their associated values from the mlt document and create a mlt query.  
For each field value combination (for example each array element in a  
field) a `more_like_this_field` is created and the complete field value is  
put in the `like_text` of that query. All the `more_like_this_field`  
queries are combined in one `bool` query.

On 15 April 2013 04:26, Marlo Epres [mepres@gmail.com](mailto:mepres@gmail.com) wrote:

> I understand the MLT API to just be a combination of the Get API and MLT  
> query. The fields specified in 'mlt\_fields' are used for both text  
> extraction to input into 'like\_text' in the MLT query and also what fields  
> to compare against in the MLT query. My question is, is this correct and if  
> so, is all text placed in like\_text (even if fields specified result in  
> hundreds of words)?
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Met vriendelijke groet,

Martijn van Groningen

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:41am UTC](https://discuss.elastic.co/t/more-like-this-api/11577/3 "2017-07-06T02:41:07Z")

</div>


