Which method do you recommend to use ? .iterator() method in Scorer.class has below java comment which is not matching my requirement.
Return a DocIdSetIterator over matching documents. The returned iterator will either be positioned on -1 if no documents have been scored yet, DocIdSetIterator.NO_MORE_DOCS if all documents have been scored already, or the last document id that has been scored otherwise. The returned iterator is a view: calling this method several times will return iterators that have the same state. On Sun, Mar 5, 2017 at 6:00 AM, Michael McCandless < [email protected]> wrote: > You must pull another DISI instance from your original source (e.g. a > Scorer) and then iterate over that one. > > Once a given DISI instance is exhausted, it's done. > > Mike McCandless > > http://blog.mikemccandless.com > > On Sat, Mar 4, 2017 at 11:09 PM, Nilesh Kamani <[email protected]> > wrote: > >> Hello Dev Team, >> >> Is it possible to re-iterate over the DocIdSetIterator without causing >> any issues ? >> >> >> Thanks, >> Nilesh Kamani >> > >
