cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to rebuild SOLR Index

cfox570
Champ in-the-making
Champ in-the-making
Running Community 4.0.d
I noticed a problem where new content would not appear in the search results.  I found documentation that said to remove the index directory.   I stopped the server, removed the folder, restarted.   A new index folder was created.  But it appears that none of the repository documents are being indexed. Is there some other trick to kick into gear?

I have confirmed that index is working for new content only.  How do I force the indexing of all of the existing content?
23 REPLIES 23

joekings
Champ in-the-making
Champ in-the-making
Did anybody ever figure this out? I am having the same problem. I delete everything as instructed, and the logs say that the index is being rebuilt, but it takes just a few seconds and then when I look at the index nothing is in there, it's blank.

andy
Champ on-the-rise
Champ on-the-rise
Hi

What version of Alfresco did you first install?

Andy

joekings
Champ in-the-making
Champ in-the-making
Hi I installed version 4.0.d.    My indexes got out of whack.  While there were over 4 thousand documents in the repository a search of it returned only 3000. I figured the issues was the indexes and I tried to rebuild them by following the steps above.   Afterwards it was worse, search returned 0 documents and only new documents were showing up.  Now some documents get indexed and others do not.   I am not sure what is going on with the index.

My system is a clustered Alfresco system that has two Alfresco servers sharing a content store but each alfresco server has it's own solr directory.

andy
Champ on-the-rise
Champ on-the-rise
Hi

What does the SUMMARY report give?
See the SOLR wiki page.

Andy

guigpedroso
Champ in-the-making
Champ in-the-making
We are having the same behavior after reindex Solr, the new contents are fine, but the old content disappear of search engine and "All Documents" in "Document library".

guigpedroso
Champ in-the-making
Champ in-the-making
Hi,

follows the catalina log error if anyone can shed some light Smiley Happy

catalina.out
"SEVERE: SOLR has successfully connected to your repository  however the SOLR indexes and repository database do not match."

infsy
Champ in-the-making
Champ in-the-making
Hello,

I've got the same error message in catalina.out :

Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 07240171 Initial transaction not found with correct timestamp
….
SOLR has successfully connected to your repository  however the SOLR indexes and repository database do not match.
24 août 2012 13:51:30 org.alfresco.solr.tracker.CoreTracker trackRepository
GRAVE: If this is a new or rebuilt database you SOLR indexes also need to be re-built to match the database.

In alfresco.log all it's fine, no error message.

I installed my 4.0d server on a debian 6. After installation, Solr didn't work but i decide to not resolve problem of communication in a first time. I transfert my docs via FTP on my alfresco server, and only after i follow solr configuration wiki page for resolve its problem.

Now Solr works better. I have no more message in my Share interface, and in my alfresco.log. But, i have equally no results when i try to execute a solr request and in catalina.out i've got this problem of synchronisation.

I tested to delete lucene indexes and to restart with parameters index.recovery.mode=FULL without results.

It seems that i am not alone with a problem of solr indexing in alfresco 4.0d. Someone have a suggestion ?

stevericker
Champ in-the-making
Champ in-the-making
Infy,

Not sure if this is an option for you, but we just removed Solr altogether by following the steps here (just got rid of the webapp subsystem essentially):

https://forums.alfresco.com/en/viewtopic.php?f=9&t=43998

Stop tomcat
delete tomcat/conf/Catalina/localhost/solr.xml
delete directory tomcat/webapps/solr
restart

So far, no more error msgs, CPU usage seems reasonable, and performance on file upload/downloads is much much better.  We got spooked by this posting and bug report, and we'll probably wait for more improved community releases:

https://forums.alfresco.com/en/viewtopic.php?f=8&t=45346
https://issues.alfresco.com/jira/browse/ALF-14237

x1m
Champ in-the-making
Champ in-the-making
After many problems with SOLR I have returned to the old search machine Lucene. Now I can search again and I get the right search results.

I do however get diferent search results when using Firefox!? When I use Interne Explorer and Chrome I get the same search results. This problem where also there when using SOLR.

shazada
Star Contributor
Star Contributor
There is an issue with multi-threaded tracking.

So go to your core configs and set:
alfresco.enableMultiThreadedTracking=false

Then delete the index folders for each core and restart Alfresco.