.setProperty( "hibernate.search.default.directory_provider", "filesystem-master" )
.build();
}
private FullTextSessionBuilder createSlaveNode(boolean enableRetryInitializePeriod) {
FullTextSessionBuilder builder = new FullTextSessionBuilder()
.addAnnotatedClass( SnowStorm.class )
.setProperty( "hibernate.search.default.sourceBase", root.getAbsolutePath() + masterCopy )
.setProperty( "hibernate.search.default.indexBase", root.getAbsolutePath() + "/slave" )
.setProperty( "hibernate.search.default.directory_provider", FSSlaveDirectoryProviderTestingExtension.class.getName() );
if ( enableRetryInitializePeriod ) {
builder.setProperty( "hibernate.search.default.retry_initialize_period", "12" );
}
return builder.build();
}