DirectUpdateHandler implements an UpdateHandler where documents are added
directly to the main lucene index as opposed to adding to a separate smaller index.
DirectUpdateHandler2 implements an UpdateHandler where documents are added
directly to the main Lucene index as opposed to adding to a separate smaller index.
For this reason, not all combinations to/from pending and committed are supported.
This version supports efficient removal of duplicates on a commit.