lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Stanlake <>
Subject RE: facet sorting by index on sint fields
Date Tue, 04 Aug 2009 21:46:16 GMT
Oh boy - I had a problem with my deploy scripts that was keeping an old version of the schema.xml
file around. SortableIntField is working fine for me now. Sorry to waste everyone's time and
thanks for the responses.

-----Original Message-----
From: [] On Behalf Of Yonik Seeley
Sent: Tuesday, August 04, 2009 2:28 PM
Subject: Re: facet sorting by index on sint fields

On Thu, Jul 30, 2009 at 10:28 PM, Simon Stanlake<> wrote:
> Hi,
> I have a field in my schema specified using
> <field name="wordCount" type="sint"/>
> Where "sint" is specified as follows (the default from schema.xml)
> <fieldType name="sint" class="solr.SortableIntField" sortMissingLast="true" omitNorms="true"/>
> When I do a facet on this field using sort=index I always get the values back in lexicographic
order. Eg: adding this to a query string...
> facet=true&facet.field=wordCount&f.wordCount.facet.sort=index
> gives me
> <lst name="wordCount">
>        <int name="1">5</int>
>        <int name="10">2</int>
>        <int name="2">6</int>
> ...
> Is this a current limitation of solr faceting or am I missing a configuration step somewhere?
I couldn't find any notes in the docs about this.

This is not the intention - seems like a bug somewhere.  Is it still
broken in trunk?  are you using distributed search?


View raw message