Properly case update and delete queries for lucene.
Merge branch 'master' into prod