elasticsearch-grails-plugin icon indicating copy to clipboard operation
elasticsearch-grails-plugin copied to clipboard

Configuration issue: Cannot use TransportClient

Open forseti opened this issue 10 years ago • 0 comments

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

forseti avatar Feb 07 '15 04:02 forseti