-
Notifications
You must be signed in to change notification settings - Fork 359
Closed
Labels
Description
Scout Version
10.11.3
Scout Driver
Typesense
Laravel Version
10.48.2
PHP Version
8.2.23
Database Driver & Version
No response
SDK Version
No response
Meilisearch CLI Version
No response
Description
The most recent MR #858 causes an issue with Typesense. For example, this code works:
$results = Names::search($this->keyword)
->options([
'filter_by' => $this->buildFilterString(),
'sort_by' => implode(',', $this->sortBy),
])
->paginate(48);But if I drop in this line between options and paginate:
->query(fn (Builder $query) => $query->with('someRelation'))We then get this error back from Typesense:
Only up to 250 hits can be fetched per page.
The only solution to solve that is to again set the per_page option to match the ->paginate() value.
It looks like adding back #824 resolves this.
Steps To Reproduce
- Install Laravel Scout, Typesense
- Setup model with thousands of records and import with Scout
- Setup model relation
- Use query above using code to re-test