HI guys,
I am new to elasticSearch and i am trying to do something.
after i insert data and index it, can i somehow change the analyzer of specific property?
for example this is the response of:
GET company-node/_mapping
{
"company-node": {
"mappings": {
"Organization": {
"properties": {
"country": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"description": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"fullDescription": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
}
}
}
i try to add english analyzer, but i get.
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Mapper for [description] conflicts with existing mapping in other types:\n[mapper [description] has different [analyzer]]"
}
],
"type": "illegal_argument_exception",
"reason": "Mapper for [description] conflicts with existing mapping in other types:\n[mapper [description] has different [analyzer]]"
},
"status": 400
}
this is what i try to do:
PUT company-node/_mapping/Organization
{
"properties": {
"description": {
"type": "text",
"analyzer": "english"
}
}
}