# Fuzziness not work with bool\_prefix multi\_match (search-as-you-type)

**URL:** <https://discuss.elastic.co/t/fuzziness-not-work-with-bool-prefix-multi-match-search-as-you-type/229602>\
**Category:** Elasticsearch\
**Created:** [April 24, 2020, 8:51am UTC](https://discuss.elastic.co/t/fuzziness-not-work-with-bool-prefix-multi-match-search-as-you-type/229602 "2020-04-24T08:51:28Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![andrewbien](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@andrewbien](https://discuss.elastic.co/u/andrewbien)\
**Post date:** [April 24, 2020, 9:29am UTC](https://discuss.elastic.co/t/fuzziness-not-work-with-bool-prefix-multi-match-search-as-you-type/229602/3 "2020-04-24T09:29:48Z")

</div>

HI @cbuescher  
Thanks for your quick reply, here is my example:

- Create a index with a field has search-as-you-type field type, and indexing a document:

```auto
PUT my_index
{
  "mappings": {
    "properties": {
      "my_field": {
        "type": "search_as_you_type"
      }
    }
  }
}

PUT my_index/_doc/1?refresh
{
  "my_field": "dress"
}

```

- After that I query with multi\_match bool\_prefix, with query term is "dross" (I assume that user when searing made mistake):

```auto
GET my_index/_search
{
  "query": {
    "multi_match": {
      "query": "dross",
      "type": "bool_prefix",
      "fields": [
        "my_field",
        "my_field._2gram",
        "my_field._3gram"
      ],
      "fuzziness": "AUTO"
    }
  }
}

```

The result is empty. But my expectation is that it should show the result is "dress" like this:

```auto
{
  "took" : 3,
  "timed_out" : false,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : {
      "value" : 1,
      "relation" : "eq"
    },
    "max_score" : 1.0,
    "hits" : [
      {
        "_index" : "my_index",
        "_type" : "_doc",
        "_id" : "1",
        "_score" : 1.0,
        "_source" : {
          "my_field" : "dress"
        }
      }
    ]
  }
}

```

---

_[View the full topic](https://discuss.elastic.co/t/fuzziness-not-work-with-bool-prefix-multi-match-search-as-you-type/229602)._
