Alerts based on text


I am creating an ElasticSearch query that I would like to alert on, but am not sure if there is a way to create an alert based on the contents of a string (such as contains or exact match). Is this something that can be done? Right now all the value options that I have only allow entering numeric values.