Code example for SessionFactory

Methods: openSession

0
	private SessionFactory sessionFactory;
 
	@Override 
	public void afterPropertiesSet() throws Exception {
		//重建索引 
		FullTextSession fullTextSession = Search.getFullTextSession(sessionFactory.openSession());
		 
		fullTextSession.createIndexer().startAndWait();
	} 
}