# Problem with index\_name while upgrading

**URL:** <https://discuss.elastic.co/t/problem-with-index-name-while-upgrading/77766>\
**Category:** Elasticsearch\
**Created:** [March 8, 2017, 6:42am UTC](https://discuss.elastic.co/t/problem-with-index-name-while-upgrading/77766 "2017-03-08T06:42:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akhilesh\_Anb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akhilesh_anb/32/4343_2.png) [@Akhilesh\_Anb](https://discuss.elastic.co/u/Akhilesh_Anb)\
**Post date:** [March 8, 2017, 6:42am UTC](https://discuss.elastic.co/t/problem-with-index-name-while-upgrading/77766/1 "2017-03-08T06:42:57Z")

</div>

HI,

we upgraded recently from 1.x to 2.x. we are using mapper-attachment plugin for the index we are using in 2.x which is having index\_name field.  
While upgrading to 5.x, we are unable to reindex the index.  
This index was created in 1.x  
Can anyone help me how to reindex the index.

Error we are getting:

> PUT http://\<ip:9200/documents-2.4.4 failed with [400] Mapping definition for [fields] has unsupported parameters: [encoded\_attachment.content : {type=string, index\_name=encoded\_attachment}]: {}

Mapping:

> {  
> "documents": {  
> "mappings": {  
> "document": {  
> "\_timestamp": {},  
> "properties": {  
> "attachable\_id": {  
> "type": "integer",  
> "index": "no"  
> },  
> "attachable\_name": {  
> "type": "string",  
> "index": "no"  
> },  
> "attachable\_type": {  
> "type": "string",  
> "index": "no"  
> },  
> "document\_target": {  
> "properties": {  
> "id": {  
> "type": "integer",  
> "index": "no"  
> },  
> "name": {  
> "type": "string"  
> },  
> "readable\_user\_ids": {  
> "type": "integer"  
> }  
> }  
> },  
> "document\_target\_id": {  
> "type": "integer",  
> "index": "no"  
> },  
> "episode\_id": {  
> "type": "integer",  
> "index": "no"  
> },  
> "episode\_number": {  
> "type": "string"  
> },  
> "episode\_title": {  
> "type": "string"  
> },  
> "id": {  
> "type": "integer",  
> "index": "no"  
> },  
> "level": {  
> "type": "string",  
> "index": "no"  
> },  
> "most\_recent\_document\_version": {  
> "properties": {  
> "document\_id": {  
> "type": "integer",  
> "index": "no"  
> },  
> "encoded\_attachment": {  
> "type": "attachment",  
> "path": "full",  
> "fields": {  
> "encoded\_attachment.content": {  
> "type": "string",  
> "index\_name": "encoded\_attachment"  
> },  
> "author": {  
> "type": "string"  
> },  
> "title": {  
> "type": "string"  
> },  
> "name": {  
> "type": "string"  
> },  
> "date": {  
> "type": "date",  
> "format": "epoch\_millis||dateOptionalTime"  
> },  
> "keywords": {  
> "type": "string"  
> },  
> "content\_type": {  
> "type": "string"  
> },  
> "content\_length": {  
> "type": "integer"  
> },  
> "language": {  
> "type": "string"  
> }  
> }  
> },  
> "file\_upload": {  
> "properties": {  
> "file": {  
> "properties": {  
> "url": {  
> "type": "string"  
> }  
> }  
> },  
> "id": {  
> "type": "integer",  
> "index": "no"  
> }  
> }  
> },  
> "file\_upload\_id": {  
> "type": "long"  
> },  
> "id": {  
> "type": "integer",  
> "index": "no"  
> },  
> "name": {  
> "type": "string"  
> },  
> "updated\_at": {  
> "type": "date",  
> "index": "no",  
> "format": "epoch\_millis||dateOptionalTime"  
> }  
> }  
> },  
> "season\_id": {  
> "type": "integer",  
> "index": "no"  
> },  
> "season\_name": {  
> "type": "string",  
> "index": "no"  
> },  
> "show\_id": {  
> "type": "integer",  
> "include\_in\_all": false  
> }  
> }  
> }  
> }  
> }  
> }

---

<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:** [April 5, 2017, 6:43am UTC](https://discuss.elastic.co/t/problem-with-index-name-while-upgrading/77766/2 "2017-04-05T06:43:07Z")

</div>

Closed on April 5, 2017, 6:43am UTC

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