Type for Terms aggregation: need to convert boolean 'T' and 'F' keys