Properly case update and delete queries for lucene.