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 "trending" sort order to search page #5202

Conversation

yeraydiazdiaz
Copy link
Contributor

Fixes #3447

Add zscore to Project document mapping
Add zscore to _project_docs query to populate on reindex
Add "Trending" sort order to search ordering dropdown

screenshot 2018-12-16 at 13 19 32

The results in the screenshot are not particularly relevant since I populated the zscore with random values on 100 project. It'd be nice to test it with proper values if possible to guage how useful the sort order is.

Fixes pypi#3447

Add zscore to Project document mapping
Add zscore to `_project_docs` query to populate on reindex
Add "Trending" sort order to search ordering dropdown
@di
Copy link
Member

di commented Dec 17, 2018

I think we probably want to break this into two PRs:

  1. a PR which adds the zscore to the index
  2. a PR which enables the search option.

That way, we can deploy #​1, let the index rebuild (IIRC this is happening every 6 hours now?) and then deploy #​2.

@yeraydiazdiaz
Copy link
Contributor Author

I'll be splitting this PR into two as suggested, but I while working on this I found I agree with #3932.

I think if we included the package's downloads in the index and give it a boost score we could have the standard search align more to the results expected by users. Does that sound reasonable? I could include it in the first split PR from this one if so.

@yeraydiazdiaz
Copy link
Contributor Author

Split into #5252 and #5253

@yeraydiazdiaz yeraydiazdiaz deleted the 3447-search-sort-new-and-trending branch January 8, 2019 14:09
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