log.debug( "Storing SearchFactory in ThreadLocal" );
searchFactoryImplementor = ContextHolder.getOrBuildSearchFactory( cfg );
}
else {
if ( searchFactoryImplementor == null ) {
searchFactoryImplementor = new SearchFactoryImpl( new SearchConfigurationFromHibernateCore( cfg ) );
}
}
String indexingStrategy = searchFactoryImplementor.getIndexingStrategy();
if ( "event".equals( indexingStrategy ) ) {
used = searchFactoryImplementor.getDocumentBuildersIndexedEntities().size() != 0;