Przykład klienta transportu Elasticsearch Transport

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