Find word count in text field

I am trying to get top 10 words along with word count in text field in multiple documents based on certain filter criteria. I can see termvector but its giving results per document.

e.g. document 1 contains comments field "test vector" & document 2 contains comments = "test API", so I am expecting result like test=2, vector=1, API=1

Appreciate any help.


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