My goal is to simply store records term->[doc1, doc2, ....] on disk. I tried to get these records through docsEnum but it was too slow. Not sure if it possible to get them faster, hence the reason for my enquiry.(Perhaps there is some low level API to scan through the posting list?)
Thanks, mb On Wed, Nov 27, 2013 at 11:00 AM, Chris Hostetter <hossman_luc...@fucit.org>wrote: > > : The goal is to construct the iterator > : > : Iterator: term -> [doc1, doc2, ...] > > That iterator already exists -- it's a DocsEnum. > > Erick's question is what your *end* goal is .. what are you attempting to > do that you are asking about accessing a low level iterator over all thd > docs that contain a term, because based on your ultimate goal, there may > be better suggestions about how to achieve your goal (or specific > suggestions about how to get/use the DocsEnum) ... > > https://people.apache.org/~hossman/#xyproblem > > XY Problem > > Your question appears to be an "XY Problem" ... that is: you are dealing > with "X", you are assuming "Y" will help you, and you are asking about "Y" > without giving more details about the "X" so that we can understand the > full issue. Perhaps the best solution doesn't involve "Y" at all? > See Also: http://www.perlmonks.org/index.pl?node_id=542341 > > > -Hoss > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >