Now allow pattern without using search in the java backend
Updated a comment