lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yura Smolsky <>
Subject Re[2]: sorted search
Date Thu, 24 Feb 2005 18:38:46 GMT
Hello, Erik.

if i need to store hour and minute then I need to place date into
following integer format:
Will it be faster than current solution?
And will I have ability to do Ranged queries (from Date A to Date B)?

EH> Sorting by String uses up lots more RAM than a numeric sort.  If you
EH> use a numeric (yet lexicographically orderable) date format (e.g. 
EH> YYYYMMDD) you'll see better performance most likely.

EH>         Erik

EH> On Feb 24, 2005, at 1:01 PM, Yura Smolsky wrote:

>> Hello, lucene-user.
>> I have index with many documents, more than 40 Mil.
>> Each document has DateField (It is time stamp of document)
>> I need the most recent results only. I use single instance of 
>> IndexSearcher.
>> When I perform sorted search on this index:
>>       Sort sort = new Sort();
>>       sort.setSort( new SortField[] { new SortField ("modified", 
>> SortField.STRING, true) } );
>>       Hits hits =
>>"good", "content",
>>                                           StandardAnalyzer()), sort);
>> then search speed is not good.
>> Today I have tried search without "sort by modified", but with sort by
>> Relevance. Speed was much better!
>> I think that Sort by DateField is very slow. Maybe I do something
>> wrong about this kind of sorted search? Can you give me advices about
>> this?
>> Thanks.
>> Yura Smolsky.
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:

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

Yura Smolsky.

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

View raw message