Project

General

Profile

« Previous | Next » 

Revision 9405

include seriesId in solr schema and context file (v2 system metadata)

View differences:

metacat-index/src/main/resources/application-context-systemmeta200.xml
1
<beans xmlns="http://www.springframework.org/schema/beans"
2
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
4
	
5
	<bean id="systemMetadata200Subprocessor"
6
	  	class="org.dataone.cn.indexer.parser.BaseXPathDocumentSubprocessor">
7
	  	<property name="xmlNamespaceConfig" ref="xmlNamespaceConfig" />
8
	    <property name="fieldList">
9
			<list>
10
				<bean class="org.dataone.cn.indexer.parser.SolrField">
11
					<constructor-arg name="name" value="id" />
12
					<constructor-arg name="xpath"
13
						value="/d200:systemMetadata/identifier/text()" />
14
				</bean>
15
				<bean class="org.dataone.cn.indexer.parser.SolrField">
16
					<constructor-arg name="name" value="seriesId" />
17
					<constructor-arg name="xpath"
18
						value="/d200:systemMetadata/seriesId/text()" />
19
				</bean>
20
				<bean class="org.dataone.cn.indexer.parser.SolrField">
21
					<constructor-arg name="name" value="formatId" />
22
					<constructor-arg name="xpath"
23
						value="/d200:systemMetadata/formatId/text()" />
24
				</bean>
25
				<bean class="org.dataone.cn.indexer.parser.SolrField">
26
					<constructor-arg name="name" value="formatType" />
27
					<constructor-arg name="xpath" value="/d200:systemMetadata/formatId/text()" />
28
					<property name="converter" ref="formatIdToFormatTypeConverter" />
29
				</bean>
30
				<bean class="org.dataone.cn.indexer.parser.SolrField">
31
					<constructor-arg name="name" value="size" />
32
					<constructor-arg name="xpath"
33
						value="/d200:systemMetadata/size/text()" />
34
				</bean>
35
				<bean class="org.dataone.cn.indexer.parser.SolrField">
36
					<constructor-arg name="name" value="checksum" />
37
					<constructor-arg name="xpath"
38
						value="/d200:systemMetadata/checksum/text()" />
39
				</bean>
40
				<bean class="org.dataone.cn.indexer.parser.SolrField">
41
					<constructor-arg name="name" value="submitter" />
42
					<constructor-arg name="xpath"
43
						value="/d200:systemMetadata/submitter/text()" />
44
				</bean>
45
				<bean class="org.dataone.cn.indexer.parser.SolrField">
46
					<constructor-arg name="name" value="checksumAlgorithm" />
47
					<constructor-arg name="xpath"
48
						value="/d200:systemMetadata/checksum/@algorithm" />
49
				</bean>
50
				<bean class="org.dataone.cn.indexer.parser.SolrField">
51
					<constructor-arg name="name" value="rightsHolder" />
52
					<constructor-arg name="xpath"
53
						value="/d200:systemMetadata/rightsHolder/text()" />
54
				</bean>
55
				<bean class="org.dataone.cn.indexer.parser.SolrField">
56
					<constructor-arg name="name" value="replicationAllowed" />
57
					<constructor-arg name="xpath"
58
						value="/d200:systemMetadata/replicationPolicy/@replicationAllowed" />
59
				</bean>
60
				<bean class="org.dataone.cn.indexer.parser.SolrField">
61
					<constructor-arg name="name" value="numberReplicas" />
62
					<constructor-arg name="xpath"
63
						value="/d200:systemMetadata/replicationPolicy/@numberReplicas" />
64
				</bean>
65
				<bean class="org.dataone.cn.indexer.parser.SolrField">
66
					<constructor-arg name="name" value="preferredReplicationMN" />
67
					<constructor-arg name="xpath"
68
						value="/d200:systemMetadata/replicationPolicy/preferredMemberNode/text()" />
69
					<property name="multivalue" value="true" />
70
				</bean>
71
				<bean class="org.dataone.cn.indexer.parser.SolrField">
72
					<constructor-arg name="name" value="blockedReplicationMN" />
73
					<constructor-arg name="xpath"
74
						value="/d200:systemMetadata/replicationPolicy/blockedMemberNode/text()" />
75
					<property name="multivalue" value="true" />
76
				</bean>
77
				<bean class="org.dataone.cn.indexer.parser.SolrField">
78
					<constructor-arg name="name" value="obsoletes" />
79
					<constructor-arg name="xpath"
80
						value="/d200:systemMetadata/obsoletes/text()" />
81
				</bean>
82
				<bean class="org.dataone.cn.indexer.parser.SolrField">
83
					<constructor-arg name="name" value="obsoletedBy" />
84
					<constructor-arg name="xpath"
85
						value="/d200:systemMetadata/obsoletedBy/text()" />
86
				</bean>
87
				<!-- 
88
				<bean class="org.dataone.cn.indexer.parser.SolrField">
89
					<constructor-arg name="name" value="archived" />
90
					<constructor-arg name="xpath"
91
						value="/d200:systemMetadata/archived/text()" />
92
					<property name="defaultValue" value="false" />
93
				</bean>
94
				 -->				
95
				<bean class="org.dataone.cn.indexer.parser.SolrField">
96
					<constructor-arg name="name" value="dateUploaded" />
97
					<constructor-arg name="xpath"
98
						value="/d200:systemMetadata/dateUploaded/text()" />
99
					<property name="converter" ref="dateConverter" />
100
				</bean>
101
				<bean class="org.dataone.cn.indexer.parser.SolrField">
102
					<constructor-arg name="name" value="dateModified" />
103
					<constructor-arg name="xpath"
104
						value="/d200:systemMetadata/dateSysMetadataModified/text()" />
105
					<property name="converter" ref="dateConverter" />
106
				</bean>
107
				<bean class="org.dataone.cn.indexer.parser.SolrField">
108
					<constructor-arg name="name" value="datasource" />
109
					<constructor-arg name="xpath"
110
						value="/d200:systemMetadata/originMemberNode/text()" />
111
				</bean>
112
				<bean class="org.dataone.cn.indexer.parser.SolrField">
113
					<constructor-arg name="name" value="authoritativeMN" />
114
					<constructor-arg name="xpath"
115
						value="/d200:systemMetadata/authoritativeMemberNode/text()" />
116
				</bean>
117
				<bean class="org.dataone.cn.indexer.parser.SolrField">
118
					<constructor-arg name="name" value="replicaMN" />
119
					<constructor-arg name="xpath"
120
						value="/d200:systemMetadata/replica/replicaMemberNode/text()" />
121
					<property name="multivalue" value="true" />
122
				</bean>
123
				<bean class="org.dataone.cn.indexer.parser.SolrField">
124
					<constructor-arg name="name" value="replicaVerifiedDate" />
125
					<constructor-arg name="xpath"
126
						value="/d200:systemMetadata/replica/replicaVerified/text()" />
127
					<property name="multivalue" value="true" />
128
					<property name="converter" ref="dateConverter" />
129
				</bean>
130
				<bean class="org.dataone.cn.indexer.parser.SolrField">
131
					<constructor-arg name="name" value="readPermission" />
132
					<constructor-arg name="xpath"
133
						value="/d200:systemMetadata/accessPolicy/allow[permission= 'read']/subject/text()" />
134
					<property name="multivalue" value="true" />
135
					<property name="dedupe" value="true" />
136
				</bean>
137
				<bean class="org.dataone.cn.indexer.parser.SolrField">
138
					<constructor-arg name="name" value="writePermission" />
139
					<constructor-arg name="xpath"
140
						value="/d200:systemMetadata/accessPolicy/allow[permission= 'write']/subject/text()" />
141
					<property name="multivalue" value="true" />
142
					<property name="dedupe" value="true" />
143
				</bean>
144
				<bean class="org.dataone.cn.indexer.parser.SolrField">
145
					<constructor-arg name="name" value="changePermission" />
146
					<constructor-arg name="xpath"
147
						value="/d200:systemMetadata/accessPolicy/allow[permission= 'changePermission']/subject/text()" />
148
					<property name="multivalue" value="true" />
149
					<property name="dedupe" value="true" />
150
				</bean>
151
				<bean class="org.dataone.cn.indexer.parser.SolrField">
152
					<constructor-arg name="name" value="isPublic" />
153
					<constructor-arg name="xpath"
154
						value="(//accessPolicy/allow[permission= 'read']/subject[text()='public']/text() | //accessPolicy/allow[permission= 'write']/subject[text()='public']/text() | //accessPolicy/allow[permission= 'changePermission']/subject[text()='public']/text() | //rightsHolder[text()='public']/text())[1]" />
155
					<property name="converter" ref="booleanPublicConverter" />
156
				</bean>
157
		        <bean class="org.dataone.cn.indexer.parser.ResolveSolrField">
158
					<constructor-arg name="name" value="dataUrl" />
159
		        </bean>
160
			</list>
161
		</property>
162
	</bean>
163
</beans>
0 164

  
metacat-index/src/main/resources/index-processor-context.xml
25 25
    <import resource="application-context-dryad31.xml" />
26 26
    
27 27
    <import resource="application-context-resource-map.xml" />
28
    <import resource="application-context-systemmeta100.xml" />
28
    <import resource="application-context-systemmeta200.xml" />
29 29
    
30 30
     
31 31
    <import resource="application-context-oa.xml" />

Also available in: Unified diff