Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 90187 invoked from network); 20 Feb 2011 22:52:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Feb 2011 22:52:12 -0000 Received: (qmail 35668 invoked by uid 500); 20 Feb 2011 22:52:10 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 35611 invoked by uid 500); 20 Feb 2011 22:52:09 -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 35603 invoked by uid 99); 20 Feb 2011 22:52:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Feb 2011 22:52:08 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.213.176] (HELO mail-yx0-f176.google.com) (209.85.213.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Feb 2011 22:52:03 +0000 Received: by yxd5 with SMTP id 5so1046413yxd.35 for ; Sun, 20 Feb 2011 14:51:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.151.105.11 with SMTP id h11mr889020ybm.85.1298242302073; Sun, 20 Feb 2011 14:51:42 -0800 (PST) Received: by 10.147.41.19 with HTTP; Sun, 20 Feb 2011 14:51:42 -0800 (PST) In-Reply-To: References: Date: Sun, 20 Feb 2011 17:51:42 -0500 Message-ID: Subject: Re: Last/max term in Lucene 4.x From: Michael McCandless To: Jason Rutherglen Cc: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Sat, Feb 19, 2011 at 8:42 AM, Jason Rutherglen wrote: >> But you have to >> use a terms index impl that supports ord (eg FixedGap). > > Ok, and the VariableGap is the new standard because the FST is much > more efficient as a terms index? =A0Perhaps I'd need to create a codec > (or patch the existing) to automatically store the max term? It's really easy to make a codec that eg copies Standard but swaps in FixedGap terms index instead... Though, if you just want to get to the last term... VarGap's terms index can quickly tell you the last indexed term, and from there you can scan to the last term? (It'd be at most 32 (by default) scans). --=20 Mike http://blog.mikemccandless.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org