cancel
Showing results for 
Search instead for 
Did you mean: 

solr indexing issue alfresco 4.0 EE

g_rathod
Star Contributor
Star Contributor
Hi Friends,

I am using alfresco 4.0 EE. I have various issues related solr , I can not even find company_home nodeRef using node browser. I have to switch back to lucene and doing full indexing and than getting back to solr.

Even I can not connect to solr admin console, it appears blank even I approve certificate.
Any way to full re-index using solr ????
3 REPLIES 3

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

Are there any errors in the logs?
Turn on the debug as described on the SOLR wiki page.
What does the admin report say?

Is this an upgrade?

Andy

g_rathod
Star Contributor
Star Contributor
Hi Andy,

Actually I have found some forum link followed below steps :

1) alfresco4\alf_data\solr\archive\SpacesStore    removing indexes
2) alfresco4\alf_data\solr\workspace\SpacesStore removing indexes

I removed those but now getting below logs

Caused by: java.io.FileNotFoundException: no segments* file found in org.apache.lucene.store.SimpleFSDirectory@D:\projects\clms\alfresco4\alf_data\solr\archive\SpacesStore\index: files:
        at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:634)
        at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:69)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:476)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:403)
        at org.apache.solr.core.StandardIndexReaderFactory.newReader(StandardIndexReaderFactory.java:38)
        at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1057)
        … 32 more

Jul 9, 2012 10:50:38 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive share.war

Now I can not find even company_home by lucene or xpath.
What is the solution for reindex all indexes in solr. ???

cortextual
Champ in-the-making
Champ in-the-making
Good question. Remove the Solr index directories (alf_data/solr/workspace/SpacesStore/index and alf_Data/solr/archive/SpacesStore/index). I just came across this problem today. It's a bit of a rough edge of Apache Solr itself – if it sees an empty directory where the indexes should be, it does not re-build them. However, if the directory where the indexes are supposed to be doesn't exist, it will be created and initialized appropriately.