Skip to content

In a crate search query, order the results by name in addition to rank #199

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

Merged
merged 1 commit into from
Oct 11, 2015

Conversation

gkoz
Copy link
Contributor

@gkoz gkoz commented Oct 11, 2015

Since ts_rank_cd() doesn't provide unique ordering using it with LIMIT ... OFFSET will lead to inconsistent results, as is apparent from #162. Add ordering by name to break the ties.

Since `ts_rank_cd()` doesn't provide unique ordering using it with `LIMIT ... OFFSET` will lead to inconsistent results, as is apparent from #162. Add ordering by name to break the ties.
@alexcrichton
Copy link
Member

Thanks!

alexcrichton added a commit that referenced this pull request Oct 11, 2015
In a crate search query, order the results by name in addition to rank
@alexcrichton alexcrichton merged commit 0e491f4 into rust-lang:master Oct 11, 2015
@gkoz gkoz deleted the patch-1 branch October 13, 2015 15:02
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