title: how to use maxAggregation in jest elasticsearch
body: <p>i want to get the maximun id form a subfield of an aptitude object,</p>
  
  <pre><code>{
  "mappings": {
      "aptitude": {
          "dynamic": "strict",
          "properties": {
              "id": {
                  "type": "long"
              },
              "es": {
                  "type": "text"
              },
              "en": {
                  "type": "text"
              },
              "behaviors": {
                  "properties": {
                      "id": {
                          "type": "long"
                      },
                      "es": {
                          "type": "text"
                      },
                      "en": {
                          "type": "text"
                      }
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>as you can see the aptitude have an array of behaviors who in turn have an id, afaik i should use the maxAggregation from Jest, but cant find a decent example of how to do it in java, can someone help?</p>