modify filter to only search in plain text parts of the row while still allow the special query strings

@wjwwood Please review.