I think I found the relevant code which helps me understand. But intuitively I would've thought that the scoring is based on some linear combination of the matches in the fields with the field weights as coefficients. It's that something you've considered and scrapped? Would be interested to hear!