reduce influence of query rematching a little bit

This commit is contained in:
Sarah Hoffmann
2025-06-01 11:54:21 +02:00
parent f2236f68f1
commit 10a7d1106d

View File

@@ -162,7 +162,7 @@ class ForwardGeocoder:
# Temporary hack that needs to be removed!
if result.rank_address == 4:
distance *= 2
result.accuracy += distance * 0.4 / sum(len(w) for w in qwords)
result.accuracy += distance * 0.3 / sum(len(w) for w in qwords)
async def lookup_pois(self, categories: List[Tuple[str, str]],
phrases: List[Phrase]) -> SearchResults: