Adding numeric values of multiple fields into one field

Hi,

Is there a way to add multiple numeric values of multiple fields and create a "total" field?

'''
"Object": {
field1: 3
field2: 4
field3: 5
field4: 1
field5: 2
"total": 15
}
'''

You could use an ingest pipeline with a script processor to compute this before the document is actually indexed.

Thank you @dadoonet. I was actually thinking about taking that route.

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