In multi search, you mean use 5, 7, 20 (user5, user7, and user20) to indicate user id for routing and then pick top 2 products for each of them?
I use Play Framework and Scala, do you know how to embed the facet term results (user id) into the multi search? (As far as I know in ES Java APIs, it can grab user ids, but the feature to retrieve facet terms has not been implemented, I mean only product count for each id, if can iterate each products and then the question is much easy) http://www.elasticsearch.org/guide/en/elasticsearch/client/java-api/current/java-facets.html <http://www.elasticsearch.org/guide/en/elasticsearch/client/java-api/current/java-facets.html> Thanks a lot! -- View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Retrieve-6-products-for-top-3-users-and-each-one-has-2-with-highest-matching-score-tp4055616p4055685.html Sent from the ElasticSearch Users mailing list archive at Nabble.com. -- 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/1399688580360-4055685.post%40n3.nabble.com. For more options, visit https://groups.google.com/d/optout.
