lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonghui Zhao <zhaoyong...@gmail.com>
Subject NumericField traverse order
Date Wed, 21 Aug 2013 11:38:17 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message