X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/550e7edb64d391c249eeee10186b0c1bec535907..b50d6078f5cec2362813d710db35e616e9913ea2:/docs/admin/Customization.md?ds=inline diff --git a/docs/admin/Customization.md b/docs/admin/Customization.md index 76f0f85a..646465af 100644 --- a/docs/admin/Customization.md +++ b/docs/admin/Customization.md @@ -69,3 +69,33 @@ entire US adds about 10GB to your database. See the [developer's guide](../develop/data-sources.md#us-census-tiger) for more information on how the data got preprocessed. +## Special phrases import + +As described in the [Importation chapter](Import.md), it is possible to +import special phrases from the wiki with the following command: + +```sh +nominatim special-phrases --import-from-wiki +``` + +But, it is also possible to import some phrases from a csv file. +To do so, you have access to the following command: + +```sh +nominatim special-phrases --import-from-csv +``` + +Note that the 2 previous import commands will update the phrases from your database. +This means that if you import some phrases from a csv file, only the phrases +present in the csv file will be kept into the database. All other phrases will +be removed. + +If you want to only add new phrases and not update the other ones you can add +the argument `--no-replace` to the import command. For example: + +```sh +nominatim special-phrases --import-from-csv --no-replace +``` + +This will add the phrases present in the csv file into the database without +removing the other ones.