fix issue with search controller due to binding change

This commit is contained in:
Daniel Klabbers 2021-11-02 14:57:11 +01:00
parent 63d7e3cbf6
commit de7f1096a9
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

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