# Search for product using fuzzy search

**URL:** <https://discuss.elastic.co/t/search-for-product-using-fuzzy-search/77404>\
**Category:** Elasticsearch\
**Created:** [March 4, 2017, 11:33pm UTC](https://discuss.elastic.co/t/search-for-product-using-fuzzy-search/77404 "2017-03-04T23:33:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tur-ing](https://avatars.discourse-cdn.com/v4/letter/t/7cd45c/32.png) [@tur-ing](https://discuss.elastic.co/u/tur-ing)\
**Post date:** [March 4, 2017, 11:33pm UTC](https://discuss.elastic.co/t/search-for-product-using-fuzzy-search/77404/1 "2017-03-04T23:33:35Z")

</div>

I have an index with +10k documents. If I use Kibana I can find every document without any issue.

Now I do perform the following query searching for "Golden":

```
GET /_search
{
    "query": {
        "fuzzy" : {
            "name" : {
                    "value" : "Golden",
                    "boost" : 1.0,
                    "fuzziness" : 3,
                    "prefix_length" : 0,
                    "max_expansions": 100
            }
        }
    }
}

```

It is returing a variety of products, also some products with the name "Golden Toast" which I want to search in the next step. But if I change the value from "Golden" to "Golden Toast", I do not get any results:

```
GET /_search
{
    "query": {
        "fuzzy" : {
            "name" : {
                    "value" : "Golden Toast",
                    "boost" : 1.0,
                    "fuzziness" : 3,
                    "prefix_length" : 0,
                    "max_expansions": 100
            }
        }
    }
}

```

That's the result if I am searching for "Golden Toast":

```
{
  "took": 3,
  "timed_out": false,
  "_shards": {
    "total": 13,
    "successful": 13,
    "failed": 0
  },
  "hits": {
    "total": 0,
    "max_score": null,
    "hits": []
  }
}

```

Again: if I search for "Golden", I get a bunch of products with the name value "Golden Toast" back.

Where is my mistake?

Thank you and best,

Marcel

---

<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 1, 2017, 11:33pm UTC](https://discuss.elastic.co/t/search-for-product-using-fuzzy-search/77404/2 "2017-04-01T23:33:48Z")

</div>

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