I am missing something w/ ES Sum Aggregations. I want to sum a field that is mapped to as an integer vs a float. I specifically would like the resulting sum value to be an integer too.
I have simplified my query and am just now using a script to return a hard coded integer(1) just to eliminate any issues w/ my doc type mapping. Even in this simple case the result is a float. Query:
GET /dogs/_search
{
  "aggregations": {
    "total": {
      "sum": {
        "script" : {
                   "source": "1"
                }
      }
    }
  },
  "size":0
}
And here is the result:
{
  "aggregations" : {
    "total" : {
      "value" : 108.0
    }
  }
}
Is there anyway to make that total be an Integer? Any links to further reading would help. I searched a ton on this in the google machine and got nothing relevant, so i just must be missing something.
Thanks
  There's a ticket here you can follow: