02-11-2019 09:20 AM
Hi,
I'm using Alfresco 6 and Solr 6.
I would like to see logs when I do a Full indexation (index.recovery.mode=FULL).
Before to upgrade my project in Alfresco 6, I was in 3.3.
With log4j in 3.3 I did in log4j.properties :
log4j.logger.org.alfresco.repo.node.index.FullIndexRecoveryComponent=info, FileAlfrescoIndexReco
# Alfresco for index building
log4j.appender.FileAlfrescoIndexReco=org.apache.log4j.RollingFileAppender
log4j.appender.FileAlfrescoIndexReco.File=${logs.dir}/alfresco_fullIndexRecovery.log
log4j.appender.FileAlfrescoIndexReco.MaxFileSize=100MB
log4j.appender.FileAlfrescoIndexReco.layout=org.apache.log4j.PatternLayout
log4j.appender.FileAlfrescoIndexReco.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} %-5p [%t] %c - %m%n
And the result was :
08 oct. 2018 10:29:23,200 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - Index recovery started: 1.831 transactions.
08 oct. 2018 10:29:23,289 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - 10 % complete.
08 oct. 2018 10:29:23,289 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - 20 % complete.
08 oct. 2018 10:29:23,290 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - 30 % complete.
08 oct. 2018 10:29:23,291 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - 40 % complete.
08 oct. 2018 10:29:23,291 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - 50 % complete.
08 oct. 2018 10:29:31,914 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - 60 % complete.
08 oct. 2018 10:29:31,915 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - 70 % complete.
08 oct. 2018 10:29:31,916 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - 80 % complete.
08 oct. 2018 10:29:31,917 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - 90 % complete.
08 oct. 2018 10:29:31,918 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - 100 % complete.
08 oct. 2018 10:29:33,277 INFO [main] org.alfresco.repo.node.index.FullIndexRecoveryComponent - Index recovery completed.
In Alfresco 6 it does not works, my logging file is empty.
And I don't find org.alfresco.repo.node.index.FullIndexRecoveryComponent anymore.
So, org.alfresco.repo.node.index.FullIndexRecoveryComponent is deprecated in alfresco 6 ?
And if Yes, there is another solution to log the full indexation (index.recovery.mode=FULL).
Best Regards,
Quentin
02-11-2019 04:21 PM
This particular class has always been tightly tied to using the Lucene index. It cannot be used with SOLR and was removed when the last support for embedded Lucene was removed (in the 4.2 to 5.0 transition, unless one was using a very special "buildonly" search subsystem, only supported for dev tests).
You also do not need such a thing with SOLR since you can query the SOLR status at any time via the admin URL actions and get a progress report (though not in percent, but in number of transactions remaining - which you can use to actually derive a percent, because that is what that old Lucene class was doing as well).
02-12-2019 03:04 AM
Ok thanks for your respond.
Best Regards.
Quentin
Explore our Alfresco products with the links below. Use labels to filter content by product module.