yiiframework.com icon indicating copy to clipboard operation
yiiframework.com copied to clipboard

Elastic mapping conflict

Open Eseperio opened this issue 6 years ago • 2 comments

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

Eseperio avatar Jun 02 '18 21:06 Eseperio

are you trying that on existing index or on a fresh install? Which version of elasticsearch are you using?

cebe avatar Jun 04 '18 09:06 cebe

Fresh installation of Elastic 5.6.9

Eseperio avatar Jun 04 '18 12:06 Eseperio