anchor.diff:  Need more context?
   
   Check out the <<elasticsearch-intro,
  -Elasticsearch Introduction>> to learn the lingo and understand the basics of
  +{es} Introduction>> to learn the lingo and understand the basics of
   how {es} works. If you're already familiar with {es} and want to see how it works
   with the rest of the stack, you might want to jump to the
   {stack-gs}/get-started-elastic-stack.html[Elastic Stack
  
positive.code: // CONSOLE
  // TEST[continued]
  
  This example demonstrates how we can group by age brackets (ages 20-29, 30-39, and 40-49), then by gender, and then finally get the average account balance, per age bracket, per gender:
  
  [source,js]
  --------------------------------------------------
  GET /bank/_search
  {
    "size": 0,
    "aggs": {
      "group_by_age": {
        "range": {
          "field": "age",
          "ranges": [
            {
              "from": 20,
              "to": 30
            },
            {
              "from": 30,
              "to": 40
            },
            {
              "from": 40,
              "to": 50
            }
          ]
        },
        "aggs": {
          "group_by_gender": {
            "terms": {
              "field": "gender.keyword"
            },
            "aggs": {
              "average_balance": {
                "avg": {
                  "field": "balance"
                }
              }
            }
          }
        }
      }
    }
  }
  --------------------------------------------------
  // CONSOLE
  // TEST[continued]
  
  There are many other aggregations capabilities that we won't go into detail here. The {ref}/search-aggregations.html[aggregations reference guide] is a great starting point if you want to do further experimentation.
  
  [[getting-started-next-steps]]
  == Where to go from here
  
negative.code: * `hits._score` - the document's relevance score (not applicable when using `match_all`)
  
  Each search request is self-contained: {es} does not maintain any
  state information across requests. To page through the search hits, specify
  the `from` and `size` parameters in your request. 
  
  For example, the following request gets hits 10 through 19:
  