I can't answer most of the questions, but oal.util.NumericUtils has prefixCodedToInt (Long, etc) methods that will convert the encoded value (what you are seeing, I presume) to int or long or whatever. Maybe that will help.
-- Ian. On Wed, Nov 2, 2011 at 7:19 PM, Christian Reuschling <[email protected]> wrote: > Hi, > > maybe it is an easy question - I searched over the lucene-user > archive, but sadly didn't found an answer :( > > I currently change our field logic from string- to numeric fields. > Until now, I managed to find the min-max values of a field by > iterating over the field with a TermEnum > (termEnum = reader.terms(new Term(strFieldName, ""));). > > Now, in the case of a numeric field, I get some strange field values > as "$)A M`" - I guess this could be a low-precision token from the > field trie? > > Is there a special way to iterate over numeric field values? Or is > there a possibility to get the trie and ask him for the min-max > values? Or another (util)-class? > > Thanks for all answers! > > Chris > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
