Adds elasticsearch mapping (#4444)

This commit is contained in:
Pedro Silva 2022-03-17 20:15:18 +00:00 committed by GitHub
parent 628d818816
commit 693aedc8b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,7 @@ public class SystemMetadataMappingsBuilder {
mappings.put("lastUpdated", getMappingsForLastUpdated());
mappings.put("registryVersion", getMappingsForKeyword());
mappings.put("registryName", getMappingsForKeyword());
mappings.put("removed", getMappingsForRemoved());
return ImmutableMap.of("properties", mappings);
}
@ -29,4 +30,8 @@ public class SystemMetadataMappingsBuilder {
private static Map<String, Object> getMappingsForLastUpdated() {
return ImmutableMap.<String, Object>builder().put("type", "long").build();
}
private static Map<String, Object> getMappingsForRemoved() {
return ImmutableMap.<String, Object>builder().put("type", "boolean").build();
}
}