With the query above i'm able to split the docs according to the authors
and then on sub-aggregation i pull the document ids those people are
related to.
What i need is instead of getting only the ids (local_id) to get more
fields of document. I can use terms + script but again i have one value
back. Which is
something like :
I can do some magic with script to get more values and then parse it in my
code but, it becomes very ugly. On docs it says it is possible to get
multiple
values back on aggregation. Any examples would be very useful.
With the query above i'm able to split the docs according to the authors
and then on sub-aggregation i pull the document ids those people are
related to.
What i need is instead of getting only the ids (local_id) to get more
fields of document. I can use terms + script but again i have one value
back. Which is
something like :
I can do some magic with script to get more values and then parse it in my
code but, it becomes very ugly. On docs it says it is possible to get
multiple
values back on aggregation. Any examples would be very useful.
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.