lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <>
Subject Re: Fetches the hits very slow (when the date sorting) !
Date Wed, 09 Apr 2008 13:31:57 GMT
This has been discussed many times on the list, you'd find a wealth
of information if you searched the mail archive.

The problem usually is that you've stored your dates with fine
resolution. Sorting is dependent on the number of terms, and
if you store millisecond resolution you'll obviously have waaaaaay
more terms than if you store second resolution. Day resolution is
even better.

Also your first sort takes much longer than subsequent sorts since
various caches aren't filled until needed. So be sure you're measuring
response times after a few sorted queries have happened.


On Wed, Apr 9, 2008 at 2:27 AM, savageboy <> wrote:

> Hello everyone,
> I have made a search project by use of Lucene2.0
> But when I use date sorting, the server is running very slow for the
> result
> getting(about 3 sec but I dont sort the results the time of it is about
> 0.019 sec, there are 110000 results to be hit).
> document.add(new Field(docFieldName,
> StringUtils.defaultIfEmpty(contentStr,
> ""), storeFlag , tokenizeFlag));
> storeFlag is true
> tokenizeFlag is false
> so it means the Field dateTime should be stored and be not tokenized!
> If you have some idea about this issue I met, plz let me know!
> Thanks a lot and best Regards!
> --
> View this message in context:
> Sent from the Lucene - Java Users mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message