Add notes on RUM indexes
[akkoma] / docs / installation / releases_en.md
index 4645f7affd3ae17547e5c6b9963339456cabd636..918ae83e1659a2e15ef68cc72dffcfe550a12ee8 100644 (file)
@@ -41,9 +41,9 @@ apk add curl unzip ncurses postgresql posqtgresql-contrib nginx certbot
 #### (Optional) Installing RUM indexes
 RUM indexes are an alternative indexing scheme that is not included in PostgreSQL by default. You can read more about them on the [Configuration page](config.html#rum-indexing-for-full-text-search). They are completely optional and most of the time are not worth it, especially if you are running a single user instance (unless you absolutely need ordered search results).
 
-Debian/Ubuntu:
+Debian/Ubuntu (available only on Buster/19.04):
 ```sh
-apt install postgresql-rum
+apt install postgresql-11-rum
 ```
 Alpine:
 ```sh
@@ -110,10 +110,17 @@ su pleroma -s $SHELL -lc "./bin/pleroma_ctl instance gen --output /etc/pleroma/c
 # Create the postgres database
 psql -U postgres -d postgres -f /tmp/setup_db.psql
 
+# If you have installed RUM indexes add
+# `config :pleroma, :database, rum_enabled: true`
+# to the end of /etc/pleroma/config.exs before proceeding
+
 # Create the database schema
 ./bin/pleroma_ctl create
 ./bin/pleroma_ctl migrate
 
+# If you have installed RUM indexes also run
+./bin/pleroma_ctl migrate --migrations-path priv/repo/optional_migrations/rum_indexing/
+
 # Start the instance to verify that everything is working as expected
 ./bin/pleroma daemon