Commit 0c0a4949 authored by 李小芳's avatar 李小芳

修改mapping

parent 33d01f6f
{ {
"mappings": {
"dynamic":"strict", "properties": {
"properties": {
"is_online":{"type":"boolean"}, "is_online":{"type":"boolean"},
"id":{"type":"long"}, "id":{"type":"long"},
"article_id":{"type":"long"}, "article_id":{"type":"long"},
"smart_rank":{"type":"long"}, "smart_rank":{"type":"long"},
"title":{"type":"string","analyzer":"gm_default_index","search_analyzer":"gm_default_search"}, //专栏标题 "title":{"type":"text","analyzer":"gm_default_index","search_analyzer":"gm_default_search"}, //专栏标题
"content":{"type":"string","analyzer":"gm_default_index","search_analyzer":"gm_default_search"}, //专栏内容 "content":{"type":"text","analyzer":"gm_default_index","search_analyzer":"gm_default_search"}, //专栏内容
// 相关推荐,得分 // 相关推荐,得分
"recommend_score": {"type": "double"}, "recommend_score": {"type": "double"},
"tag_ids":{"type":"long"}, "tag_ids":{"type":"long"},
"tags":{"type":"string","analyzer":"gm_default_index","search_analyzer":"gm_default_search"}, //tags "tags":{"type":"text","analyzer":"gm_default_index","search_analyzer":"gm_default_search"}, //tags
// 新标签 // 新标签
"fresh_tag_ids":{"type":"long"}, "fresh_tag_ids":{"type":"long"},
"fresh_tags":{"type":"string","analyzer":"gm_default_index","search_analyzer":"gm_default_search"}, //tags "fresh_tags":{"type":"text","analyzer":"gm_default_index","search_analyzer":"gm_default_search"}, //tags
"user":{ "user":{
"type":"object", "type":"object",
"properties":{ "properties":{
...@@ -23,37 +21,36 @@ ...@@ -23,37 +21,36 @@
} }
}, },
"ask": { "ask": {
"type": "string", "type": "text",
"analyzer": "gm_default_index", "analyzer": "gm_default_index",
"search_analyzer": "gm_default_index", "search_analyzer": "gm_default_index",
"index_options": "offsets" "index_options": "offsets"
}, },
//专栏副标题 //专栏副标题
"title_pre": { "title_pre": {
"type": "string", "type": "text",
"analyzer": "gm_default_index", "analyzer": "gm_default_index",
"search_analyzer": "gm_default_index", "search_analyzer": "gm_default_index",
"index_options": "offsets" "index_options": "offsets"
}, },
"content_pre": { "content_pre": {
"type": "string", "type": "text",
"analyzer": "gm_default_index", "analyzer": "gm_default_index",
"search_analyzer": "gm_default_index", "search_analyzer": "gm_default_index",
"index_options": "offsets" "index_options": "offsets"
}, },
"content_keyword":{"type":"string","index":"not_analyzed"}, "content_keyword":{"type":"keyword"},
"content_star_keyword":{"type":"string","index":"not_analyzed"}, "content_star_keyword":{"type":"keyword"},
"content_star_first_keyword":{"type":"string","index":"not_analyzed"}, "content_star_first_keyword":{"type":"keyword"},
"title_keyword":{"type":"string","index":"not_analyzed"}, "title_keyword":{"type":"keyword"},
"tags_v3": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 新标签 "tags_v3": {"type": "text", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 新标签
"tagv3_ids": {"type": "long"}, //新标签id集合 "tagv3_ids": {"type": "long"}, //新标签id集合
"first_demands": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 1级诉求 "first_demands": {"type": "text", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 1级诉求
"second_demands": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 2级诉求 "second_demands": {"type": "text", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 2级诉求
"first_solutions": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 1级方式 "first_solutions": {"type": "text", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 1级方式
"second_solutions": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 2级方式 "second_solutions": {"type": "text", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 2级方式
"positions": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 部位 "positions": {"type": "text", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 部位
"second_positions": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 2级部位 "second_positions": {"type": "text", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, // 2级部位
"tagv3_ids": {"type": "long"}, //新标签id集合 "tagv3_ids": {"type": "long"}, //新标签id集合
"first_demands_ids": {"type": "long"}, "first_demands_ids": {"type": "long"},
"second_demands_ids": {"type": "long"}, "second_demands_ids": {"type": "long"},
...@@ -63,9 +60,10 @@ ...@@ -63,9 +60,10 @@
"second_positions_ids": {"type": "long"}, "second_positions_ids": {"type": "long"},
"first_classify_ids": {"type": "long"}, //新标签一级分类id集合 "first_classify_ids": {"type": "long"}, //新标签一级分类id集合
"second_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"}, //新标签一级分类名称集合 "first_classify_names": {"type": "text", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}, //新标签一级分类名称集合
"second_classify_names": {"type": "string", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}//新标签二级分类名称集合 "second_classify_names": {"type": "text", "analyzer": "gm_default_index", "search_analyzer": "gm_default_search"}//新标签二级分类名称集合
} }
}
} }
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