anchor.diff:  price for the product. The mapping could look like:
   
   [source,console,id=nested-aggregation-example]
  ---------------------------------------------------
  +----
   PUT /products
   {
     "mappings": {
  
positive.code:       "resellers": { <1>
          "type": "nested",
          "properties": {
            "reseller": { "type": "text" },
            "price": { "type": "double" }
          }
        }
      }
    }
  }
  --------------------------------------------------
  <1> `resellers` is an array that holds nested documents.
  
  The following request adds a product with two resellers:
  
  [source,console]
  --------------------------------------------------
  PUT /products/_doc/0
  {
    "name": "LED TV", <1>
    "resellers": [
  
negative.code:     }
    ]
  }
  ----
  // TEST[continued]
  
  <1> We are using a dynamic mapping for the `name` attribute.
  
  
  The following request returns the minimum price a product can be purchased for:
  
  [source,console]
  ----
  GET /products/_search?size=0
  {
    "query": {
      "match": {
        "name": "led tv"
      }
    },
    "aggs": {
      "resellers": {
  