I've upgraded Elastic search from "2.3.4" to "7.10.0".
Added below dependencies under my build.sbt:
"org.elasticsearch.client" % "elasticsearch-rest-client" % "7.10.0",
"org.elasticsearch.client" % "elasticsearch-rest-high-level-client" % "7.10.0",
"org.elasticsearch" % "elasticsearch" % "7.10.0"
Getting compile time issue for TotalHits
while fetching it through SearchResponse.getHits().getTotalHits()
Can someone help me out how to resolve this? I thought adding above three dependencies would be enough!
After some R&D, resolved above issue by adding below dependency:
"org.apache.lucene" % "lucene-core" % "8.9.0"