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