From: Sarah Hoffmann Date: Sun, 11 Oct 2020 08:40:23 +0000 (+0200) Subject: docs: migration to new wikipedia needs new index X-Git-Tag: v3.6.0~54^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/3b23144ae68b27c643f40fd186b40bf3c8a900c3 docs: migration to new wikipedia needs new index Fixes #1998. --- diff --git a/docs/admin/Migration.md b/docs/admin/Migration.md index b731c37c..fb766ba6 100644 --- a/docs/admin/Migration.md +++ b/docs/admin/Migration.md @@ -53,6 +53,12 @@ follows: * download the new Wikipedia tables as described in the import section * reimport the tables: `./utils/setup.php --import-wikipedia-articles` * update the functions: `./utils/setup.php --create-functions --enable-diff-updates` + * create a new lookup index: +``` +CREATE INDEX idx_placex_wikidata on placex +USING BTREE ((extratags -> 'wikidata')) +WHERE extratags ? 'wikidata' and class = 'place' and osm_type = 'N' and rank_search < 26 +``` * compute importance: `./utils/update.php --recompute-importance` The last step takes about 10 hours on the full planet.