Currently IndexSearcher works by iterating over the Query, gathering docs into a Set for each Query node, and combining those Sets.
We want to move to an iterator based approach, similar to what PositionalIter currently does, but where query nodes form nodes in a tree of iterators working together to progressively find matches.
Currently
IndexSearcher
works by iterating over theQuery
, gathering docs into aSet
for eachQuery
node, and combining thoseSet
s. We want to move to an iterator based approach, similar to whatPositionalIter
currently does, but where query nodes form nodes in a tree of iterators working together to progressively find matches.