lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy (JIRA)" <>
Subject [jira] Commented: (LUCENENET-107) Search while sorting is slow
Date Sat, 12 Jan 2008 12:46:33 GMT


Digy commented on LUCENENET-107:

Most of the time of searching&sorting is spent in warming up the cache (FieldCacheImpl.Cache.Get.CreateValue).
Should there be a new method or parameter forcing not to cache the terms and just do the sort
 if IndexSearcher(or IndexReader) is to be used just once?


> Search while sorting is slow
> ----------------------------
>                 Key: LUCENENET-107
>                 URL:
>             Project: Lucene.Net
>          Issue Type: Bug
>         Environment: Lucene.Net 2.1
>            Reporter: Digy
>         Attachments: TestSort.rar
> Mark wrote:
> "
> I have an index that when i search for term with out sorting the results are returned
in .7 seconds or less. When I choose to search with a column chosen for sorting the results
will return in 7 - 10 seconds.  The larger the # of hits the longer it takes when sorting.
 The fields that can be sorted on are unique to the document,stored in the index as un_tokenized.
I am using 2.0. Index size is normally around 2.5 gig but i have the same problem
on a 500 meg index too.  Has anyone else experienced this?
> Any help will be greatly appreciated.
> Thanks,
> Mark Burks
> "
> I have prepared a test case where TestIndex contains ~200000 docs.
> a) making a search and then sorting the (500)results (I used SortedDictionary for sorting)
takes ~140 msec.
> b) making a search with Lucene's Sort takes ~6046 msec.
> So, there is something to be fixed in Lucene.Net

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message