settings.put("cluster.name", "elasticsearch").build() client = new TransportClient(settings) client = new TransportClient().addTransportAddress(new InetSocketTransportAddress(grailsApplication.config.elasticsearch.host, 9300))