# Keyword and Completion of same text mapping

**URL:** https://discuss.elastic.co/t/keyword-and-completion-of-same-text-mapping/112943
**Category:** Elasticsearch
**Created:** [December 22, 2017, 5:42am UTC](https://discuss.elastic.co/t/keyword-and-completion-of-same-text-mapping/112943 "2017-12-22T05:42:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Shekhar\_Pandey](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Shekhar\_Pandey](https://discuss.elastic.co/u/Shekhar_Pandey)
#### Post date: [December 22, 2017, 5:42am UTC](https://discuss.elastic.co/t/keyword-and-completion-of-same-text-mapping/112943/1 "2017-12-22T05:42:38Z")

</div>

Hello..

Kindly anybody can tell this mapping will work...or not  
PUT redmi  
{  
"mappings": {  
"products": {  
"properties": {  
"title": {  
"type": "keyword",  
"fields": {  
"keyword": {  
"type": "completion"  
}  
}  
},  
"weight": {  
"type": "integer"  
}  
}  
}  
}  
}

Actually I am putting data title from another index to this above another index...  
So can anybody suggest this will work...saving as a keyword but searching with completion.

Thank you.

---

<div class="post-metadata">

### Author: ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)
#### Post date: [December 25, 2017, 7:21pm UTC](https://discuss.elastic.co/t/keyword-and-completion-of-same-text-mapping/112943/2 "2017-12-25T19:21:55Z")

</div>

If you plan to use completion suggester on field `title.keyword`, yes it will work.

---

<div class="post-metadata">

### Author: ![Shekhar\_Pandey](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Shekhar\_Pandey](https://discuss.elastic.co/u/Shekhar_Pandey)
#### Post date: [January 3, 2018, 7:33am UTC](https://discuss.elastic.co/t/keyword-and-completion-of-same-text-mapping/112943/3 "2018-01-03T07:33:28Z")

</div>

Thanks

---

<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 31, 2018, 7:33am UTC](https://discuss.elastic.co/t/keyword-and-completion-of-same-text-mapping/112943/4 "2018-01-31T07:33:34Z")

</div>

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