X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fsearch%2Felasticsearch%2Factivity_parser.ex;h=f2fa394fa501492d7d3d727c4ad09ecad8a80105;hb=f667884962553e2c0fb99f7f110489460333fc57;hp=9c39e516a54d76835efc32f7c956e87e1b34edac;hpb=6a19fbac2f0d9c05bc25159d6dc19b89d19f2241;p=akkoma diff --git a/lib/pleroma/search/elasticsearch/activity_parser.ex b/lib/pleroma/search/elasticsearch/activity_parser.ex index 9c39e516a..f2fa394fa 100644 --- a/lib/pleroma/search/elasticsearch/activity_parser.ex +++ b/lib/pleroma/search/elasticsearch/activity_parser.ex @@ -37,6 +37,13 @@ defmodule Pleroma.Search.Elasticsearch.Parsers.Activity do end def parse(q) do - Enum.map(q, &to_es/1) + [ + %{ + exists: %{ + field: "content" + } + } + ] ++ + Enum.map(q, &to_es/1) end end