Faceting will do this for you. Check out: http://wiki.apache.org/solr/SimpleFacetParameters#facet.field
This param allows you to specify a field which should be treated as a facet. > It will iterate over each Term in the field and generate a facet count using > that Term as the constraint. > > For a text field, it actually does go over each of the indexed tokens. On Mon, Jan 10, 2011 at 10:11 AM, supersoft <elarab...@gmail.com> wrote: > > As I understand, a faceted search would be useful if keywords is a > multivalued field and the its field value is just a token. > > I want to display the occurences of the tokens wich appear in a indexed > (and > stored) text field. > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Token-Counter-tp2227795p2228991.html > Sent from the Solr - User mailing list archive at Nabble.com. >