Hello,

I am using the Result Grouping feature with SolrCloud, and it seems that
grouping does not work with field types having precisionStep property
greater than 0, in distributed mode.

I updated the "SolrCloud - Getting Started" page example A (Simple two
shard cluster).
In my schema.xml, the "popularity" field has an "int" type where I
changed precisionStep from 0 to 4 :

<fieldType name="int" class="solr.TrieIntField" precisionStep="4"
positionIncrementGap="0" />
<field name="popularity" type="int" indexed="true" stored="true" />

When I'm requesting in distributed mode, the grouping on this field does
not return groups :
http://localhost:8983/solr/select?q=*:*&group=true&group.field=popularity&distrib=true

<lst name="grouped">
<lst name="popularity">
<int name="matches">1</int>
<arr name="groups">
<lst>
<int name="groupValue">0</int>
<result name="doclist" numFound="0" start="0" />
</lst>
</arr>
</lst>
</lst>

When I'm requesting on a single core, the grouping on this field returns
a group :
http://localhost:8983/solr/select?q=*:*&group=true&group.field=popularity&distrib=false

<lst>
<int name="groupValue">10</int>
<result name="doclist" numFound="1" start="0">
<doc>
<str name="id">MA147LL/A</str>
...
<int name="popularity">10</int>
...
</doc>
</result>
</lst>

If I come back to the origin configuration, changing the "int" type with
precisionStep="0", the distributed request works :
<fieldType name="int" class="solr.TrieIntField" precisionStep="0"
positionIncrementGap="0" />

The precisionStep > 0 can be useful for range queries but is it normal
that it is not compatible with grouping queries, in distributed mode only ?

Elodie Sannier

Kelkoo SAS
Société par Actions Simplifiée
Au capital de € 4.168.964,30
Siège social : 8, rue du Sentier 75002 Paris
425 093 069 RCS Paris

Ce message et les pièces jointes sont confidentiels et établis à l'attention 
exclusive de leurs destinataires. Si vous n'êtes pas le destinataire de ce 
message, merci de le détruire et d'en avertir l'expéditeur.

Reply via email to