Terms Query Doesn't work on keywords

It's because you defined a mapping for riskApplicabilityAttributes.Locale but indexed a field named Locale.