Elasticsearch exception [type=mapper_parsing_exception, reason=Failed to parse mapping [properties]: Root mapping definition has unsupported parameters:
?文章來源地址http://www.zghlxwxcb.cn/news/detail-505964.html
我們在使用RestClient創(chuàng)建索引庫時(shí)出現(xiàn)了這個(gè)錯(cuò)誤。
可以檢查一下 CreateIndexRequest 類型變量request 是否導(dǎo)入正確的包
有兩個(gè)同名的包,我們選擇:
import org.elasticsearch.client.indices.CreateIndexRequest;
創(chuàng)建的索引庫DSL語法示例:
文章來源:http://www.zghlxwxcb.cn/news/detail-505964.html
?
到了這里,關(guān)于Elasticsearch exception [type=mapper_parsing_exception, reason=Failed to parse mapping [properties]的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!