Improved indexing based on Solarium's BufferedAdd Plugin
Thank you @basdenooijer
Improved comments.
Showing time used to index.