def enum_docs(self):
        for i, doc in enumerate(self.get_potentially_relevant_docs()):
            if self.include(doc):
                yield i, self.cleanup(doc)
yields (index, doc) tuples for docs that pass the filter
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/couchexport/export.py/ExportConfiguration.enum_docs