How to read the index in terms order

2009-11-12 Thread Jean-Claude Dauphin
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 =

Re: How to read the index in terms order

2009-11-14 Thread Michael McCandless
You can't easily change the order in which terms are enumerated from the index. They are stored in unicode code point sort order, and then TermEnum reads them back. You'll have to do your own buffering & collation on top of TermEnum which if you have alot of terms, and you really need all of