]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge pull request #1263 from mtmail/add-new-postcodes-to-searchnames
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 11 Dec 2018 20:39:28 +0000 (21:39 +0100)
committerGitHub <noreply@github.com>
Tue, 11 Dec 2018 20:39:28 +0000 (21:39 +0100)
when updating GB postcodes, also run SQL getorcreate_postcode_id

data-sources/gb-postcodes/README.md

index 241d30cb2ed9ca4bad1f1a9fbb21d7a5e430f860..5e6cef2d3d6700e07ecb096348e38eb76c4bbba9 100644 (file)
@@ -13,7 +13,9 @@ If you forgot to download the file, or have a new version, you can import it sep
 
 1. Import the downloaded `gb_postcode_data.sql.gz` file.
 
-2. Run `utils/setup.php --calculate-postcodes` from the build directory. This will copy data form the `gb_postcode` table to the `location_postcodes` table.
+2. Run the SQL query `SELECT count(getorcreate_postcode_id(postcode)) FROM gb_postcode;`. This will update the search index.
+
+3. Run `utils/setup.php --calculate-postcodes` from the build directory. This will copy data form the `gb_postcode` table to the `location_postcodes` table.