Got it,thanks
在 2013-8-21 下午10:03,"Uwe Schindler" <[email protected]>写道:

> Hi,
>
> It is numeric order according to the rules of Type#compareTo(Type) [Type =
> Integer, Long, Float, Double]. But be careful: unless the precision step of
> the numeric field is infinite, there are additional helper terms after the
> largest numeric value. You can differentiate them on the term prefix, but
> this is all internal stuff, not really public. Also, the terms are not
> human-readable.
>
> Uwe
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: [email protected]
>
>
> > -----Original Message-----
> > From: Yonghui Zhao [mailto:[email protected]]
> > Sent: Wednesday, August 21, 2013 1:38 PM
> > To: [email protected]
> > Subject: NumericField traverse order
> >
> > If we traverse a string field use code below, the value order is string
> older.
> >
> >     Terms terms = reader.terms(“strField");
> >     if (terms != null) {
> >       TermsEnum termsEnum = terms.iterator(null);
> >       BytesRef text;
> >       while ((text = termsEnum.next()) != null)
> >
> >
> > How about numeric field.  IntField, LongField, and DoubleField ....
> >
> > What's the order?   Numeric order?
> >
> > Thanks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to