Elasticsearch exception [type=mapper_parsing_exception, reason=Failed to parse mapping [properties]
RestClient创建索引库报错Elasticsearch exception [type=mapper_parsing_exception, reason=Failed to parse mapping [properties]
·
Elasticsearch exception [type=mapper_parsing_exception, reason=Failed to parse mapping [properties]: Root mapping definition has unsupported parameters:
我们在使用RestClient创建索引库时出现了这个错误。
可以检查一下 CreateIndexRequest 类型变量request 是否导入正确的包
有两个同名的包,我们选择:
import org.elasticsearch.client.indices.CreateIndexRequest;
创建的索引库DSL语法示例:
更多推荐
已为社区贡献1条内容
所有评论(0)