From cb7da5d3f89f686e97d0e89e1868a189385ab9ee Mon Sep 17 00:00:00 2001 From: Daniel Klabbers Date: Tue, 16 Nov 2021 20:23:07 +0100 Subject: [PATCH] fix search for the right fields --- src/Api/Controllers/SearchController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Api/Controllers/SearchController.php b/src/Api/Controllers/SearchController.php index bad7e80..9bd9ae7 100644 --- a/src/Api/Controllers/SearchController.php +++ b/src/Api/Controllers/SearchController.php @@ -170,8 +170,8 @@ class SearchController extends ListDiscussionsController ->add(TermQuery::create('is_private', 'true')) ->add( BoolQuery::create() - ->add(TermsQuery::create('recipient-groups', $groups->toArray()), 'should') - ->add(TermsQuery::create('recipient-users', [$actor->id]), 'should'), + ->add(TermsQuery::create('recipient_groups', $groups->toArray()), 'should') + ->add(TermsQuery::create('recipient_users', [$actor->id]), 'should'), ); if ($onlyPrivate) {