Same field name but different paths in the same index. How do we have one alias? Is it possible?

PUT testlabel
{
"mappings": {
"properties": {
"taskUser" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"listOfAssignedUsers" : {
"properties" : {
"AssignedUser" : {
"properties" : {
"taskUser" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
}
}
}
}
},
"tuser": {
"type": "alias",
"path": "taskUser"
}
}
}
}

Unable to give multiple paths for one alias name

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.