Query time concatenation

Given a doc bowing is great and a query bow ing

How can I make bow ing match with the indexed doc?

This is what I am using at this moment and of course it is not working as expected.

{
  "query": {
    "bool": {
      "should": [
        {
          "multi_match": {
            "tie_breaker": 0.3,
            "query": "bow ing",
            "minimum_should_match": "2<75%",
            "fields": [
              "somefield",
            ]
          }
        }
      ]
    },
    "min_score": 1
  }
}

You could maybe try to use a ngram based analyzer with a min and max size of 3 (for your example), but I'm not sure it will exactly fit with your full use case.

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