GeonetworkNRTManager nrtManager = null;
TrackingIndexWriter trackingIndexWriter;
try {
cachedFSDir = _directoryFactory.createIndexDirectory(indexId, luceneConfig);
IndexWriterConfig conf = new IndexWriterConfig(Geonet.LUCENE_VERSION, SearchManager.getAnalyzer(indexId, false));
ConcurrentMergeScheduler mergeScheduler = new ConcurrentMergeScheduler();
conf.setMergeScheduler(mergeScheduler);
writer = new IndexWriter(cachedFSDir, conf);
trackingIndexWriter = new TrackingIndexWriter(writer);
nrtManager = new GeonetworkNRTManager(luceneConfig, indexId,
trackingIndexWriter, writer, null, true, taxonomyIndexTracker);