ElasticSearch: search document pairs by specific query?

(Alexey Shevchenko) #1

How to search for the document pairs that matched to specific queryhttp://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl.html (in
my case it is more_like_this queryhttp://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-mlt-query.html#query-dsl-mlt-query)
and order them using a specific field(s)?

Probably pairs can be formed using aggregationshttp://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations.html but
I can't figure out how.

Also have no idea if we even form such aggregated pairs then how to order
Question is posted to stackoverflow, will appreciate if you answer there:


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6e877ffe-3450-4e76-89c9-9fd8ecea0cd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

(system) #2