Hi guys,
I'm using spring boot 2.1.1 connect to Elasticsearch 7.3.4 (elastic was run on docker).
Spring application startup and connected to the Elasticsearch but when I try to search may document on Elastic I got the error:
org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: org.elasticsearch.search.SearchHits.getTotalHits()J
Is it possible, that you are using a newer/older Elasticsearch dependency, that Spring Boot is using/requiring? Are you overriding dependencies somewhere?
Yes I already tried with version 7.3.4 in my pom.xml file before I bring my problem to here.
But I still got error.
Currently I switch to Elasticsearch 6.6.2 and anything work great.
Of course I also have to specify elastic version in pom.xml.
Later on I will try with version 7.3.4 again.
Anyway thanks for your answer.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.