@Override public synchronized void notify( ChangeSet changeSet ) { if (started.get()) { boolean scanRequired = this.toBeScanned.add(this.indexManager.notify(changeSet)); if (scanRequired) { // refresh the index writer this.indexManager.refreshIndexWriter(); // It's initialized, so we have to call it ... reindexIfNeeded(reindexingCfg.isAsync(), false); } } // If not yet initialized, the "reindexIfNeeded" method will be called by the JcrRepository. }
@Override public synchronized void notify( ChangeSet changeSet ) { if (started.get()) { boolean scanRequired = this.toBeScanned.add(this.indexManager.notify(changeSet)); if (scanRequired) { // refresh the index writer this.indexManager.refreshIndexWriter(); // It's initialized, so we have to call it ... reindexIfNeeded(reindexingCfg.isAsync(), false); } } // If not yet initialized, the "reindexIfNeeded" method will be called by the JcrRepository. }
reindexIfNeeded(async, true); break;
reindexIfNeeded(async, true); break;