Handle docs that match multiple phrases by choosing the better scoring relation.
Handle empty phrases.