

def _poses(self):
    docnum = self.intersection.id
    fieldnum = self.fieldnum
    if (not self.reader.has_vector(docnum, poses)):
        raise QueryError('Phrase query: document %s field %r has no vector')
    vreader = self.reader.vector(docnum, fieldnum)
    poses = {
        
    }
    for word in self.sortedwords:
        vreader.skip_to(word)
        assert (vreader.id == word)
        if (vreader.id != word):
            raise QueryError(('Phrase query: %r in term index but not in vector (possible analyzer mismatch)' % word))
        poses[word] = vreader.value_as('positions')
    poses = [poses[word] for word in self.words]
    return poses

dataset/ETHPy150Open dokipen/whoosh/src/whoosh/query.py Phrase.VectorPhraseScorer._poses/VarMisuse@35/43 `fieldnum`->`poses`