-
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.danish
pg_catalog.dutch
pg_catalog.english
pg_catalog.finnish
pg_catalog.french
pg_catalog.german
pg_catalog.hungarian
pg_catalog.italian
pg_catalog.norwegian
pg_catalog.portuguese
pg_catalog.romanian
pg_catalog.russian
pg_catalog.spanish
pg_catalog.swedish
pg_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