lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmiller <>
Subject Re: TermEnum - previous() method ?
Date Fri, 20 Jul 2007 12:09:25 GMT

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
> 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:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message