Skip to content

Add support for sorting query by rank ascending. - #35

Open
abelsonlive wants to merge 2 commits into
falcony-io:masterfrom
newslynx:master
Open

Add support for sorting query by rank ascending.#35
abelsonlive wants to merge 2 commits into
falcony-io:masterfrom
newslynx:master

Conversation

@abelsonlive

Copy link
Copy Markdown

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

kvesteri commented May 1, 2015

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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