From: Sarah Hoffmann Date: Sun, 21 Nov 2021 09:53:42 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/master' X-Git-Tag: deploy~137 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/d72f11d1afd5ae91071ba4a7440ed953d2495e16?hp=9c777560cee052d19f8cd555879d10feed89099e Merge remote-tracking branch 'upstream/master' --- diff --git a/docs/admin/Advanced-Installations.md b/docs/admin/Advanced-Installations.md index 98a3b64a..ff267cee 100644 --- a/docs/admin/Advanced-Installations.md +++ b/docs/admin/Advanced-Installations.md @@ -101,7 +101,7 @@ This will get diffs from the replication server, import diffs and index the database. The default replication server in the script([Geofabrik](https://download.geofabrik.de)) provides daily updates. -## Importing Nominatim to an external PostgreSQL database +## Using an external PostgreSQL database You can install Nominatim using a database that runs on a different server when you have physical access to the file system on the other server. Nominatim @@ -109,6 +109,11 @@ uses a custom normalization library that needs to be made accessible to the PostgreSQL server. This section explains how to set up the normalization library. +!!! note + The external module is only needed when using the legacy tokenizer. + If you have choosen the ICU tokenizer, then you can ignore this section + and follow the standard import documentation. + ### Option 1: Compiling the library on the database server The most sure way to get a working library is to compile it on the database @@ -167,3 +172,44 @@ NOMINATIM_DATABASE_MODULE_PATH="sToken) === 0 - || preg_match_all('/[^0-9]/', $this->sToken, $aMatches) > 2) { + || preg_match_all('/[^0-9 ]/', $this->sToken, $aMatches) > 3) { $iSearchCost += strlen($this->sToken) - 1; } if (!$oSearch->hasOperator(\Nominatim\Operator::NONE)) {