use of org.apache.lucene.replicator.LocalReplicator in project lucene-solr by apache.
the class HttpReplicatorTest method setUp.
@Before
@Override
public void setUp() throws Exception {
super.setUp();
if (VERBOSE) {
// sets stderr logging to DEBUG level
System.setProperty("org.eclipse.jetty.LEVEL", "DEBUG");
}
clientWorkDir = createTempDir("httpReplicatorTest");
handlerIndexDir = newDirectory();
serverIndexDir = newDirectory();
serverReplicator = new LocalReplicator();
startServer();
IndexWriterConfig conf = newIndexWriterConfig(null);
conf.setIndexDeletionPolicy(new SnapshotDeletionPolicy(conf.getIndexDeletionPolicy()));
writer = new IndexWriter(serverIndexDir, conf);
reader = DirectoryReader.open(writer);
}
Aggregations