-
-
Notifications
You must be signed in to change notification settings - Fork 253
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
Add notes on script sorting to the docs #145
Labels
type:docs
Documentation
Comments
ghost
mentioned this issue
Jan 3, 2019
Any chance for this feature? |
All PRs are welcome. |
This has actually been implemented. One caveat: you can not sort on a script field by providing its name. You actually need to provide the script. Here's the example from the official docs:
Let's rewrite this using yii2-elasticsearch.
Note how the value for the This needs to be put into the docs. |
beowulfenator
changed the title
Add new feature: script sorting
Add notes on script sorting to the docs
Apr 16, 2023
beowulfenator
added
type:docs
Documentation
and removed
type:enhancement
Enhancement
labels
Apr 16, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be good to have the possibility to use script sorting of ElasticSearch. E.g.:
It is possible to use script field:
It would be the best if we could use such a script field in the orderBy method.
The text was updated successfully, but these errors were encountered: