+# Akkoma: A lightweight social networking server
+# Copyright © 2022-2022 Akkoma Authors <https://git.ihatebeinga.live/IHBAGang/akkoma/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.Search.Elasticsearch.Parsers.Activity do
defp to_es(term) when is_binary(term) do
%{
end
def parse(q) do
- Enum.map(q, &to_es/1)
+ [
+ %{
+ exists: %{
+ field: "content"
+ }
+ }
+ ] ++
+ Enum.map(q, &to_es/1)
end
end