Ranking: simplify score combination strategy (#523)
This PR proposes to simplify how match scores are combined with static ranking
signals like the file rank. Instead of using reciprocal rank fusion (RRF), we
stick with the same strategy we already use to combine ranking signals, a
weighted sum. In my experience, this is much easier to debug and tune compared
to RRF. We're in full control of the ranking signals, and can make sure they're
bounded + meaningful, so using a sum seems totally fine.
It also removes the index sorting based on file rank. From my testing, it
didn't really make a difference to improving result quality. Removing it also
opens up the possibility of storing the file ranks outside the immutable index
data. In the future, this would let us update the ranks more often, without
worrying about fully reindexing repositories.