: 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

Reply via email to