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.
Simon -----Original Message----- From: ysee...@gmail.com [mailto:ysee...@gmail.com] On Behalf Of Yonik Seeley Sent: Tuesday, August 04, 2009 2:28 PM To: solr-user@lucene.apache.org Subject: Re: facet sorting by index on sint fields On Thu, Jul 30, 2009 at 10:28 PM, Simon Stanlake<sim...@tradebytes.com> 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? -Yonik http://www.lucidimagination.com