SearchBackend: Add create_index
This commit is contained in:
parent
c50f0f31f4
commit
1261c43a7a
3 changed files with 13 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue