-
When a person do a DSL search the result will usually end up in the hits field.
-
When a person do a DSL aggregation, the result will be in an "aggregation" field
Can I copy the result in "aggregation" into the "hits" field?
When a person do a DSL search the result will usually end up in the hits field.
When a person do a DSL aggregation, the result will be in an "aggregation" field
Can I copy the result in "aggregation" into the "hits" field?
Could you explain your problem a bit more. Why do you need the aggregation results in the hits field? why can you not just access the aggregations results form the aggregation field?
The down stream application can only read "hits" field
There is no way to change the output format of Elasticsearch in this way. You will need to change your downstream application. Even if you could do this your downstream application would no doubt have to change since the format of aggregation results is completely different from hits.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.