#552·typesense

Typo and synonyms

Author: jeanmatthieudCreated Mar 16, 2022Updated Sep 25, 2026
Labelstriage

Description

The min_len_1typo and min_len_2typo parameters are not only applied on the query, but also on the synonyms (even if they don't have the same length).

Steps to reproduce

  • Search term: "conduit"
  • Synonyms: "SSF", "conduit"
  • Document field: "Panneau OSB"
  • min_len_1typo and min_len_2typo as default (3 and 7)

Expected Behavior

The document is not retrieved, as the keywords don't match.

Actual Behavior

The document is retrieved:

  • conduit has 7 letters; with two typo allowed;
  • conduit is a synonym of SSF
  • SSF with 2 typos => OSB
  • SSF is a synonym of OSB
  • Document "match"

Metadata

Typsense Version: 0.23.0-rc20 OS: Debian