Thanks Alexander ... finally worked it out...
I am now getting a "No Node available" exception and can't seem to work
around it. Any ideas on how to tackle it ... ?
Here's how I set up the transport client
TransportClient transportClient = new TransportClient(settingsBuilder())
transportClient.addTransportAddress(new InetSocketTransportAddress(, 9300)
client = new GClient(transportClient)
private def settingsBuilder() {
def transportSettings = ImmutableSettings.settingsBuilder()
transportSettings.put("client.transport.ping_timeout", "60")
transportSettings.put("client.transport.ignore_cluster_name", true)
// Use the "sniff" feature of transport client ?
transportSettings.put("client.transport.sniff", true)
return transportSettings
}
Any help would be greatly appreciated.
Regards
Manoj Mohan
Intelligrape Software
On Mon, Jun 24, 2013 at 7:02 PM, Alexander Reelsen alr@spinscale.de wrote:
Hey,
you create a TransportClient and wrap it into a GClient. From then on you
should be good to go...
Hope this helps...
--Alex
On Tue, Jun 18, 2013 at 9:21 AM, Manoj Mohan manoj@intelligrape.comwrote:
Hello everybody,
I am using Elasticsearch in my application to index large amounts of
data. Now I am shifting to the groovy api from a JEST client. The thing I
understand is that since my server is running on a different instance, I
need to use the "Transport" mode.
When I checked that out it felt I was losing out on a lot of groovy
easiness like the ability to use closures and have to use the standard java
style SearchRequestBuilder.
I wanted to know how I would use TransportClient and achieve the same
level of Groovy base possible with maybe a GNode or Is there something
else that I am missing.
Any help would be greatly appreciated.
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/5Jt7xOMCqpg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.