Project

General

Profile

« Previous | Next » 

Revision 40780

schemaTemplate Resource is now a property and can be overridden from the container

View differences:

modules/dnet-index-solr-service/trunk/src/main/resources/eu/dnetlib/functionality/index/applicationContext-index-solr-service.properties
28 28
service.index.feed.repeatDelay				= 20000
29 29
services.mapreduce.index.solr.feed.sim.mode	= false
30 30
service.index.solr.document.factory			= eu.dnetlib.functionality.index.solr.feed.StreamingInputDocumentFactory
31
service.index.solr.schema.template			= classpath:/eu/dnetlib/functionality/index/conf/schemaTemplate.xslt
31 32

  
32
#service.index.configuration.backend.json	= 
33

  
34
#service.index.configuration.backend.json	=
33 35
#service.index.solr.querycomponent 			= org.apache.solr.handler.component.QueryComponent
34 36
#service.index.solr.home.dir					=${dnet.data.path}/solr
35 37
#service.index.solr.data.dir					=${service.index.solr.home.dir}/data
......
41 43
#service.index.solr.optimization.spacemargin =0.05
42 44
#service.index.solr.browse.limit				=1000
43 45
#service.index.solr.default.interpretation	=DRIVER
44
#service.index.solr.schema.template			=classpath:/eu/dnetlib/functionality/index/solr/conf/schemaTemplate.xslt
45 46
#service.index.solr.resultset.client.pagesize = 100
46 47
#service.index.solr.querycomponent 			= eu.dnetlib.functionality.index.solr.component.DynamicSearchComponent
47 48
#service.index.solr.create.onfeed			= false
modules/dnet-index-solr-service/trunk/src/main/resources/eu/dnetlib/functionality/index/applicationContext-index-solr-service.xml
1 1
<?xml version="1.0" encoding="UTF-8"?>
2
<beans xmlns="http://www.springframework.org/schema/beans"
3
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws"
4
	xmlns:sec="http://cxf.apache.org/configuration/security" xmlns:wsa="http://cxf.apache.org/ws/addressing"
5
	xmlns:p="http://www.springframework.org/schema/p" xmlns:http="http://cxf.apache.org/transports/http/configuration"
6
	xmlns:t="http://dnetlib.eu/springbeans/t" xmlns:template="http://dnetlib.eu/springbeans/template"
7
	xmlns:util="http://www.springframework.org/schema/util"
8
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
9
						http://cxf.apache.org/ws/addressing http://cxf.apache.org/schemas/ws-addr-conf.xsd
10
						http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd
11
						http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
12
						http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
13
						http://dnetlib.eu/springbeans/template http://dnetlib.eu/springbeans/template.xsd
14
						http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
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
15 7

  
16 8

  
9
						http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd">
17 10

  
18 11
	<bean id="solrAdministrator"
19 12
		class="eu.dnetlib.functionality.index.utils.RemoteSolrAdministrator"
......
41 34
		p:solrConfig-ref="solrConfigTemplate" />
42 35

  
43 36
	<bean id="solrIndexSchemaFactory" class="eu.dnetlib.functionality.index.utils.IndexSchemaFactory"
44
		p:schemaTemplate="classpath:/eu/dnetlib/functionality/index/conf/schemaTemplate.xslt"
45
		p:textFieldType="${service.index.solr.schema.textfieldtype}"
46
		init-method="init" />
37
		  p:schemaTemplate="${service.index.solr.schema.template}"
38
		  p:textFieldType="${service.index.solr.schema.textfieldtype}"
39
		  init-method="init"/>
47 40

  
48 41
	<bean id="solrdocumentFactory" class="${service.index.solr.document.factory}" />
49 42

  
......
51 44
		class="eu.dnetlib.functionality.index.solr.feed.SolrDocumentMapperFactory"
52 45
		p:documentFactory-ref="solrdocumentFactory" />
53 46

  
54

  
55

  
56 47
</beans>

Also available in: Unified diff