Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
graces_es6
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
graces_es6
Commits
2ed6e167
Commit
2ed6e167
authored
Nov 05, 2020
by
李小芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改mapping
parent
4715b760
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
48 deletions
+43
-48
doctor.json
trans2es/mapping/doctor.json
+36
-39
doctortractate.json
trans2es/mapping/doctortractate.json
+7
-9
No files found.
trans2es/mapping/doctor.json
View file @
2ed6e167
{
"dynamic"
:
"strict"
,
"properties"
:
{
"id"
:{
"type"
:
"
string"
,
"index"
:
"not_analyze
d"
},
"name"
:{
"type"
:
"
string
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
},
"name_highlight"
:{
"type"
:
"
string
"
,
"analyzer"
:
"gm_default_index"
,
"search_analyzer"
:
"gm_default_search"
},
//用来高亮显示
"name_pre"
:{
"type"
:
"
string
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
,
"index_options"
:
"offsets"
},
"name_raw"
:{
"type"
:
"
string"
,
"index"
:
"not_analyze
d"
},
//医生名字(未分词)用于精确匹配
"id"
:{
"type"
:
"
keywor
d"
},
"name"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
},
"name_highlight"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_default_index"
,
"search_analyzer"
:
"gm_default_search"
},
//用来高亮显示
"name_pre"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
,
"index_options"
:
"offsets"
},
"name_raw"
:{
"type"
:
"
keywor
d"
},
//医生名字(未分词)用于精确匹配
"is_online"
:{
"type"
:
"boolean"
},
"is_recommend"
:
{
"type"
:
"boolean"
},
"doctor_type"
:{
"type"
:
"
string"
,
"index"
:
"not_analyze
d"
},
//医生类型
"doctor_type"
:{
"type"
:
"
keywor
d"
},
//医生类型
"is_authenticated"
:{
"type"
:
"boolean"
},
//是否认证(绑定手机号)
"accept_private_msg"
:{
"type"
:
"boolean"
},
//是否接受私信
"famous_doctor"
:{
"type"
:
"boolean"
,
"null_value"
:
false
},
//是否名医
...
...
@@ -23,56 +22,56 @@
"hospital"
:{
"type"
:
"object"
,
"properties"
:{
"id"
:{
"type"
:
"
string"
,
"index"
:
"not_analyze
d"
},
"name"
:{
"type"
:
"
string
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
},
//医院名
"name_pre"
:{
"type"
:
"
string
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
,
"index_options"
:
"offsets"
},
"name_highlight"
:{
"type"
:
"
string
"
,
"analyzer"
:
"gm_default_index"
,
"search_analyzer"
:
"gm_default_search"
},
//用来高亮显示
"officer_name"
:{
"type"
:
"
string
"
,
"analyzer"
:
"gm_default_index"
,
"search_analyzer"
:
"gm_default_search"
},
//机构管理者名称
"hospital_type"
:{
"type"
:
"
string"
,
"index"
:
"not_analyze
d"
},
//医院类型
,
0
公立
,
1
民营
"city_name"
:{
"type"
:
"
string
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
},
//城市名
"id"
:{
"type"
:
"
keywor
d"
},
"name"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
},
//医院名
"name_pre"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
,
"index_options"
:
"offsets"
},
"name_highlight"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_default_index"
,
"search_analyzer"
:
"gm_default_search"
},
//用来高亮显示
"officer_name"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_default_index"
,
"search_analyzer"
:
"gm_default_search"
},
//机构管理者名称
"hospital_type"
:{
"type"
:
"
keywor
d"
},
//医院类型
,
0
公立
,
1
民营
"city_name"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
},
//城市名
"city_tag_id"
:{
"type"
:
"long"
},
//城市tag
id
"city_province_name"
:{
"type"
:
"
string
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
},
//省份名
"city_province_name"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
},
//省份名
"city_province_tag_id"
:{
"type"
:
"long"
},
//省份tag
id
"city_province_country_tag_id"
:{
"type"
:
"long"
},
//国家tagID
"doctor_names"
:{
"type"
:
"
string
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
}
//医院下所有医生名
"doctor_names"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
}
//医院下所有医生名
}
},
"problems"
:{
"type"
:
"nested"
,
"properties"
:{
"id"
:{
"type"
:
"long"
},
"tags"
:{
"type"
:
"
string
"
,
"analyzer"
:
"gm_default_index"
,
"search_analyzer"
:
"gm_default_search"
}
"tags"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_default_index"
,
"search_analyzer"
:
"gm_default_search"
}
}
},
"services"
:{
//直接关联的services
"type"
:
"nested"
,
"properties"
:{
"id"
:{
"type"
:
"long"
},
"name"
:{
"type"
:
"
string
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
,
"omit_norms"
:
true
},
//名字
"short_description"
:{
"type"
:
"
string
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
,
"omit_norms"
:
true
},
//一句话描述
"short_description_highlight"
:{
"type"
:
"
string
"
,
"analyzer"
:
"gm_default_index"
,
"search_analyzer"
:
"gm_default_search"
,
"omit_norms"
:
true
},
//用来高亮显示
"short_description_pre"
:{
"type"
:
"
string
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
,
"omit_norms"
:
true
,
"index_options"
:
"offsets"
},
"all_text"
:{
"type"
:
"
string
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
},
//
把美购名称、描述、closure_tags、sku名称拼接到这个字段,方便搜索
"name"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
,
"omit_norms"
:
true
},
//名字
"short_description"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
,
"omit_norms"
:
true
},
//一句话描述
"short_description_highlight"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_default_index"
,
"search_analyzer"
:
"gm_default_search"
,
"omit_norms"
:
true
},
//用来高亮显示
"short_description_pre"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
,
"omit_norms"
:
true
,
"index_options"
:
"offsets"
},
"all_text"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
},
//
把美购名称、描述、closure_tags、sku名称拼接到这个字段,方便搜索
"doctor_score"
:{
"type"
:
"double"
},
//
该美购所属的医生整体得分*
70
%+品类得分*
30
%+CPC
"doctor_score_v1"
:{
"type"
:
"double"
},
//
该美购所属的医生整体得分*
70
%+品类得分*
30
%
"is_can_be_sold"
:{
"type"
:
"boolean"
},
//
[
DEPRECATED
]
是否在售
"start_time"
:{
"type"
:
"date"
,
"format"
:
"date_time_no_millis"
},
//开始时间
"end_time"
:{
"type"
:
"date"
,
"format"
:
"date_time_no_millis"
},
//结束时间
"special_ids"
:{
"type"
:
"long"
,
"index"
:
"not_analyzed"
}
//属于哪些专题
"special_ids"
:{
"type"
:
"long"
}
//属于哪些专题
}
},
"doctor_score"
:
{
"type"
:
"double"
},
//
医生或医院的综合分:ctr开根号*(单pv佣金贡献+单pv广告消耗)
"cpc_doctor_score"
:
{
"type"
:
"double"
},
//
doctor_score映射成
0
到
100
,然后加上cpc
"is_cpc"
:{
"type"
:
"boolean"
},
"is_sink"
:{
"type"
:
"boolean"
},
"bodypart_tags"
:{
"type"
:
"
string
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
},
"bodypart_subitem_tags"
:{
"type"
:
"
string
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
},
"bodypart_tags"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
},
"bodypart_subitem_tags"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
},
"closure_tag_ids"
:{
"type"
:
"long"
},
//tag
id闭包
"service_closure_tag_ids"
:{
"type"
:
"long"
},
//对于医生
是所有关联美购的tag
对于机构管理者
是所关联医院下的所有医生的所有关联美购的tag
"service_closure_tags"
:{
"type"
:
"
string
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
,
"index_options"
:
"offsets"
},
"service_closure_tags_type123"
:{
"type"
:
"
string
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
},
"service_closure_tags"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
,
"index_options"
:
"offsets"
},
"service_closure_tags_type123"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
},
//
http
:
//bug.gengmei.cc/index.php?m=story&f=view&storyID=
125
"diary_tag_names"
:
{
"type"
:
"
string
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
},
"diary_tag_names"
:
{
"type"
:
"
text
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
},
"last_update_time"
:{
//最后回复时间(排序用)
"type"
:
"date"
,
"format"
:
"date_time_no_millis"
...
...
@@ -81,19 +80,19 @@
"type"
:
"date"
,
"format"
:
"date_time_no_millis"
},
"advertise_position"
:{
"type"
:
"
string"
,
"index"
:
"not_analyze
d"
},
//广告位置
用于加速过滤
"advertise_searchwords"
:{
"type"
:
"
string"
,
"index"
:
"not_analyze
d"
},
//所有搜索词
用于加速过滤
"advertise_position"
:{
"type"
:
"
keywor
d"
},
//广告位置
用于加速过滤
"advertise_searchwords"
:{
"type"
:
"
keywor
d"
},
//所有搜索词
用于加速过滤
"advertise_tag_ids"
:{
"type"
:
"long"
},
//广告过滤tagID
"advertise_info"
:{
//广告具体信息
"type"
:
"object"
,
"enabled"
:
false
,
"properties"
:{
"id"
:{
"type"
:
"long"
},
//ID
"position"
:{
"type"
:
"
string"
,
"index"
:
"not_analyze
d"
},
//list
of
位置
"position"
:{
"type"
:
"
keywor
d"
},
//list
of
位置
"start_time_epoch"
:{
"type"
:
"long"
},
//开始时间
"end_time_epoch"
:{
"type"
:
"long"
},
//结束时间
"show_city_tags"
:
{
"type"
:
"long"
},
"searchwords"
:{
"type"
:
"
string"
,
"index"
:
"not_analyze
d"
},
//搜索词(如果有)
"searchwords"
:{
"type"
:
"
keywor
d"
},
//搜索词(如果有)
"ordering"
:{
"type"
:
"long"
}
}
},
...
...
@@ -109,12 +108,10 @@
"type"
:
"long"
},
"position"
:
{
"type"
:
"string"
,
"index"
:
"not_analyzed"
"type"
:
"keyword"
},
"searchwords"
:
{
"type"
:
"string"
,
"index"
:
"not_analyzed"
"type"
:
"keyword"
},
"show_city_tags"
:
{
"type"
:
"long"
...
...
@@ -143,7 +140,7 @@
"org_sink_end_time"
:{
"type"
:
"date"
,
"format"
:
"date_time_no_millis"
},
//结束时间
"rank_score"
:
{
"type"
:
"double"
},
"nearby_city_tag_ids"
:
{
"type"
:
"double"
},
"merchant_id"
:
{
"type"
:
"
string"
,
"index"
:
"not_analyze
d"
},
"merchant_id"
:
{
"type"
:
"
keywor
d"
},
"translate_treatment_score"
:
{
"type"
:
"double"
},
"is_merchant_priority_send_order"
:{
"type"
:
"boolean"
},
"merchant_translate_treatment_left_consume"
:
{
"type"
:
"long"
},
...
...
@@ -151,7 +148,7 @@
"facevideo_is_onlie"
:{
"type"
:
"boolean"
},
//是否在线面诊
"facevideo_is_status"
:{
"type"
:
"long"
},
//面诊状态
"facevideo_is_assistant"
:{
"type"
:
"boolean"
},
//是否医生助理
"facevideo_good_at"
:{
"type"
:
"
string"
,
"index"
:
"not_analyze
d"
},
//面诊擅长的项目
"facevideo_good_at"
:{
"type"
:
"
keywor
d"
},
//面诊擅长的项目
"facevideo_good_at_ids"
:{
"type"
:
"long"
},
//面诊擅长的项目
"facevideo_rec_rank"
:{
"type"
:
"long"
},
"facevideo_rank"
:{
"type"
:
"long"
},
...
...
@@ -160,7 +157,7 @@
"tag_count"
:{
"type"
:
"nested"
,
"properties"
:{
"tag"
:{
"type"
:
"
string
"
,
"tag"
:{
"type"
:
"
text
"
,
"analyzer"
:
"gm_ngram_index"
,
"search_analyzer"
:
"gm_default_search"
},
"count"
:{
"type"
:
"long"
}
...
...
trans2es/mapping/doctortractate.json
View file @
2ed6e167
...
...
@@ -8,11 +8,10 @@
"type"
:
"long"
},
"doctor_id"
:
{
"type"
:
"string"
,
"index"
:
"not_analyzed"
"type"
:
"keyword"
},
"content"
:
{
"type"
:
"
string
"
,
"type"
:
"
text
"
,
"analyzer"
:
"gm_default_index"
,
"search_analyzer"
:
"gm_default_search"
},
...
...
@@ -26,8 +25,7 @@
"type"
:
"string"
},
"content_level"
:
{
"type"
:
"string"
,
"index"
:
"not_analyzed"
"type"
:
"keyword"
},
"create_time"
:
{
"type"
:
"date"
,
...
...
@@ -39,9 +37,9 @@
"is_video"
:
{
"type"
:
"boolean"
},
"content_keyword"
:{
"type"
:
"
string"
,
"index"
:
"not_analyze
d"
},
"content_star_keyword"
:{
"type"
:
"
string"
,
"index"
:
"not_analyze
d"
},
"content_star_first_keyword"
:{
"type"
:
"
string"
,
"index"
:
"not_analyze
d"
},
"title_keyword"
:{
"type"
:
"
string"
,
"index"
:
"not_analyze
d"
}
"content_keyword"
:{
"type"
:
"
keywor
d"
},
"content_star_keyword"
:{
"type"
:
"
keywor
d"
},
"content_star_first_keyword"
:{
"type"
:
"
keywor
d"
},
"title_keyword"
:{
"type"
:
"
keywor
d"
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment