1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
3
|
xmlns:p="http://www.springframework.org/schema/p"
|
4
|
xmlns:http="http://cxf.apache.org/transports/http/configuration"
|
5
|
xmlns="http://www.springframework.org/schema/beans"
|
6
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
7
|
|
8
|
|
9
|
http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd">
|
10
|
|
11
|
<bean id="solrAdministrator"
|
12
|
class="eu.dnetlib.index.utils.RemoteSolrAdministrator"
|
13
|
p:httpClient-ref="solrHTTPClient"/>
|
14
|
|
15
|
<bean id="solrHTTPClient" factory-bean="httpClientBuilder" factory-method="build"/>
|
16
|
|
17
|
<bean id="httpClientBuilder" class="org.apache.http.impl.client.HttpClientBuilder"
|
18
|
factory-method="create"/>
|
19
|
|
20
|
<bean id="solrIndexServerDAO" class="eu.dnetlib.index.solr.SolrIndexServerDAO"
|
21
|
p:jsonConfiguration="${service.solr.index.jsonConfiguration}"
|
22
|
p:solrAdministrator-ref="solrAdministrator" init-method="init"/>
|
23
|
|
24
|
<bean id="zkUtils" class="eu.dnetlib.index.utils.ZkUtils"
|
25
|
p:staticConfigurationClasspath="${service.solr.index.staticConfigurationClasspath}"
|
26
|
p:configFactory-ref="solrIndexConfigFactory"/>
|
27
|
|
28
|
<bean id="solrConfigTemplate"
|
29
|
class="eu.dnetlib.springutils.stringtemplate.StringTemplateFactory"
|
30
|
p:template="classpath:/eu/dnetlib/index/solr/conf/solrconfig.xml.st"
|
31
|
scope="prototype"/>
|
32
|
|
33
|
<bean id="solrIndexConfigFactory" class="eu.dnetlib.index.utils.IndexConfigFactory"
|
34
|
p:solrConfig-ref="solrConfigTemplate"/>
|
35
|
|
36
|
<bean id="solrIndexSchemaFactory" class="eu.dnetlib.index.utils.IndexSchemaFactory"
|
37
|
p:schemaTemplate="${service.index.solr.schema.template}"
|
38
|
p:textFieldType="${service.index.solr.schema.textfieldtype}"
|
39
|
init-method="init"/>
|
40
|
|
41
|
<bean id="solrdocumentFactory" class="${service.index.solr.document.factory}"/>
|
42
|
|
43
|
<bean id="solrDocumentMapperFactory"
|
44
|
class="eu.dnetlib.index.solr.feed.SolrDocumentMapperFactory"
|
45
|
p:documentFactory-ref="solrdocumentFactory"/>
|
46
|
|
47
|
</beans>
|