

def _segment_and_docnum(self, docnum):
    segmentnum = self._document_segment(docnum)
    offset = self.doc_offsets[segmentnum]
    return (segmentnum, (docnum - offset))

dataset/ETHPy150Open dokipen/whoosh/src/whoosh/reading.py MultiReader._segment_and_docnum/original