ensure context is a string, and not mongoid search result