Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.52 KB | None | 0 0
  1. "offer.price": {
  2.       "nested": {
  3.         "path": "offer"
  4.       },
  5.       "aggregations": {
  6.         "offer.price": {
  7.           "filter": {
  8.             "bool": {
  9.               "must": [
  10.                 {
  11.                   "nested": {
  12.                     "path": "offer",
  13.                     "score_mode": "none",
  14.                     "query": {
  15.                       "terms": {
  16.                         "offer.seller_id": [
  17.                           1
  18.                         ],
  19.                         "boost": 1
  20.                       }
  21.                     },
  22.                     "boost": 1
  23.                   }
  24.                 },
  25.                 {
  26.                   "nested": {
  27.                     "path": "offer",
  28.                     "score_mode": "none",
  29.                     "query": {
  30.                       "terms": {
  31.                         "offer.customer_group_id": [
  32.                           0
  33.                         ],
  34.                         "boost": 1
  35.                       }
  36.                     },
  37.                     "boost": 1
  38.                   }
  39.                 }
  40.               ],
  41.               "must_not": [],
  42.               "should": [],
  43.               "minimum_should_match": 1,
  44.               "boost": 1
  45.             }
  46.           },
  47.           "aggregations": {
  48.             "offer.price": {
  49.               "histogram": {
  50.                 "field": "offer.price",
  51.                 "interval": 1,
  52.                 "min_doc_count": 1
  53.               }
  54.             }
  55.           }
  56.         }
  57.       }
  58.     },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement