cursorless icon indicating copy to clipboard operation
cursorless copied to clipboard

Tweak docs search ranking

Open pokey opened this issue 3 years ago • 0 comments

Tweaks docs search so that we

  • prefer to search within the same lvl0 (eg "For users" vs "For contributors"), and
  • prefer docs that are not api docs, as these are a bit noisy.

Note that this PR "swizzles" a Docusaurus core class, because there doesn't seem to be any other way to create context-aware search rankings. For the actual change we made to the docusaurus core class, see 5a2a365

This PR also captures the crawler / index settings that live in the Algolia console today. See #917 for how we plan to make the files in source control the source of truth in the future. You can see the actual changes that were made in the search console to improve search ranking in b37cd16

To try out the new search rankings, pop up the search widget in the deploy preview at https://deploy-preview-915--cursorless.netlify.app/docs/

Fixes #644

Before

164753938-cde8c7e0-2db0-4e30-b68b-3a531345482d

After

image

Checklist

pokey avatar Aug 16 '22 16:08 pokey