@staticmethod
def get_elastic_mappings(es_major):
    """Get Elasticsearch mapping.

        Non dynamic discovery of type for:
            * data.renderedFields.description

        :param es_major: major version of Elasticsearch, as string
        :returns:        dictionary with a key, 'items', with the mapping
        """
    mapping = """
         {
            "dynamic":true,
            "properties": {
                "data": {
                    "properties": {
                        "renderedFields": {
                            "dynamic":false,
                            "properties": {}
                        },
                        "operations": {
                            "dynamic":false,
                            "properties": {}
                        },
                        "fields": {
                            "dynamic":true,
                            "properties": {
                                "description": {
                                    "type": "text",
                                    "index": true
                                },
                                "environment": {
                                    "type": "text",
                                    "index": true
                                }
                            }
                        },
                        "changelog": {
                            "properties": {
                                "histories": {
                                    "dynamic":false,
                                    "properties": {}
                                }
                            }
                        },
                        "comments_data": {
                            "properties": {
                                "body": {
                                    "type": "text",
                                    "index": true
                                }
                            }
                        }
                    }
                }
            }
        }
        """
    return {'items': mapping}
