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,
%{
bool: %{
must: [
%{term: %{anonymous: false}},
%{wildcard: %{author: data}}
must: %{term: %{anonymous: false}},
should: [
%{wildcard: %{author: data}},
%{term: %{author: data}}
]
}
}

View file

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