X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/47417d18714143ad20316bd529694e94fa0a0e26..c77df2d1ebb40bbdf28aa337490e7af2861b334d:/nominatim/clicmd/refresh.py?ds=sidebyside diff --git a/nominatim/clicmd/refresh.py b/nominatim/clicmd/refresh.py index aa540f6b..e7d7d7ba 100644 --- a/nominatim/clicmd/refresh.py +++ b/nominatim/clicmd/refresh.py @@ -71,8 +71,8 @@ class UpdateRefresh: "Postcode updates on a frozen database is not possible.") if args.word_counts: - LOG.warning('Recompute frequency of full-word search terms') - refresh.recompute_word_counts(args.config.get_libpq_dsn(), args.sqllib_dir) + LOG.warning('Recompute word statistics') + self._get_tokenizer(args.config).update_statistics() if args.address_levels: cfg = Path(args.config.ADDRESS_LEVEL_CONFIG)