On Dec 4, 2009, at 8:59 AM, Joel Nylund wrote:
lets say I have a field called countryName, is there a way to get a list of all the countries for this field? Trying to figure out a nice way to keep my categories and the solr results in sync, would be nice to get these from solr instead of the database.

A couple of ways, depending on what you want:

1) faceting, as part of the search results, filtered within constraints (q/fq's): &facet=on&facet.field=countryName

  2) TermsComponent: http://wiki.apache.org/solr/TermsComponent

        Erik

Reply via email to