Problem with index_name while upgrading

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
}
}
}
}
}
}

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