: I guess I could use TermEnum to do a binary search until I get a hit but : this seems a bit kludgy.
min is easy, it's the first term in the enum. max ... well, the simplest way i can think of to find the max of a string field is to use a StringIndex, something like... String[] s = FieldCache.getStringIndex().lookup; String max = s[s.length-1]; ...but if you've got millions of field values, it may be more efficient to do a binary search of the TermEnum. -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]