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

Add support for sorting query by rank ascending. #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

abelsonlive
Copy link

This is certainly an edge case, but I thought it would be useful to test the search relevance by playing with the rank sort order.

@kvesteri
Copy link
Collaborator

kvesteri commented May 1, 2015

Before merging pep8 compatibility should be fixed (see travis). Also I think it would be better if we didn't add new keyword argument but rather make the sort argument accept any kind of SA expression and change its default value to None.

Then if user wants to apply ascending sort he would do:

search(query, 'something', sort=sa.asc)

@abelsonlive
Copy link
Author

Hey, sorry for not noticing this. will change asap.

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

Successfully merging this pull request may close these issues.

2 participants