-
Notifications
You must be signed in to change notification settings - Fork 34
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
Laravel Scout - sortable fields won't work #3480
Comments
The main focus of Scout support is that it's will sort the search results based on the most relevant results based on each engine technology. |
Effectively I missed that part but that doesn't change the fact that sorting when searching won't lead to anything and can mislead users ? |
I will submit a PR to hide sort button when searching via Scout. |
Fixed in v3.28.0: https://nova.laravel.com/releases/3.28.0 |
Description:
Basically, it's known that you can't order by with laravel scout, the solution provided is to create another index with the sorting by default. Don't know if there is anything special to include this in Nova.
The problem on Nova is that it's not informing the user about this problem:
As you can see I ran a search to force scout search and sorted by id but the sort won't change anything ...
The better would be to support multiple indexes for each sortable fields but this might be heavy.
The text was updated successfully, but these errors were encountered: