Elasticsearch Multivalue Fields The statistics contain the number of values

hi team
I want to konw How to count the number of value in a multi-valued field in elasticsearch ?
for example field A is multi-valued
doc1 : A:[1,2,3],
doc2: A:[2,3]
doc3: A:[4,5]
doc4: A:[1,3],
and so : doc1_countA = 3,
doc2_countA = 2
doc3_count = 2
doc4_count = 2
doc_count = 1
so how to count in elasticsearch ? have any plugs or Other methods?

I used Elasticsearch 5.3.0

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