How do I run More Like This query in a different index with different fields?

Is it possible to run a More Like This (MLT) query searching a particular index, while specifying a source document in a different index, where the source document has different fields?

I'm looking at this documentation:
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-mlt-query.html

I thought I could simply specify a different index in the GET (e.g. "[index name]/_search"), but I am not sure how to construct the fields. The fields, as I understand it, are the fields in the source document, but its not clear how you specify the fields in the documents being searched.

Not currently, though https://github.com/elastic/elasticsearch/issues/26743 might be what you are looking for (eventually).

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.