Fuzzy search

I have
[
{title:"This is title",desc:"This is desc"},
{title:"I am second title",desc:"I am second title"},
]

My requirement was
To show result when I search "secott" ( from second object)
To show result when I search "secott tit" ( from second object)
To show result when I search "secott titpp" ( from second object)

I tried from fuzzy search but could not achieve the result.
Please help.

Hi @subodh_dhukuchhu

Read about Multi Match with fuzziness. This can be a option.

{
  "query": {
    "multi_match": {
      "query": "secott",
      "fields": [
        "title",
        "desc"
      ],
      "fuzziness": 2
    }
  }
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.