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.