]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/tokenizer/base.py
recreate word table when refreshing counts
[nominatim.git] / nominatim / tokenizer / base.py
index 51afd540cb2b3e4c44250033bb1fd928d144b9bb..29bcc8e196cf29cf4ef110252fbad0a5f26da2b7 100644 (file)
@@ -201,7 +201,7 @@ class AbstractTokenizer(ABC):
 
 
     @abstractmethod
-    def update_statistics(self) -> None:
+    def update_statistics(self, config: Configuration) -> None:
         """ Recompute any tokenizer statistics necessary for efficient lookup.
             This function is meant to be called from time to time by the user
             to improve performance. However, the tokenizer must not depend on
@@ -238,7 +238,7 @@ class AbstractTokenizer(ABC):
 
             Arguments:
               conn: Open connection to the database which may be used to
-                    retrive the words.
+                    retrieve the words.
               num: Maximum number of words to return.
         """