I would like to know if there's a way to do an aggregation on the result of the sum.
Let's say I have 8 documents.
6 of them have 1 revision
2 of them have 2 revisions
I want to get :
1 : 6 hits
2 : 2 hits
This is what I managed to get for the moment : https://imgur.com/pTSsrHT
We can see the number of revision for EACH document, that's already cool but not enough.
And this is what I would like (the black numbers indicating the number of "hits", remplace 8 by 6) https://imgur.com/mT57mhe
Actually the revision field is a personal scripted field by doing the sum of a field : if(doc['operation'].value == "Revisionchange") { return 1; } return 0;
So if I'm doing the sum by splicing with docID it will give me the right number right ?
When I do the pie chart, splice by this scripted field and leave count as a metric I only have this pie : https://imgur.com/a/bVKVrY0
Must I change the scripted field or do another operation ?
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.