From: marc tobias Date: Tue, 11 Dec 2018 20:34:56 +0000 (+0100) Subject: documentation: when updating GB postcodes, also run SQL getorcreate_postcode_id ... X-Git-Tag: v3.3.0~46^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/8224cc34eaeca776e5cfe00f533660a78a29ef12 documentation: when updating GB postcodes, also run SQL getorcreate_postcode_id [SKIP CI] --- diff --git a/data-sources/gb-postcodes/README.md b/data-sources/gb-postcodes/README.md index 241d30cb..5e6cef2d 100644 --- a/data-sources/gb-postcodes/README.md +++ b/data-sources/gb-postcodes/README.md @@ -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.