Maintain a trigram index of valid search terms associated with a model