]> git.openstreetmap.org Git - nominatim.git/commit
Stop creating the place_classtype tables from special phrases
authorItz-Agasta <rupamgolui69@gmail.com>
Thu, 6 Aug 2026 09:01:06 +0000 (14:31 +0530)
committerItz-Agasta <rupamgolui69@gmail.com>
Thu, 6 Aug 2026 09:01:06 +0000 (14:31 +0530)
commit2db876ea2e64abd7e22823927717be28ecd9dfee
tree64213d9eac0ecbc8c821db3326944d4891eb7c42
parentf9ca95c3abdb75229c97b3415a8422e99776e544
Stop creating the place_classtype tables from special phrases

The special phrase import created one table per class/type pair, indexed
it on centroid and place_id and granted the webuser access to it. Nothing
reads those tables anymore, so all of that goes. What is left is
collecting the phrases and handing them to the tokenizer.

The --min option only decided which of the tables were created, it never
filtered the phrases themselves, so it has no meaning without them. It is
removed together with get_classtype_pairs().

The table counters in the statistics handler would report zero forever.
src/nominatim_db/clicmd/args.py
src/nominatim_db/clicmd/special_phrases.py
src/nominatim_db/tools/special_phrases/importer_statistics.py
src/nominatim_db/tools/special_phrases/sp_importer.py
test/python/tools/test_import_special_phrases.py
test/python/tools/test_sp_importer.py [deleted file]