文章目录世界上并没有完美的程序,但是我们并不因此而沮丧,因为写程序就是一个不断追求完美的过程。
-侯氏工坊
- 功能
- 关键字
- 原语句
- java实现
- 所需jar包
- 对返回结果进行过滤
- filter 对搜索和聚合有效
- post_filter 只对搜索有效
- bool
- filter
- post_filter
PUT index_filter
{
"mappings": {
"properties": {
"brand": {"type": "keyword"},
"color": {"type": "keyword"},
"model": {"type": "keyword"}
}
}
}
GET index_filter/_mapping
POST index_filter/_bulk
{"create": {}}
{"brand": "gucci", "color": "red"


