PUT station
{
"settings": {
"analysis": {
"filter": {
"mall4j_ngram_filter": {
"type": "ngram",
"min_gram": 1,
"max_gram": 1
}
},
"analyzer": {
"mall4j_ngram_analyzer": {
"type": "custom",
"tokenizer": "standard",
"filter": [
"lowercase",
"mall4j_ngram_filter"
]
}
}
}
},
"mappings": {
"properties": {
"account": {
"type": "text",
"analyzer": "ik_max_word",
"search_analyzer": "ik_smart",
"fields": {
"ngram": {
"type": "text",
"analyzer": "mall4j_ngram_analyzer"
},
"keyword": {
"type": "keyword"
}
}
},
"addr": {
"type": "text",
"analyzer": "ik_max_word",
"search_analyzer": "ik_smart"
},
"stationAddr": {
"type" : "wildcard"
},
"area": {
"type": "text"
},
"areaId": {
"type": "long"
},
"city": {
"type": "text"
},
"cityId": {
"type": "long"
},
"imgUrl": {
"type": "keyword",
"index": false,
"doc_values": false
},
"imgUrls": {
"type": "keyword",
"index": false,
"doc_values": false
},
"lat": {
"type": "float"
},
"lng": {
"type": "float"
},
"phone": {
"type": "text"
},
"phonePrefix": {
"type": "text"
},
"province": {
"type": "text"
},
"provinceId": {
"type": "long"
},
"sameCityDelivery": {
"type": "integer"
},
"sameCityVO": {
"properties": {
"chargeType": {
"type": "long"
},
"defaultDistance": {
"type": "float"
},
"deliveryFee": {
"type": "long"
},
"freeWeight": {
"type": "float"
},
"lat": {
"type": "float"
},
"lng": {
"type": "float"
},
"overDistance": {
"type": "float"
},
"overDistanceFee": {
"type": "long"
},
"overWeight": {
"type": "float"
},
"overWeightFee": {
"type": "long"
},
"positionInfo": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"startFee": {
"type": "long"
},
"stationId": {
"type": "long"
},
"status": {
"type": "long"
}
}
},
"selfPickup": {
"type": "integer"
},
"shopId": {
"type": "long"
},
"stationId": {
"type": "text"
},
"employeeId": {
"type": "long"
},
"stationLocation": {
"type": "geo_point"
},
"stationName": {
"type": "text",
"analyzer": "ik_max_word",
"search_analyzer": "ik_smart",
"fields": {
"ngram": {
"type": "text",
"analyzer": "mall4j_ngram_analyzer"
},
"keyword": {
"type": "keyword"
}
}
},
"stationScore": {
"type": "double"
},
"status": {
"type": "integer"
},
"stockMode": {
"type": "integer"
},
"timeDate": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"updateTime": {
"type": "long"
},
"createTime": {
"type": "long"
}
}
}
}