# More Like These (plural)

**URL:** <https://discuss.elastic.co/t/more-like-these-plural/9567>\
**Category:** Elasticsearch\
**Created:** [November 5, 2012, 9:12pm UTC](https://discuss.elastic.co/t/more-like-these-plural/9567 "2012-11-05T21:12:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eugene\_Strokin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eugene_strokin/32/1238_2.png) [@Eugene\_Strokin](https://discuss.elastic.co/u/Eugene_Strokin)\
**Post date:** [November 5, 2012, 9:12pm UTC](https://discuss.elastic.co/t/more-like-these-plural/9567/1 "2012-11-05T21:12:50Z")

</div>

I'm using MLT feature of ES, and it works nice. But in some cases I need  
More-Like-These, not just This. In other words, I have a list of document  
IDs, and I need to find similar documents based on the entire list, not  
just one document.  
I use Java API:  
.prepareMoreLikeThis(indexName, "post", postId)  
It would be nice just to have option to provide array as the last  
parameter, but this is not yet an option 😉  
As a work around I need to get all the documents with those IDs, and  
compile a text from those documents some how, which will be used in MLT  
text-based query, and filter out the documents I used from the result.  
But I wander, if there is other more elegant solution?  
Any suggestions are welcome and greatly appreciated.  
Thank you,  
Eugene

--

---

<div class="post-metadata">

**Author:** ![Chris\_Male](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chris_male/32/2607_2.png) [@Chris\_Male](https://discuss.elastic.co/u/Chris_Male)\
**Post date:** [November 7, 2012, 10:56am UTC](https://discuss.elastic.co/t/more-like-these-plural/9567/2 "2012-11-07T10:56:47Z")

</div>

Hi Eugene,

Interesting idea, I don't see any reason why we couldn't execute more  
MLThis on the ES side and aggregate the results together. Maybe open an  
issue and we can explore adding that to ES.

On Tuesday, November 6, 2012 8:12:50 AM UTC+11, Eugene Strokin wrote:

> I'm using MLT feature of ES, and it works nice. But in some cases I need  
> More-Like-These, not just This. In other words, I have a list of document  
> IDs, and I need to find similar documents based on the entire list, not  
> just one document.  
> I use Java API:  
> .prepareMoreLikeThis(indexName, "post", postId)  
> It would be nice just to have option to provide array as the last  
> parameter, but this is not yet an option 😉  
> As a work around I need to get all the documents with those IDs, and  
> compile a text from those documents some how, which will be used in MLT  
> text-based query, and filter out the documents I used from the result.  
> But I wander, if there is other more elegant solution?  
> Any suggestions are welcome and greatly appreciated.  
> Thank you,  
> Eugene

--

---

<div class="post-metadata">

**Author:** ![Eugene\_Strokin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eugene_strokin/32/1238_2.png) [@Eugene\_Strokin](https://discuss.elastic.co/u/Eugene_Strokin)\
**Post date:** [November 7, 2012, 3:46pm UTC](https://discuss.elastic.co/t/more-like-these-plural/9567/3 "2012-11-07T15:46:56Z")

</div>

Chris, thank you, just opened one:

> <https://github.com/elastic/elasticsearch/issues/2386>
>
> Currently MLT accept only one ID. We could enhance the feature, and accept array… of IDs, so it will be more-like-these. 
> Related conversation: https://groups.google.com/forum/?fromgroups=#!topic/elasticsearch/GOzRXJmrb54

Hope to see it implemented soon, I'll be the first user to try.  
Thanks again,  
Eugene

On Wednesday, November 7, 2012 5:56:48 AM UTC-5, Chris Male wrote:

> Hi Eugene,
> 
> Interesting idea, I don't see any reason why we couldn't execute more  
> MLThis on the ES side and aggregate the results together. Maybe open an  
> issue and we can explore adding that to ES.
> 
> On Tuesday, November 6, 2012 8:12:50 AM UTC+11, Eugene Strokin wrote:
> 
> > I'm using MLT feature of ES, and it works nice. But in some cases I need  
> > More-Like-These, not just This. In other words, I have a list of document  
> > IDs, and I need to find similar documents based on the entire list, not  
> > just one document.  
> > I use Java API:  
> > .prepareMoreLikeThis(indexName, "post", postId)  
> > It would be nice just to have option to provide array as the last  
> > parameter, but this is not yet an option 😉  
> > As a work around I need to get all the documents with those IDs, and  
> > compile a text from those documents some how, which will be used in MLT  
> > text-based query, and filter out the documents I used from the result.  
> > But I wander, if there is other more elegant solution?  
> > Any suggestions are welcome and greatly appreciated.  
> > Thank you,  
> > Eugene

--

---

<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:05am UTC](https://discuss.elastic.co/t/more-like-these-plural/9567/4 "2017-07-06T03:05:42Z")

</div>


