]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
3057e9c2f4c8ac228c3eafd4870fae6002fbd907
[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:elasticSearchDocumentWriter merge:action="replace">
12           org.collectionspace.services.nuxeo.elasticsearch.materials.MaterialsESDocumentWriter
13         </tenant:elasticSearchDocumentWriter>
14
15         <tenant:elasticSearchIndexConfig merge:action="replace">
16             <tenant:mapping merge:action="replace">
17               {
18                 // For now, don't index a field unless there's a mapping explicitly defined. This keeps the
19                 // index as small as possible. We may want to turn this on in the future, to support arbitrary
20                 // searches through Elasticsearch, e.g. NXQL queries for ad hoc reporting in the CSpace UI.
21                 "dynamic": false,
22                 "_all" : {
23                   "enabled": false
24                 },
25                 "_source": {
26                   "includes": [
27                     "collectionspace_denorm:*",
28                     "collectionspace_core:*",
29                     "ecm:currentLifeCycleState",
30                     "ecm:name",
31                     "ecm:primaryType",
32                     "materials_common:shortIdentifier",
33                     "materials_common:featuredCollectionGroupList",
34                     "materials_common:publishToList",
35                     "materials_common:externalUrlGroupList",
36                     "materials_common:materialTermGroupList",
37                     "materials_common:materialCompositionGroupList",
38                     "materials_common:description",
39                     "materials_common:typicalUses",
40                     "materials_common:discontinued",
41                     "materials_common:productionDate",
42                     "materials_common:materialProductionOrganizationGroupList",
43                     "materials_common:materialProductionPersonGroupList",
44                     "materials_common:materialProductionPlaceGroupList",
45                     "materials_common:productionNote",
46                     "materials_common:additionalResourceGroupList",
47                     "materials_common:featuredApplicationGroupList",
48                     "materials_common:commonForm",
49                     "materials_common:formTypeGroupList",
50                     "materials_common:acousticalPropertyGroupList",
51                     "materials_common:durabilityPropertyGroupList",
52                     "materials_common:electricalPropertyGroupList",
53                     "materials_common:hygrothermalPropertyGroupList",
54                     "materials_common:mechanicalPropertyGroupList",
55                     "materials_common:opticalPropertyGroupList",
56                     "materials_common:sensorialPropertyGroupList",
57                     "materials_common:smartMaterialPropertyGroupList",
58                     "materials_common:additionalPropertyGroupList",
59                     "materials_common:propertyNote",
60                     "materials_common:recycledContentGroupList",
61                     "materials_common:lifecycleComponentGroupList",
62                     "materials_common:embodiedEnergyGroupList",
63                     "materials_common:certificationCreditGroupList",
64                     "materials_common:ecologyNote",
65                     "materials_common:castingProcesses",
66                     "materials_common:joiningProcesses",
67                     "materials_common:moldingProcesses",
68                     "materials_common:surfacingProcesses",
69                     "materials_common:deformingProcesses",
70                     "materials_common:machiningProcesses",
71                     "materials_common:rapidPrototypingProcesses",
72                     "materials_common:additionalProcessGroupList",
73                     "materials_common:processNote",
74                     "collectionobjects_common:contentDescription",
75                     "collectionobjects_common:contentEvents",
76                     "collectionobjects_common:contentOrganizations",
77                     "collectionobjects_common:contentPersons",
78                     "collectionobjects_common:objectHistoryNote",
79                     "collectionobjects_common:objectNumber",
80                     "collectionobjects_common:objectStatusList",
81                     "collectionobjects_common:publishedRelatedLinkGroupList",
82                     "collectionobjects_common:publishToList",
83                     "collectionobjects_common:materialGroupList",
84                     "collectionobjects_common:otherNumberList",
85                     "collectionobjects_common:ownersContributionNote",
86                     "collectionobjects_common:collection",
87                     "collectionobjects_common:namedCollections",
88                     "collectionobjects_common:computedCurrentLocation",
89                     "collectionobjects_materials:materialContainerGroupList",
90                     "collectionobjects_materials:materialConditionGroupList",
91                     "collectionobjects_materials:materialHandlingGroupList",
92                     "collectionobjects_materials:materialPhysicalDescriptions",
93                     "collectionobjects_common:colors",
94                     "collectionobjects_materials:materialGenericColors",
95                     "collectionobjects_materials:materialFinishGroupList",
96                     "collectionobjects_common:numberOfObjects",
97                     "collectionobjects_common:objectCountGroupList",
98                     "collectionobjects_common:briefDescriptions",
99                     "collectionobjects_common:measuredPartGroupList",
100                     "collectionobjects_common:viewersContributionNote",
101                     "collectionobjects_common:rightsGroupList.rightStatement",
102                     "collectionobjects_common:rightsGroupList.standardizedRightStatement",
103                     "collectionobjects_common:rightsInGroupList.rightReproductionStatement",
104                     "media_common:blobCsid",
105                     "media_common:identificationNumber",
106                     "media_common:title",
107                     "media_common:altText",
108                     "media_materials:publishToList"
109                   ]
110                 },
111                 "properties" : {
112                   "all_field": {
113                     "type": "text",
114                     "analyzer": "fulltext"
115                   },
116
117                   "ecm:currentLifeCycleState": {
118                     "type": "keyword"
119                   },
120                   "ecm:name": {
121                     "type": "keyword"
122                   },
123                   "ecm:primaryType": {
124                     "type": "text",
125                     "analyzer" : "doctype_analyzer"
126                   },
127
128                   "collectionspace_denorm:title": {
129                     "type": "keyword",
130                     "normalizer": "sorting_normalizer"
131                   },
132                   "collectionspace_denorm:commercialNames": {
133                     "type": "text",
134                     "analyzer": "fulltext"
135                   },
136                   "collectionspace_denorm:commonNames": {
137                     "type": "text",
138                     "analyzer": "fulltext"
139                   },
140                   "collectionspace_denorm:holdingInstitutions": {
141                     "type": "keyword",
142                     "copy_to": "all_field",
143                     "fields": {
144                       "displayName": {
145                         "type": "keyword",
146                         "normalizer": "refname_displayname_normalizer"
147                       }
148                     }
149                   },
150                   "collectionspace_denorm:mediaAltText": {
151                     "type": "text",
152                     "copy_to": "all_field"
153                   },
154                   "collectionspace_denorm:exhibition": {
155                     "type": "object",
156                     "properties": {
157                       "title": {
158                         "type": "keyword",
159                         "copy_to": "all_field"
160                       },
161                       "generalNote": {
162                         "type": "text",
163                         "copy_to": "all_field"
164                       },
165                       "curatorialNote": {
166                         "type": "text",
167                         "copy_to": "all_field"
168                       }
169                     }
170                   },
171                   "collectionspace_denorm:objectCsid": {
172                     "type": "keyword"
173                   },
174
175                   "collectionspace_core:createdAt": {
176                     "type": "date",
177                     // Sometimes the timestamp only has a two digit fractional second, instead of three.
178                     // From imported data??
179                     "format" : "date_time||yyyy-MM-dd'T'HH:mm:ss.SSZZ"
180                   },
181                   "collectionspace_core:updatedAt": {
182                     "type": "date",
183                     // Sometimes the timestamp only has a two digit fractional second, instead of three.
184                     // From imported data??
185                     "format" : "date_time||yyyy-MM-dd'T'HH:mm:ss.SSZZ"
186                   },
187
188                   "materials_common:shortIdentifier": {
189                     "type": "keyword",
190                     "copy_to": "all_field"
191                   },
192                   "materials_common:materialTermGroupList": {
193                     "type": "object",
194                     "properties": {
195                       "termDisplayName": {
196                         "type": "text",
197                         "copy_to": "all_field"
198                       }
199                     }
200                   },
201                   "materials_common:featuredCollectionGroupList": {
202                     "type": "object",
203                     "properties": {
204                       "featuredCollection": {
205                         "type": "keyword",
206                         "copy_to": "all_field",
207                         "fields": {
208                           "displayName": {
209                             "type": "keyword",
210                             "normalizer": "refname_displayname_normalizer"
211                           }
212                         }
213                       }
214                     }
215                   },
216                   "materials_common:publishToList": {
217                     "type": "keyword",
218                     "fields": {
219                       "shortid": {
220                         "type": "keyword",
221                         "normalizer": "refname_shortid_normalizer"
222                       }
223                     }
224                   },
225                   "materials_common:materialCompositionGroupList": {
226                     "type": "object",
227                     "properties": {
228                       "materialCompositionFamilyName": {
229                         "type": "keyword",
230                         "copy_to": "all_field",
231                         "fields": {
232                           "displayName": {
233                             "type": "keyword",
234                             "normalizer": "refname_displayname_normalizer"
235                           }
236                         }
237                       },
238                       "materialCompositionClassName": {
239                         "type": "keyword",
240                         "copy_to": "all_field",
241                         "fields": {
242                           "displayName": {
243                             "type": "keyword",
244                             "normalizer": "refname_displayname_normalizer"
245                           }
246                         }
247                       },
248                       "materialCompositionGenericName": {
249                         "type": "keyword",
250                         "copy_to": "all_field",
251                         "fields": {
252                           "displayName": {
253                             "type": "keyword",
254                             "normalizer": "refname_displayname_normalizer"
255                           }
256                         }
257                       }
258                     }
259                   },
260                   "materials_common:description": {
261                     "type": "text",
262                     "analyzer" : "fulltext",
263                     "copy_to": "all_field"
264                   },
265                   "materials_common:typicalUses": {
266                     "type": "keyword",
267                     "copy_to": "all_field",
268                     "fields": {
269                       "displayName": {
270                         "type": "keyword",
271                         "normalizer": "refname_displayname_normalizer"
272                       }
273                     }
274                   },
275                   "materials_common:materialProductionOrganizationGroupList": {
276                     "type": "object",
277                     "properties": {
278                       "materialProductionOrganization": {
279                         "type": "keyword",
280                         "copy_to": "all_field",
281                         "fields": {
282                           "displayName": {
283                             "type": "keyword",
284                             "normalizer": "refname_displayname_normalizer"
285                           }
286                         }
287                       }
288                     }
289                   },
290                   "materials_common:materialProductionPersonGroupList": {
291                     "type": "object",
292                     "properties": {
293                       "materialProductionPerson": {
294                         "type": "keyword",
295                         "copy_to": "all_field",
296                         "fields": {
297                           "displayName": {
298                             "type": "keyword",
299                             "normalizer": "refname_displayname_normalizer"
300                           }
301                         }
302                       }
303                     }
304                   },
305                   "materials_common:materialProductionPlaceGroupList": {
306                     "type": "object",
307                     "properties": {
308                       "materialProductionPlace": {
309                         "type": "keyword",
310                         "copy_to": "all_field",
311                         "fields": {
312                           "displayName": {
313                             "type": "keyword",
314                             "normalizer": "refname_displayname_normalizer"
315                           }
316                         }
317                       }
318                     }
319                   },
320                   "materials_common:featuredApplicationGroupList": {
321                     "type": "object",
322                     "properties": {
323                       "featuredApplication": {
324                         "type": "keyword",
325                         "copy_to": "all_field",
326                         "fields": {
327                           "displayName": {
328                             "type": "keyword",
329                             "normalizer": "refname_displayname_normalizer"
330                           }
331                         }
332                       }
333                     }
334                   },
335                   "materials_common:commonForm": {
336                     "type": "keyword",
337                     "copy_to": "all_field",
338                     "fields": {
339                       "displayName": {
340                         "type": "keyword",
341                         "normalizer": "refname_displayname_normalizer"
342                       }
343                     }
344                   },
345                   "materials_common:formTypeGroupList": {
346                     "type": "object",
347                     "properties": {
348                       "formType": {
349                         "type": "keyword",
350                         "copy_to": "all_field",
351                         "fields": {
352                           "displayName": {
353                             "type": "keyword",
354                             "normalizer": "refname_displayname_normalizer"
355                           }
356                         }
357                       }
358                     }
359                   },
360                   // Properties
361                   "materials_common:acousticalPropertyGroupList": {
362                     "type": "object",
363                     "properties": {
364                       "acousticalPropertyType": {
365                         "type": "keyword",
366                         "copy_to": "all_field",
367                         "fields": {
368                           "displayName": {
369                             "type": "keyword",
370                             "normalizer": "refname_displayname_normalizer"
371                           }
372                         }
373                       }
374                     }
375                   },
376                   "materials_common:durabilityPropertyGroupList": {
377                     "type": "object",
378                     "properties": {
379                       "durabilityPropertyType": {
380                         "type": "keyword",
381                         "copy_to": "all_field",
382                         "fields": {
383                           "displayName": {
384                             "type": "keyword",
385                             "normalizer": "refname_displayname_normalizer"
386                           }
387                         }
388                       }
389                     }
390                   },
391                   "materials_common:electricalPropertyGroupList": {
392                     "type": "object",
393                     "properties": {
394                       "electricalPropertyType": {
395                         "type": "keyword",
396                         "copy_to": "all_field",
397                         "fields": {
398                           "displayName": {
399                             "type": "keyword",
400                             "normalizer": "refname_displayname_normalizer"
401                           }
402                         }
403                       }
404                     }
405                   },
406                   "materials_common:hygrothermalPropertyGroupList": {
407                     "type": "object",
408                     "properties": {
409                       "hygrothermalPropertyType": {
410                         "type": "keyword",
411                         "copy_to": "all_field",
412                         "fields": {
413                           "displayName": {
414                             "type": "keyword",
415                             "normalizer": "refname_displayname_normalizer"
416                           }
417                         }
418                       }
419                     }
420                   },
421                   "materials_common:mechanicalPropertyGroupList": {
422                     "type": "object",
423                     "properties": {
424                       "mechanicalPropertyType": {
425                         "type": "keyword",
426                         "copy_to": "all_field",
427                         "fields": {
428                           "displayName": {
429                             "type": "keyword",
430                             "normalizer": "refname_displayname_normalizer"
431                           }
432                         }
433                       }
434                     }
435                   },
436                   "materials_common:opticalPropertyGroupList": {
437                     "type": "object",
438                     "properties": {
439                       "opticalPropertyType": {
440                         "type": "keyword",
441                         "copy_to": "all_field",
442                         "fields": {
443                           "displayName": {
444                             "type": "keyword",
445                             "normalizer": "refname_displayname_normalizer"
446                           }
447                         }
448                       }
449                     }
450                   },
451                   "materials_common:sensorialPropertyGroupList": {
452                     "type": "object",
453                     "properties": {
454                       "sensorialPropertyType": {
455                         "type": "keyword",
456                         "copy_to": "all_field",
457                         "fields": {
458                           "displayName": {
459                             "type": "keyword",
460                             "normalizer": "refname_displayname_normalizer"
461                           }
462                         }
463                       }
464                     }
465                   },
466                   "materials_common:smartMaterialPropertyGroupList": {
467                     "type": "object",
468                     "properties": {
469                       "smartMaterialPropertyType": {
470                         "type": "keyword",
471                         "copy_to": "all_field",
472                         "fields": {
473                           "displayName": {
474                             "type": "keyword",
475                             "normalizer": "refname_displayname_normalizer"
476                           }
477                         }
478                       }
479                     }
480                   },
481                   "materials_common:additionalPropertyGroupList": {
482                     "type": "object",
483                     "properties": {
484                       "additionalPropertyType": {
485                         "type": "keyword",
486                         "copy_to": "all_field",
487                         "fields": {
488                           "displayName": {
489                             "type": "keyword",
490                             "normalizer": "refname_displayname_normalizer"
491                           }
492                         }
493                       }
494                     }
495                   },
496                   // Material Ecology
497                   "materials_common:recycledContentGroupList": {
498                     "type": "object",
499                     "properties": {
500                       "recycledContentQualifier": {
501                         "type": "keyword",
502                         "copy_to": "all_field",
503                         "fields": {
504                           "displayName": {
505                             "type": "keyword",
506                             "normalizer": "refname_displayname_normalizer"
507                           }
508                         }
509                       }
510                     }
511                   },
512                   "materials_common:lifecycleComponentGroupList": {
513                     "type": "object",
514                     "properties": {
515                       "lifecycleComponent": {
516                         "type": "keyword",
517                         "copy_to": "all_field",
518                         "fields": {
519                           "displayName": {
520                             "type": "keyword",
521                             "normalizer": "refname_displayname_normalizer"
522                           }
523                         }
524                       }
525                     }
526                   },
527                   // TODO: embodiedEnergy - range?
528                   "materials_common:certificationCreditGroupList": {
529                     "type": "object",
530                     "properties": {
531                       "certificationProgram": {
532                         "type": "keyword",
533                         "copy_to": "all_field",
534                         "fields": {
535                           "displayName": {
536                             "type": "keyword",
537                             "normalizer": "refname_displayname_normalizer"
538                           }
539                         }
540                       }
541                     }
542                   },
543                   // Process
544                   "materials_common:castingProcesses": {
545                     "type": "keyword",
546                     "copy_to": "all_field",
547                     "fields": {
548                       "displayName": {
549                         "type": "keyword",
550                         "normalizer": "refname_displayname_normalizer"
551                       }
552                     }
553                   },
554                   "materials_common:joiningProcesses": {
555                     "type": "keyword",
556                     "copy_to": "all_field",
557                     "fields": {
558                       "displayName": {
559                         "type": "keyword",
560                         "normalizer": "refname_displayname_normalizer"
561                       }
562                     }
563                   },
564                   "materials_common:moldingProcesses": {
565                     "type": "keyword",
566                     "copy_to": "all_field",
567                     "fields": {
568                       "displayName": {
569                         "type": "keyword",
570                         "normalizer": "refname_displayname_normalizer"
571                       }
572                     }
573                   },
574                   "materials_common:surfacingProcesses": {
575                     "type": "keyword",
576                     "copy_to": "all_field",
577                     "fields": {
578                       "displayName": {
579                         "type": "keyword",
580                         "normalizer": "refname_displayname_normalizer"
581                       }
582                     }
583                   },
584                   "materials_common:deformingProcesses": {
585                     "type": "keyword",
586                     "copy_to": "all_field",
587                     "fields": {
588                       "displayName": {
589                         "type": "keyword",
590                         "normalizer": "refname_displayname_normalizer"
591                       }
592                     }
593                   },
594                   "materials_common:machiningProcesses": {
595                     "type": "keyword",
596                     "copy_to": "all_field",
597                     "fields": {
598                       "displayName": {
599                         "type": "keyword",
600                         "normalizer": "refname_displayname_normalizer"
601                       }
602                     }
603                   },
604                   "materials_common:rapidPrototypingProcesses": {
605                     "type": "keyword",
606                     "copy_to": "all_field",
607                     "fields": {
608                       "displayName": {
609                         "type": "keyword",
610                         "normalizer": "refname_displayname_normalizer"
611                       }
612                     }
613                   },
614                   "materials_common:additionalProcessGroupList": {
615                     "type": "object",
616                     "properties": {
617                       "additionalProcess": {
618                         "type": "keyword",
619                         "copy_to": "all_field",
620                         "fields": {
621                           "displayName": {
622                             "type": "keyword",
623                             "normalizer": "refname_displayname_normalizer"
624                           }
625                         }
626                       }
627                     }
628                   },
629
630                   "collectionobjects_common:objectNumber": {
631                     "type": "keyword",
632                     "copy_to": "all_field"
633                   },
634                   "collectionobjects_common:publishToList": {
635                     "type": "keyword",
636                     "fields": {
637                       "shortid": {
638                         "type": "keyword",
639                         "normalizer": "refname_shortid_normalizer"
640                       }
641                     }
642                   },
643                   "collectionobjects_common:briefDescriptions": {
644                     "type": "text",
645                     "copy_to": "all_field"
646                   },
647                   "collectionobjects_common:contentDescription": {
648                     "type": "text",
649                     "copy_to": "all_field"
650                   },
651                   "collectionobjects_common:contentEvents": {
652                     "type": "keyword",
653                     "copy_to": "all_field",
654                     "fields": {
655                       "displayName": {
656                         "type": "keyword",
657                         "normalizer": "refname_displayname_normalizer"
658                       }
659                     }
660                   },
661                   "collectionobjects_common:contentOrganizations": {
662                     "type": "keyword",
663                     "copy_to": "all_field",
664                     "fields": {
665                       "displayName": {
666                         "type": "keyword",
667                         "normalizer": "refname_displayname_normalizer"
668                       }
669                     }
670                   },
671                   "collectionobjects_common:contentPersons": {
672                     "type": "keyword",
673                     "copy_to": "all_field",
674                     "fields": {
675                       "displayName": {
676                         "type": "keyword",
677                         "normalizer": "refname_displayname_normalizer"
678                       }
679                     }
680                   },
681                   "collectionobjects_common:materialGroupList": {
682                     "type": "object",
683                     "properties": {
684                       "material": {
685                         "type": "keyword",
686                         "copy_to": "all_field",
687                         "fields": {
688                           "displayName": {
689                             "type": "keyword",
690                             "normalizer": "refname_displayname_normalizer"
691                           },
692                           "shortid": {
693                             "type": "keyword",
694                             "normalizer": "refname_shortid_normalizer"
695                           }
696                         }
697                       }
698                     }
699                   },
700                   "collectionobjects_common:objectHistoryNote": {
701                     "type": "text",
702                     "copy_to": "all_field"
703                   },
704                   "collectionobjects_common:ownersContributionNote": {
705                     "type": "text",
706                     "copy_to": "all_field"
707                   },
708                   "collectionobjects_common:viewersContributionNote": {
709                     "type": "text",
710                     "copy_to": "all_field"
711                   },
712                   "media_common:identificationNumber": {
713                     "type": "keyword",
714                     "normalizer": "sorting_normalizer"
715                   },
716                   "media_common:altText": {
717                     "type": "text"
718                   },
719                   "media_common:title": {
720                     "type": "keyword",
721                     "normalizer": "sorting_normalizer"
722                   },
723                   "media_materials:publishToList": {
724                     "type": "keyword",
725                     "fields": {
726                       "shortid": {
727                         "type": "keyword",
728                         "normalizer": "refname_shortid_normalizer"
729                       }
730                     }
731                   }
732                 }
733               }
734             </tenant:mapping>
735         </tenant:elasticSearchIndexConfig>
736     </tenant:tenantBinding>
737 </tenant:TenantBindingConfig>