Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 70711 invoked from network); 26 Sep 2006 07:13:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Sep 2006 07:13:05 -0000 Received: (qmail 19630 invoked by uid 500); 26 Sep 2006 07:12:58 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 19614 invoked by uid 500); 26 Sep 2006 07:12:58 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 19603 invoked by uid 99); 26 Sep 2006 07:12:58 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Sep 2006 00:12:58 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=info@altervisionmedia.com; spf=permerror X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received-SPF: error (idunn.apache.osuosl.org: domain altervisionmedia.com from 72.29.74.74 cause and error) Received: from [72.29.74.74] ([72.29.74.74:57647] helo=sh58.surpasshosting.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id C7/F1-05603-6F2D8154 for ; Tue, 26 Sep 2006 00:12:56 -0700 Received: from [81.25.37.246] (helo=localhost) by sh58.surpasshosting.com with esmtpa (Exim 4.52) id 1GS77s-00030k-JL for java-user@lucene.apache.org; Tue, 26 Sep 2006 03:13:09 -0400 Date: Tue, 26 Sep 2006 10:12:39 +0300 From: Yura Smolsky X-Mailer: The Bat! (v3.64.01 Christmas Edition) Professional Reply-To: Yura Smolsky X-Priority: 3 (Normal) Message-ID: <1647427384.20060926101239@altervisionmedia.com> To: Lucene Users Subject: Re[3]: how to enhance speed of sorted search In-Reply-To: References: <834910708.20060925180034@altervisionmedia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sh58.surpasshosting.com X-AntiAbuse: Original Domain - lucene.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - altervisionmedia.com X-Source: X-Source-Args: X-Source-Dir: X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, Chris. CH> 3) most likely, if you are seeing "slow" performance from sorted searches, CH> the time spent "scoring" the results isn't the biggest contributor to how CH> long thesearch takes -- it tends to be negligable for most queries. A CH> better question is: are you reusing the exact same IndexReader / CH> IndexSearcher instance for every querey? ... if not, that right there is CH> going to be your biggest problem, because it will prevent you from being CH> able to reuse teh "FieldCache" needed when sorting results. Sure I do reuse IndexSearcher :) and second query is always faster than the first one... I am thinking should be this faster query = QueryParser("text", StandardAnalyzer()).parse("good boy") IndexSearcher.search( new ConstantScoreQuery(new QueryFilter(query)), sortByIntField) than usual search IndexSearcher.search( query, sortByIntField) Is there anyway I could use filter to get needed results from the query? -- Yura Smolsky, http://altervisionmedia.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org