This is due to this: Solr-enabled tag cloud
However, I decided to create another question as it differs from the original volume of the first question. In this deal, I managed to index a multi-valued field with a few words for a tag cloud:
<arr name="words">
<str>builders_NNS</str>
<str>builders_NNS</str>
<str>buildings_NNS</str>
<str>buildings_NNS</str>
<str>construction_NN</str>
<str>construction_NN</str>
<str>green_JJ</str>
<str>green_JJ</str>
</arr>
But when I rely on a query with simple parameters:
& facet = true & facet.field = words & facet.mincount = 1
He cannot transfer them correctly, he does not summarize the values ... Do I need to send another additional parameter, since this is a multi-valued field? Answer from Solr when I applied the cut:
<lst name="facet_counts">
<lst name="facet_queries"/>
<lst name="facet_fields">
<lst name="words">
<int name="builders_NNS">1</int>
<int name="buildings_NNS">1</int>
<int name="construction_NN">1</int>
<int name="green_JJ">1</int>
</lst>
</lst>
</lst>
My field is defined as follows:
<field name="words" type="string" indexed="true" stored="true" multiValued="true" />
And I use Solr 1.4, thanks!