More Like These (plural)

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 :wink:
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

--

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 :wink:
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

--

Chris, thank you, just opened one:

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 :wink:
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

--