{
    "dynamic":"strict",
    "properties": {
        "id": {"type": "long"},
        "name": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"},
        // service fields for compatible service mapping
        "service_id": {"type": "long"},
        "service_name": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"},
        "short_description":{"type":"string","analyzer":"gm_default_index","search_analyzer":"gm_default_search"},
        "detail_description":{"type":"string","analyzer":"gm_default_index","search_analyzer":"gm_default_search"},
        "channel":{"type": "string", "index": "not_analyzed"}, //频道
        "is_can_be_sold":{"type":"boolean"}, //是否还有库存
        "start_time":{"type":"date", "format":"date_time_no_millis"},  //上架时间
        "end_time":{"type":"date","format":"date_time_no_millis"}, //下架时间
        "closure_tag_ids":{"type":"long"}, //传递闭包tag id列表
        "closure_tags":{"type":"string","analyzer":"gm_default_index","search_analyzer":"gm_default_search"}, //tag
        "ordering":{"type":"long"}, //展示顺序(小的在前，排序用)
        "smart_rank2":{"type":"double"}, //智能排序rank(大的在前)
        "rating":{"type":"double", "null_value":0.0}, //评价(0-5浮点)
        "is_sink":{"type":"boolean"}, //是否下沉
        "is_online":{"type":"boolean"}, //是否上线
        "merchant_doctor_id": {"type": "string"},  //商户的医生id
        "share_get_cashback":{"type":"boolean"}, //是否参与分享返现
        "tip": { "type": "string", "index": "not_analyzed" }, //提示标签
        "is_stage":{"type":"boolean", "null_value":false}, //是否支持分期付款
        "is_fenqi":{"type":"boolean", "null_value":false}, //另一种是否支持分期付款
        "gift_rank":{"type":"long"}, // 红包数量
        "is_insurance": {"type":"boolean"}, //是否支持保险
        "sales_count":{"type":"long"}, //销量
        "case_count":{"type":"long"}, //案例数(关联日记本数)
        "pv": {"type":"long"}, //12点前取前天pv, 12点后取昨日pv
        "ticket_sink_start_time":{"type": "date","format": "date_time_no_millis"}, //罚单下沉起始时间
        "ticket_sink_end_time":{"type": "date","format": "date_time_no_millis"}, //罚单下沉终止时间
        // 机构罚单
        "org_sink_start_time":{"type":"date","format":"date_time_no_millis"}, //开始时间
        "org_sink_end_time":{"type":"date","format":"date_time_no_millis"}, //结束时间
        "price_range":{ //该sku在(未来)时段的价格
            "type":"nested",
            "properties":{
                "price":{"type":"long"},
                "start_time":{"type":"date","format":"date_time_no_millis"},
                "end_time":{"type":"date","format":"date_time_no_millis"}
            }
        },
        "doctor":{ //关联医生
            "type":"object",
            "properties":{
                "id":{"type":"string","index":"not_analyzed"},
                "title":{"type":"string","index":"not_analyzed"},
                "name":{"type":"string","analyzer":"gm_default_index","search_analyzer":"gm_default_search"}, //医生名
                "famous_doctor":{"type":"boolean","null_value":false}, //是否名医
                "hospital":{
                    "type":"object",
                    "properties":{
                        "id":{"type":"string","index":"not_analyzed"},
                        "name":{"type":"string","analyzer":"gm_default_index","search_analyzer":"gm_default_search"}, //医院名
                        "hospital_type":{"type":"string","index":"not_analyzed"}, //医院类型, 0公立, 1民营
                        "city_tag_id":{"type":"long"}, //城市tagID
                        "city_name":{"type":"string","analyzer":"gm_default_index","search_analyzer":"gm_default_search"}, //城市名
                        "city_province_tag_id":{"type":"long"}, //省份tagID
                        "city_province_name":{"type":"string","analyzer":"gm_default_index","search_analyzer":"gm_default_search"}, //省份名
                        "city_province_country_tag_id":{"type":"long"}, //国家tagID
                        "city_count":{"type":"long"}, //开设医院城市数
                        "chain_count":{"type":"long"}, //连锁医院开设数
                        "area_count":{"type":"long"}, //医院平米
                        "is_oversea":{"type":"boolean"},
                        "hospital_type2":{"type":"string","index":"not_analyzed"}, //医院类型, 0公立, 1民营, 9海外
                        "is_high_quality":{"type":"boolean"}, //是否精品诊所
                        "officer_name":{"type":"string","analyzer":"gm_default_index","search_analyzer":"gm_default_search"} //机构管理者名称
                    }
                }
            }
        },
        "special": {  //new add 20180507
            "type": "nested",
            "properties": {
                "id": {"type": "long"},  //专题id
                "item_id": {"type": "long"},  //sku在该专题里的specialitem_id
                "sku_id": {"type": "long"},  // sku id
                "position": {"type": "long"},  //专题中该美购排序最靠前的位置
                "has_pos": {"type": "boolean"}  //是否有设置位置
            }
        },
        // 临近地域
        "nearby_city_tags": {
            "type": "object",
            "properties":{
                "tag_id":{"type": "long"},
                "name":{"type": "string", "index": "not_analyzed"}
            }
        },
        "tags_v3": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 新标签
        "first_demands": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 1级诉求
        "second_demands": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 2级诉求
        "first_solutions": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 1级方式
        "second_solutions": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 2级方式

        "positions": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 一级部位
        "second_positions": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 二级部位
        "tagv3_ids": {"type": "long"}, //新标签id集合
        "first_demands_ids": {"type": "long"},
        "second_demands_ids": {"type": "long"},
        "first_solutions_ids": {"type": "long"},
        "second_solutions_ids": {"type": "long"},
        "first_positions_ids": {"type": "long"},
        "second_positions_ids": {"type": "long"},
        "first_classify_ids": {"type": "long"}, //新标签一级分类id集合
        "second_classify_ids": {"type": "long"}, //新标签二级分类id集合
        "first_classify_names": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, //新标签一级分类名称集合
        "second_classify_names": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}//新标签二级分类名称集合
    }
}
