in src/es_pii_tool/defaults.py [0:0]
def status_mappings() -> t.Dict:
"""The Elasticsearch index mappings for the progress/status tracking index"""
return {
'properties': {
'job': {'type': 'keyword'},
'task': {'type': 'keyword'},
'step': {'type': 'keyword'},
'join_field': {'type': 'join', 'relations': {'job': 'task'}},
'cleanup': {'type': 'keyword'},
'completed': {'type': 'boolean'},
'end_time': {'type': 'date'},
'errors': {'type': 'boolean'},
'dry_run': {'type': 'boolean'},
'index': {'type': 'keyword'},
'logs': {'type': 'text'},
'start_time': {'type': 'date'},
},
'dynamic_templates': [
{
'configuration': {
'path_match': 'config.*',
'mapping': {'type': 'keyword', 'index': False},
}
}
],
}