[prev in list] [next in list] [prev in thread] [next in thread]
List: lucene-user
Subject: Re: sorted search
From: Erik Hatcher <erik () ehatchersolutions ! com>
Date: 2005-02-24 18:08:34
Message-ID: be6e34fac4db17c9a0faa972cb787cb3 () ehatchersolutions ! com
[Download RAW message or body]
Sorting by String uses up lots more RAM than a numeric sort. If you
use a numeric (yet lexicographically orderable) date format (e.g.
YYYYMMDD) you'll see better performance most likely.
Erik
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 =
> searcher.search(QueryParser.parse("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: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic