daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Mar 20th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. get webarcondicionadocombr_banner_online/_doc/_search
  2.  
  3. {
  4.             "size":12,
  5.             "query":{"bool":{
  6.                 "filter":[
  7.                     {"term":{"coupon_status":"ativo"}},
  8.                     {"range":{"coupon_start":{"lte":"'.date('Y/m/d', mktime(0, 0, 0, date('m'), date('d'), date('Y'))).'"}}},
  9.                     {"range":{"coupon_expire":{"gte":"'.date('Y/m/d', mktime(0, 0, 0, date('m'), date('d'), date('Y'))).'"}}}
  10.                 ],
  11.                 "must_not":[
  12.                     {"terms":{"id_coupon":["'.implode('","', self::$register->id_coupon).'"]}}
  13.                 ]
  14.             }},
  15.           "sort":[
  16.                 {"coupon_start":"desc"},
  17.                 {"coupon_relevance":"desc"}
  18.           ]
  19.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top