# Change mapping from text to match\_only\_text

**URL:** <https://discuss.elastic.co/t/change-mapping-from-text-to-match-only-text/352857>\
**Category:** Elastic Observability\
**Created:** [February 8, 2024, 12:11pm UTC](https://discuss.elastic.co/t/change-mapping-from-text-to-match-only-text/352857 "2024-02-08T12:11:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vijayakumar\_Kannan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vijayakumar_kannan/32/34873_2.png) [@Vijayakumar\_Kannan](https://discuss.elastic.co/u/Vijayakumar_Kannan)\
**Post date:** [February 8, 2024, 12:11pm UTC](https://discuss.elastic.co/t/change-mapping-from-text-to-match-only-text/352857/1 "2024-02-08T12:11:39Z")

</div>

Existing indices having field `app.message` in text field type. now it has to be changed from "text" to "match\_only\_text" for new records. Will it impact any of the searches?

---

<div class="post-metadata">

**Author:** ![ashishtiwari1993](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashishtiwari1993/32/135241_2.png) [@ashishtiwari1993](https://discuss.elastic.co/u/ashishtiwari1993)\
**Post date:** [February 9, 2024, 8:25am UTC](https://discuss.elastic.co/t/change-mapping-from-text-to-match-only-text/352857/3 "2024-02-09T08:25:25Z")

</div>

Hi Vijaya, Welcome to the Elastic community.

It will not allow to change the type of existing field. However you can add new filed with type `match_only_text`.

OR

You can create new index with mapping `match_only_text` and reindex your data.
