Script for adding numeric fields of documents with similar name fields?

Hello I wanted to know if it was possible to make a script that adds numeric values of a field in documents with the same name. For example let's say I have

Document1 Apple 4
Document2 Orange 3
Document3 Apple 6

Is there a way I can get an output of 10 apples? I would like to make a visualization that is able to add up the values of a numeric field in documents that have the same ID in a name field.

Hello ,
You need to do a specific scripted field that extract the number value . And then you will be able to make visualization on it .

https://www.elastic.co/guide/en/kibana/current/scripted-fields.html

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