: I'm having a problem with sorting facets. I am using the facet.sort=index
: parameter and it works fine for most of the values.
        ...
: Eksample, when sorting "15, 6, 23, 7, 10, 90" it sorts like this: "10, 15,
: 23, 6, 7, 90", but what I wanted was "6, 7, 10, 15, 23, 90".

what field type are you using?

If you use one of the Trie___Field types then the facet values should sort 
exactly as you describe.

<fieldType name="int" class="solr.TrieIntField" precisionStep="0" 
positionIncrementGap="0"/>
<fieldType name="float" class="solr.TrieFloatField" precisionStep="0" 
positionIncrementGap="0"/>
<fieldType name="long" class="solr.TrieLongField" precisionStep="0" 
positionIncrementGap="0"/>
<fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" 
positionIncrementGap="0"/>



-Hoss

Reply via email to