yiiframework.com
yiiframework.com copied to clipboard
Elastic mapping conflict
Api rebuild is failing because mapping conflict.
./yii search/rebuild api
Exception 'yii\elasticsearch\Exception' with message 'Elasticsearch request failed with code 400. Response body:
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Mapper for [content] conflicts with existing mapping in other types:\n[mapper [content] is used by multiple types. Set update_all_types to true to update [fielddata] across all types.]"}],"type":"illegal_argument_exception","reason":"Mapper for [content] conflicts with existing mapping in other types:\n[mapper [content] is used by multiple types. Set update_all_types to true to update [fielddata] across all types.]"},"status":400}'
are you trying that on existing index or on a fresh install? Which version of elasticsearch are you using?
Fresh installation of Elastic 5.6.9