{
    "query": {
        "bool":{
            "filter":{
               "bool":{
                 "must":[
                      {"match_phrase" : {  "text" :"123" }},
                       {"match_phrase" : {  "text" :"456" }}
                      ]
               }
            }
        }
    }
}
   
如上述的DSL所示,我需要查出即包含123,又包含456的上述的语句的执行逻辑是先拿到123命中的再去过滤包含456的?还是拿到命中123和456的去取交集?

 
	
1 个回复
bellengao - 博客: https://www.jianshu.com/u/e0088e3e2127
赞同来自: ridethewind