01
2015/09
过滤语句Elasticsearch 提供了丰富的查询过滤语句,对于查询过程中的各种场景非常有用 精确匹配 -- termsterm 用于精确匹配,常用于数字、日期、布尔值或 not_analyzed 字符串的匹配{ "term": { "age": 26 }}
{ "term": { "date": "2014-09-01" }}
{ "term": { "public": true }}
{ "term": { "tag": "full_text" }} 多精确匹配 -- termsterms 跟 term 有点类似,但 terms 允许指定多个匹配条件如果某个字段指定了多个值,那么文档需要一起去做匹配{
"terms": {
"tag": [ "search", "full_text&
#读书笔记
#技术帖
#龙潭书斋
#query_string