ElasticSearch 5.5 DSL搜索
搜索
多个搜索条件 & 短语匹配(同时包含"广州"和"东") | { "query": { "bool": { "must": [ [ { "match_phrase": { "golf_course_name": "广州 东" } }, { "match": { "language_type": "1" } }, { "range": { "id": { "gte": "11260870" } } } ] ] } }} |
{ "query": { "bool": { "must": [ [ { "match_phrase": { "golf_course_name": "广州 " } }, { "match": { "language_type": "1" } }, { "range": { "id": { "gte": "11260870" } } } ] ] } } }
过滤器(filter) 高效执行结构化搜索 | { "query": { "bool": { "must": [ [ { "match": { "golf_course_name": "东" } } ] ], "filter": { "range": { "id": { "gte": "11193704", "lte": "11194704", } } } } }} |
{ "query": { "bool": { "must": [ [ { "match": { "golf_course_name": "东" } } ] ], "filter": { "range": { "id": { "gte": "11193704" } } } } } }
OR & 条件 & 范围搜索 | { "query": { "bool": { "should": [ [ { "range": { "bdate": { "gte": "1529337600" } } }, { "match": { "language_type": "1" } } ], [ { "match": { "language_type": "2" } } ] ] } }} |
{ "query": { "bool": { "should": [ [ { "range": { "bdate": { "gte": "1529337600" } } }, { "match": { "language_type": "1" } } ], [ { "match": { "language_type": "2" } } ] ] } } }
相关推荐
wenwentana 2020-07-05
云中舞步 2020-11-12
杨德龙 2020-11-11
JohnYork 2020-10-16
wangzhaotongalex 2020-09-22
xiaoseyihe 2020-11-16
不要皱眉 2020-10-14
Crazyshark 2020-11-13
K先生 2020-11-10
momode 2020-09-11
思君夜未眠 2020-09-04
点滴技术生活 2020-08-21
MaggieRose 2020-08-19
kevinweijc 2020-08-18
wintershii 2020-08-17
vapaad 2020-08-17
wera00 2020-08-17
移动开发与培训 2020-08-16
ReunionIsland 2020-08-16