{
    "conversation": {
        "_timestamp": {
            "enabled": true,
            "format": "date_time_no_millis"
        },
        "dynamic": "false",
        "properties": {
            "id": {
                "type": "long"
            },
            "conversation_type": {
                "type": "long",
                "null_value": 1
            },
            "last_reply_time": {
                "type": "date",
                "format": "date_time_no_millis"
            },
            "is_star_by_doctor": {
                "type": "boolean"
            },
            "users": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "long"
                    },
                    "last_name": {
                        "type": "string",
                        "index_analyzer": "ik",
                        "search_analyzer": "ik_smart"
                    },
                    "is_unread": {
                        "type": "boolean"
                    }
                }
            },
            "messages": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "long"
                    },
                    "send_user": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "long"
                            }
                        }
                    },
                    "send_time": {
                        "type": "date",
                        "format": "date_time_no_millis"
                    },
                    "type": {
                        "type": "string",
                        "index": "not_analyzed"
                    },
                    "content": {
                        "type": "object",
                        "properties": {
                            "text": {
                                "type": "string",
                                "index_analyzer": "ik",
                                "search_analyzer": "ik_smart"
                            },
                            "audio": {
                                "type": "string",
                                "index": "not_analyzed"
                            },
                            "image": {
                                "type": "string",
                                "index": "not_analyzed"
                            }
                        }
                    }
                }
            }
        }
    }
}
