Upgrading ES from 2.3 to 5.6 - Java


#1

I'm trying to update a Java service using the elasticsearch library.
Upgrading from
"org.elasticsearch" % "elasticsearch" % "2.3.2",
to
"org.elasticsearch" % "elasticsearch" % "5.6.3",

The compiler is complaining about two functions:
TransportClient.builder() ,
Client.addFields (stringed together with .setQuery().setSize().addScriptFields().addFields("_source") ) ,//We had to add _source back because addScriptFields removed _source from the result.

I've tried searching through the docs, but have not figured out what I need to do to make things work again.. Any advice is appreciated.


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.