Rank exact matches higher than partial matches for paths and highlight partial matches
Created by: mike-r-mclaughlin
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.