# Changing the index on existing field

**URL:** https://discuss.elastic.co/t/changing-the-index-on-existing-field/15437
**Category:** Elasticsearch
**Created:** [January 27, 2014, 6:19pm UTC](https://discuss.elastic.co/t/changing-the-index-on-existing-field/15437 "2014-01-27T18:19:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Shash](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@Shash](https://discuss.elastic.co/u/Shash)
#### Post date: [January 27, 2014, 6:19pm UTC](https://discuss.elastic.co/t/changing-the-index-on-existing-field/15437/1 "2014-01-27T18:19:50Z")

</div>

I have imported bunch of records from mySQL using the river plugin. Now I want to change the index of email and logonname field to not\_analyzed

CURL -XPUT '[http://localhost:9200/dcio/users/\_mappings](http://localhost:9200/dcio/users/_mappings)' -d '  
{  
"users": {

```
        "properties" : {
            "logonName" : { "type" : "string", "index" : "not_analyzed" },
            "email" : { "type" : "string", "index" : "not_analyzed" }

        }
		
}

```

}'

I get an error following error

{  
"error": "MergeMappingException[Merge failed with failures {[mapper [email] has different index values, mapper [email] has different tokenize values, mapper [email] has different index\_analyzer, mapper [logonName] has different index values, mapper [logonName] has different tokenize values, mapper [logonName] has different index\_analyzer]}]",  
"status": 400  
}

How can I change this index? I'm using 1.0 RC1

---

<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: [July 6, 2017, 1:54am UTC](https://discuss.elastic.co/t/changing-the-index-on-existing-field/15437/2 "2017-07-06T01:54:32Z")

</div>


