Package org.apache.lucene.index

Examples of org.apache.lucene.index.SortedDocValues.lookupOrd()


        @Override
        public String value(ScoreDoc doc) {
          int ord = values.getOrd(doc.doc);
          BytesRef term = new BytesRef();
          values.lookupOrd(ord, term);
          return term.utf8ToString();
        }
      };
    }
  }
View Full Code Here


                count = 0;
                for (String type : types()) {
                    final SortedDocValues values = getOrdinalsValues(type);
                    final int ord = values.getOrd(docId);
                    if (ord >= 0) {
                        terms[count++] = values.lookupOrd(ord);
                    }
                }
                assert count <= 2 : "A single doc can potentially be both parent and child, so the maximum allowed values is 2";
                if (count > 1) {
                    int cmp = terms[0].compareTo(terms[1]);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.