{
    "mappings": {
        "properties": {
            "resource": {
                "properties": {
                    "id": {
                        "type": "keyword"
                    },
                    "identifier": {
                        "type": "keyword"
                    },
                    "type": {
                        "type": "keyword"
                    },
                    "project": {
                        "type": "keyword"
                    },
                    "geometry": {
                        "type": "geo_shape",
                        "coerce": true
                    }
                }
            },
            "created": {
                "properties": {
                    "date": {
                        "type": "date"
                    }
                }
            },
            "modified": {
                "properties": {
                    "date": {
                        "type": "date"
                    }
                }
            }
        },
        "dynamic_templates": [
            {
                "relations": {
                    "path_match": "relations.*",
                    "mapping": {
                        "type": "keyword"
                    }
                }
            }
        ]
    }
}

{
    "mappings": {
        "properties": {
            "resource": {
                "properties": {
                    "id": {
                        "type": "keyword"
                    },
                    "identifier": {
                        "type": "keyword"
                    },
                    "type": {
                        "type": "keyword"
                    },
                    "geometry": {
                        "type": "geo_shape",
                        "coerce": true
                    }
                }
            },
            "project": {
                "type": "keyword"
            },
            "created": {
                "properties": {
                    "date": {
                        "type": "date"
                    }
                }
            },
            "modified": {
                "properties": {
                    "date": {
                        "type": "date"
                    }
                }
            }
        },
        "dynamic_templates": [
            {
                "relations": {
                    "path_match": "relations.*",
                    "mapping": {
                        "type": "keyword"
                    }
                }
            }
        ]
    }
}

Move project to documnt level in elasticsearch mapping
Move project to documnt level in elasticsearch mapping
