# More Like This API and size

**URL:** <https://discuss.elastic.co/t/more-like-this-api-and-size/4994>\
**Category:** Elasticsearch\
**Created:** [July 29, 2011, 12:24am UTC](https://discuss.elastic.co/t/more-like-this-api-and-size/4994 "2011-07-29T00:24:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vladimir\_Shkurin](https://avatars.discourse-cdn.com/v4/letter/v/94ad74/32.png) [@Vladimir\_Shkurin](https://discuss.elastic.co/u/Vladimir_Shkurin)\
**Post date:** [July 29, 2011, 12:24am UTC](https://discuss.elastic.co/t/more-like-this-api-and-size/4994/1 "2011-07-29T00:24:13Z")

</div>

I failed to make this parameter work after a many tests. And I looked  
at the source code, but found no mention.

And here another similar topic in the old group, which has remained  
unanswered.

[http://groups.google.com/a/elasticsearch.com/group/users/browse\_thread/thread/2a5f24412f266518/2b72fe33b91b7486](http://groups.google.com/a/elasticsearch.com/group/users/browse_thread/thread/2a5f24412f266518/2b72fe33b91b7486)

It would be great to use a search query like this:

"/\_mlt?min\_term\_freq=1&min\_doc\_freq=1&from=2&size=12"

or, at least "/\_mlt?min\_term\_freq=1&min\_doc\_freq=1&size=12"

Shay, please enable this option in the function of MLT or someone  
explain, if it is already there, how to make it work? 🙂

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [July 29, 2011, 7:45am UTC](https://discuss.elastic.co/t/more-like-this-api-and-size/4994/2 "2011-07-29T07:45:51Z")

</div>

Heya,

Yea, its missing, opened an issue for it:  
[More Like This API: Allow to provide `search_size` and `search_from` · Issue #1179 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1179). Not sure how I  
missed that other thread... (sorry about that to the fellow who opened it).

As a side note, the more like this API is a wrapper for two APIs, the Get  
API to get the relevant document, and then to the search API that uses the  
relevant content to construct an mlt query and execute it. If you are  
missing something in the mlt API (more complex queries to execute, for  
example, to add filtering), you can easily do it yourself.

-shay.banon

On Fri, Jul 29, 2011 at 3:24 AM, Vladimir Shkurin [vshkurin@gmail.com](mailto:vshkurin@gmail.com)wrote:

> I failed to make this parameter work after a many tests. And I looked  
> at the source code, but found no mention.
> 
> And here another similar topic in the old group, which has remained  
> unanswered.
> 
> [http://groups.google.com/a/elasticsearch.com/group/users/browse\_thread/thread/2a5f24412f266518/2b72fe33b91b7486](http://groups.google.com/a/elasticsearch.com/group/users/browse_thread/thread/2a5f24412f266518/2b72fe33b91b7486)
> 
> It would be great to use a search query like this:
> 
> "/\_mlt?min\_term\_freq=1&min\_doc\_freq=1&from=2&size=12"
> 
> or, at least "/\_mlt?min\_term\_freq=1&min\_doc\_freq=1&size=12"
> 
> Shay, please enable this option in the function of MLT or someone  
> explain, if it is already there, how to make it work? 🙂

---

<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, 3:58am UTC](https://discuss.elastic.co/t/more-like-this-api-and-size/4994/3 "2017-07-06T03:58:53Z")

</div>


