From lucene-user Thu Feb 24 18:07:36 2005 From: Daniel Naber Date: Thu, 24 Feb 2005 18:07:36 +0000 To: lucene-user Subject: Re: sorted search Message-Id: <200502241907.36239.daniel.naber () t-online ! de> X-MARC-Message: https://marc.info/?l=lucene-user&m=110926846716182 On Thursday 24 February 2005 19:01, Yura Smolsky wrote: >       sort.setSort( new SortField[] { new SortField ("modified", > SortField.STRING, true) } ); You should store the date as a number, e.g. "days since 1970" (or weeks if that is precise enough) and then tell the sort that it's an integer. DateField always stores the date in milliseconds which leads to a large number of terms, it also turns the date into a string, both makes searching and especially sorting slower. Regards Daniel --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org