Commit 71c22883 authored by 李小芳's avatar 李小芳

修改mapping

parent c13e099f
{ {
"dynamic":"strict",
"properties": { "properties": {
"id":{"type":"long"}, "id":{"type":"long"},
"item_name":{"type":"text", "analyzer":"gm_default_index","search_analyzer":"gm_default_search"}, //wiki名称 "item_name":{"type":"text", "analyzer":"gm_default_index","search_analyzer":"gm_default_search"}, //wiki名称
......
{ {
"dynamic" : "strict",
"properties" : { "properties" : {
"id": { "id": {
"type" : "string", "type" : "keyword"
"index" : "not_analyzed"
}, },
"is_promote": { "is_promote": {
"type" : "boolean", "type" : "boolean",
"null_value" : false "null_value" : false
}, },
"origin_id": { "origin_id": {
"type" : "string", "type" : "keyword"
"index" : "not_analyzed"
}, },
"smart_rank": { "smart_rank": {
"type" : "double", "type" : "double",
...@@ -21,13 +18,13 @@ ...@@ -21,13 +18,13 @@
"type": "integer" "type": "integer"
}, },
"city_id": { "city_id": {
"type": "string" "type": "keyword"
}, },
"city_tag_id": { "city_tag_id": {
"type" : "long" "type" : "long"
}, },
"merchant_doctor_id" : { "merchant_doctor_id" : {
"type" : "string" "type" : "keyword"
}, },
"promotion_ids" : { "promotion_ids" : {
"type" : "long" "type" : "long"
...@@ -67,7 +64,7 @@ ...@@ -67,7 +64,7 @@
"format" : "date_time_no_millis" "format" : "date_time_no_millis"
}, },
"hospital_name": { "hospital_name": {
"type" : "string", "type" : "text",
"analyzer" : "gm_default_index", "analyzer" : "gm_default_index",
"search_analyzer" : "gm_default_search" "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