Skip to content

New search is less helpful than old search for complete matches of substrings #41709

Discussion options

You must be logged in to vote

Thanks for the feedback @jsoref. I like the idea of indicating exact matches better. We could also use it in our ranking.

For a technical explanation, the reason why the old search finds "roduct" so well is that it tokenizes whole words and some programming-related separators (like -, _, and case changes such as productManager turning into product, manager). The new search supports substring matches, which is why you're getting so many additional results. One way to help is to be more precise in what you're searching for. For example, this regex search for /\s+roduct\s+/ finds only the result you were looking for.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@jsoref
Comment options

@look
Comment options

@jsoref
Comment options

@look
Comment options

@jsoref
Comment options

Answer selected by look
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Search and Navigation Search, navigate, and understand code on GitHub Product Feedback
3 participants