How to return the actual document from MoreLikeThis query


(Eugene Strokin) #1

Hello,
When I run MLT query providing a document ID, I'm getting only those
documents which are similar to the actual document but not the actual
document. Is any way to get them all together, the actual document
with ID I provided and the set of MLT documents? Or I should make 2
requests for them?

Thank you,
Eugene S.


(Shay Banon) #2

The MLT API will intentionally discard the result matching the actual
document, you will need to ask for it (using get) if you really want it.

On Sat, Nov 26, 2011 at 4:27 AM, Eugene Strokin eugene@strokin.info wrote:

Hello,
When I run MLT query providing a document ID, I'm getting only those
documents which are similar to the actual document but not the actual
document. Is any way to get them all together, the actual document
with ID I provided and the set of MLT documents? Or I should make 2
requests for them?

Thank you,
Eugene S.


(system) #3