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

Add some tests