Pull scoring into own function (#582)
The `indexData.Search` method is super long. This PR pulls most scoring logic
into its own function, which will make it easier to modify in future PRs.
Testing:
* All Zoekt tests still pass
* Ran example queries with/ without the change, and the search-debug output was
the same