Added method to escape lucene queries