X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/d3372e69eca75aad7a7decc17b5fd7a5ffc1b1f8..f92e580293a527d167ddb8b12a2690967c19b26b:/nominatim/tokenizer/base.py diff --git a/nominatim/tokenizer/base.py b/nominatim/tokenizer/base.py index 51afd540..12c826eb 100644 --- a/nominatim/tokenizer/base.py +++ b/nominatim/tokenizer/base.py @@ -201,7 +201,7 @@ class AbstractTokenizer(ABC): @abstractmethod - def update_statistics(self) -> None: + def update_statistics(self, config: Configuration, threads: int = 1) -> 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. """