Not sure if this would help, but you can first to a terms facet/aggregation on user_id, then you pull back the top 3 ids, say user5, user7, and user20.
Then you run a second query using the _msearch API wherein you construct three independent search queries (one for each user) and you will get back 3 independent search results each with its own ranking/scoring. http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-multi-search.html#search-multi-search -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/e18c5764-2218-489c-bfdf-1b835f852e7e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
