Hi,
I wanna apply comma tokenizer to Product field for aggregation according comma separated values.I tried below code:
PUT /cap_log/_mapping/prodtype
{
"properties" : {
"Product" : {
"type" : "text",
"analyzer" : "commapattern",
"fielddata": true
}
}
}
but it is showing error like this:
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Mapper for [Product] conflicts with existing mapping in other types:\n[mapper [Product] has different [analyzer]]"
}
],
"type": "illegal_argument_exception",
"reason": "Mapper for [Product] conflicts with existing mapping in other types:\n[mapper [Product] has different [analyzer]]"
},
"status": 400
}
I updated code like:
PUT /cap_log/_mapping/my_type?update_all_types
{
"properties": {
"Product": {
"type": "text",
"analyzer": "commapattern"
}
}
}
but still showing same error.Please give solution.or any alternate way to do it.