1

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

我为org.alfresco.solr.tracker.CoreTracker启用了调试,发现 from Transaction 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 上看到了类似的问题,但我找不到。感谢您的回答

4

2 回答 2

0

尝试使用 JConsole 连接到 Alfresco。

导航到 MBean 选项卡。

在 Alfresco > SolrIndexes > alfresco > Operations 下,您将找到一个方法 checkAndFixIndex。调用它来修复您的索引。

于 2012-08-23T06:46:14.607 回答
0

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

于 2012-09-04T09:18:50.703 回答