Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 33213 invoked from network); 20 Jul 2007 12:10:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jul 2007 12:10:29 -0000 Received: (qmail 57046 invoked by uid 500); 20 Jul 2007 12:09:48 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 57018 invoked by uid 500); 20 Jul 2007 12:09:48 -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 57007 invoked by uid 99); 20 Jul 2007 12:09:48 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2007 05:09:48 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2007 05:09:46 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IBrIT-0002pV-6z for java-user@lucene.apache.org; Fri, 20 Jul 2007 05:09:25 -0700 Message-ID: <11706989.post@talk.nabble.com> Date: Fri, 20 Jul 2007 05:09:25 -0700 (PDT) From: markrmiller To: java-user@lucene.apache.org Subject: Re: TermEnum - previous() method ? In-Reply-To: <11679947.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: markrmiller@gmail.com References: <11679947.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org I am not very familiar with the Lucene file formats, but I think that there is a lot of "this number tells you how far ahead to read" when enumerating terms. As you might guess, I think this lends toward reading the terms file forward. Not that an index couldn't point you into the terms index somehow (a meta index?). It would make just as much sense (or more) to buffer all of the terms to allow a previous though. Depending on your RAM and index size, this could be an option. I do wonder why you want a previous though? It sounds like you might be better off heading down a different path... - Mark muraalee wrote: > > Hi All, > I searched in this forum for anybody looking for need for previous() > method in TermEnum. I found only this link > http://www.nabble.com/How-to-navigate-through-indexed-terms-tf28148.html#a189225 > > Would it be possible to implement previous() method ? I know i am asking > for quick solution here ;) Just i want to ensure if it not implemented, > there might be a reason. So i can consider alternates approaches to > implement similar feature.. > > appreciate your thoughts... > > Thanks > Murali V > -- View this message in context: http://www.nabble.com/TermEnum----previous%28%29-method---tf4107296.html#a11706989 Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org