fix search for the right fields

This commit is contained in:
Daniel Klabbers 2021-11-16 20:23:07 +01:00
parent 868713da11
commit cb7da5d3f8
1 changed files with 2 additions and 2 deletions

View File

@ -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) {