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

**URL:** <https://discuss.elastic.co/t/same-field-name-but-different-paths-in-the-same-index-how-do-we-have-one-alias-is-it-possible/212251>\
**Category:** Elasticsearch\
**Created:** [December 18, 2019, 3:03am UTC](https://discuss.elastic.co/t/same-field-name-but-different-paths-in-the-same-index-how-do-we-have-one-alias-is-it-possible/212251 "2019-12-18T03:03:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmozhi](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@mmozhi](https://discuss.elastic.co/u/mmozhi)\
**Post date:** [December 18, 2019, 3:03am UTC](https://discuss.elastic.co/t/same-field-name-but-different-paths-in-the-same-index-how-do-we-have-one-alias-is-it-possible/212251/1 "2019-12-18T03:03:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 15, 2020, 3:03am UTC](https://discuss.elastic.co/t/same-field-name-but-different-paths-in-the-same-index-how-do-we-have-one-alias-is-it-possible/212251/2 "2020-01-15T03:03:16Z")

</div>

Closed on January 15, 2020, 3:03am UTC

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