今天开始看了会es学习相关的书,看到查询的一些关键字,想记录下来。
查询关键字
关键字 | 描述 | 实例 |
---|
match | 普通查询 | “match”: { “account_number”: 20 } |
match_phrase | 包含查询 | “match_phrase”: { “address”: “mill lane” } |
bool | 组合查询 | “bool”: {“must”: [{ “match”: { “address”: “mill” } },{ “match”: { “address”: “lane” } }]} |
must | 包含 | 同上 |
must_not | 不包含 | 同上 |
具体没有特别了解,暂时只知道有这些东西,记录一下。