PUT http://192.168.1.7:9200/haoke/
{
"settings": {
"index": {
"number_of_shards": 6,
"number_of_replicas": 1,
"analysis": {
"analyzer": {
"pinyin_analyzer": {
"tokenizer": "my_pinyin"
}
},
"tokenizer": {
"my_pinyin": {
"type": "pinyin",
"keep_separate_first_letter": false,
"keep_full_pinyin": true,
"keep_original": true,
"limit_first_letter_length": 16,
"lowercase": true,
"remove_duplicated_term": true
}
}
}
}
},
"mappings": {
"house": {
"dynamic": false,
"properties": {
"title": {
"type": "text",
"analyzer":"ik_max_word",
"fields":{
"pinyin":{
"type": "text",
"analyzer": "pinyin_analyzer"
}
}
},
"image": {
"type": "keyword",
"index":false
},
"orientation": {
"type": "keyword",
"index":false
},
"houseType": {
"type": "keyword",
"index":false
},
"rentMethod": {
"type": "keyword",
"index":false
},
"time": {
"type": "keyword",
"index":false
},
"rent": {
"type": "keyword",
"index":false
},
"floor": {
"type": "keyword",
"index":false
}
}
}
}
}
版权归属:
Fly
许可协议:
本文使用《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》协议授权
评论区