public static void init() { try { shutdown(); } catch (Exception e) { Logger.error(e, "Error while shutting down search module"); } ANALYSER_CLASS = Play.configuration.getProperty( "play.search.analyser", "org.apache.lucene.analysis.standard.StandardAnalyzer"); String storeClassName = Play.configuration.getProperty( "play.search.store", "play.modules.search.store.FilesystemStore"); try { store = (Store) Class.forName(storeClassName).newInstance(); store.start(); } catch (Exception e) { throw new UnexpectedException("Could not intialize store", e); } }