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

Rank exact matches higher than partial matches for paths and highlight partial matches #31867

Open
mike-r-mclaughlin opened this issue Feb 25, 2022 · 2 comments
Labels
feedback This sends the issue to the #feedback slack channel ranking team/search-platform Issues owned by the search platform team

Comments

@mike-r-mclaughlin
Copy link
Contributor

Feedback

When using the file:<filename> query filter, partial matches in the path are ranked higher than exact name match. Additionally, it would be valuable to highlight the matched portion of a file or directory name to make it easier to see why a result was included.

Example

search query: lang:java file:ciab
In this example, there is directory named ciab in a Perforce depot. However it is not visible until you scroll down to roughly the second page because partial matches from GitHub repositories that have more stars appear to be ranked higher.

Also, because the term ciab can show up in the middle of a file name (Associable, for example) it makes it difficult to see why a result is included when scanning. If it's not obvious, the user starts to question if the results are trustworthy. So, an additional suggestion is to highlight the partial match in the path.

Customer

Customer

@mike-r-mclaughlin mike-r-mclaughlin added team/search-platform Issues owned by the search platform team feedback This sends the issue to the #feedback slack channel labels Feb 25, 2022
@github-actions
Copy link
Contributor

Heads up @jjeffwarner - the "team/search-core" label was applied to this issue.

@stefanhengl stefanhengl self-assigned this Jun 3, 2022
@keegancsmith
Copy link
Member

@mike-r-mclaughlin not a true fix, but the admin should specify a experimentalFeatures.ranking.repoScore to boost the perforce depot's results above githubs. I assume in general they want a big perforce repo to be ranked higher than github.

@stefanhengl stefanhengl removed their assignment Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback This sends the issue to the #feedback slack channel ranking team/search-platform Issues owned by the search platform team
Projects
Development

No branches or pull requests

3 participants