This patch allows processing DocIDs from iterator using callback so that they are not stored in a vector if actual DocIDs are not needed.
Such overhead is the case for D50337 patch: fuzzyFindLongQuery stores SymbolDocIDs but they are thrown away later, because what the index really needs is std::vector<std::pair<float, const Symbol *>> Scores; and it can be filled on-the-fly in matchSymbols.