setUseCompoundFile

Sets if the IndexWriter should pack newly written segments in a compound file. Default is true.

Use false for batch indexing with very large ram buffer settings.

Note: To control compound file usage during segment merges see MergePolicy.setNoCFSRatio and MergePolicy.setMaxCFSSegmentSizeMB. This setting only applies to newly created segments.