How can I get term aggregation to match a total string? <p>I have a some data that I'm aggregating with elasticsearch 1.5.2 and when I do a terms aggregation on a field like <code>city</code> the buckets don't match full strings from the field. Ex.) If city is St. Louis then one bucket would be <code>St.</code> and the other <code>Louis</code>. Does anyone know how to make sure that when it aggregates it goes into a <code>St. Louis</code> bucket?</p> <p>note: This may be caused from the data being analyzed which I'm pretty sure breaks up strings when comparing and searching etc. </p>