from docID to terms enumerator in O(1) ?

2012-07-15 Thread Giovanni Gherdovich
Hi all, I'd like to know if I can get the list of indexed terms in a document from its document ID in constant time (say, in a time independent of the size of the index). The reason why I ask might be relevant (you could suggest me a totally different way to achieve my goal). I want to present t

Re: from docID to terms enumerator in O(1) ?

2012-07-15 Thread Giovanni Gherdovich
2012/7/15 Uwe Schindler : > Enable term vectors while indexing and use the TermVector API. > Thank you very much Uwe! I just got back to chapter 2 of "Lucene in Action", where it says "If it’s indexed, the field may also optionally store term vectors, which are collectively a miniature inverted