RE: facet sorting by index on sint fields

2009-08-04 Thread Simon Stanlake
: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 wrote: > Hi, > I have a field in my schema specified using > > > > Where

Re: facet sorting by index on sint fields

2009-08-04 Thread Yonik Seeley
On Tue, Aug 4, 2009 at 5:27 PM, Yonik Seeley wrote: >> 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?

Re: facet sorting by index on sint fields

2009-08-04 Thread Yonik Seeley
On Thu, Jul 30, 2009 at 10:28 PM, Simon Stanlake wrote: > Hi, > I have a field in my schema specified using > > > > Where "sint" is specified as follows (the default from schema.xml) > > omitNorms="true"/> > > When I do a facet on this field using sort=index I always get the values back > in lex

RE: facet sorting by index on sint fields

2009-08-04 Thread Simon Stanlake
To solve this issue I created a subclass of SortableIntField that overrides the getSortField() method as follows... @Override public SortField getSortField(SchemaField field, boolean reverse) { return new SortField(field.getName(), SortField.INT, reverse);