How to perform exact string match query in ES

what is the type of message in your schema mapping for your index. if you explicitly set the type as keyword, you should get an exact match for your search.
ref - https://www.elastic.co/blog/strings-are-dead-long-live-strings