Skip to content
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

Scout currently supports where clause that uses equal (=) operator only. Additional comparison (i.e >, >=, < ...) operation support is required. #776

Closed
rrakibul opened this issue Oct 29, 2023 · 3 comments

Comments

@rrakibul
Copy link

Description

Hey,

I added laravel scout package to my laravel 10 project to use locally installed meilisearch in my machine.

Meilisearch filter currently supports extensive comparison operations like !=, >, >=, <, <=, TO

However scout currently supports where clause that uses equal (=) operator only. Additional comparison operation support is required.

@github-actions
Copy link

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!

@driesvints
Copy link
Member

Welcoming PRs, thanks.

@DurandSacha
Copy link

to increase the capabilities of the searchable object with other operators, there is currently a solution which consists in adding the library Jeroen-G/Explorer ,

example with OR operator :

$subQuery = new BoolQuery(); $subQuery->should(new Matching('field1', 'A')); $subQuery->should(new Matching('field1', 'B')); $search->must($subQuery);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants