For example, "desc" is a text field (fielddata = true)
doc1 PUT {"desc", "aaa aaa aaa"}
doc2 PUT {"desc", "aaa xxx"}
When I do a terms aggreation on it, and I will get a "doc count",
but I want to get the term count,
"aaa" 4
"xxx" 1
Thanks for any reply!(DSL or Java High level are all okay)