org.elasticsearch.action.index.IndexRequest.ifSeqNo

java.lang.NoSuchMethodError: org.elasticsearch.action.index.IndexRequest.ifSeqNo()J

	at org.elasticsearch.client.RequestConverters.index(RequestConverters.java:329)
	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1429)
	at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1403)
	at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1373)
	at org.elasticsearch.client.RestHighLevelClient.index(RestHighLevelClient.java:821)
	at com.elastic.search.SearchApplicationTests.contextLoads(SearchApplicationTests.java:56)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)

使用elasticsearch-rest-high-level-client 7.1.1版本遇到的问题,
在GitHub上发了个issues

这个在官方文档没有说清楚,
pom中加入依赖


   org.elasticsearch.client
   elasticsearch-rest-high-level-client
   7.1.1

还需要加

    
        
            org.elasticsearch
            elasticsearch
            7.1.1
        

个人站点 

你可能感兴趣的:(elasticsearch)