mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-27 09:58:14 +00:00
Adds elasticsearch mapping (#4444)
This commit is contained in:
parent
628d818816
commit
693aedc8b9
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user