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