]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
812d8bb3aa214375ffc85cadfaa5703d02c26f56
[tmp/jakarta-migration.git] /
1 <?xml version="1.0" encoding="UTF-8"?>
2 <tenant:TenantBindingConfig
3         xmlns:merge='http://xmlmerge.el4j.elca.ch'
4         xmlns:tenant='http://collectionspace.org/services/config/tenant'>
5
6     <!-- Add your changes, if any, within the following tag pair. -->
7     <!-- The value of the 'id' attribute, below, should match the corresponding -->
8     <!-- value in cspace/config/services/tenants/materials-tenant-bindings-proto.xml -->
9
10     <tenant:tenantBinding id="2000">
11         <tenant:eventListenerConfigurations id="default" merge:matcher="id">
12             <tenant:eventListenerConfig id="ReindexSupport" merge:matcher="id">
13                 <tenant:className>org.collectionspace.services.listener.ReindexSupport</tenant:className>
14             </tenant:eventListenerConfig>
15         </tenant:eventListenerConfigurations>
16
17         <tenant:serviceBindings id="Media" elasticsearchIndexed="true" merge:matcher="id" />
18         <tenant:serviceBindings id="CollectionObjects" elasticsearchIndexed="true" merge:matcher="id" />
19         <tenant:serviceBindings id="Materials" elasticsearchIndexed="true" merge:matcher="id" />
20
21         <tenant:elasticSearchIndexConfig>
22             <tenant:mapping>
23               {
24                 // For now, don't index a field unless there's a mapping explicitly defined. This keeps the
25                 // index as small as possible. We may want to turn this on in the future, to support arbitrary
26                 // searches through Elasticsearch, e.g. NXQL queries for ad hoc reporting in the CSpace UI.
27                 "dynamic": false,
28                 "_size" : {
29                   "enabled" : true
30                 },
31                 "_all" : {
32                   "analyzer" : "fulltext"
33                 },
34                 "_source": {
35                   "includes": [
36                     "collectionspace_denorm:*",
37                     "collectionspace_core:*",
38                     "ecm:currentLifeCycleState",
39                     "ecm:primaryType",
40                     "materials_common:shortIdentifier",
41                     "materials_common:publishToList",
42                     "materials_common:externalUrlGroupList",
43                     "materials_common:materialTermGroupList",
44                     "materials_common:materialCompositionGroupList",
45                     "materials_common:description",
46                     "materials_common:typicalUses",
47                     "materials_common:materialProductionOrganizationGroupList",
48                     "materials_common:materialProductionPersonGroupList",
49                     "materials_common:materialProductionPlaceGroupList",
50                     "materials_common:productionNote",
51                     "materials_common:additionalResourceGroupList",
52                     "materials_common:featuredApplicationGroupList",
53                     "materials_common:commonForm",
54                     "materials_common:formTypeGroupList",
55                     "materials_common:acousticalPropertyGroupList",
56                     "materials_common:durabilityPropertyGroupList",
57                     "materials_common:electricalPropertyGroupList",
58                     "materials_common:hygrothermalPropertyGroupList",
59                     "materials_common:mechanicalPropertyGroupList",
60                     "materials_common:opticalPropertyGroupList",
61                     "materials_common:sensorialPropertyGroupList",
62                     "materials_common:smartMaterialPropertyGroupList",
63                     "materials_common:additionalPropertyGroupList",
64                     "materials_common:propertyNote",
65                     "materials_common:recycledContentGroupList",
66                     "materials_common:lifecycleComponentGroupList",
67                     "materials_common:embodiedEnergyGroupList",
68                     "materials_common:certificationCreditGroupList",
69                     "materials_common:ecologyNote",
70                     "materials_common:castingProcesses",
71                     "materials_common:joiningProcesses",
72                     "materials_common:moldingProcesses",
73                     "materials_common:surfacingProcesses",
74                     "materials_common:deformingProcesses",
75                     "materials_common:machiningProcesses",
76                     "materials_common:rapidPrototypingProcesses",
77                     "materials_common:additionalProcessGroupList",
78                     "materials_common:processNote",
79                     "collectionobjects_common:objectNumber",
80                     "collectionobjects_common:publishToList",
81                     "collectionobjects_common:materialGroupList",
82                     "collectionobjects_common:otherNumberList",
83                     "collectionobjects_common:collection",
84                     "collectionobjects_common:computedCurrentLocation",
85                     "collectionobjects_materials:materialContainerGroupList",
86                     "collectionobjects_materials:materialConditionGroupList",
87                     "collectionobjects_materials:materialHandlingGroupList",
88                     "collectionobjects_common:colors",
89                     "collectionobjects_materials:materialGenericColors",
90                     "collectionobjects_materials:materialFinishGroupList",
91                     "collectionobjects_common:numberOfObjects",
92                     "collectionobjects_common:briefDescriptions",
93                     "collectionobjects_common:measuredPartGroupList",
94                     "media_common:blobCsid",
95                     "media_materials:publishToList"
96                   ]
97                 },
98                 "properties" : {
99                   "ecm:currentLifeCycleState": {
100                     "type": "string",
101                     "include_in_all": "false"
102                   },
103                   "ecm:name": {
104                     "type": "string",
105                     "include_in_all": "false"
106                   },
107                   "ecm:primaryType": {
108                     "type": "string",
109                     "analyzer" : "doctype_analyzer",
110                     "include_in_all": "false"
111                   },
112
113                   "collectionspace_denorm:title": {
114                     "type": "string",
115                     "analyzer" : "sorting_analyzer",
116                     "include_in_all": "false"
117                   },
118                   "collectionspace_denorm:commercialNames": {
119                     "type": "string",
120                     "analyzer" : "fulltext",
121                     "include_in_all": "false"
122                   },
123                   "collectionspace_denorm:commonNames": {
124                     "type": "string",
125                     "analyzer" : "fulltext",
126                     "include_in_all": "false"
127                   },
128
129                   "collectionspace_core:createdAt": {
130                     "type": "date",
131                     // Sometimes the timestamp only has a two digit fractional second, instead of three.
132                     // From imported data??
133                     "format" : "date_time||yyyy-MM-dd'T'HH:mm:ss.SSZZ",
134                     "include_in_all": "false"
135                   },
136
137                   "materials_common:shortIdentifier": {
138                     "type": "string"
139                   },
140                   "materials_common:materialTermGroupList": {
141                     "type": "object",
142                     "properties": {
143                       "termDisplayName": {
144                         "type": "string"
145                       }
146                     }
147                   },
148                   "materials_common:publishToList": {
149                     "type": "string",
150                     "include_in_all": "false",
151                     "fields": {
152                       "shortid": {
153                         "type": "string",
154                         "analyzer": "refname_shortid_analyzer"
155                       }
156                     }
157                   },
158                   "materials_common:materialCompositionGroupList": {
159                     "type": "object",
160                     "properties": {
161                       "materialCompositionFamilyName": {
162                         "type": "string",
163                         "fields": {
164                           "displayName": {
165                             "type": "string",
166                             "analyzer": "refname_displayname_analyzer"
167                           }
168                         }
169                       },
170                       "materialCompositionClassName": {
171                         "type": "string",
172                         "fields": {
173                           "displayName": {
174                             "type": "string",
175                             "analyzer": "refname_displayname_analyzer"
176                           }
177                         }
178                       },
179                       "materialCompositionGenericName": {
180                         "type": "string",
181                         "fields": {
182                           "displayName": {
183                             "type": "string",
184                             "analyzer": "refname_displayname_analyzer"
185                           }
186                         }
187                       }
188                     }
189                   },
190                   "materials_common:description": {
191                     "type": "string",
192                     "analyzer" : "fulltext"
193                   },
194                   "materials_common:typicalUses": {
195                     "type": "string",
196                     "fields": {
197                       "displayName": {
198                         "type": "string",
199                         "analyzer": "refname_displayname_analyzer"
200                       }
201                     }
202                   },
203                   "materials_common:materialProductionOrganizationGroupList": {
204                     "type": "object",
205                     "properties": {
206                       "materialProductionOrganization": {
207                         "type": "string",
208                         "fields": {
209                           "displayName": {
210                             "type": "string",
211                             "analyzer": "refname_displayname_fulltext_analyzer"
212                           }
213                         }
214                       }
215                     }
216                   },
217                   "materials_common:materialProductionPersonGroupList": {
218                     "type": "object",
219                     "properties": {
220                       "materialProductionPerson": {
221                         "type": "string",
222                         "fields": {
223                           "displayName": {
224                             "type": "string",
225                             "analyzer": "refname_displayname_fulltext_analyzer"
226                           }
227                         }
228                       }
229                     }
230                   },
231                   "materials_common:materialProductionPlaceGroupList": {
232                     "type": "object",
233                     "properties": {
234                       "materialProductionPlace": {
235                         "type": "string",
236                         "fields": {
237                           "displayName": {
238                             "type": "string",
239                             "analyzer": "refname_displayname_fulltext_analyzer"
240                           }
241                         }
242                       }
243                     }
244                   },
245                   "materials_common:featuredApplicationGroupList": {
246                     "type": "object",
247                     "properties": {
248                       "featuredApplication": {
249                         "type": "string",
250                         "fields": {
251                           "displayName": {
252                             "type": "string",
253                             "analyzer": "refname_displayname_analyzer"
254                           }
255                         }
256                       }
257                     }
258                   },
259                   "materials_common:commonForm": {
260                     "type": "string",
261                     "fields": {
262                       "displayName": {
263                         "type": "string",
264                         "analyzer": "refname_displayname_analyzer"
265                       }
266                     }
267                   },
268                   "materials_common:formTypeGroupList": {
269                     "type": "object",
270                     "properties": {
271                       "formType": {
272                         "type": "string",
273                         "fields": {
274                           "displayName": {
275                             "type": "string",
276                             "analyzer": "refname_displayname_analyzer"
277                           }
278                         }
279                       }
280                     }
281                   },
282                   // Properties
283                   "materials_common:acousticalPropertyGroupList": {
284                     "type": "object",
285                     "properties": {
286                       "acousticalPropertyType": {
287                         "type": "string",
288                         "fields": {
289                           "displayName": {
290                             "type": "string",
291                             "analyzer": "refname_displayname_analyzer"
292                           }
293                         }
294                       }
295                     }
296                   },
297                   "materials_common:durabilityPropertyGroupList": {
298                     "type": "object",
299                     "properties": {
300                       "durabilityPropertyType": {
301                         "type": "string",
302                         "fields": {
303                           "displayName": {
304                             "type": "string",
305                             "analyzer": "refname_displayname_analyzer"
306                           }
307                         }
308                       }
309                     }
310                   },
311                   "materials_common:electricalPropertyGroupList": {
312                     "type": "object",
313                     "properties": {
314                       "electricalPropertyType": {
315                         "type": "string",
316                         "fields": {
317                           "displayName": {
318                             "type": "string",
319                             "analyzer": "refname_displayname_analyzer"
320                           }
321                         }
322                       }
323                     }
324                   },
325                   "materials_common:hygrothermalPropertyGroupList": {
326                     "type": "object",
327                     "properties": {
328                       "hygrothermalPropertyType": {
329                         "type": "string",
330                         "fields": {
331                           "displayName": {
332                             "type": "string",
333                             "analyzer": "refname_displayname_analyzer"
334                           }
335                         }
336                       }
337                     }
338                   },
339                   "materials_common:mechanicalPropertyGroupList": {
340                     "type": "object",
341                     "properties": {
342                       "mechanicalPropertyType": {
343                         "type": "string",
344                         "fields": {
345                           "displayName": {
346                             "type": "string",
347                             "analyzer": "refname_displayname_analyzer"
348                           }
349                         }
350                       }
351                     }
352                   },
353                   "materials_common:opticalPropertyGroupList": {
354                     "type": "object",
355                     "properties": {
356                       "opticalPropertyType": {
357                         "type": "string",
358                         "fields": {
359                           "displayName": {
360                             "type": "string",
361                             "analyzer": "refname_displayname_analyzer"
362                           }
363                         }
364                       }
365                     }
366                   },
367                   "materials_common:sensorialPropertyGroupList": {
368                     "type": "object",
369                     "properties": {
370                       "sensorialPropertyType": {
371                         "type": "string",
372                         "fields": {
373                           "displayName": {
374                             "type": "string",
375                             "analyzer": "refname_displayname_analyzer"
376                           }
377                         }
378                       }
379                     }
380                   },
381                   "materials_common:smartMaterialPropertyGroupList": {
382                     "type": "object",
383                     "properties": {
384                       "smartMaterialPropertyType": {
385                         "type": "string",
386                         "fields": {
387                           "displayName": {
388                             "type": "string",
389                             "analyzer": "refname_displayname_analyzer"
390                           }
391                         }
392                       }
393                     }
394                   },
395                   "materials_common:additionalPropertyGroupList": {
396                     "type": "object",
397                     "properties": {
398                       "additionalPropertyType": {
399                         "type": "string",
400                         "fields": {
401                           "displayName": {
402                             "type": "string",
403                             "analyzer": "refname_displayname_analyzer"
404                           }
405                         }
406                       }
407                     }
408                   },
409                   // Material Ecology
410                   "materials_common:recycledContentGroupList": {
411                     "type": "object",
412                     "properties": {
413                       "recycledContentQualifier": {
414                         "type": "string",
415                         "fields": {
416                           "displayName": {
417                             "type": "string",
418                             "analyzer": "refname_displayname_analyzer"
419                           }
420                         }
421                       }
422                     }
423                   },
424                   "materials_common:lifecycleComponentGroupList": {
425                     "type": "object",
426                     "properties": {
427                       "lifecycleComponent": {
428                         "type": "string",
429                         "fields": {
430                           "displayName": {
431                             "type": "string",
432                             "analyzer": "refname_displayname_analyzer"
433                           }
434                         }
435                       }
436                     }
437                   },
438                   // TODO: embodiedEnergy - range?
439                   "materials_common:certificationCreditGroupList": {
440                     "type": "object",
441                     "properties": {
442                       "certificationProgram": {
443                         "type": "string",
444                         "fields": {
445                           "displayName": {
446                             "type": "string",
447                             "analyzer": "refname_displayname_analyzer"
448                           }
449                         }
450                       }
451                     }
452                   },
453                   // Process
454                   "materials_common:castingProcesses": {
455                     "type": "string",
456                     "fields": {
457                       "displayName": {
458                         "type": "string",
459                         "analyzer": "refname_displayname_analyzer"
460                       }
461                     }
462                   },
463                   "materials_common:joiningProcesses": {
464                     "type": "string",
465                     "fields": {
466                       "displayName": {
467                         "type": "string",
468                         "analyzer": "refname_displayname_analyzer"
469                       }
470                     }
471                   },
472                   "materials_common:moldingProcesses": {
473                     "type": "string",
474                     "fields": {
475                       "displayName": {
476                         "type": "string",
477                         "analyzer": "refname_displayname_analyzer"
478                       }
479                     }
480                   },
481                   "materials_common:surfacingProcesses": {
482                     "type": "string",
483                     "fields": {
484                       "displayName": {
485                         "type": "string",
486                         "analyzer": "refname_displayname_analyzer"
487                       }
488                     }
489                   },
490                   "materials_common:deformingProcesses": {
491                     "type": "string",
492                     "fields": {
493                       "displayName": {
494                         "type": "string",
495                         "analyzer": "refname_displayname_analyzer"
496                       }
497                     }
498                   },
499                   "materials_common:machiningProcesses": {
500                     "type": "string",
501                     "fields": {
502                       "displayName": {
503                         "type": "string",
504                         "analyzer": "refname_displayname_analyzer"
505                       }
506                     }
507                   },
508                   "materials_common:rapidPrototypingProcesses": {
509                     "type": "string",
510                     "fields": {
511                       "displayName": {
512                         "type": "string",
513                         "analyzer": "refname_displayname_analyzer"
514                       }
515                     }
516                   },
517                   "materials_common:additionalProcessGroupList": {
518                     "type": "object",
519                     "properties": {
520                       "additionalProcess": {
521                         "type": "string",
522                         "fields": {
523                           "displayName": {
524                             "type": "string",
525                             "analyzer": "refname_displayname_analyzer"
526                           }
527                         }
528                       }
529                     }
530                   },
531
532                   "collectionobjects_common:objectNumber": {
533                     "type": "string"
534                   },
535                   "collectionobjects_common:publishToList": {
536                     "type": "string",
537                     "include_in_all": "false",
538                     "fields": {
539                       "shortid": {
540                         "type": "string",
541                         "analyzer": "refname_shortid_analyzer"
542                       }
543                     }
544                   },
545                   "collectionobjects_common:materialGroupList": {
546                     "type": "object",
547                     "properties": {
548                       "material": {
549                         "type": "string",
550                         "fields": {
551                           "displayName": {
552                             "type": "string",
553                             "analyzer": "refname_displayname_analyzer"
554                           }
555                         }
556                       }
557                     }
558                   },
559
560                   "media_materials:publishToList": {
561                     "type": "string",
562                     "include_in_all": "false",
563                     "fields": {
564                       "shortid": {
565                         "type": "string",
566                         "analyzer": "refname_shortid_analyzer"
567                       }
568                     }
569                   }
570                 }
571               }
572             </tenant:mapping>
573         </tenant:elasticSearchIndexConfig>
574     </tenant:tenantBinding>
575 </tenant:TenantBindingConfig>