]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
3551155cb24ec7442a34f446e43f6e4feaf8de3f
[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                 "_all" : {
29                   "enabled": false
30                 },
31                 "_source": {
32                   "includes": [
33                     "collectionspace_denorm:*",
34                     "collectionspace_core:*",
35                     "ecm:currentLifeCycleState",
36                     "ecm:name",
37                     "ecm:primaryType",
38                     "materials_common:shortIdentifier",
39                     "materials_common:publishToList",
40                     "materials_common:externalUrlGroupList",
41                     "materials_common:materialTermGroupList",
42                     "materials_common:materialCompositionGroupList",
43                     "materials_common:description",
44                     "materials_common:typicalUses",
45                     "materials_common:discontinued",
46                     "materials_common:productionDate",
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:objectStatusList",
81                     "collectionobjects_common:publishToList",
82                     "collectionobjects_common:materialGroupList",
83                     "collectionobjects_common:otherNumberList",
84                     "collectionobjects_common:collection",
85                     "collectionobjects_common:computedCurrentLocation",
86                     "collectionobjects_materials:materialContainerGroupList",
87                     "collectionobjects_materials:materialConditionGroupList",
88                     "collectionobjects_materials:materialHandlingGroupList",
89                     "collectionobjects_materials:materialPhysicalDescriptions",
90                     "collectionobjects_common:colors",
91                     "collectionobjects_materials:materialGenericColors",
92                     "collectionobjects_materials:materialFinishGroupList",
93                     "collectionobjects_common:numberOfObjects",
94                     "collectionobjects_common:briefDescriptions",
95                     "collectionobjects_common:measuredPartGroupList",
96                     "media_common:blobCsid",
97                     "media_materials:publishToList"
98                   ]
99                 },
100                 "properties" : {
101                   "all_field": {
102                     "type": "text",
103                     "analyzer": "fulltext"
104                   },
105
106                   "ecm:currentLifeCycleState": {
107                     "type": "keyword"
108                   },
109                   "ecm:name": {
110                     "type": "keyword"
111                   },
112                   "ecm:primaryType": {
113                     "type": "text",
114                     "analyzer" : "doctype_analyzer"
115                   },
116
117                   "collectionspace_denorm:title": {
118                     "type": "text",
119                     "fielddata": true,
120                     "analyzer": "sorting_analyzer"
121                   },
122                   "collectionspace_denorm:commercialNames": {
123                     "type": "text",
124                     "analyzer": "fulltext"
125                   },
126                   "collectionspace_denorm:commonNames": {
127                     "type": "text",
128                     "analyzer": "fulltext"
129                   },
130                   "collectionspace_denorm:holdingInstitutions": {
131                     "type": "keyword",
132                     "copy_to": "all_field",
133                     "fields": {
134                       "displayName": {
135                         "type": "text",
136                         "fielddata": true,
137                         "analyzer": "refname_displayname_analyzer"
138                       }
139                     }
140                   },
141
142                   "collectionspace_core:createdAt": {
143                     "type": "date",
144                     // Sometimes the timestamp only has a two digit fractional second, instead of three.
145                     // From imported data??
146                     "format" : "date_time||yyyy-MM-dd'T'HH:mm:ss.SSZZ"
147                   },
148
149                   "materials_common:shortIdentifier": {
150                     "type": "keyword",
151                     "copy_to": "all_field"
152                   },
153                   "materials_common:materialTermGroupList": {
154                     "type": "object",
155                     "properties": {
156                       "termDisplayName": {
157                         "type": "text",
158                         "copy_to": "all_field"
159                       }
160                     }
161                   },
162                   "materials_common:publishToList": {
163                     "type": "keyword",
164                     "fields": {
165                       "shortid": {
166                         "type": "text",
167                         "analyzer": "refname_shortid_analyzer"
168                       }
169                     }
170                   },
171                   "materials_common:materialCompositionGroupList": {
172                     "type": "object",
173                     "properties": {
174                       "materialCompositionFamilyName": {
175                         "type": "keyword",
176                         "copy_to": "all_field",
177                         "fields": {
178                           "displayName": {
179                             "type": "text",
180                             "fielddata": true,
181                             "analyzer": "refname_displayname_analyzer"
182                           }
183                         }
184                       },
185                       "materialCompositionClassName": {
186                         "type": "keyword",
187                         "copy_to": "all_field",
188                         "fields": {
189                           "displayName": {
190                             "type": "text",
191                             "fielddata": true,
192                             "analyzer": "refname_displayname_analyzer"
193                           }
194                         }
195                       },
196                       "materialCompositionGenericName": {
197                         "type": "keyword",
198                         "copy_to": "all_field",
199                         "fields": {
200                           "displayName": {
201                             "type": "text",
202                             "fielddata": true,
203                             "analyzer": "refname_displayname_analyzer"
204                           }
205                         }
206                       }
207                     }
208                   },
209                   "materials_common:description": {
210                     "type": "text",
211                     "analyzer" : "fulltext",
212                     "copy_to": "all_field"
213                   },
214                   "materials_common:typicalUses": {
215                     "type": "keyword",
216                     "copy_to": "all_field",
217                     "fields": {
218                       "displayName": {
219                         "type": "text",
220                         "fielddata": true,
221                         "analyzer": "refname_displayname_analyzer"
222                       }
223                     }
224                   },
225                   "materials_common:materialProductionOrganizationGroupList": {
226                     "type": "object",
227                     "properties": {
228                       "materialProductionOrganization": {
229                         "type": "keyword",
230                         "copy_to": "all_field",
231                         "fields": {
232                           "displayName": {
233                             "type": "text",
234                             "analyzer": "refname_displayname_fulltext_analyzer"
235                           }
236                         }
237                       }
238                     }
239                   },
240                   "materials_common:materialProductionPersonGroupList": {
241                     "type": "object",
242                     "properties": {
243                       "materialProductionPerson": {
244                         "type": "keyword",
245                         "copy_to": "all_field",
246                         "fields": {
247                           "displayName": {
248                             "type": "text",
249                             "analyzer": "refname_displayname_fulltext_analyzer"
250                           }
251                         }
252                       }
253                     }
254                   },
255                   "materials_common:materialProductionPlaceGroupList": {
256                     "type": "object",
257                     "properties": {
258                       "materialProductionPlace": {
259                         "type": "keyword",
260                         "copy_to": "all_field",
261                         "fields": {
262                           "displayName": {
263                             "type": "text",
264                             "analyzer": "refname_displayname_fulltext_analyzer"
265                           }
266                         }
267                       }
268                     }
269                   },
270                   "materials_common:featuredApplicationGroupList": {
271                     "type": "object",
272                     "properties": {
273                       "featuredApplication": {
274                         "type": "keyword",
275                         "copy_to": "all_field",
276                         "fields": {
277                           "displayName": {
278                             "type": "text",
279                             "fielddata": true,
280                             "analyzer": "refname_displayname_analyzer"
281                           }
282                         }
283                       }
284                     }
285                   },
286                   "materials_common:commonForm": {
287                     "type": "keyword",
288                     "copy_to": "all_field",
289                     "fields": {
290                       "displayName": {
291                         "type": "text",
292                         "fielddata": true,
293                         "analyzer": "refname_displayname_analyzer"
294                       }
295                     }
296                   },
297                   "materials_common:formTypeGroupList": {
298                     "type": "object",
299                     "properties": {
300                       "formType": {
301                         "type": "keyword",
302                         "copy_to": "all_field",
303                         "fields": {
304                           "displayName": {
305                             "type": "text",
306                             "fielddata": true,
307                             "analyzer": "refname_displayname_analyzer"
308                           }
309                         }
310                       }
311                     }
312                   },
313                   // Properties
314                   "materials_common:acousticalPropertyGroupList": {
315                     "type": "object",
316                     "properties": {
317                       "acousticalPropertyType": {
318                         "type": "keyword",
319                         "copy_to": "all_field",
320                         "fields": {
321                           "displayName": {
322                             "type": "text",
323                             "fielddata": true,
324                             "analyzer": "refname_displayname_analyzer"
325                           }
326                         }
327                       }
328                     }
329                   },
330                   "materials_common:durabilityPropertyGroupList": {
331                     "type": "object",
332                     "properties": {
333                       "durabilityPropertyType": {
334                         "type": "keyword",
335                         "copy_to": "all_field",
336                         "fields": {
337                           "displayName": {
338                             "type": "text",
339                             "fielddata": true,
340                             "analyzer": "refname_displayname_analyzer"
341                           }
342                         }
343                       }
344                     }
345                   },
346                   "materials_common:electricalPropertyGroupList": {
347                     "type": "object",
348                     "properties": {
349                       "electricalPropertyType": {
350                         "type": "keyword",
351                         "copy_to": "all_field",
352                         "fields": {
353                           "displayName": {
354                             "type": "text",
355                             "fielddata": true,
356                             "analyzer": "refname_displayname_analyzer"
357                           }
358                         }
359                       }
360                     }
361                   },
362                   "materials_common:hygrothermalPropertyGroupList": {
363                     "type": "object",
364                     "properties": {
365                       "hygrothermalPropertyType": {
366                         "type": "keyword",
367                         "copy_to": "all_field",
368                         "fields": {
369                           "displayName": {
370                             "type": "text",
371                             "fielddata": true,
372                             "analyzer": "refname_displayname_analyzer"
373                           }
374                         }
375                       }
376                     }
377                   },
378                   "materials_common:mechanicalPropertyGroupList": {
379                     "type": "object",
380                     "properties": {
381                       "mechanicalPropertyType": {
382                         "type": "keyword",
383                         "copy_to": "all_field",
384                         "fields": {
385                           "displayName": {
386                             "type": "text",
387                             "fielddata": true,
388                             "analyzer": "refname_displayname_analyzer"
389                           }
390                         }
391                       }
392                     }
393                   },
394                   "materials_common:opticalPropertyGroupList": {
395                     "type": "object",
396                     "properties": {
397                       "opticalPropertyType": {
398                         "type": "keyword",
399                         "copy_to": "all_field",
400                         "fields": {
401                           "displayName": {
402                             "type": "text",
403                             "fielddata": true,
404                             "analyzer": "refname_displayname_analyzer"
405                           }
406                         }
407                       }
408                     }
409                   },
410                   "materials_common:sensorialPropertyGroupList": {
411                     "type": "object",
412                     "properties": {
413                       "sensorialPropertyType": {
414                         "type": "keyword",
415                         "copy_to": "all_field",
416                         "fields": {
417                           "displayName": {
418                             "type": "text",
419                             "fielddata": true,
420                             "analyzer": "refname_displayname_analyzer"
421                           }
422                         }
423                       }
424                     }
425                   },
426                   "materials_common:smartMaterialPropertyGroupList": {
427                     "type": "object",
428                     "properties": {
429                       "smartMaterialPropertyType": {
430                         "type": "keyword",
431                         "copy_to": "all_field",
432                         "fields": {
433                           "displayName": {
434                             "type": "text",
435                             "fielddata": true,
436                             "analyzer": "refname_displayname_analyzer"
437                           }
438                         }
439                       }
440                     }
441                   },
442                   "materials_common:additionalPropertyGroupList": {
443                     "type": "object",
444                     "properties": {
445                       "additionalPropertyType": {
446                         "type": "keyword",
447                         "copy_to": "all_field",
448                         "fields": {
449                           "displayName": {
450                             "type": "text",
451                             "fielddata": true,
452                             "analyzer": "refname_displayname_analyzer"
453                           }
454                         }
455                       }
456                     }
457                   },
458                   // Material Ecology
459                   "materials_common:recycledContentGroupList": {
460                     "type": "object",
461                     "properties": {
462                       "recycledContentQualifier": {
463                         "type": "keyword",
464                         "copy_to": "all_field",
465                         "fields": {
466                           "displayName": {
467                             "type": "text",
468                             "fielddata": true,
469                             "analyzer": "refname_displayname_analyzer"
470                           }
471                         }
472                       }
473                     }
474                   },
475                   "materials_common:lifecycleComponentGroupList": {
476                     "type": "object",
477                     "properties": {
478                       "lifecycleComponent": {
479                         "type": "keyword",
480                         "copy_to": "all_field",
481                         "fields": {
482                           "displayName": {
483                             "type": "text",
484                             "fielddata": true,
485                             "analyzer": "refname_displayname_analyzer"
486                           }
487                         }
488                       }
489                     }
490                   },
491                   // TODO: embodiedEnergy - range?
492                   "materials_common:certificationCreditGroupList": {
493                     "type": "object",
494                     "properties": {
495                       "certificationProgram": {
496                         "type": "keyword",
497                         "copy_to": "all_field",
498                         "fields": {
499                           "displayName": {
500                             "type": "text",
501                             "fielddata": true,
502                             "analyzer": "refname_displayname_analyzer"
503                           }
504                         }
505                       }
506                     }
507                   },
508                   // Process
509                   "materials_common:castingProcesses": {
510                     "type": "keyword",
511                     "copy_to": "all_field",
512                     "fields": {
513                       "displayName": {
514                         "type": "text",
515                         "fielddata": true,
516                         "analyzer": "refname_displayname_analyzer"
517                       }
518                     }
519                   },
520                   "materials_common:joiningProcesses": {
521                     "type": "keyword",
522                     "copy_to": "all_field",
523                     "fields": {
524                       "displayName": {
525                         "type": "text",
526                         "fielddata": true,
527                         "analyzer": "refname_displayname_analyzer"
528                       }
529                     }
530                   },
531                   "materials_common:moldingProcesses": {
532                     "type": "keyword",
533                     "copy_to": "all_field",
534                     "fields": {
535                       "displayName": {
536                         "type": "text",
537                         "fielddata": true,
538                         "analyzer": "refname_displayname_analyzer"
539                       }
540                     }
541                   },
542                   "materials_common:surfacingProcesses": {
543                     "type": "keyword",
544                     "copy_to": "all_field",
545                     "fields": {
546                       "displayName": {
547                         "type": "text",
548                         "fielddata": true,
549                         "analyzer": "refname_displayname_analyzer"
550                       }
551                     }
552                   },
553                   "materials_common:deformingProcesses": {
554                     "type": "keyword",
555                     "copy_to": "all_field",
556                     "fields": {
557                       "displayName": {
558                         "type": "text",
559                         "fielddata": true,
560                         "analyzer": "refname_displayname_analyzer"
561                       }
562                     }
563                   },
564                   "materials_common:machiningProcesses": {
565                     "type": "keyword",
566                     "copy_to": "all_field",
567                     "fields": {
568                       "displayName": {
569                         "type": "text",
570                         "fielddata": true,
571                         "analyzer": "refname_displayname_analyzer"
572                       }
573                     }
574                   },
575                   "materials_common:rapidPrototypingProcesses": {
576                     "type": "keyword",
577                     "copy_to": "all_field",
578                     "fields": {
579                       "displayName": {
580                         "type": "text",
581                         "fielddata": true,
582                         "analyzer": "refname_displayname_analyzer"
583                       }
584                     }
585                   },
586                   "materials_common:additionalProcessGroupList": {
587                     "type": "object",
588                     "properties": {
589                       "additionalProcess": {
590                         "type": "keyword",
591                         "copy_to": "all_field",
592                         "fields": {
593                           "displayName": {
594                             "type": "text",
595                             "fielddata": true,
596                             "analyzer": "refname_displayname_analyzer"
597                           }
598                         }
599                       }
600                     }
601                   },
602
603                   "collectionobjects_common:objectNumber": {
604                     "type": "keyword",
605                     "copy_to": "all_field"
606                   },
607                   "collectionobjects_common:publishToList": {
608                     "type": "keyword",
609                     "fields": {
610                       "shortid": {
611                         "type": "text",
612                         "analyzer": "refname_shortid_analyzer"
613                       }
614                     }
615                   },
616                   "collectionobjects_common:materialGroupList": {
617                     "type": "object",
618                     "properties": {
619                       "material": {
620                         "type": "keyword",
621                         "copy_to": "all_field",
622                         "fields": {
623                           "displayName": {
624                             "type": "text",
625                             "fielddata": true,
626                             "analyzer": "refname_displayname_analyzer"
627                           },
628                           "shortid": {
629                             "type": "text",
630                             "analyzer": "refname_shortid_analyzer"
631                           }
632                         }
633                       }
634                     }
635                   },
636
637                   "media_materials:publishToList": {
638                     "type": "keyword",
639                     "fields": {
640                       "shortid": {
641                         "type": "text",
642                         "analyzer": "refname_shortid_analyzer"
643                       }
644                     }
645                   }
646                 }
647               }
648             </tenant:mapping>
649         </tenant:elasticSearchIndexConfig>
650     </tenant:tenantBinding>
651 </tenant:TenantBindingConfig>