IndexWriter already takes an analyzer up-front (via
IndexWriterConfig), but it also allows you to specify a different one
for each add/updateDocument.
I think this is quite dangerous/trappy since it means you can easily
index tokens for that document that don't match at search-time based
on the search-time analyzer.
I think we should remove this trap in 5.0.