fix apparent author query

This commit is contained in:
byte[] 2020-01-22 09:01:10 -05:00
parent dd915aa477
commit f47e9f5e05
2 changed files with 8 additions and 6 deletions

View file

@ -26,9 +26,10 @@ defmodule Philomena.Comments.Query do
:ok, :ok,
%{ %{
bool: %{ bool: %{
must: [ must: %{term: %{anonymous: false}},
%{term: %{anonymous: false}}, should: [
%{wildcard: %{author: data}} %{wildcard: %{author: data}},
%{term: %{author: data}}
] ]
} }
} }

View file

@ -26,9 +26,10 @@ defmodule Philomena.Posts.Query do
:ok, :ok,
%{ %{
bool: %{ bool: %{
must: [ must: %{term: %{anonymous: false}},
%{term: %{anonymous: false}}, should: [
%{wildcard: %{author: data}} %{wildcard: %{author: data}},
%{term: %{author: data}}
] ]
} }
} }