Fix emoji qualification #124
2 changed files with 9 additions and 1 deletions
|
@ -114,6 +114,7 @@ def call(conn = %{method: method}, url, opts) when method in @methods do
|
|||
else
|
||||
{:ok, true} ->
|
||||
conn
|
||||
|> put_private(:proxied_url, url)
|
||||
|> error_or_redirect(500, "Request failed", opts)
|
||||
|> halt()
|
||||
|
||||
|
|
|
@ -37,6 +37,13 @@ defp to_es({:filter, [field, query]}) do
|
|||
end
|
||||
|
||||
def parse(q) do
|
||||
Enum.map(q, &to_es/1)
|
||||
[
|
||||
%{
|
||||
exists: %{
|
||||
field: "content"
|
||||
}
|
||||
}
|
||||
] ++
|
||||
Enum.map(q, &to_es/1)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue