Thanks for the suggestions...

I've only been using Lucene for a few months, so will go with the sort
option for now and see how that works.

-----Original Message-----
From: Yonik Seeley [mailto:[EMAIL PROTECTED] 
Sent: 23 January 2006 19:53
To: java-user@lucene.apache.org
Subject: Re: Selecting the maxium/highest numerical value from a lucene
Index)

On 1/23/06, Chris Hostetter <[EMAIL PROTECTED]> wrote:
> use a TermEnum to iterate over all the values of the field, 
> remembering the "previous" value each time untill you run out of 
> values

Bummer that you can't step backwards with a TermEnum... finding the
first term is cheap, but finding the last is expensive.

How feasible would it be to add a prev() to TermEnum?  Would it be worth
it?  It seems like it would be useful for numeric fields to be able to
quickly find the max as well as the min without filling the fieldcache.

-Yonik

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


______________________________________________        
This email has been scanned by Netintelligence        
http://www.netintelligence.com/email



****************************************************************************
This e-mail (and any attachment) is intended only for the attention of the 
addressee(s). Its unauthorised use, disclosure, storage or copying is not 
permitted. If you are not the intended recipient, please destroy all copies and 
inform the sender by return e-mail.
This e-mail (whether you are the sender or the recipient) may be monitored, 
recorded and retained by BiP Solutions Ltd. 
E-mail monitoring/ blocking software may be used, and e-mail content may be 
read at any time.You have a responsibility to ensure laws are not broken when 
composing or forwarding e-mails and their contents.
****************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to