一、bool查询包含四种操作

1.must

2.must not

3.filter

4.should

二、功能

1.must 对应mysql的 and a=

2.must not 对应mysql的 and a!=

3.filter 对应mysql的 and a=

4.should 对应mysql的 or a=

三、must和filter比较

1.must算分,filter不算分

2.filter效率比must高

四、filter效率高的原理

1.query context:文档更加匹配查询条件,分数越高越匹配

2.filter context:文档是否匹配查询条件,并且ES会缓存查询结果

参考:

https://blog.csdn.net/pony_maggie/article/details/106062284

最新文章

  1. c#上iOS apns p12文件制作记录 iOS推送证书制件
  2. Loadrunner中web_custom_request使用场景
  3. 【Android 界面效果20】Android GradientDrawable类的详解,设置activity的背景颜色渐变效果
  4. Demo学习: Basic jQuery
  5. UVA 10627 - Infinite Race(数论)
  6. hdu4010-Query on The Trees(lct分裂合并加值查询最大值)
  7. struts2.3.15.3中动态方法调用默认是关闭的
  8. Linux学习之域名解析命令
  9. Linux环境下编译并执行ava helloworld程序
  10. 跟Bob大叔观OO原则
  11. 配置apache
  12. CSS中设置height:100%无效的解决方案
  13. java-枚举一些字典信息的例子
  14. 阅读MDN文档之CSS选择器介绍(一)
  15. iOS钉钉远程打卡助手(支持越狱和非越狱)
  16. CentOS6 网络设置
  17. web服务器上某一中文名文件无法访问
  18. 最小生成树模板【kruskal & prim】
  19. html5-表单和input元素用法
  20. 使用eclipse构建Maven项目及发布一个Maven项目

热门文章

  1. Windows 注册表是什么
  2. wibu软授权(五)
  3. K8s集群安全机制
  4. JS输出formData的全部值
  5. 【剑指Offer】【树】【双向链表】二叉搜索树与双向链表
  6. csp201503-1(矩阵逆时针九十度旋转)
  7. Parsing error: missing-whitespace-between-attributes
  8. 2022-05-24内部群每日三题-清辉PMP
  9. 函数:3ds max 给选择对象设置轴心点
  10. 【26期】如何判断一个对象是否存活?(或者GC对象的判定方法)?