Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 7996 invoked from network); 12 May 2006 16:38:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 May 2006 16:38:41 -0000 Received: (qmail 24546 invoked by uid 500); 12 May 2006 16:38:35 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 24515 invoked by uid 500); 12 May 2006 16:38:35 -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 24504 invoked by uid 99); 12 May 2006 16:38:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 May 2006 09:38:35 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [69.55.225.129] (HELO ehatchersolutions.com) (69.55.225.129) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 May 2006 09:38:33 -0700 Received: by ehatchersolutions.com (Postfix, from userid 504) id 002CC33C671; Fri, 12 May 2006 12:38:12 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on javelina X-Spam-Level: Received: from [192.168.0.10] (unknown [209.145.67.172]) by ehatchersolutions.com (Postfix) with ESMTP id B9A5B33C664 for ; Fri, 12 May 2006 12:38:10 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v750) In-Reply-To: <20060512111446.3kxu2k5frk8ws8sg@webmail.service.emory.edu> References: <20060512111446.3kxu2k5frk8ws8sg@webmail.service.emory.edu> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <73A6FDD3-E17B-4CF9-921F-B7C74AE09850@ehatchersolutions.com> Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: question about custom sort method Date: Fri, 12 May 2006 12:38:06 -0400 To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.750) X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.1.1 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Yes, it does compute these distances for all the terms for the field specified, but only once (per IndexReader). This is where the techniques Solr employs comes in real handy... warming up caches by running searches and sorts before putting a index into service. Erik On May 12, 2006, at 11:14 AM, Urvashi Gadi wrote: > I am looking at DistanceComparatorSource class (for csutom sorting) > and looks like it calculates the distance for each record in the > index and not just the records returned from search, making the > system very slow. > > Is my observation correct? Are there ways to optimize this process? > > Thanks, > Urvashi > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org