[search] Fix rank and popularity scoring.

This commit is contained in:
tatiana-yan 2019-12-06 18:29:23 +03:00 committed by mpimenov
parent a258804a4f
commit 1cb754b5a3

View file

@ -15,8 +15,8 @@ import sys
MAX_DISTANCE_METERS = 2e6
MAX_RANK = 255
MAX_POPULARITY = 255
MAX_RANK = 255.0
MAX_POPULARITY = 255.0
RELEVANCES = {'Harmful': -3, 'Irrelevant': 0, 'Relevant': 1, 'Vital': 3}
NAME_SCORES = ['Zero', 'Substring', 'Prefix', 'Full Match']
SEARCH_TYPES = ['POI', 'Building', 'Street', 'Unclassified', 'Village', 'City', 'State', 'Country']