Commit 4715b760 authored by 李小芳's avatar 李小芳

修改mapping

parent b032baf7
{ {
"dynamic":"strict", "properties": {
"properties": { "id": {
"id":{"type":"long"}, "type": "long"
"is_online":{"type":"boolean"}, },
"question_id":{"type":"long"}, "is_online": {
"smart_rank":{"type":"long"}, "type": "boolean"
"smart_rank_v2":{"type":"double"}, },
"smart_rank_v3":{"type":"double"}, "question_id": {
"title":{"type":"string","analyzer":"gm_default_index","search_analyzer":"gm_default_search"}, //问题标题 "type": "long"
"desc":{"type":"string","analyzer":"gm_default_index","search_analyzer":"gm_default_search"}, //问题描述 },
"answer":{"type":"string","analyzer":"gm_default_index","search_analyzer":"gm_default_search"}, //回答内容 "smart_rank": {
// 相关推荐,得分 "type": "long"
"recommend_score": {"type": "double"}, },
"tag_ids": {"type": "long"}, "smart_rank_v2": {
"tag_name": {"type": "string"}, "type": "double"
"tag_name_analyze": {"type": "string","analyzer":"gm_default_index","search_analyzer":"gm_default_search"}, },
// 新标签 "smart_rank_v3": {
"fresh_tag_ids": {"type": "long"}, "type": "double"
"fresh_tag_name": {"type": "string"}, },
"good_click": {"type":"long"}, "title": {
"type": "text",
"content_level":{"type":"string", "index":"not_analyzed"}, "analyzer": "gm_default_index",
"is_gte_3_content_level":{"type":"boolean"}, // 星级是否大于或等于三级 "search_analyzer": "gm_default_search"
"sort_score":{"type": "double"},// 内容星级 *1 + 点赞 *0.3 + 评论 *0.7 },
"has_picture":{"type":"boolean"}, // 回答及其问题是否有图片 "desc": {
"content_length": {"type": "long"}, "type": "text",
"user_id": {"type": "long"}, "analyzer": "gm_default_index",
"user_type": {"type": "long"}, "search_analyzer": "gm_default_search"
"question_type":{"type":"long"}, },
"content_type": {"type":"string"}, // 回答内容类型(普通、视频) "answer": {
"is_recommend": {"type":"boolean"}, //是否推荐回答 "type": "text",
"create_time":{"type":"date","format":"date_time_no_millis"}, //创建时间 "analyzer": "gm_default_index",
"create_time_epoch":{"type": "long"}, //创建时间 "search_analyzer": "gm_default_search"
"title_pre": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_index", "index_options": "offsets"}, },
"desc_pre": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_index", "index_options": "offsets"}, "recommend_score": {
"answer_pre": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_index", "index_options": "offsets"}, "type": "double"
"hot_score":{"type":"long"}, //热度 },
"last_any_reply_time":{"type":"date", "format":"date_time_no_millis"}, "tag_ids": {
"content_keyword":{"type":"string","index":"not_analyzed"}, "type": "long"
"content_star_keyword":{"type":"string","index":"not_analyzed"}, },
"content_star_first_keyword":{"type":"string","index":"not_analyzed"}, "tag_name": {
"title_keyword":{"type":"string","index":"not_analyzed"}, "type": "text",
"has_service":{"type": "boolean"}, // 该问答对应的标签和关键字有没有关联的美购 "analyzer": "gm_default_index",
"tags_v3": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 新标签 "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级诉求 "tag_name_analyze": {
"first_solutions": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 1级方式 "type": "text",
"second_solutions": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 2级方式 "analyzer": "gm_default_index",
"positions": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 部位 "search_analyzer": "gm_default_search"
"second_positions": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 二级部位 },
"tagv3_ids": {"type": "long"}, //新标签id集合 "fresh_tag_ids": {
"first_demands_ids": {"type": "long"}, "type": "long"
"second_demands_ids": {"type": "long"}, },
"first_solutions_ids": {"type": "long"}, "fresh_tag_name": {
"second_solutions_ids": {"type": "long"}, "type": "text",
"first_positions_ids": {"type": "long"}, "analyzer": "gm_default_index",
"second_positions_ids": {"type": "long"}, "search_analyzer": "gm_default_search"
"first_classify_ids": {"type": "long"}, //新标签一级分类id集合 },
"second_classify_ids": {"type": "long"}, //新标签二级分类id集合 "good_click": {
"first_classify_names": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, //新标签一级分类名称集合 "type": "long"
"second_classify_names": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"},//新标签二级分类名称集合 },
"reply_number":{"type": "long"}, "content_level": {
"vote_number":{"type": "long"}, "type": "keyword"
"reply_vote_emt":{"type": "double"}, },
//最新互动时间 "is_gte_3_content_level": {
"latest_interaction_time": {"type": "long"}, "type": "boolean"
"latest_create_or_reply_time": {"type": "long"}, },
"goodclick_rate_30":{"type":"long"}, "sort_score": {
"is_need_guarantee": {"type":"boolean"}, //是否需要保量 "type": "double"
"keynote_sentence": {"type": "string","analyzer": "gm_default_index","search_analyzer": "gm_default_search"}, },
"operators_add_tags":{"type":"long"}, //新标签中运营添加的词 EXCHANGE交易运营 COMMUNITY社区运营 "has_picture": {
"anecdote_tags": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, //八卦标签名称 "type": "boolean"
"anecdote_tag_ids": {"type": "long"}, //八卦标签ID },
"new_smr": {"type": "double"}, //最新的smart_rank分数 "content_length": {
"show_by_index": {"type":"long"}, //根据指标判断是否展示改帖子 0是正常展示 1不展示 "type": "long"
"search_new_smr": {"type": "double"}, //最新的搜索smart_rank分数 },
"update_time_stratific": {"type":"long"}, //根据创建和修改时间30天为一个时间段 30-90天为一个时间段 90-365为一个时间段 365之后为一个时间段 "user_id": {
"new_goodclicks": {"type": "double"}, //最新的goodclick "type": "long"
"has_video": {"type": "boolean"} },
"user_type": {
"type": "long"
},
"question_type": {
"type": "long"
},
"content_type": {
"type": "keyword"
},
"is_recommend": {
"type": "boolean"
},
"create_time": {
"type": "date",
"format": "date_time_no_millis"
},
"create_time_epoch": {
"type": "long"
},
"title_pre": {
"type": "text",
"analyzer": "gm_default_index",
"search_analyzer": "gm_default_index"
},
"desc_pre": {
"type": "text",
"analyzer": "gm_default_index",
"search_analyzer": "gm_default_index"
},
"answer_pre": {
"type": "text",
"analyzer": "gm_default_index",
"search_analyzer": "gm_default_index"
},
"hot_score": {
"type": "long"
},
"last_any_reply_time": {
"type": "date",
"format": "date_time_no_millis"
},
"content_keyword": {
"type": "keyword"
},
"content_star_keyword": {
"type": "keyword"
},
"content_star_first_keyword": {
"type": "keyword"
},
"title_keyword": {
"type": "keyword"
},
"has_service": {
"type": "boolean"
},
"tags_v3": {
"type": "text",
"analyzer": "gm_default_index",
"search_analyzer": "gm_default_search"
},
"first_demands": {
"type": "text",
"analyzer": "gm_default_index",
"search_analyzer": "gm_default_search"
},
"second_demands": {
"type": "text",
"analyzer": "gm_default_index",
"search_analyzer": "gm_default_search"
},
"first_solutions": {
"type": "text",
"analyzer": "gm_default_index",
"search_analyzer": "gm_default_search"
},
"second_solutions": {
"type": "text",
"analyzer": "gm_default_index",
"search_analyzer": "gm_default_search"
},
"positions": {
"type": "text",
"analyzer": "gm_default_index",
"search_analyzer": "gm_default_search"
},
"second_positions": {
"type": "text",
"analyzer": "gm_default_index",
"search_analyzer": "gm_default_search"
},
"tagv3_ids": {
"type": "long"
},
"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"
},
"second_classify_ids": {
"type": "long"
},
"first_classify_names": {
"type": "text",
"analyzer": "gm_default_index",
"search_analyzer": "gm_default_search"
},
"second_classify_names": {
"type": "text",
"analyzer": "gm_default_index",
"search_analyzer": "gm_default_search"
},
"reply_number": {
"type": "long"
},
"vote_number": {
"type": "long"
},
"reply_vote_emt": {
"type": "double"
},
"latest_interaction_time": {
"type": "long"
},
"latest_create_or_reply_time": {
"type": "long"
},
"goodclick_rate_30": {
"type": "long"
},
"is_need_guarantee": {
"type": "boolean"
},
"keynote_sentence": {
"type": "text",
"analyzer": "gm_default_index",
"search_analyzer": "gm_default_search"
},
"operators_add_tags": {
"type": "long"
},
"anecdote_tags": {
"type": "text",
"analyzer": "gm_default_index",
"search_analyzer": "gm_default_search"
},
"anecdote_tag_ids": {
"type": "long"
},
"new_smr": {
"type": "double"
},
"show_by_index": {
"type": "long"
},
"search_new_smr": {
"type": "double"
},
"update_time_stratific": {
"type": "long"
},
"new_goodclick": {
"type": "long"
},
"has_video": {
"type": "boolean"
} }
} }
}
\ No newline at end of file
{ {
"dynamic":"strict",
"properties": { "properties": {
"id":{"type": "keyword"},// 面诊顾问ID "id":{"type": "keyword"},// 面诊顾问ID
"is_online":{"type":"boolean"}, //医生是否在线 或面诊师本身是否在线 "is_online":{"type":"boolean"}, //医生是否在线 或面诊师本身是否在线
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment