Project

General

Profile

« Previous | Next » 

Revision 8729

Add beans to support geohashes

View differences:

metacat-index/src/main/resources/application-context-eml-base.xml
55 55
		<property name="multivalue" value="false" />
56 56
		<property name="converter" ref="solrLongitudeConverter" />
57 57
	</bean>
58
		
59
	<!-- define the root and leafs for accessing multiple bounding coordinates for geohash -->
60
	<bean id="eml.geohashRoot" class="org.dataone.cn.indexer.parser.utility.RootElement"
61
		p:name="geohashRoot"
62
		p:xPath="//dataset/coverage/geographicCoverage/boundingCoordinates"
63
		p:template="[northBoundingCoordinate] [westBoundingCoordinate] [southBoundingCoordinate] [eastBoundingCoordinate]">
64
		<property name="leafs">
65
			<list>
66
				<ref bean="eml.northBoundingCoordinateLeaf"/>
67
				<ref bean="eml.westBoundingCoordinateLeaf"/>
68
				<ref bean="eml.southBoundingCoordinateLeaf"/>
69
				<ref bean="eml.eastBoundingCoordinateLeaf"/>
70
			</list>
71
		</property>
72
	</bean>
73
	
74
		
75
	<!-- use the root to calculate different geohash lengths -->
76
	<bean id="eml.geohash1" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
77
		p:multivalue="true"
78
		p:root-ref="eml.geohashRoot">
79
		<constructor-arg name="name" value="geohash_1" />
80
		<property name="converter" ref="geohashConverter_1"/>
81
	</bean>
82
	
83
	<bean id="eml.geohash2" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
84
		p:multivalue="true"
85
		p:root-ref="eml.geohashRoot">
86
		<constructor-arg name="name" value="geohash_2" />
87
		<property name="converter" ref="geohashConverter_2"/>
88
	</bean>
89
	
90
		<bean id="eml.geohash3" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
91
		p:multivalue="true"
92
		p:root-ref="eml.geohashRoot">
93
		<constructor-arg name="name" value="geohash_3" />
94
		<property name="converter" ref="geohashConverter_2"/>
95
	</bean>
96
	
97
		<bean id="eml.geohash4" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
98
		p:multivalue="true"
99
		p:root-ref="eml.geohashRoot">
100
		<constructor-arg name="name" value="geohash_4" />
101
		<property name="converter" ref="geohashConverter_4"/>
102
	</bean>
103
	
104
		<bean id="eml.geohash5" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
105
		p:multivalue="true"
106
		p:root-ref="eml.geohashRoot">
107
		<constructor-arg name="name" value="geohash_5" />
108
		<property name="converter" ref="geohashConverter_5"/>
109
	</bean>
110
	
111
		<bean id="eml.geohash6" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
112
		p:multivalue="true"
113
		p:root-ref="eml.geohashRoot">
114
		<constructor-arg name="name" value="geohash_6" />
115
		<property name="converter" ref="geohashConverter_6"/>
116
	</bean>
117
	
118
		<bean id="eml.geohash7" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
119
		p:multivalue="true"
120
		p:root-ref="eml.geohashRoot">
121
		<constructor-arg name="name" value="geohash_7" />
122
		<property name="converter" ref="geohashConverter_7"/>
123
	</bean>
124
	
125
		<bean id="eml.geohash8" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
126
		p:multivalue="true"
127
		p:root-ref="eml.geohashRoot">
128
		<constructor-arg name="name" value="geohash_8" />
129
		<property name="converter" ref="geohashConverter_8"/>
130
	</bean>
131
	
132
		<bean id="eml.geohash9" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
133
		p:multivalue="true"
134
		p:root-ref="eml.geohashRoot">
135
		<constructor-arg name="name" value="geohash_9" />
136
		<property name="converter" ref="geohashConverter_9"/>
137
	</bean>
58 138

  
59 139
	<bean id="eml.site" class="org.dataone.cn.indexer.parser.SolrField">
60 140
		<constructor-arg name="name" value="site" />

Also available in: Unified diff