Merges all segments together into a single segment, optimizing an index for search.
IndexWriter Class | Lucene.Net.Index Namespace