In my java code i am able to create a ElasticSearch client as below:
org.elasticsearch.client.Client client = new TransportClient().addTransportAddress(new InetSocketTransportAddress("localhost", 9300));
Now i needed to initialise/setup the transportClient in a Spring Bean instead of in the java-code. But i am not able to add the transport address to the transportclient in the spring-bean.
Any help on how to setup in Spring will be really appreciated.
In my java code i am able to create a ElasticSearch client as below:
org.elasticsearch.client.Client client = new
TransportClient().addTransportAddress(new
InetSocketTransportAddress("localhost", 9300));
Now i needed to initialise/setup the transportClient in a Spring Bean
instead of in the java-code. But i am not able to add the transport address
to the transportclient in the spring-bean.
Any help on how to setup in Spring will be really appreciated.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.