SOLR在Alfresco 4.0.2中停止索引

时间:2012-08-22 16:07:28

标签: solr indexing alfresco

我在Alfresco中遇到SOLR索引问题。无法索引新创建的内容。日志文件中没有例外。

我为 org.alfresco.solr.tracker.CoreTracker 启用了debuging,发现从事务ID不会增加。它看起来像无限循环。

    INFO: Scanning transactions ...
    Aug 22, 2012 9:36:09 AM org.alfresco.solr.tracker.MultiThreadedCoreTracker        trackTransactions
    INFO: .... from Transaction [id=335, commitTimeMs=1345501423910, updates=0, deletes=0]
    Aug 22, 2012 9:36:09 AM org.alfresco.solr.tracker.MultiThreadedCoreTracker trackTransactions
    INFO: .... from Transaction [id=335, commitTimeMs=1345501423910, updates=0, deletes=0]
    Aug 22, 2012 9:36:09 AM org.alfresco.solr.tracker.MultiThreadedCoreTracker trackTransactions
    INFO: .... to Transaction [id=342, commitTimeMs=1345504959777, updates=0, deletes=0]
    Aug 22, 2012 9:36:09 AM org.alfresco.solr.tracker.MultiThreadedCoreTracker trackTransactions
    INFO: .... to Transaction [id=342, commitTimeMs=1345504959777, updates=0, deletes=0]
    Aug 22, 2012 9:36:09 AM org.alfresco.solr.tracker.MultiThreadedCoreTracker trackTransactions
    INFO: Scanning transactions ...
    Aug 22, 2012 9:36:09 AM org.alfresco.solr.tracker.MultiThreadedCoreTracker trackTransactions
    INFO: Scanning transactions ...
    Aug 22, 2012 9:36:09 AM org.alfresco.solr.tracker.MultiThreadedCoreTracker trackTransactions
    INFO: .... from Transaction [id=335, commitTimeMs=1345501423910, updates=0, deletes=0]
    Aug 22, 2012 9:36:09 AM org.alfresco.solr.tracker.MultiThreadedCoreTracker trackTransactions
    INFO: .... from Transaction [id=335, commitTimeMs=1345501423910, updates=0, deletes=0]
    Aug 22, 2012 9:36:09 AM org.alfresco.solr.tracker.MultiThreadedCoreTracker trackTransactions
    INFO: .... to Transaction [id=342, commitTimeMs=1345504959777, updates=0, deletes=0]
    Aug 22, 2012 9:36:09 AM org.alfresco.solr.tracker.MultiThreadedCoreTracker trackTransactions
    INFO: .... to Transaction [id=342, commitTimeMs=1345504959777, updates=0, deletes=0]
    Aug 22, 2012 9:36:09 AM org.alfresco.solr.tracker.MultiThreadedCoreTracker trackTransactions

我试图修复此调用admin / cores?action = FIX(修复SOLR中的问题)但它没有帮助,我在日志中看不到任何异常。

还有其他方法可以开始编制索引吗?

编辑:我解决了升级到Alfresco 4.0.29并重建索引的问题。我想我在Alfresco Jira上看到了类似的问题,但我找不到它。谢谢你的回答

2 个答案:

答案 0 :(得分:0)

尝试使用JConsole连接到Alfresco。

导航到MBeans选项卡。

在Alfresco下> SolrIndexes> alfresco>操作,你会发现一个方法checkAndFixIndex。调用它来修复索引。

答案 1 :(得分:0)

您是否尝试在alfresco.global.properties中添加以下选项: 的 index.tracking.disableInTransactionIndexing =假