final List<String> fields = Arrays.asList("contentConcepts",
"contentEvents",
"contentPersons",
+ "contentPlaces",
"contentOrganizations");
for (String field : fields) {
for (String content : contentList) {
if (content != null) {
final ObjectNode node = objectMapper.createObjectNode();
- node.put("subject", RefNameUtils.getDisplayName(content));
+ String subjectValue;
+
+ if (RefNameUtils.isTermRefname(content)) {
+ try {
+ subjectValue = RefNameUtils.getDisplayName(content);
+ } catch (Exception e) {
+ subjectValue = content;
+ }
+ } else {
+ subjectValue = content;
+ }
+ node.put("subject", subjectValue);
denormContentSubject.add(node);
}
}
"collectionobjects_common:contentEvents",
"collectionobjects_common:contentOrganizations",
"collectionobjects_common:contentPersons",
+ "collectionobjects_common:contentPlaces",
"collectionobjects_common:fieldCollectionDateGroup",
"collectionobjects_common:fieldCollectors",
"collectionobjects_common:materialGroupList",
}
}
},
+ "collectionobjects_common:contentPlaces": {
+ "type": "keyword",
+ "copy_to": "all_field"
+ },
"collectionobjects_common:techniqueGroupList": {
"type": "object",
"properties": {
"collectionobjects_common:contentEvents",
"collectionobjects_common:contentOrganizations",
"collectionobjects_common:contentPersons",
+ "collectionobjects_common:contentPlaces",
"collectionobjects_common:materialGroupList",
"collectionobjects_common:measuredPartGroupList",
"collectionobjects_common:numberOfObjects",
}
}
},
+ "collectionobjects_common:contentPlaces": {
+ "type": "keyword",
+ "copy_to": "all_field"
+ },
"collectionobjects_common:techniqueGroupList": {
"type": "object",
"properties": {
"collectionobjects_common:contentEvents",
"collectionobjects_common:contentOrganizations",
"collectionobjects_common:contentPersons",
+ "collectionobjects_common:contentPlaces",
"collectionobjects_common:materialGroupList",
"collectionobjects_common:measuredPartGroupList",
"collectionobjects_common:numberOfObjects",
}
}
},
+ "collectionobjects_common:contentPlaces": {
+ "type": "keyword",
+ "copy_to": "all_field"
+ },
"collectionobjects_common:techniqueGroupList": {
"type": "object",
"properties": {
"collectionobjects_common:contentEvents",
"collectionobjects_common:contentOrganizations",
"collectionobjects_common:contentPersons",
+ "collectionobjects_common:contentPlaces",
"collectionobjects_common:materialGroupList",
"collectionobjects_common:measuredPartGroupList",
"collectionobjects_common:numberOfObjects",
}
}
},
+ "collectionobjects_common:contentPlaces": {
+ "type": "keyword",
+ "copy_to": "all_field"
+ },
"collectionobjects_common:techniqueGroupList": {
"type": "object",
"properties": {
"collectionobjects_common:contentEvents",
"collectionobjects_common:contentOrganizations",
"collectionobjects_common:contentPersons",
+ "collectionobjects_common:contentPlaces",
"collectionobjects_common:objectHistoryNote",
"collectionobjects_common:objectNumber",
"collectionobjects_common:objectStatusList",
}
}
},
+ "collectionobjects_common:contentPlaces": {
+ "type": "keyword",
+ "copy_to": "all_field"
+ },
"collectionobjects_common:materialGroupList": {
"type": "object",
"properties": {
"collectionobjects_common:contentEvents",
"collectionobjects_common:contentOrganizations",
"collectionobjects_common:contentPersons",
+ "collectionobjects_common:contentPlaces",
"collectionobjects_common:materialGroupList",
"collectionobjects_common:measuredPartGroupList",
"collectionobjects_common:numberOfObjects",
}
}
},
+ "collectionobjects_common:contentPlaces": {
+ "type": "keyword",
+ "copy_to": "all_field"
+ },
"collectionobjects_common:techniqueGroupList": {
"type": "object",
"properties": {