commit: 4f2637acc6c46ea39ae38e869903e7ffcc38b34d
parent 571533ae2618478f26db312e52265e143356debd
Author: Ekaterina Vaartis <vaartis@kotobank.ch>
Date: Mon, 20 Dec 2021 19:27:22 +0300
Add description for initial_indexing_chunk_size
Diffstat:
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/config/description.exs b/config/description.exs
@@ -3508,6 +3508,14 @@ config :pleroma, :config_description, [
description:
"Private key for meilisearch authentication, or `nil` to disable private key authentication.",
suggestion: [nil]
+ },
+ %{
+ key: :initial_indexing_chunk_size,
+ type: :int,
+ description:
+ "Amount of posts in a batch when running the initial indexing operation. Should probably not be more than 100000" <>
+ " since there's a limit on maximum insert size",
+ suggestion: [100_000]
}
]
}
diff --git a/docs/configuration/search.md b/docs/configuration/search.md
@@ -25,11 +25,15 @@ To use [meilisearch](https://www.meilisearch.com/), set the search module to `Pl
> config :pleroma, Pleroma.Search, module: Pleroma.Search.Meilisearch
-You then need to set the address of the meilisearch instance, and optionally the private key for authentication.
+You then need to set the address of the meilisearch instance, and optionally the private key for authentication. You might
+also want to change the `initial_indexing_chunk_size` to be smaller if you're server is not very powerful, but not higher than `100_000`,
+because meilisearch will refuse to process it if it's too big. However, in general you want this to be as big as possible, because meilisearch
+indexes faster when it can process many posts in a single batch.
> config :pleroma, Pleroma.Search.Meilisearch,
> url: "http://127.0.0.1:7700/",
-> private_key: "private key"
+> private_key: "private key",
+> initial_indexing_chunk_size: 100_000
Information about setting up meilisearch can be found in the
[official documentation](https://docs.meilisearch.com/learn/getting_started/installation.html).