List of usage examples for org.apache.lucene.replicator IndexRevision IndexRevision
public IndexRevision(IndexWriter writer) throws IOException
From source file:com.qwazr.search.bench.LuceneNoTaxonomyIndex.java
License:Apache License
@Override final synchronized public void commitAndPublish() throws IOException { if (!indexWriter.hasUncommittedChanges()) return;// ww w .j a v a 2 s . c o m indexWriter.flush(); indexWriter.commit(); searcherManager.maybeRefresh(); localReplicator.publish(new IndexRevision(indexWriter)); }