Revision 57157
Added by Enrico Ottonello over 4 years ago
applicationContext-index-solr-service.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 | 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
|
|
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 | 7 |
|
8 | 8 |
|
9 | 9 |
http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd"> |
10 | 10 |
|
11 | 11 |
<bean id="solrAdministrator" |
12 |
class="eu.dnetlib.index.utils.RemoteSolrAdministrator"
|
|
13 |
p:httpClient-ref="solrHTTPClient"/>
|
|
12 |
class="eu.dnetlib.index.utils.RemoteSolrAdministrator"
|
|
13 |
p:httpClient-ref="solrHTTPClient" />
|
|
14 | 14 |
|
15 |
<bean id="solrHTTPClient" factory-bean="httpClientBuilder" factory-method="build"/> |
|
16 |
|
|
15 |
<bean id="solrHTTPClient" factory-bean="httpClientBuilder" factory-method="build" />
|
|
16 |
|
|
17 | 17 |
<bean id="httpClientBuilder" class="org.apache.http.impl.client.HttpClientBuilder" |
18 |
factory-method="create"/>
|
|
18 |
factory-method="create" />
|
|
19 | 19 |
|
20 | 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"/>
|
|
21 |
p:jsonConfiguration="${service.solr.index.jsonConfiguration}"
|
|
22 |
p:solrAdministrator-ref="solrAdministrator" init-method="init" />
|
|
23 | 23 |
|
24 | 24 |
<bean id="zkUtils" class="eu.dnetlib.index.utils.ZkUtils" |
25 |
p:staticConfigurationClasspath="${service.solr.index.staticConfigurationClasspath}"
|
|
26 |
p:configFactory-ref="solrIndexConfigFactory"/>
|
|
25 |
p:staticConfigurationClasspath="${service.solr.index.staticConfigurationClasspath}"
|
|
26 |
p:configFactory-ref="solrIndexConfigFactory" />
|
|
27 | 27 |
|
28 | 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"/>
|
|
29 |
class="eu.dnetlib.springutils.stringtemplate.StringTemplateFactory"
|
|
30 |
p:template="classpath:/eu/dnetlib/index/solr/conf/solrconfig.xml.st"
|
|
31 |
scope="prototype" />
|
|
32 | 32 |
|
33 | 33 |
<bean id="solrIndexConfigFactory" class="eu.dnetlib.index.utils.IndexConfigFactory" |
34 |
p:solrConfig-ref="solrConfigTemplate"/>
|
|
34 |
p:solrConfig-ref="solrConfigTemplate" />
|
|
35 | 35 |
|
36 | 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"/>
|
|
37 |
p:schemaTemplate="${service.index.solr.schema.template}"
|
|
38 |
p:textFieldType="${service.index.solr.schema.textfieldtype}"
|
|
39 |
init-method="init"/>
|
|
40 | 40 |
|
41 |
<bean id="solrdocumentFactory" class="${service.index.solr.document.factory}"/> |
|
41 |
<bean id="solrdocumentFactory" class="${service.index.solr.document.factory}" />
|
|
42 | 42 |
|
43 | 43 |
<bean id="solrDocumentMapperFactory" |
44 |
class="eu.dnetlib.index.solr.feed.SolrDocumentMapperFactory"
|
|
45 |
p:documentFactory-ref="solrdocumentFactory"/>
|
|
44 |
class="eu.dnetlib.index.solr.feed.SolrDocumentMapperFactory"
|
|
45 |
p:documentFactory-ref="solrdocumentFactory" />
|
|
46 | 46 |
|
47 | 47 |
</beans> |
Also available in: Unified diff
solr 772 integration