I have a question relative to scripted field in Kibana.
It is possible to summe all the values of a field in painless with scripted field ?
Something like: SUM(doc.['somefield'].value) ?
Hi there, scripted fields only operate on the individual document, and not across all documents. In other words, they don't execute queries themselves. Rather they're intended to be used within queries. So you could execute a query which sums the value of this scripted field across all documents, e.g. in Visualize or in Console. Take a look at the documentation for sum aggregation for more info. Does this help?
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.