1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Mix.Tasks.Pleroma.Search do
9 @shortdoc "Manages elasticsearch"
11 def run(["import", "activities" | _rest]) do
14 Elasticsearch.Index.Bulk.upload(
15 Pleroma.Search.Elasticsearch.Cluster,
17 Pleroma.Config.get([Pleroma.Search.Elasticsearch.Cluster, :indexes, :activities])