# Updating category in context suggester yields inconsistent results

**URL:** <https://discuss.elastic.co/t/updating-category-in-context-suggester-yields-inconsistent-results/70723>\
**Category:** Elasticsearch\
**Created:** [January 5, 2017, 7:11pm UTC](https://discuss.elastic.co/t/updating-category-in-context-suggester-yields-inconsistent-results/70723 "2017-01-05T19:11:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdesai](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@pdesai](https://discuss.elastic.co/u/pdesai)\
**Post date:** [January 5, 2017, 7:11pm UTC](https://discuss.elastic.co/t/updating-category-in-context-suggester-yields-inconsistent-results/70723/1 "2017-01-05T19:11:29Z")

</div>

I need to update category context of my suggest field (not to be confused with input). When i do that, suggestions reflects the changes for some profile and it doesn't for some profile even though when i view the actual data, context category have been updated.

Here is my mapping

```
"suggest" : {
  "type" : "completion",
  "context" : {
    "corporation" : {
      "type" : "category",
       "default" : 0
    },
    "classification" : {
      "type" : "category",
      "default": "all"
    },
    "tag" : {
      "type" : "category",
      "default" : "all"
    } 
  }
}

```

Also i'm using v2.3.3 since that is the one AWS supports. Any help is appreciated. Thanks!

---

<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:** [February 2, 2017, 7:11pm UTC](https://discuss.elastic.co/t/updating-category-in-context-suggester-yields-inconsistent-results/70723/2 "2017-02-02T19:11:32Z")

</div>

Closed on February 2, 2017, 7:11pm UTC

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