Merge remote-tracking branch 'pleroma/develop' into fix-object-deletion-timeout
[akkoma] / docs / administration / CLI_tasks / database.md
index eb85381ffa779eb49af9f72cf6ac7fa04391fd04..c53c4992118796d5dd696ae4c805303e5c4be769 100644 (file)
@@ -91,18 +91,6 @@ Can be safely re-run
     mix pleroma.database fix_likes_collections
     ```
 
-## Fill hashtags for old objects
-
-Migrate hashags fields for old objects, from now to `months_limit` months.
-
-```sh tab="OTP"
-./bin/pleroma_ctl database fill_old_hashtags <months_limit>
-```
-
-```sh tab="From Source"
-mix pleroma.database fill_old_hashtags <months_limit>
-```
-
 ## Vacuum the database
 
 ### Analyze
@@ -153,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.