1,接触Es查询数量限制
localhost:9200/product/_settings PUT
{ "index.max_result_window":200000 } 2,设置索引逗号拆分 localhost:9200/product/ GET { "settings": {"analysis": {
"analyzer": {
"comma": {
"type": "pattern",
"pattern":","
}
}
}
}
} 3,给字段设置分词方式 POST localhost:9200/product/_mapping/record?include_type_name=true {
"properties": {
"id": { "type": "string", "index": "not_analyzed" },
"areaIdSalias": { "type": "string", "analyzer": "comma", "search_analyzer": "comma" }
} } 标签:product,9200,analyzer,comma,localhost,type,Es From: https://www.cnblogs.com/feathe/p/16916135.html