1. A method comprising: receiving a token that is usable in search queries for data in a database, the database including items of data that are represented by data strings; determining a synonym candidate for the token; and adding the synonym candidate as a synonym for the token into an expansion dictionary in response to a determination that the number of data strings having the synonym candidate exceeds a threshold.