# How to change the field content of an index

**URL:** <https://discuss.elastic.co/t/how-to-change-the-field-content-of-an-index/114833>\
**Category:** Elasticsearch\
**Created:** [January 10, 2018, 10:37am UTC](https://discuss.elastic.co/t/how-to-change-the-field-content-of-an-index/114833 "2018-01-10T10:37:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrigui94](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@chrigui94](https://discuss.elastic.co/u/chrigui94)\
**Post date:** [January 10, 2018, 10:37am UTC](https://discuss.elastic.co/t/how-to-change-the-field-content-of-an-index/114833/1 "2018-01-10T10:37:02Z")

</div>

I have an index contains only one document with a field that contains an integer ("lns": 3) and I want to change it to ("lns": 5) ... I did :  
PUT logstash-2018.01.09/\_type/0  
{  
"lns":3  
}  
when I go to discover of kibana I found that this field has not been changed !!

How can I do to change the content of this field and see it in the discover of kibana ?

---

<div class="post-metadata">

**Author:** ![Fram\_Souza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fram_souza/32/24833_2.png) [@Fram\_Souza](https://discuss.elastic.co/u/Fram_Souza)\
**Post date:** [January 10, 2018, 3:34pm UTC](https://discuss.elastic.co/t/how-to-change-the-field-content-of-an-index/114833/2 "2018-01-10T15:34:15Z")

</div>

Hi @chrigui94

What's a ID of document with field "ins: 3" ?  
You can see executing: GET logstash-2018.01.09/\_search?pretty

You can execute this for change a content of field

PUT logstash-2018.01.09/(typeofindex)/(idofdocument)  
{  
"ins": 3  
}

Imagine it's not working because the ID in your query is wrong.

Remember! When you use PUT in same doc ID, a doc will be override.

---

<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:** [February 7, 2018, 3:34pm UTC](https://discuss.elastic.co/t/how-to-change-the-field-content-of-an-index/114833/3 "2018-02-07T15:34:39Z")

</div>

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