1
|
<?xml version="1.0" ?>
|
2
|
<!--
|
3
|
THE OFFICIAL DataONE Index Solr Schema definition file.
|
4
|
This schema is copied into the dataone-cn-index buildout for deployment on cn nodes.
|
5
|
|
6
|
The Solr schema file. This file should be named "schema.xml" and
|
7
|
should be in the conf directory under the solr home
|
8
|
(i.e. ./solr/conf/schema.xml by default)
|
9
|
or located where the classloader for the Solr webapp can find it.
|
10
|
|
11
|
For more information, on how to customize this file, please see...
|
12
|
http://wiki.apache.org/solr/SchemaXml
|
13
|
-->
|
14
|
|
15
|
<schema name="dataone" version="1.1">
|
16
|
<types>
|
17
|
<!-- field type definitions. The "name" attribute is
|
18
|
just a label to be used by field definitions. The "class"
|
19
|
attribute and any other attributes determine the real
|
20
|
behavior of the fieldtype. -->
|
21
|
|
22
|
<!-- The StringField type is not analyzed, but indexed/stored verbatim -->
|
23
|
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/>
|
24
|
|
25
|
<!-- boolean type: "true" or "false" -->
|
26
|
<fieldtype name="boolean" class="solr.BoolField" sortMissingLast="true"/>
|
27
|
|
28
|
<!-- The optional sortMissingLast and sortMissingFirst attributes are
|
29
|
currently supported on types that are sorted internally as a strings.
|
30
|
- If sortMissingLast="true" then a sort on this field will cause documents
|
31
|
without the field to come after documents with the field,
|
32
|
regardless of the requested sort order (asc or desc).
|
33
|
- If sortMissingFirst="true" then a sort on this field will cause documents
|
34
|
without the field to come before documents with the field,
|
35
|
regardless of the requested sort order.
|
36
|
- If sortMissingLast="false" and sortMissingFirst="false" (the default),
|
37
|
then default lucene sorting will be used which places docs without the field
|
38
|
first in an ascending sort and last in a descending sort.
|
39
|
-->
|
40
|
|
41
|
<!-- numeric field types that store and index the text
|
42
|
value verbatim (and hence don't support range queries since the
|
43
|
lexicographic ordering isn't equal to the numeric ordering) -->
|
44
|
<fieldtype name="integer" class="solr.IntField"/>
|
45
|
<fieldtype name="long" class="solr.LongField"/>
|
46
|
<fieldtype name="float" class="solr.FloatField"/>
|
47
|
<fieldtype name="double" class="solr.DoubleField"/>
|
48
|
|
49
|
<!-- Numeric field types that manipulate the value into
|
50
|
a string value that isn't human readable in it's internal form,
|
51
|
but with a lexicographic ordering the same as the numeric ordering
|
52
|
so that range queries correctly work. -->
|
53
|
<fieldtype name="sint" class="solr.SortableIntField" sortMissingLast="true"/>
|
54
|
<fieldtype name="slong" class="solr.SortableLongField" sortMissingLast="true"/>
|
55
|
<fieldtype name="sfloat" class="solr.SortableFloatField" sortMissingLast="true"/>
|
56
|
<fieldtype name="sdouble" class="solr.SortableDoubleField" sortMissingLast="true"/>
|
57
|
|
58
|
<!-- The format for this date field is of the form 1995-12-31T23:59:59Z, and
|
59
|
is a more restricted form of the canonical representation of dateTime
|
60
|
http://www.w3.org/TR/xmlschema-2/#dateTime
|
61
|
The trailing "Z" designates UTC time and is mandatory.
|
62
|
Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z
|
63
|
All other components are mandatory. -->
|
64
|
<fieldtype name="date" class="solr.DateField" sortMissingLast="true"/>
|
65
|
|
66
|
<!-- solr.TextField allows the specification of custom text analyzers
|
67
|
specified as a tokenizer and a list of token filters. Different
|
68
|
analyzers may be specified for indexing and querying.
|
69
|
|
70
|
The optional positionIncrementGap puts space between multiple fields of
|
71
|
this type on the same document, with the purpose of preventing false phrase
|
72
|
matching across fields.
|
73
|
|
74
|
For more info on customizing your analyzer chain, please see...
|
75
|
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters
|
76
|
|
77
|
-->
|
78
|
|
79
|
<!-- Standard analyzer commonly used by Lucene developers
|
80
|
-->
|
81
|
<!-- Standard analyzer commonly used by Lucene developers -->
|
82
|
<!--
|
83
|
<fieldtype name="text_lu" class="solr.TextField" positionIncrementGap="100">
|
84
|
<analyzer>
|
85
|
<tokenizer class="solr.StandardTokenizerFactory"/>
|
86
|
<filter class="solr.StandardFilterFactory"/>
|
87
|
<filter class="solr.LowerCaseFilterFactory"/>
|
88
|
<filter class="solr.StopFilterFactory"/>
|
89
|
<filter class="solr.EnglishPorterFilterFactory"/>
|
90
|
</analyzer>
|
91
|
</fieldtype>
|
92
|
-->
|
93
|
<!-- One could also specify an existing Analyzer implementation in Java
|
94
|
via the class attribute on the analyzer element:
|
95
|
<fieldtype name="text_lu" class="solr.TextField">
|
96
|
<analyzer class="org.apache.lucene.analysis.snowball.SnowballAnalyzer"/>
|
97
|
</fieldType>
|
98
|
-->
|
99
|
|
100
|
<!-- A text field that only splits on whitespace for more exact matching -->
|
101
|
<fieldtype name="text_ws" class="solr.TextField" positionIncrementGap="100">
|
102
|
<analyzer>
|
103
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
104
|
</analyzer>
|
105
|
</fieldtype>
|
106
|
|
107
|
<fieldtype name="text" class="solr.TextField" positionIncrementGap="100">
|
108
|
<analyzer type="index">
|
109
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
110
|
<filter class="solr.WordDelimiterFilterFactory"
|
111
|
generateWordParts="1"
|
112
|
catenateWords="1"
|
113
|
generateNumberParts="1"
|
114
|
splitOnNumerics="0"/>
|
115
|
|
116
|
<filter class="solr.LowerCaseFilterFactory"/>
|
117
|
<filter class="solr.StopFilterFactory" />
|
118
|
<filter class="solr.PorterStemFilterFactory" />
|
119
|
<filter class="solr.ReversedWildcardFilterFactory" withOriginal="true"/>
|
120
|
</analyzer>
|
121
|
<analyzer type="query">
|
122
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
123
|
|
124
|
<filter class="solr.WordDelimiterFilterFactory"
|
125
|
generateWordParts="1"
|
126
|
catenateWords="0"
|
127
|
generateNumberParts="1"
|
128
|
splitOnNumerics="0"/>
|
129
|
|
130
|
<filter class="solr.LowerCaseFilterFactory"/>
|
131
|
<filter class="solr.StopFilterFactory"/>
|
132
|
<filter class="solr.PorterStemFilterFactory" />
|
133
|
</analyzer>
|
134
|
</fieldtype>
|
135
|
|
136
|
<fieldtype name="text_no_token" class="solr.TextField" positionIncrementGap="100">
|
137
|
<analyzer type="index">
|
138
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
139
|
<filter class="solr.LowerCaseFilterFactory"/>
|
140
|
<filter class="solr.StopFilterFactory" />
|
141
|
</analyzer>
|
142
|
<analyzer type="query">
|
143
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
144
|
<filter class="solr.LowerCaseFilterFactory"/>
|
145
|
<filter class="solr.StopFilterFactory"/>
|
146
|
</analyzer>
|
147
|
</fieldtype>
|
148
|
|
149
|
<!--
|
150
|
<fieldtype name="text_all" class="solr.TextField" positionIncrementGap="100">
|
151
|
<analyzer type="index">
|
152
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
153
|
in this example, we will only use synonyms at query time
|
154
|
<filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
|
155
|
|
156
|
<filter class="solr.StopFilterFactory" ignoreCase="true"/>
|
157
|
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1"
|
158
|
catenateWords="1" catenateNumbers="1" catenateAll="0"/>
|
159
|
<filter class="solr.LowerCaseFilterFactory"/>
|
160
|
<filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>
|
161
|
</analyzer>
|
162
|
<analyzer type="query">
|
163
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
164
|
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
|
165
|
<filter class="solr.StopFilterFactory" ignoreCase="true"/>
|
166
|
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1"
|
167
|
catenateWords="0" catenateNumbers="0" catenateAll="0"/>
|
168
|
<filter class="solr.LowerCaseFilterFactory"/>
|
169
|
<filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>
|
170
|
</analyzer>
|
171
|
</fieldtype>
|
172
|
-->
|
173
|
|
174
|
<!-- Less flexible matching, but less false matches. Probably not ideal for product names
|
175
|
but may be good for SKUs. Can insert dashes in the wrong place and still match. -->
|
176
|
<fieldtype name="textTight" class="solr.TextField" positionIncrementGap="100">
|
177
|
<analyzer>
|
178
|
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
179
|
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="false"/>
|
180
|
<filter class="solr.StopFilterFactory" ignoreCase="true"/>
|
181
|
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0"
|
182
|
catenateWords="1" catenateNumbers="1" catenateAll="0"/>
|
183
|
<filter class="solr.LowerCaseFilterFactory"/>
|
184
|
<filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>
|
185
|
</analyzer>
|
186
|
</fieldtype>
|
187
|
|
188
|
<fieldType name="alphaOnlySort" class="solr.TextField" sortMissingLast="true">
|
189
|
<analyzer>
|
190
|
<tokenizer class="solr.KeywordTokenizerFactory"/>
|
191
|
<filter class="solr.LowerCaseFilterFactory"/>
|
192
|
<filter class="solr.TrimFilterFactory"/>
|
193
|
<filter class="solr.PatternReplaceFilterFactory" pattern="([^a-z])" replacement="" replace="all"/>
|
194
|
</analyzer>
|
195
|
</fieldType>
|
196
|
|
197
|
</types>
|
198
|
|
199
|
|
200
|
<!-- ======================================================================= -->
|
201
|
<fields>
|
202
|
<!-- Valid attributes for fields:
|
203
|
name: mandatory - the name for the field
|
204
|
type: mandatory - the name of a previously defined type from the <types> section
|
205
|
indexed: true if this field should be indexed (searchable)
|
206
|
stored: true if this field should be retrievable
|
207
|
multiValued: true if this field may contain multiple values per document
|
208
|
omitNorms: (expert) set to true to omit the norms associated with this field
|
209
|
(this disables length normalization and index-time boosting for the field)
|
210
|
-->
|
211
|
|
212
|
<field name="id" type="string" indexed="true" stored="true" multiValued="false"/>
|
213
|
<field name="formatId" type="string" indexed="true" stored="true" multiValued="false"/>
|
214
|
<field name="formatType" type="string" indexed="true" stored="true" multiValued="false"/>
|
215
|
<field name="size" type="slong" indexed="true" stored="true" multiValued="false"/>
|
216
|
<field name="checksum" type="string" indexed="false" stored="true" multiValued="false"/>
|
217
|
<field name="checksumAlgorithm" type="string" indexed="false" stored="true"/>
|
218
|
<field name="dateUploaded" type="date" indexed="true" stored="true" multiValued="false"/>
|
219
|
<field name="dateModified" type="date" indexed="true" stored="true" multiValued="false"/>
|
220
|
<field name="submitter" type="string" indexed="true" stored="true" multiValued="false"/>
|
221
|
<field name="rightsHolder" type="string" indexed="true" stored="true" multiValued="false"/>
|
222
|
<field name="authoritativeMN" type="string" indexed="false" stored="true" multiValued="false"/>
|
223
|
<field name="replicationAllowed" type="boolean" indexed="false" stored="true" multiValued="false"/>
|
224
|
<field name="numberReplicas" type="integer" indexed="false" stored="true" multiValued="false"/>
|
225
|
<field name="preferredReplicationMN" type="string" indexed="false" stored="true" multiValued="true"/>
|
226
|
<field name="blockedReplicationMN" type="string" indexed="false" stored="true" multiValued="true"/>
|
227
|
<field name="replicaMN" type="string" indexed="false" stored="true" multiValued="true"/>
|
228
|
<field name="replicaVerifiedDate" type="date" indexed="false" stored="true" multiValued="true"/>
|
229
|
<field name="datasource" type="string" indexed="true" stored="true" multiValued="false"/>
|
230
|
<field name="obsoletes" type="string" indexed="true" stored="true" multiValued="false"/>
|
231
|
<field name="obsoletedBy" type="string" indexed="true" stored="true" multiValued="false"/>
|
232
|
|
233
|
<!-- Object relationships -->
|
234
|
<field name="resourceMap" type="string" indexed="true" stored="true" multiValued="true"/>
|
235
|
<field name="documents" type="string" indexed="true" stored="true" multiValued="true"/>
|
236
|
<field name="isDocumentedBy" type="string" indexed="true" stored="true" multiValued="true"/>
|
237
|
|
238
|
<!--Permissions-->
|
239
|
<field name="readPermission" type="string" indexed="true" stored="true" multiValued="true"/>
|
240
|
<field name="writePermission" type="string" indexed="true" stored="true" multiValued="true"/>
|
241
|
<field name="changePermission" type="string" indexed="true" stored="true" multiValued="true"/>
|
242
|
<field name="isPublic" type="boolean" indexed="true" stored="true" />
|
243
|
|
244
|
<!-- Science metadata properties -->
|
245
|
|
246
|
<field name="author" type="string" multiValued="false" indexed="true" stored="true" />
|
247
|
<field name="authorSurName" type="string" multiValued="false" indexed="true" stored="true" />
|
248
|
<field name="authorGivenName" type="string" multiValued="false" indexed="true" stored="true" />
|
249
|
<field name="authorSurNameSort" type="alphaOnlySort" multiValued="false" indexed="true" stored="true" />
|
250
|
<field name="authorGivenNameSort" type="alphaOnlySort" multiValued="false" indexed="true" stored="true" />
|
251
|
|
252
|
<field name="authorLastName" type="string" multiValued="true" indexed="true" stored="true" />
|
253
|
|
254
|
<field name="abstract" type="text" multiValued="false" indexed="true" stored="true" />
|
255
|
<field name="keywords" type="string" multiValued="true" indexed="true" stored="true" />
|
256
|
<field name="keyConcept" type="string" multiValued="true" indexed="true" stored="true" />
|
257
|
<field name="southBoundCoord" type="sfloat" multiValued="false" indexed="true" stored="true"/>
|
258
|
<field name="northBoundCoord" type="sfloat" multiValued="false" indexed="true" stored="true"/>
|
259
|
<field name="westBoundCoord" type="sfloat" multiValued="false" indexed="true" stored="true"/>
|
260
|
<field name="eastBoundCoord" type="sfloat" multiValued="false" indexed="true" stored="true"/>
|
261
|
<field name="namedLocation" type="string" multiValued="true" indexed="true" stored="true" />
|
262
|
<field name="beginDate" type="date" multiValued="false" indexed="true" stored="true" />
|
263
|
<field name="endDate" type="date" multiValued="false" indexed="true" stored="true" />
|
264
|
|
265
|
<field name="title" type="text" multiValued="false" indexed="true" stored="true" />
|
266
|
<field name="scientificName" type="string" multiValued="true" indexed="true" stored="true" />
|
267
|
<field name="relatedOrganizations" type="string" multiValued="true" indexed="true" stored="true" />
|
268
|
<field name="datePublished" type="date" multiValued="false" indexed="true" stored="true" />
|
269
|
<field name="pubDate" type="date" indexed="true" stored="true"/>
|
270
|
|
271
|
<field name="investigator" type="string" indexed="true" stored="true" multiValued="true"/>
|
272
|
<field name="investigatorText" type="text" indexed="true" stored="false" multiValued="true"/>
|
273
|
<field name="ogcUrl" type="text" indexed="false" stored="true"/>
|
274
|
<field name="sku" type="textTight" indexed="true" stored="true"/>
|
275
|
<field name="identifier" type="textTight" indexed="true" stored="true"/>
|
276
|
<field name="LTERSite" type="string" indexed="true" stored="true"/>
|
277
|
<field name="origin" type="string" indexed="true" stored="true" multiValued="true"/>
|
278
|
<field name="originText" type="text" indexed="true" stored="false" multiValued="true"/>
|
279
|
<field name="titlestr" type="string" indexed="true" stored="false"/>
|
280
|
<field name="geoform" type="string" indexed="true" stored="true"/>
|
281
|
<field name="presentationCat" type="string" indexed="true" stored="true"/>
|
282
|
<field name="purpose" type="text" indexed="true" stored="true"/>
|
283
|
<field name="updateDate" type="date" indexed="true" stored="true"/>
|
284
|
<field name="edition" type="text" indexed="true" stored="true"/>
|
285
|
<field name="dataUrl" type="string" indexed="false" stored="true"/>
|
286
|
<field name="originator" type="string" indexed="true" stored="true" multiValued="true"/>
|
287
|
<field name="originatorText" type="text" indexed="true" stored="false" multiValued="true"/>
|
288
|
<field name="family" type="string" indexed="true" stored="true" multiValued="true"/>
|
289
|
<field name="species" type="string" indexed="true" stored="true" multiValued="true"/>
|
290
|
<field name="genus" type="string" indexed="true" stored="true" multiValued="true"/>
|
291
|
<field name="kingdom" type="string" indexed="true" stored="true" multiValued="true"/>
|
292
|
<field name="phylum" type="string" indexed="true" stored="true" multiValued="true"/>
|
293
|
<field name="order" type="string" indexed="true" stored="true" multiValued="true"/>
|
294
|
<field name="class" type="string" indexed="true" stored="true" multiValued="true"/>
|
295
|
|
296
|
<field name="attributeName" type="string" indexed="true" stored="true" multiValued="true" />
|
297
|
<field name="attributeLabel" type="string" indexed="true" stored="true" multiValued="true" />
|
298
|
<field name="attributeDescription" type="text" indexed="true" stored="true" multiValued="true" />
|
299
|
<field name="attributeUnit" type="string" indexed="true" stored="true" multiValued="true" />
|
300
|
<field name="attribute" type="text" indexed="true" stored="true" multiValued="true" />
|
301
|
|
302
|
<field name="webUrl" type="string" indexed="false" stored="true" multiValued="true"/>
|
303
|
|
304
|
<field name="contactOrganization" type="string" indexed="true" stored="true" multiValued="true"/>
|
305
|
<field name="contactOrganizationText" type="text" indexed="true" stored="false" multiValued="true"/>
|
306
|
|
307
|
<field name="keywordsText" type="text" indexed="true" stored="false" multiValued="true"/>
|
308
|
<field name="placeKey" type="text" indexed="true" stored="true" multiValued="true"/>
|
309
|
|
310
|
<field name="noBoundingBox" type="string" indexed="true" stored="true"/>
|
311
|
<field name="isSpatial" type="string" indexed="true" stored="true"/>
|
312
|
|
313
|
<field name="decade" type="string" indexed="true" stored="true"/>
|
314
|
<field name="gcmdKeyword" type="text" indexed="true" stored="true" multiValued="true"/>
|
315
|
|
316
|
<!-- these are ornl daac fields, may not be populated for nbii, but are required to be here for indexing purpose-->
|
317
|
<field name="project" type="string" indexed="true" stored="true"/>
|
318
|
<field name="projectText" type="text" indexed="true" stored="false"/>
|
319
|
|
320
|
<field name="site" type="string" indexed="true" stored="true" multiValued="true"/>
|
321
|
<field name="siteText" type="text" indexed="true" stored="false" multiValued="true"/>
|
322
|
|
323
|
<field name="parameter" type="string" indexed="true" stored="true" multiValued="true"/>
|
324
|
<field name="parameterText" type="text" indexed="true" stored="false" multiValued="true"/>
|
325
|
|
326
|
<field name="sensor" type="string" indexed="true" stored="true" multiValued="true"/>
|
327
|
<field name="sensorText" type="text" indexed="true" stored="false" multiValued="true"/>
|
328
|
|
329
|
<field name="source" type="string" indexed="true" stored="true" multiValued="true"/>
|
330
|
<field name="sourceText" type="text" indexed="true" stored="false" multiValued="true"/>
|
331
|
|
332
|
<field name="term" type="string" indexed="true" stored="true" multiValued="true"/>
|
333
|
<field name="termText" type="text" indexed="true" stored="false" multiValued="true"/>
|
334
|
|
335
|
<field name="topic" type="string" indexed="true" stored="true" multiValued="true"/>
|
336
|
<field name="topicText" type="text" indexed="true" stored="false" multiValued="true"/>
|
337
|
|
338
|
<field name="fileID" type="string" indexed="true" stored="true"/>
|
339
|
<field name="text" type="text" indexed="true" stored="true" multiValued="false" />
|
340
|
|
341
|
<!-- ======================================================================= -->
|
342
|
<!-- Dynamic field definitions. If a field name is not found, dynamicFields
|
343
|
will be used if the name matches any of the patterns.
|
344
|
RESTRICTION: the glob-like pattern in the name attribute must have
|
345
|
a "*" only at the start or the end.
|
346
|
EXAMPLE: name="*_i" will match any field ending in _i (like myid_i, z_i)
|
347
|
Longer patterns will be matched first. if equal size patterns
|
348
|
both match, the first appearing in the schema will be used. -->
|
349
|
<dynamicField name="*_i" type="sint" indexed="true" stored="true"/>
|
350
|
<dynamicField name="*_s" type="string" indexed="true" stored="true"/>
|
351
|
<dynamicField name="*_l" type="slong" indexed="true" stored="true"/>
|
352
|
<dynamicField name="*_t" type="text" indexed="true" stored="true"/>
|
353
|
<dynamicField name="*_b" type="boolean" indexed="true" stored="true"/>
|
354
|
<dynamicField name="*_f" type="sfloat" indexed="true" stored="true"/>
|
355
|
<dynamicField name="*_d" type="sdouble" indexed="true" stored="true"/>
|
356
|
<dynamicField name="*_dt" type="date" indexed="true" stored="true"/>
|
357
|
|
358
|
<!-- allow multivalued dynamic fields as well -->
|
359
|
<dynamicField name="*_im" type="sint" indexed="true" stored="true" multiValued="true"/>
|
360
|
<dynamicField name="*_sm" type="string" indexed="true" stored="true" multiValued="true"/>
|
361
|
<dynamicField name="*_lm" type="slong" indexed="true" stored="true" multiValued="true"/>
|
362
|
<dynamicField name="*_tm" type="text" indexed="true" stored="true" multiValued="true"/>
|
363
|
<dynamicField name="*_bm" type="boolean" indexed="true" stored="true" multiValued="true"/>
|
364
|
<dynamicField name="*_fm" type="sfloat" indexed="true" stored="true" multiValued="true"/>
|
365
|
<dynamicField name="*_dm" type="sdouble" indexed="true" stored="true" multiValued="true"/>
|
366
|
<dynamicField name="*_dtm" type="date" indexed="true" stored="true" multiValued="true"/>
|
367
|
</fields>
|
368
|
|
369
|
<!-- ======================================================================= -->
|
370
|
<!-- field to use to determine and enforce document uniqueness. -->
|
371
|
<uniqueKey>id</uniqueKey>
|
372
|
|
373
|
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
|
374
|
<defaultSearchField>text</defaultSearchField>
|
375
|
|
376
|
<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
|
377
|
<solrQueryParser defaultOperator="AND"/>
|
378
|
|
379
|
<!-- ======================================================================= -->
|
380
|
<!-- copyField commands copy one field to another at the time a document
|
381
|
is added to the index. It's used either to index the same field different
|
382
|
ways, or to add multiple fields to the same field for easier/faster searching. -->
|
383
|
|
384
|
<copyField source="id" dest="sku"/>
|
385
|
<copyField source="id" dest="identifier"/>
|
386
|
|
387
|
<copyField source="title" dest="titlestr"/>
|
388
|
|
389
|
<copyField source="origin" dest="originText"/>
|
390
|
<copyField source="origin" dest="originatorText"/>
|
391
|
|
392
|
<copyField source="project" dest="projectText"/>
|
393
|
|
394
|
<copyField source="site" dest="siteText"/>
|
395
|
<copyField source="parameter" dest="parameterText"/>
|
396
|
<copyField source="sensor" dest="sensorText"/>
|
397
|
<copyField source="source" dest="sourceText"/>
|
398
|
<copyField source="term" dest="termText"/>
|
399
|
<copyField source="topic" dest="topicText"/>
|
400
|
<copyField source="investigator" dest="investigatorText"/>
|
401
|
<copyField source="keywords" dest="keywordsText"/>
|
402
|
<copyField source="pubDate" dest="datePublished" />
|
403
|
<copyField source="dateUploaded" dest="updateDate" />
|
404
|
<copyField source="contactOrganization" dest="contactOrganizationText"/>
|
405
|
|
406
|
|
407
|
<!-- Similarity is the scoring routine for each document vs a query.
|
408
|
A custom similarity may be specified here, but the default is fine
|
409
|
for most applications. -->
|
410
|
<!-- <similarity class="org.apache.lucene.search.DefaultSimilarity"/> -->
|
411
|
|
412
|
</schema>
|