lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ulf Dittmer <>
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!


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message