-
-
Notifications
You must be signed in to change notification settings - Fork 187
Better search #695
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
Better search #695
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Maybe the docs should have support for a new pragma that contains a list of keywords which rank this doc higher.
|
We just need to sort the blocks within the groups — previously we were just sorting the groups. So if you search for Now fixed |
Better, but still doesn't fix
Happy to merge this PR cause it's much better than what we have but I'm saying we're far from done, and a list of keywords might be needed. |
This implements a better search ranking algorithm. If you're on
/tutorial
and you search for, say, 'transitions', the top results will be from the tutorial. The same search if you're on/docs
will prioritise docs results. But if you search for something that yields an exact title match, likesv add
, then that will float to the top regardless of where you are.The weights are magic numbers and there may be better ones, but these ones seem to work pretty well.