Class TrackingIndexWriter

java.lang.Object
org.apache.lucene.index.TrackingIndexWriter

public class TrackingIndexWriter extends Object
Class that tracks changes to a delegated IndexWriter, used by ControlledRealTimeReopenThread to ensure specific changes are visible. Create this class (passing your IndexWriter), and then pass this class to ControlledRealTimeReopenThread. Be sure to make all changes via the TrackingIndexWriter, otherwise ControlledRealTimeReopenThread won't know about the changes.