lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ulf Dittmer <...@ulfdittmer.com>
Subject Re: question about (problem with?) use of FieldCache$StringIndex
Date Fri, 26 Jun 2009 04:49:10 GMT
Otis Gospodnetic wrote:

> FieldCache class is used for sorting.  Are you sorting by a few  
> different fields by any chance?

Yes, we're sorting for one or two fields, depending on user settings.


Uwe Schindler wrote:

> This class is used, when you sort your result against a field, which
> contains string values (no numerics). ...
> Or sort against a better data type like ints or
> other numerics (if you can encode you sort order as a number).

Excellent, that's spot on. The field is a date in "yyyyMMddHHmmss"  
format, so I guess using SortField.LONG instead of SortField.STRING  
might work.

I'll give that a try. Thanks!

Ulf


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message