Hi,
I'm experiencing "No node available exception" when I use GClient that is
created by wrapping a configured TransportClient.
def settings = ImmutableSettings.settingsBuilder()
def client = new TransportClient(settings)
client.addTransportAddress(new InetSocketTransportAddress('localhost', 9200
))
def gClient = new GClient(client)
gClient.index {
index "test"
type "type1"
id "1"
source {
test = "value"
complex {
value1 = "value1"
value2 = "value2"
}
}
}
It works fine if I create the GClient using GNodeBuilder. But the code
would be difficult to maintain.
So I'm trying to wrap it inside a Grails Plugin. What I want to achive is
to use the same GClient instance across multiple modules.
Is there any better way of doing this?
--
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.