dnet-applications/dhp-broker-application/.svn/pristine/8d/8de6ec2b88ecd5214d6caf103f8...

20 lines
975 B
Plaintext

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:elasticsearch="http://www.springframework.org/schema/data/elasticsearch"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/data/elasticsearch http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch.xsd">
<elasticsearch:transport-client id="elasticSearchClient"
cluster-nodes="localhost:9300"
cluster-name="elasticsearch_michele" />
<elasticsearch:repositories
base-package="eu.dnetlib.lbs.elasticsearch"
elasticsearch-template-ref="elasticsearchTemplate" />
<bean id="elasticsearchTemplate" class="org.springframework.data.elasticsearch.core.ElasticsearchTemplate">
<constructor-arg name="client" ref="elasticSearchClient" />
</bean>
</beans>