Aggregate on sum of 2 numeric fields without Scripts


(Ramky) #1

I am trying to write an aggregation query which needs to calculate sum of 2 numeric fields without using Script feature

Please help.


(Mark Harwood) #2

You could write a native Java plugin that does what you need or perhaps consider an expression script that retains near-native performance and is a deliberately simplified syntax to avoid security issues [1]

[1] https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html#_lucene_expressions_scripts


(Ramky) #3

Thanks Mark for your quick response.


(system) #4