summaryrefslogtreecommitdiff
path: root/docs/administration/CLI_tasks/database.md
diff options
context:
space:
mode:
authorfeld <feld@feld.me>2021-02-08 22:01:32 +0000
committerMark Felder <feld@feld.me>2021-02-08 16:01:50 -0600
commit593c0851d9a62977f5a6abd22df991b0d73da657 (patch)
treec469efff6113ca9f860b0c7222ad8c842ca4e120 /docs/administration/CLI_tasks/database.md
parent0368419fce04f636d2c5adcf44e7d35c43279dc1 (diff)
parenta5bee1bf35a3a771aa259cc98190f24e84880f47 (diff)
downloadpleroma-593c0851d9a62977f5a6abd22df991b0d73da657.tar.gz
pleroma-593c0851d9a62977f5a6abd22df991b0d73da657.zip
Merge branch 'develop' into 'new-user-emails'
Diffstat (limited to 'docs/administration/CLI_tasks/database.md')
-rw-r--r--docs/administration/CLI_tasks/database.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/administration/CLI_tasks/database.md b/docs/administration/CLI_tasks/database.md
index 6dca83167..c53c49921 100644
--- a/docs/administration/CLI_tasks/database.md
+++ b/docs/administration/CLI_tasks/database.md
@@ -141,3 +141,21 @@ but should only be run if necessary. **It is safe to cancel this.**
```sh
mix pleroma.database ensure_expiration
```
+
+## Change Text Search Configuration
+
+Change `default_text_search_config` for database and (if necessary) text_search_config used in index, then rebuild index (it may take time).
+
+=== "OTP"
+
+ ```sh
+ ./bin/pleroma_ctl database set_text_search_config english
+ ```
+
+=== "From Source"
+
+ ```sh
+ mix pleroma.database set_text_search_config english
+ ```
+
+See [PostgreSQL documentation](https://www.postgresql.org/docs/current/textsearch-configuration.html) and `docs/configuration/howto_search_cjk.md` for more detail.