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