Add Completion Suggester and reindex, no data

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)

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