Using bucket aggregation on IPs not giving expected results

Can you please post the output of:

GET /hostaddressindex/_mapping