Search code examples
javaapachesolrsolrjsolrcloud

Multi Valued filed value count in Apache SolrCloud


I have a multi - valued field called country which has multiple values (one in a doc). Is there any way I could get the count of a the countries. Basically I have to get the TopTalkers from this. I'm new to SolrCloud and any help will be appreciated.

Thank You in advance.


Solution

  • Using Faceting will give you all the values for a specific field and their counts.

    You can then use these values with fq to filter your result set.