使用elasticsearch-rest-high-level-client遇到NosuchMeth

背景

利用elasticsearch做全文搜索时,引入依赖,创建索引时报错。



程序如下:

IndexRequest req=new IndexRequest("test_index").id(50).source(map);

req.type("_doc");

IndexResponse res=esClient.index(req,RequestOptions.DEFAULT)

报错信息如下:


分享到:


相關文章: