Can you a do terms aggregation on a number field?

Or does it only work on strings?

Yes, you can run the Terms aggregation on number fields

1 Like