ISPN-4700 Optimize non-indexed DSL 'like' queries

java.util.regex.Pattern is not very efficient in handling some of the trivial regexps
that can be replaced by simple string operations like contains, startsWith, endwith, equals.