projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use a genserver to periodically fetch metrics
[akkoma]
/
lib
/
pleroma
/
search
/
elasticsearch
/
activity_parser.ex
diff --git
a/lib/pleroma/search/elasticsearch/activity_parser.ex
b/lib/pleroma/search/elasticsearch/activity_parser.ex
index 0c124d5374e6d4a65fa71440757e45ea9bdc2afc..f2fa394fa501492d7d3d727c4ad09ecad8a80105 100644
(file)
--- a/
lib/pleroma/search/elasticsearch/activity_parser.ex
+++ b/
lib/pleroma/search/elasticsearch/activity_parser.ex
@@
-1,3
+1,7
@@
+# 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
%{
defmodule Pleroma.Search.Elasticsearch.Parsers.Activity do
defp to_es(term) when is_binary(term) do
%{
@@
-33,6
+37,13
@@
defmodule Pleroma.Search.Elasticsearch.Parsers.Activity do
end
def parse(q) do
end
def parse(q) do
- Enum.map(q, &to_es/1)
+ [
+ %{
+ exists: %{
+ field: "content"
+ }
+ }
+ ] ++
+ Enum.map(q, &to_es/1)
end
end
end
end