Word frequency in Solr
问题 I am trying to get frequency of words using solr. When I give this query : localSolr/solr/select?q=someQuery&rows=0&facet=true&facet.field=content&wt=xml solr gives me the frequencies like; <lst name="facet_counts"> <lst name="facet_queries"/> <lst name="facet_fields"> <lst name="content"> <int name="word1">24</int> <int name="word2">12</int> <int name="word3">8</int> But when I count the words; I find that word2's actual count number is 13. Solr counts same words in the field as one. For