LUCENE-5392: A raft of rewrite.