# Add Completion Suggester and reindex, no data

**URL:** <https://discuss.elastic.co/t/add-completion-suggester-and-reindex-no-data/217763>\
**Category:** Elasticsearch\
**Created:** [February 4, 2020, 10:07am UTC](https://discuss.elastic.co/t/add-completion-suggester-and-reindex-no-data/217763 "2020-02-04T10:07:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lina7906](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lina7906/32/47870_2.png) [@Lina7906](https://discuss.elastic.co/u/Lina7906)\
**Post date:** [February 4, 2020, 10:07am UTC](https://discuss.elastic.co/t/add-completion-suggester-and-reindex-no-data/217763/1 "2020-02-04T10:07:46Z")

</div>

I have a mapping like this, and i have already added data and indexed.  
{"mappints":{  
"properties": {  
"type": "object",  
"properties": {  
"occupation": {  
"type": "text"  
},  
"skill": {  
"type": "text",  
}  
}}

And right now I want to add suggester like this:

{"mappints":{  
"properties": {  
"type": "object",  
"properties": {  
"occupation": {  
"type": "text"  
},  
"skill": {  
"type": "text",  
},  
"suggest": {  
"type": "completion"  
}  
}}

And the I re indexed all the data, but suggest have no any data, I know the official docs gave info, that you need to populate your data, but when I add the suggest into attribute, like this.  
{"mappints":{  
"properties": {  
"type": "object",  
"properties": {  
"occupation": {  
"type": "text",  
"fields": {  
"raw": {  
"type": "keyword",  
"ignore\_above": 256  
},  
"suggest": {  
"type": "completion"  
}  
},  
"skill": {  
"type": "text",  
"fields": {  
"raw": {  
"type": "keyword",  
"ignore\_above": 256  
},  
"suggest": {  
"type": "completion"  
}  
}  
}}

like this, and indexed, I do not populate any data, you could search data inside that?

Can you explain why?

what is the different between this two???  
(coz official docment is not clear)

---

<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:** [March 3, 2020, 10:07am UTC](https://discuss.elastic.co/t/add-completion-suggester-and-reindex-no-data/217763/2 "2020-03-03T10:07:49Z")

</div>

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