I have an index where the type evens are mapped to have the parent type
user. I want to find out what users have the most number of event children.
I have basically done this by searching the children using a terms facet
with the term "_parent". This tells me which user id have generated the
most events and how many. The problem is that I want the full user
document, not just the id. Is this possible to do in one query?
you would execute the facet query first and then execute a query to get all
the documents, as you need the output of the first query as input for the
second.
I have an index where the type evens are mapped to have the parent type
user. I want to find out what users have the most number of event children.
I have basically done this by searching the children using a terms facet
with the term "_parent". This tells me which user id have generated the
most events and how many. The problem is that I want the full user
document, not just the id. Is this possible to do in one query?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.