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

Default sort order on elasticsearch query #12

Closed
neilferreira opened this Issue Mar 1, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@neilferreira

neilferreira commented Mar 1, 2016

https://github.com/collective/collective.elasticsearch/blob/master/collective/elasticsearch/query.py#L19

Given that the fallback for sorting method is 'score' I would recommend you make the default sort order 'descending' instead. As it stands, the worst results are returned first.

@neilferreira neilferreira changed the title from It doesn't make sense sorting by score ascending as the default... provides the worst results first to Default sort order on elasticsearch query Mar 1, 2016

@vangheem

This comment has been minimized.

Show comment
Hide comment
@vangheem

vangheem Mar 1, 2016

Member

I agree. Thanks for inspecting.

Member

vangheem commented Mar 1, 2016

I agree. Thanks for inspecting.

@vangheem vangheem closed this in b1cdc07 Mar 1, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment