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)