-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Search: weight page views into search results #7297
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
Closed
Closed
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
f9ce9ca
Page views: use origin URL instead of page name
stsewd c27e4df
Fix test
stsewd d267903
Add unresolve_from_request
stsewd 70ad4b8
Use unresolve_from_request
stsewd 65fcc7c
Update tests
stsewd 2e5aa58
Fix tests
stsewd 552becc
Typo
stsewd 7f77f3f
Search: weight page views into search results
stsewd f21def6
Small fixes
stsewd 67e95db
Protection from empty values
stsewd 5981d08
Add tests
stsewd cb57d01
Linter
stsewd d781976
Put feature under a feature flag
stsewd 944cf1b
Merge branch 'master' into search-with-page-views
stsewd cbdc129
Merge branch 'master' into search-with-page-views
stsewd 3249b27
Update tests
stsewd 53ca222
Merge branch 'master' into search-with-page-views
stsewd 054251c
Suggestions from review
stsewd 558380c
Remove duplicated query
stsewd 4f53189
Merge branch 'master' into search-with-page-views
stsewd 9790d41
Fix merge
stsewd 93075d0
Merge branch 'master' into search-with-page-views
stsewd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This absolute value is across all the versions for the same page?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, here views is the number of views from that page in that version, this value isn't compared to anything (that's why it's absolute).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, if we have a page
/api/v2.html
that has a lot of views in version1.0
, then a new version of the docs is published,1.1
; the new page/1.1/api/v2.html
won't be shown first in the results because it will have less views?If that is correct, won't we be pointing the user always to old pages because they will have more views than the up-to-date version of the exact same page?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar example searching for the term
API
in1.1
version of the docs. It may refers to another page (i.e.configuration.html
) instead ofapi/v2.html
because the newer version ofconfiguration.html
has more views than the newer version ofapi/v2.html
--but historically (old versions)api/v2.hml
has a lot more views. Makes sense?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, I avoided merging versions since the content can be different, I think we should keep versions isolated. Another example is if a new api/v3.html is published, we don't want to list the results from the old api first.