# How to fuzzy search a subset of the result?

**URL:** <https://discuss.elastic.co/t/how-to-fuzzy-search-a-subset-of-the-result/268164>\
**Category:** Elasticsearch\
**Created:** [March 24, 2021, 4:34am UTC](https://discuss.elastic.co/t/how-to-fuzzy-search-a-subset-of-the-result/268164 "2021-03-24T04:34:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nshimiye.tech](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nshimiye.tech/32/85999_2.png) [@nshimiye.tech](https://discuss.elastic.co/u/nshimiye.tech)\
**Post date:** [March 24, 2021, 4:34am UTC](https://discuss.elastic.co/t/how-to-fuzzy-search-a-subset-of-the-result/268164/1 "2021-03-24T04:34:54Z")

</div>

I have a need to search through collapsed results, is this possible?  
Something like this

```auto
{
  "query": {
    "match_all": {}
  },
  "sort": { "createdTime": "desc" },
  "collapse": {
    "field": "name.raw",
    "query":{
      "match": {
        "name": {
          "query": "John",
          "fuzziness": "AUTO"
        }
      }
    },
    "size": 6
  }
}

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 21, 2021, 4:34am UTC](https://discuss.elastic.co/t/how-to-fuzzy-search-a-subset-of-the-result/268164/2 "2021-04-21T04:34:54Z")

</div>

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