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