Lucene query in grafana

I have 2 fields(error message and its count) in my table panel.I want to filter the rows depending on given phrase that is error message and the given phrase should be the same.

I am able to do it but the problem was if the filed which has some other text other than the given phrase are also get filtered … Can anyone help me to achieve this?

The query that I used is { errormsg:"$Errormsg"}