-
Notifications
You must be signed in to change notification settings - Fork 128
Language support
Dave Hall edited this page Jul 22, 2019
·
3 revisions
It's possible to support many languages using the PostgreSQL database backend.
In your settings.py file, add the following setting:
WATSON_POSTGRES_SEARCH_CONFIG = "pg_catalog.english"You can view a list of supported languages by typing \dF into your psql shell. Common languages include:
pg_catalog.danishpg_catalog.dutchpg_catalog.englishpg_catalog.finnishpg_catalog.frenchpg_catalog.germanpg_catalog.hungarianpg_catalog.italianpg_catalog.norwegianpg_catalog.portuguesepg_catalog.romanianpg_catalog.russianpg_catalog.spanishpg_catalog.swedishpg_catalog.turkish
Important: If you change the value of WATSON_POSTGRES_SEARCH_CONFIG in an existing project, you will need to recreate the django-watson search indices using:
./manage.py migrate watson zero
./manage.py migrate watson
./manage.py buildwatson