]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/api/search/query.py
add address counts to tokens
[nominatim.git] / nominatim / api / search / query.py
index bd91c2ece72eac23dbda429e88979f826888b0c1..a0d7add1b70118e32d628b4894a893386d09d996 100644 (file)
@@ -99,10 +99,10 @@ class Token(ABC):
     penalty: float
     token: int
     count: int
+    addr_count: int
     lookup_word: str
     is_indexed: bool
 
-    addr_count: int = 1
 
     @abstractmethod
     def get_category(self) -> Tuple[str, str]: