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

Searchable and multiple keywords positioning #272

Open
GrzegorzP opened this issue Jul 8, 2022 · 0 comments
Open

Searchable and multiple keywords positioning #272

GrzegorzP opened this issue Jul 8, 2022 · 0 comments

Comments

@GrzegorzP
Copy link

Hi,

when I search by multiple keywords f.ex.:

Car::search('toyota hybrid', ['name' => 10], true)->get();

the results contanins occurance of "*toyota*" or "*hybrid*" with the same weight so the list looks like this:

1. Toyota Camry
2. Toyota Prius Hybrid

Shouldn''t result be in the order:

1. Toyota Prius Hybrid
2. Toyota Camry

because name Toyota Prius Hybrid have 2 hits while Toyota Camry is only 1 hit? Or is that possible to configure that all keywords should be hit?

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

No branches or pull requests

1 participant