请教:compass+spring+hibernate2能否对多表建立索引?
目前系统采用struts+spring1.2+hibernate2作为架构,采用compass1.1+lucene作为搜索引擎。对5个表可以进行索引,并且查询没有问题,但对5个以上表进行索引时发现一个问题,系统没有报任何异常,compass始终没有建立索引,并且没有释放session,导致系统无法使用。后台代码如下:
compass.cmd.xml代码
CompassIndexBuilder.java代码如下:
把log4j的级别调成DEBUG,发现COMPASS会在后台不断的输出下面的代码,大家也是如此吗:2007-06-14 16:24:57,125 DEBUG org.compass.core.lucene.engine.manager.ScheduledLuceneSearchEngineIndexManager - Checking for global cache invalidation2007-06-14 16:24:57,140 DEBUG org.compass.spring.transaction.SpringSyncTransaction - Beginning new Spring transaction, and a new compass transaction on thread [Compass Scheduled IndexManager] with isolation [null]2007-06-14 16:24:57,140 DEBUG org.compass.spring.transaction.SpringSyncTransaction - Committing Spring transaction controlled by compass on thread [Compass Scheduled IndexManager]2007-06-14 16:24:57,203 DEBUG org.compass.spring.transaction.SpringSyncTransaction - Committing compass transaction using Spring synchronization afterCompletion on thread [Compass Scheduled IndexManager]2007-06-14 16:24:57,218 DEBUG org.compass.spring.transaction.SpringSyncTransaction - Beginning new Spring transaction, and a new compass transaction on thread [Compass Scheduled IndexManager] with isolation [null]2007-06-14 16:24:57,218 DEBUG org.compass.spring.transaction.SpringSyncTransaction - Committing Spring transaction controlled by compass on thread [Compass Scheduled IndexManager]2007-06-14 16:24:57,218 DEBUG org.compass.spring.transaction.SpringSyncTransaction - Committing compass transaction using Spring synchronization afterCompletion on thread [Compass Scheduled IndexManager]2007-06-14 16:24:57,390 DEBUG org.compass.core.lucene.engine.optimizer.ScheduledLuceneSearchEngineOptimizer - Checking for index optimization2007-06-14 16:24:57,390 DEBUG org.compass.spring.transaction.SpringSyncTransaction - Beginning new Spring transaction, and a new compass transaction on thread [Compass Scheduled Optimizer] with isolation [null]2007-06-14 16:24:57,390 DEBUG org.compass.spring.transaction.SpringSyncTransaction - Committing Spring transaction controlled by compass on thread [Compass Scheduled Optimizer]2007-06-14 16:24:57,406 DEBUG org.compass.spring.transaction.SpringSyncTransaction - Committing compass transaction using Spring synchronization afterCompletion on thread [Compass Scheduled Optimizer]2007-06-14 16:24:57,406 DEBUG org.compass.spring.transaction.SpringSyncTransaction - Beginning new Spring transaction, and a new compass transaction on thread [Compass Scheduled Optimizer] with isolation [null]2007-06-14 16:24:57,406 DEBUG org.compass.spring.transaction.SpringSyncTransaction - Committing Spring transaction controlled by compass on thread [Compass Scheduled Optimizer]2007-06-14 16:24:57,406 DEBUG org.compass.spring.transaction.SpringSyncTransaction - Committing compass transaction using Spring synchronization afterCompletion on thread [Compass Scheduled Optimizer]2007-06-14 16:24:57,406 DEBUG org.compass.spring.transaction.SpringSyncTransaction - Beginning new Spring transaction, and a new compass transaction on thread [Compass Scheduled Optimizer] with isolation [null]2007-06-14 16:24:57,406 DEBUG org.compass.spring.transaction.SpringSyncTransaction - Committing Spring transaction controlled by compass on thread [Compass Scheduled Optimizer]2007-06-14 16:24:57,421 DEBUG org.compass.spring.transaction.SpringSyncTransaction - Committing compass transaction using Spring synchronization afterCompletion on thread [Compass Scheduled Optimizer]2007-06-14 16:24:57,421 DEBUG org.compass.spring.transaction.SpringSyncTransaction - Beginning new Spring transaction, and a new compass transaction on thread [Compass Scheduled Optimizer] with isolation [null]2007-06-14 16:24:57,421 DEBUG org.compass.spring.transaction.SpringSyncTransaction - Committing Spring transaction controlled by compass on thread [Compass Scheduled Optimizer]2007-06-14 16:24:57,421 DEBUG org.compass.spring.transaction.SpringSyncTransaction - Committing compass transaction using Spring synchronization afterCompletion on thread [Compass Scheduled Optimizer]5 楼 anybyb 2011-12-22 正在学习中。关注下!