I want to use the analyzer differently depending on the value of another field in single field.
As the code below
"mappings": {
"sample_type": {
"properties":{
"my_text": {
"if=language:en-US"{
"type": "text",
"analyzer": "English"
},
"else"{
"type": "text",
"analyzer": "Spanish"
}
},
"_default_": {
"type": "keyword"
}
}
}
}
What should I do?