How to change analyzer after index database?


(Ngọc Phạm) #1

sorry, im newbie and i have one question:
i created one index like this
curl -XPUT 'http://localhost:9200/users/user/1' -d '{
"user" : "test1",
"password" : "test2"
}'
And i have something like this in mapping :smile:
"user": {
"properties": {
"password": {
"type": "string"
},
"user": {
"type": "string"
}
}
}

My question is : Have anyway change analyzer after created index ? Like i want change default analyzer to one analyzer i have.
"user": {
"type": "string",
"analyzer" :"xxx";
}

Thanks for your help!


(David Pilato) #2

You need to reindex.


(system) #3