

def score(self):
    id = self.id
    tiebreak = self.tiebreak
    if (id is None):
        return 0
    scores = [r.score() for r in self.state if (r.id == id)]
    score = max(scores)
    if tiebreak:
        score += sum(((s * tiebreak) for s in scores))
    return (score * self.boost)

dataset/ETHPy150Open dokipen/whoosh/src/whoosh/query.py DisjunctionMax.DisMaxScorer.score/original