From lucene-net-dev-return-1153-apmail-incubator-lucene-net-dev-archive=incubator.apache.org@incubator.apache.org Sat Jan 12 12:47:06 2008 Return-Path: Delivered-To: apmail-incubator-lucene-net-dev-archive@locus.apache.org Received: (qmail 94060 invoked from network); 12 Jan 2008 12:47:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jan 2008 12:47:06 -0000 Received: (qmail 50476 invoked by uid 500); 12 Jan 2008 12:46:56 -0000 Delivered-To: apmail-incubator-lucene-net-dev-archive@incubator.apache.org Received: (qmail 50456 invoked by uid 500); 12 Jan 2008 12:46:55 -0000 Mailing-List: contact lucene-net-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucene-net-dev@incubator.apache.org Delivered-To: mailing list lucene-net-dev@incubator.apache.org Received: (qmail 50447 invoked by uid 99); 12 Jan 2008 12:46:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Jan 2008 04:46:55 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Jan 2008 12:46:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id ECF92714201 for ; Sat, 12 Jan 2008 04:46:33 -0800 (PST) Message-ID: <8378861.1200141993953.JavaMail.jira@brutus> Date: Sat, 12 Jan 2008 04:46:33 -0800 (PST) From: "Digy (JIRA)" To: lucene-net-dev@incubator.apache.org Subject: [jira] Commented: (LUCENENET-107) Search while sorting is slow In-Reply-To: <31025492.1199994813972.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENENET-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558225#action_12558225 ] 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? DIGY > Search while sorting is slow > ---------------------------- > > Key: LUCENENET-107 > URL: https://issues.apache.org/jira/browse/LUCENENET-107 > 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 lucene.net 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 > DIGY -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.