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