Hi,
I am getting an error message, however when I check and read through my code, it should be returning as it should be.
// Output
Any help is greatly appreciated to help me identify where I went wrong
Thanks!
Nhung
Hi,
I am getting an error message, however when I check and read through my code, it should be returning as it should be.
// Output
Any help is greatly appreciated to help me identify where I went wrong
Thanks!
Nhung
Please take the time to read the end of the response you supplied. Especially the exception
part. There is a so called NullPointerException
mentioned for ctx.payload.aggregations.nodes
- as you can see in result.payload
, your search did not return any hits, so there are also no aggregation fields in the search response.
You need to cater for this case in the condition.
Yes, I should have
Thanks as always for your help
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.