Skip to content

Deboost fuzzy matches in search

Sarah German requested to merge elastic-deboost-fuzzies into main

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).

See #138 (comment 2159800669)

Screenshots, screen recordings, or links to review app

Before After
image image
image image

Review app:

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Configure a local GitLab Docs environment: https://gitlab.com/gitlab-org/technical-writing-group/gitlab-docs-hugo/-/blob/main/doc/setup.md.
  2. Run searches for words that are similar to other common words on the site, like staging or linkedin or scaling. 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.

Edited by Sarah German

Merge request reports

Loading