Skip to content

Add support to the typo tolerance customization #179

@brunoocasali

Description

@brunoocasali

⚠️ This issue is generated, it means the examples and the namings do not necessarily correspond to the language of this repository.
Also, if you are a maintainer, feel free to add any clarification and instruction about this issue.

Related to:


⚠️ The meilisearch/meilisearch-php#312 should be finished before starting this issue!

Add a typo_tolerance index settings resource to manage customization of the typo tolerance feature at the index level.

# meili_search.yaml
meili_search:
  indices:
    - name: posts
      class: App\Entity\Post
      settings:
        # attributesForFaceting: ['genres', 'publishedAt']
        typoTolerance: 
          enabled: true
          disableOnAttributes: ['title']
          disableOnWords: ['york']
          minWordSizeForTypos: 
            oneTypo: 5
            twoTypos: 9

More information about what the typo-tolerance field does could be checked in the spec.

You could check the other customization methods for reference like: synonyms.

TODO:

  • Add the typo_tolerance configuration
  • Add tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions