summaryrefslogtreecommitdiff
path: root/lib/mix/tasks
diff options
context:
space:
mode:
authorLain Soykaf <lain@lain.com>2024-05-14 17:19:36 +0400
committerLain Soykaf <lain@lain.com>2024-05-14 17:19:36 +0400
commit1261c43a7af48ed6e6753461944659391c4c58cc (patch)
tree55ab777ebec8fe5b3e5dad7b887c7c10a7778148 /lib/mix/tasks
parentc50f0f31f418037063bd97efcdc0f60b89594212 (diff)
downloadpleroma-1261c43a7af48ed6e6753461944659391c4c58cc.tar.gz
pleroma-1261c43a7af48ed6e6753461944659391c4c58cc.zip
SearchBackend: Add create_index
Diffstat (limited to 'lib/mix/tasks')
-rw-r--r--lib/mix/tasks/pleroma/search/indexer.ex6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/mix/tasks/pleroma/search/indexer.ex b/lib/mix/tasks/pleroma/search/indexer.ex
index ffa2f3c94..326646b69 100644
--- a/lib/mix/tasks/pleroma/search/indexer.ex
+++ b/lib/mix/tasks/pleroma/search/indexer.ex
@@ -8,6 +8,12 @@ defmodule Mix.Tasks.Pleroma.Search.Indexer do
alias Pleroma.Workers.SearchIndexingWorker
+ def run(["create_index"]) do
+ Application.ensure_all_started(:pleroma)
+
+ Pleroma.Config.get([Pleroma.Search, :module]).create_index()
+ end
+
def run(["index" | options]) do
{options, [], []} =
OptionParser.parse(