Return-Path: X-Original-To: apmail-lucy-user-archive@www.apache.org Delivered-To: apmail-lucy-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 23352D3CB for ; Wed, 14 Nov 2012 04:45:02 +0000 (UTC) Received: (qmail 30656 invoked by uid 500); 14 Nov 2012 04:45:02 -0000 Delivered-To: apmail-lucy-user-archive@lucy.apache.org Received: (qmail 30504 invoked by uid 500); 14 Nov 2012 04:44:59 -0000 Mailing-List: contact user-help@lucy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@lucy.apache.org Delivered-To: mailing list user@lucy.apache.org Received: (qmail 30475 invoked by uid 99); 14 Nov 2012 04:44:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Nov 2012 04:44:58 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.59.228] (HELO qmta15.westchester.pa.mail.comcast.net) (76.96.59.228) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Nov 2012 04:44:51 +0000 Received: from omta09.westchester.pa.mail.comcast.net ([76.96.62.20]) by qmta15.westchester.pa.mail.comcast.net with comcast id PG1S1k0030SCNGk5FGkW6c; Wed, 14 Nov 2012 04:44:30 +0000 Received: from pekmac.local ([75.72.172.130]) by omta09.westchester.pa.mail.comcast.net with comcast id PGiV1k0072p9gCz3VGiVSb; Wed, 14 Nov 2012 04:42:30 +0000 Message-ID: <50A32135.6050502@peknet.com> Date: Tue, 13 Nov 2012 22:42:29 -0600 From: Peter Karman Reply-To: peter@peknet.com User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Thomas den Braber CC: user@lucy.apache.org References: <50A127FC.1050302@peknet.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [lucy-user] Hits offset and search performarce Thomas den Braber wrote on 11/13/12 10:47 AM: > Peter Karman wrote on 11/12/2012 5:46 PM >> Swish-e does presort attributes, but rank/score is not one of them. That is >> always a per-search attribute. >> >> ISTR an email exchange about this back when I was first using KinoSearch >> (pre-Lucy), but I can't find it now. >> > > I never understood what the presorting in Swish-e was actually doing. Maybe not that > interesting for Lucy users, but could you explain in a couple of lines? > Lucy pre-sorts field values at index time, using a different approach than Swish-e. But the idea is the same: pre-sorted field values are faster to return at search time. IIRC, the pre-sorting is done when you call optimize() on an Indexer. (Marvin, please correct my poor memory if I'm wrong there.) -- Peter Karman . http://peknet.com/ . peter@peknet.com