Dear all, I am pretty sure it's trivial and I apologize for raising this issue.
I wish to access the index in the order driven by: Term+"Field name"+Frequency or Frequency+Term+"Field Name". I read the terms in the order driven by "Field name"+Term+°Frequency as follow: Directory fsd = FSDirectory.open(indexLoc_, NoLockFactory.getNoLockFactory()); IndexReader reader = new TermIndexReader(IndexReader.open(fsd, true)); TermEnum terms = reader.terms(); while (terms.next) { Term term = terms.term(); int termFreq = terms.docFreq(); v.add(new DictionaryTerm(term, termFreq)); } It works fine, but how to change the reading order? Can I use a custom SortComparatorSource class? Any advice or code example would be appreciated Best, JC