We have run mapping on Elasticsearch 1.4.0 which is elasticsearch 2.3.3 compatible(run on 2.3.3 with no issue).
While copying mapping from elasticsearch 1.4.0 to 2.3.3 it shows error which is due to index_analyzer instead of analyzer. And also while running migration plugin it show no error.
{"root_cause":[{"type":"mapper_parsing_exception","reason":"analyzer on field [contains] must be set when search_analyzer is set"}],"type":"mapper_parsing_exception","reason":"analyzer on field [contains] must be set when search_analyzer is set"}
Note:While running mapping for 2.3.3 analyzer become index_analyzer due to which above issue occur.
How can we avoid this issue while copying mapping from 1.4.0 to 2.3.3?