Hi , I am new for elasticsearch. I used old version of elasticsearch (1.4.4) with spring data elasticsearch, It is working fine. This can connect each other for further communication. It is not working when i go for Elasticsearch new version(version 2). I don't know the problem. Please help me any one to solve this problem.
<?xml version="1.0" encoding="UTF-8"?>
<!-- node configurations --> <elasticsearch:transport-client id="client" cluster-name="my-application" cluster-nodes="192.168.1.28:9300" /> <!--<elasticsearch:transport-client id="client" cluster-name="elasticsearch" cluster-nodes="127.0.0.1:9300"/> --> <!-- Node related configuration can be done by adding setting properties --> <bean id="elasticIndexBean" class="in.rishoncomm.elastic.objectstore.ElasticIndexBean"> <property name="indexPrefix" value="la" /> <property name="settings"> <map> <entry key="number_of_shards" value="1" /> <entry key="number_of_replicas" value="1" /> </map> </property> </bean>
<bean name="elasticsearchTemplate" class="org.springframework.data.elasticsearch.core.ElasticsearchTemplate"> <constructor-arg name="client" ref="client" /> </bean>