Searching over country/state

My db model stores a country code and state as a code rather than full-text value. Is there a way to map Algolia to allow users to search using the country/state name and not just the country code?

Do I need to look at storing names as well?

Hello,

Yes, you could use synonyms, but I would definitely advise you to store the label, would be much easier :slight_smile: And then add this as “searchableAttribute” and it will do the trick.

Let me know if this helps,

Are there predefined synonyms available? I’d have thought something like countries/states would have been a common one.