throw new SearchException( "To use \"native\" as a LockFactory strategy an indexBase path must be set" );
}
return new NativeFSLockFactory( indexDir );
}
else if ( "single".equals( lockFactoryName ) ) {
return new SingleInstanceLockFactory();
}
else if ( "none".equals( lockFactoryName ) ) {
return NoLockFactory.getNoLockFactory();
}
else {