)
end
- def bulk_post(data, :hashtags) do
+ def bulk_post([] = data, :hashtags) do
d =
data
|> Enum.map(fn d ->
)
end
+ def bulk_post(_, :hashtags), do: {:ok, nil}
+
def search(:raw, index, type, q) do
with {:ok, raw_results} <- Elastix.Search.search(url(), index, [type], q) do
results =
alias Pleroma.Search.Elasticsearch.Parsers
alias Pleroma.Web.Endpoint
- defp es_query(:activity, query) do
+ def es_query(:activity, query) do
%{
size: 50,
terminate_after: 50,
}
end
- defp es_query(:user, query) do
+ def es_query(:user, query) do
%{
size: 50,
terminate_after: 50,
}
end
- defp es_query(:hashtag, query) do
+ def es_query(:hashtag, query) do
%{
size: 50,
terminate_after: 50,