-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception when searching large datasets for common query using paginate #807
Comments
@razvaniacob working on it. 👌 |
@jasonbosco do you maybe know more about this? |
@driesvints Typesense has a max of 250 hits per page, and beyond that we'd have to use the @karakhanyans is looking into this. |
Hi @razvaniacob I did setup a fresh project and could not reproduce the issue you are having.
The results worked fine. Here is the repo where I did all that. The results are returned with /users endpoint. https://github.com/karakhanyans/laravel-scout-typesense Could you please fork the repo, and add the steps that you did and push them so I can reproduce error? Thanks. |
Thanks @karakhanyans, I've tested with your code and it works. So then I started experimenting with what I have so when I do something like this:
It works, but if I do it like this:
It fails with the error Maybe it has something to do with the Any thoughts? |
@razvaniacob have you tried this line |
I followed the documentation found here Laravel Scout Documentation If I do just ->with... I get this error |
This is an issue I also encountered, see: typesense/laravel-scout-typesense-driver#86 |
Hey guys,
Removing it fixed the issue |
Thank you for reporting this issue! As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub. If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team. Thank you! |
I just ran into this as well when using Lines 480 to 509 in 6e5b47d
As a workaround, because of the This should workaround it for example and not affect pagination since it doesn't look at the
It's not clear to me why the existence of the |
@davidstoker thanks for your input, this helped a lot with solving this. |
Scout Version
10.8
Scout Driver
Typesense
Laravel Version
10.44.0
PHP Version
8.2.13
Description
When searching for a string that is relatively common throughout a collection of indexed data, the results can not be fetched or displayed because the search with the Scout driver results in the following exception:
Steps to reproduce
Expected Behavior
I expect the search to succeed, even when there are more then 250 hits, because that's why I use pagination on my frontend.
Actual Behavior
Following exception is thrown:
The text was updated successfully, but these errors were encountered: