elasticsearch-grails-plugin
elasticsearch-grails-plugin copied to clipboard
Configuration issue: Cannot use TransportClient
Hi,
The client mode configuration does not work in Development Mode
when I set in Config.groovy:
elasticSearch.client.mode = 'transport'
or alternatively:
environment {
development {
elasticSearch.client.mode = 'transport'
}
}
and if I try to inject the elasticSearchClient into one of the components, I always get NodeClient instead of TransportClient.
Then if I try to set:
elasticSearch.client.mode = 'asdffdsafafdasfdaf'
and restart the app, it did not give me the IllegalArgumentException as expected by ClientNodeFactoryBean
.
instead, the plugin will initialize a NodeClient.
Thanks!!
Donny