# Suggestion field not updated

**URL:** <https://discuss.elastic.co/t/suggestion-field-not-updated/211245>\
**Category:** Elasticsearch\
**Created:** [December 10, 2019, 8:32am UTC](https://discuss.elastic.co/t/suggestion-field-not-updated/211245 "2019-12-10T08:32:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jenson.mak](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@jenson.mak](https://discuss.elastic.co/u/jenson.mak)\
**Post date:** [December 10, 2019, 8:32am UTC](https://discuss.elastic.co/t/suggestion-field-not-updated/211245/1 "2019-12-10T08:32:55Z")

</div>

I have a problem where the elastic search is providing autocomplete suggestion for value which I already remove in the index field. For example, previously I have field ARR:. TEST in talents.name field. I have updated the record and ARR:. TEST is no longer in talents.name. However, when I query \_suggest,

`{"complete" :{ "text" : "ARR:. TEST", "completion" : { "field" : "talents_suggest", "size" : 20 }}}`

the record still appear as below result.

```
{

* "_shards": {
  * "total": 5,
  * "successful": 5,
  * "failed": 0},
* "complete": [
  * {
    * "text": "ARR:. TEST",
    * "offset": 0,
    * "length": 17,
    * "options": [
      * {
        * "text": "ARR.-TEST",
        * "score": 3}
, * {
        * "text": "ARR.: TEST",
        * "score": 3}
, * {
        * "text": "ARR: TEST",
        * "score": 3}]}]

} 

```

I tried query talents\_suggest field directly, and there's result returned, but I can't see talents\_suggest field in the json returned. How do I verify, that ARR.: TEST is still existing in talents\_suggest or not ?

{  
"query": {  
"match": {  
"talents\_suggest": {  
"query": "ARR.: TEST"  
}  
}  
}  
}

I am using elastic search v1.4.

The mapping I used is

```
 "talents": {
            "type" : "nested",
            "properties": {
                "type": {
                    "type": "string", 
                    "index" : "not_analyzed"
                },
                "name": {
                    "type": "string",
                    "analyzer": "char_analyzer",
                    "copy_to": ["common_suggest", "talents_suggest"],
                    "fields": {
                        "raw": { 
                            "type": "string", 
                            "analyzer": "case_insensitive_sort"
                        }
                    }
                }
            }
    	},
```

---

<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:** [January 7, 2020, 8:33am UTC](https://discuss.elastic.co/t/suggestion-field-not-updated/211245/2 "2020-01-07T08:33:00Z")

</div>

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