Query For Counting specific fields in ES


(Sarthak) #1

I want to count for eg city appearance in the index and return it back to java. How to do this ?
I have tried search Response but to no avail.


(Clinton Gormley) #2

You need to provide more information, and show what you have tried


(Sarthak) #3

Never mind..I added a terms aggregations with set query method in SearchResponse and success.
Thanks


(system) #4

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