打卡,只是打卡,又是打卡,还是打卡,发卡卡

GET zebra_geo_poi/poi_data/_search
{
  "query": {
    "bool": {
      "must": [
         {
          "match": {
            "source": "dzdp"
          }
         }, {
           "bool": {
             "should": [
               {
                 "match": {
                   "first_type": "100"
                 }
               }, {
                 "match": {
                   "first_type": "101"
                 }
               }, {
                 "match": {
                   "first_type": "103"
                 }
               }, {
                 "match": {
                   "first_type": "104"
                 }
               }
             ]
           }
         }, {
           "nested": {
             "path": "expansion",
             "query": {
               "bool": {
                 "must": [
                   {
                      "range": {
                       "expansion.avg_price": {
                         "gte": 10
                       }
                     }
                   }, {
                      "exists": {
                        "field":"expansion.shop_image_url"
                      }
                   }, {
                      "exists": {
                        "field":"expansion.shop_comment_tags"
                      }
                   }, {
                      "exists": {
                        "field":"expansion.shop_tags"
                      }
                   }
                 ]
               }
             }
           }
         }, {
           "match": {
             "province": "北京市"
           }
         }
      ]
    }
  }
}

你可能感兴趣的:(elasticsearch)