Elasticsearch exception [type=mapper_parsing_exception, reason=Failed to parse mapping [properties]: Root mapping definition has unsupported parameters:
文章来源地址https://www.toymoban.com/news/detail-505964.html
我们在使用RestClient创建索引库时出现了这个错误。
可以检查一下 CreateIndexRequest 类型变量request 是否导入正确的包
有两个同名的包,我们选择:
import org.elasticsearch.client.indices.CreateIndexRequest;
创建的索引库DSL语法示例:
文章来源:https://www.toymoban.com/news/detail-505964.html
到了这里,关于Elasticsearch exception [type=mapper_parsing_exception, reason=Failed to parse mapping [properties]的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!