-
Notifications
You must be signed in to change notification settings - Fork 801
FacetedSearch does not accept sort
configuration
#1318
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
Labels
Category: Bug
Something isn't right
Comments
miguelgrinberg
added a commit
to miguelgrinberg/elasticsearch-dsl-py
that referenced
this issue
Apr 10, 2024
The documentation is incorrect. |
miguelgrinberg
added a commit
to miguelgrinberg/elasticsearch-dsl-py
that referenced
this issue
Apr 11, 2024
miguelgrinberg
added a commit
that referenced
this issue
Apr 11, 2024
miguelgrinberg
added a commit
that referenced
this issue
Apr 29, 2024
miguelgrinberg
added a commit
that referenced
this issue
Apr 29, 2024
Fixes #1318 (cherry picked from commit 0c0bdb7) Co-authored-by: Miguel Grinberg <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The document says FaucetedSearch accept configuration option
sort
as a class attribute.So I tried to create the following class.
Then it raises TypeError.
I tried
sort = '-publisehd_at'
but got the same error. What kind of argument should be set?BlogSearch(sort=('-published_at',))
works fine, but I'd like to set the default sort order.The text was updated successfully, but these errors were encountered: