X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6f6681ce67dc1a4c9cfe52cf61bc3ecfbaf2f5f1..554d25e2e508c57fe763cee95b574b8e7c66eb0b:/nominatim/tools/refresh.py?ds=sidebyside diff --git a/nominatim/tools/refresh.py b/nominatim/tools/refresh.py index d4d75c31..00ae5dc9 100644 --- a/nominatim/tools/refresh.py +++ b/nominatim/tools/refresh.py @@ -14,12 +14,6 @@ from nominatim.version import NOMINATIM_VERSION LOG = logging.getLogger() -def recompute_word_counts(dsn, sql_dir): - """ Compute the frequency of full-word search terms. - """ - execute_file(dsn, sql_dir / 'words_from_search_name.sql') - - def _add_address_level_rows_from_entry(rows, entry): """ Converts a single entry from the JSON format for address rank descriptions into a flat format suitable for inserting into a @@ -58,7 +52,7 @@ def load_address_levels(conn, table, levels): rank_address SMALLINT)""".format(table)) cur.execute_values(pysql.SQL("INSERT INTO {} VALUES %s") - .format(pysql.Identifier(table)), rows) + .format(pysql.Identifier(table)), rows) cur.execute('CREATE UNIQUE INDEX ON {} (country_code, class, type)'.format(table))