Deboost fuzzy matches in search
What does this MR do and why?
Adjusts our Elasticsearch queries to favor exact matches over fuzzy matches (https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-fuzzy-query.html).
Screenshots, screen recordings, or links to review app
Before | After |
---|---|
Review app:
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
-
Configure a local GitLab Docs environment: https://gitlab.com/gitlab-org/technical-writing-group/gitlab-docs-hugo/-/blob/main/doc/setup.md. -
Run searches for words that are similar to other common words on the site, like staging
orlinkedin
orscaling
. Results that match your terms exactly should rank above results that are fuzzy matches (different by only a few letters).
Merge request acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this merge request.
Edited by Sarah German