diff --git a/composer.json b/composer.json index bfd0113..c92dc8e 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "blomstra/search", - "description": "Replaces Flarum search with a fulltext elastic search server.", + "description": "Replaces Flarum search with one powered by an elastic search server.", "keywords": [ "extension", "flarum", "blomstra", diff --git a/src/Api/Controllers/SearchController.php b/src/Api/Controllers/SearchController.php index 5380e50..92713f8 100644 --- a/src/Api/Controllers/SearchController.php +++ b/src/Api/Controllers/SearchController.php @@ -53,7 +53,7 @@ class SearchController extends ListDiscussionsController BoolQuery::create() ->add(MatchQuery::create('content', $filters['q'])) ); - $builder = (new Builder($this->client)) + $builder = (new Builder($this->elastic)) ->index(resolve('blomstra.search.elastic_index')) ->size($this->extractLimit($request)) ->from($this->extractOffset($request))