# Advance suggestions

**URL:** <https://discuss.elastic.co/t/advance-suggestions/143014>\
**Category:** Elasticsearch\
**Created:** [August 4, 2018, 11:04am UTC](https://discuss.elastic.co/t/advance-suggestions/143014 "2018-08-04T11:04:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jacques\_du\_Plessis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jacques_du_plessis/32/35413_2.png) [@Jacques\_du\_Plessis](https://discuss.elastic.co/u/Jacques_du_Plessis)\
**Post date:** [August 4, 2018, 11:04am UTC](https://discuss.elastic.co/t/advance-suggestions/143014/1 "2018-08-04T11:04:38Z")

</div>

Assuming I have a company document, I implemented a complete suggest query soIif i search for the following "Barloworld" I might get the below results.

I am using the Prefix query to search for suggestions. Now from my understanding, I can add fuziness to my query but not slop. How can i change my query then to search for the following

"Barloworld Lesotho" then returning "Barloworld Equipment - Lesotho"

```
1 Barloworld Equipment Botswana (Pty) Ltd
2 Barloworld Equipment - Lesotho
3 Barloworld Equipment Malawi Limited
4 Barloworld Equipment - Swaziland
5 Barloworld Equipment, a division of Barloworld South Africa (PTY) LTD

GET company/_search
{
  "suggest": {
    "company-suggest": {
      "prefix": "sky",
      "completion": {
        "field": "companyName.completion",
        "contexts": {
          "companyGroupId": [
            "1595"
          ]
        },
        "fuzzy": {
          "fuzziness": 1
        }
      }
    }
  }
}
```

---

<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:** [September 1, 2018, 11:17am UTC](https://discuss.elastic.co/t/advance-suggestions/143014/2 "2018-09-01T11:17:49Z")

</div>

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