笔记 · · 406 阅读

Yii2 rageframe使用es 7.*报错 解决

Yii2 rageframe使用es 7.*报错 解决

先上错误提示:

1.Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true.

    解决:在配置es的地方加上      'dslVersion' => 7,

2.ElasticSearch 7.4.2 Root mapping definition has unsupported parameters

    解决:在ElasticSearchCurd.php文件中更改代码如下
/**
 * @return array
 */
public static function mapping()
{
    return self::mapConfig();
    return [
        static::type() => self::mapConfig(),
    ];
}
成果:
0 评论

评论

还没有评论,来说两句吧