yiisoft-contrib / yiiframework.com

Source code for official Yii website
http://yiiframework.com/
Other
261 stars 100 forks source link

Elastic mapping conflict #358

Open Eseperio opened 6 years ago

Eseperio commented 6 years ago

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}'
cebe commented 6 years ago

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

Eseperio commented 6 years ago

Fresh installation of Elastic 5.6.9