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
}
'''
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.
© 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.