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