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

How to sort or order by the search results with specific columns? #16

Closed
tortuetorche opened this issue Feb 23, 2018 · 1 comment
Closed

Comments

@tortuetorche
Copy link
Contributor

tortuetorche commented Feb 23, 2018

Apparently laravel-scout-elastic package can do it, but I'm not sure if this postgres engine can do it without some refactoring...

@pmatseykanets
Copy link
Owner

Thanks for bringing my attention to this.

Just pushed a commit that should resolve it.

You can use orderBy() on a builder instance to define a custom order.
If a custom order is not defined then the default one (rank DESC, id ASC) is used.

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

2 participants