{
    "conversation": {
        "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",
                        "analyzer": "ik",
                        "search_analyzer": "ik_smart"
                    },
                    "is_unread": {
                        "type": "boolean"
                    },
                    "comment": {
                        "type": "string",
                        "analyzer": "ik",
                        "search_analyzer": "ik_smart"
                    },
                    "status": {
                        "type": "boolean",
                        "null_value": true
                    }
                }
            },
            "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",
                                "analyzer": "ik",
                                "search_analyzer": "ik_smart"
                            },
                            "audio": {
                                "type": "string",
                                "index": "not_analyzed"
                            },
                            "image": {
                                "type": "string",
                                "index": "not_analyzed"
                            }
                        }
                    }
                }
            }
        }
    }
}
