lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James <ajd_...@yahoo.com>
Subject Re: sorting on "dates" a little fuzzy... - resolved
Date Fri, 22 Apr 2005 23:47:06 GMT

This was resolved by specifying Locale.US in the SortField
constructor.  I guess our default locale setting is messed
up somewhere.  

Thanks to everyone who responded!

James


--- James Levine <jdlevine@gmail.com> wrote:
> I have an index of around 3 million records, and typical queries
> can result in result sets of between 1 and 400,000 results. 
> 
> We have indexed "dateTime" fields in the form 20050415142, that is, to
> 10-minute precision.
> 
> When I try to sort queries I get something back that is roughly sorted
> on index, but not quite. Stuff is out of order just a bit. The
> size of the result set does not seem to be related occurance of
> this problem.
> 
> We've tried lucene 1.4-final and1.4.3.
> 
> my code looks like this
> 
> s = new Sort( new SortField[] { new SortField( "dateTime", SortField.STRING, 
> true ), SortField.FIELD_SCORE } );
> 
> ...
> 
> hits = searcher.search( qry, s );
> 
> 
> Any help is appreciated, I'm so far baffled by this problem.
> 
> Regards,
> James
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
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