Need to do sum aggregation with probable null values of field

Hi,

I have a field in my elastic index with probable null value for that field.

But when I do sum aggregation on that field, even with all the values as null it returns 0 as the value from elasticsearch.

I need to have the output as null, when all the documents have null values for that field. Is there a way to achieve this using elasticsearch.

Thanks,
-Lasitha Weerasinghe

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.