def upgrade_search():
    get_es().indices.put_mapping(index=get_es_index(), body=DOCUMENT_MAPPING,
                                 doc_type=TYPE_DOCUMENT)
    get_es().indices.put_mapping(index=get_es_index(), body=RECORD_MAPPING,
                                 doc_type=TYPE_RECORD)
    get_es().indices.put_mapping(index=get_es_index(), body=ENTITY_MAPPING,
                                 doc_type=TYPE_ENTITY)
Add any missing properties to the index mappings.
dataset/ETHPy150Open pudo/aleph/aleph/index/admin.py/upgrade_search