Hi all,
I am trying to use Groovy Client through Grails application, and getting the error below, any help would be appreciated. if using without closure it works (the Java client way).
Grails version - 2.3.11
ES version - 1.4
Groovy Client version - 1.4.4
Code snippet -
import org.elasticsearch.client.transport.TransportClient
import org.elasticsearch.common.transport.InetSocketTransportAddress
import org.elasticsearch.common.settings.ImmutableSettings
import org.elasticsearch.action.search.SearchResponse
TransportClient client = new TransportClient(ImmutableSettings.settingsBuilder { cluster { name = "elasticsearch" } client { transport { sniff = true } } });
Error -
No signature of method: static org.elasticsearch.common.settings.ImmutableSettings.settingsBuilder() is applicable for argument types