1 # Akkoma: A lightweight social networking server
2 # Copyright © 2022-2022 Akkoma Authors <https://git.ihatebeinga.live/IHBAGang/akkoma/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Search.Elasticsearch.Parsers.User do
6 defp to_es(term) when is_binary(term) do
9 minimum_should_match: 1,
39 defp to_es({:quoted, term}), do: to_es(term)
41 defp to_es({:filter, ["user", query]}) do
51 defp to_es({:filter, _}), do: nil
55 |> Enum.filter(fn x -> x != nil end)