fix search for the right fields
This commit is contained in:
parent
868713da11
commit
cb7da5d3f8
|
|
@ -170,8 +170,8 @@ class SearchController extends ListDiscussionsController
|
||||||
->add(TermQuery::create('is_private', 'true'))
|
->add(TermQuery::create('is_private', 'true'))
|
||||||
->add(
|
->add(
|
||||||
BoolQuery::create()
|
BoolQuery::create()
|
||||||
->add(TermsQuery::create('recipient-groups', $groups->toArray()), 'should')
|
->add(TermsQuery::create('recipient_groups', $groups->toArray()), 'should')
|
||||||
->add(TermsQuery::create('recipient-users', [$actor->id]), 'should'),
|
->add(TermsQuery::create('recipient_users', [$actor->id]), 'should'),
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($onlyPrivate) {
|
if ($onlyPrivate) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue