cancel
Showing results for 
Search instead for 
Did you mean: 

After complete Restore no Search results

fohnbit
Champ in-the-making
Champ in-the-making
Hello!

I upgrade my installation from community 5.0a to 5.0d

All is working, but not the search function. He show me not one reult.

I guess the solr is not working correct.
In the 5.0d version I have unter alf_data:
drwxr-xr-x  4 root     root 4096 Apr 29 17:33 contentstore
drwxr-xr-x  4 root     root 4096 Apr 29 17:34 contentstore.deleted
drwxr-xr-x  2 root     root 4096 Apr 20 13:02 keystore
drwx——  3 root     root 4096 Apr 20 13:29 oouser
drwx—— 15 postgres root 4096 Apr 29 17:26 postgresql
drwxr-xr-x  5 root     root 4096 Apr 20 13:05 solr4
drwxr-xr-x  4 root     root 4096 Apr 21 04:00 solr4Backup


In the 5.0a version I have unter alf_data:
drwxr-xr-x  4 root     root 4096 Jan  6 08:32 contentstore
drwxr-xr-x  4 root     root 4096 Feb  3 04:00 contentstore.deleted
drwxr-xr-x  2 root     root 4096 Okt  1  2014 keystore
drwx——  3 root     root 4096 Okt  2  2014 oouser
drwx—— 14 postgres root 4096 Apr 19 11:01 postgresql
drwxr-xr-x  9 root     root 4096 Okt  1  2014 solr
drwxr-xr-x  4 root     root 4096 Okt  2  2014 solrBackup

May I choose at the new installation the wrong solr?

Can I generate the index(?) for solr4 new in Alfresco?

Thank you!


5 REPLIES 5

douglascrp
World-Class Innovator
World-Class Innovator
Check if your index option is correct into alfresco-global.properties file.

In order to have Alfresco using solr4, you have to have the following property defined:
index.subsystem.name=solr4

http://docs.alfresco.com/5.0/tasks/solr4-alfresco-config.html

fohnbit
Champ in-the-making
Champ in-the-making
Yes, I have this .. .but the lines are different. In my:
### Solr indexing ###
index.subsystem.name=solr4
dir.keystore=${dir.root}/keystore
solr.port.ssl=8443

and not:
index.subsystem.name=solr4
solr.host=localhost
solr.port=8080
solr.port.ssl=8443

Is this Ok or should I add this lines?

Thanks

fohnbit
Champ in-the-making
Champ in-the-making
I checked now the alfresco.log:
Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in classpath or '/opt/alfresco-5.0.d/solr/collection1/c$
        at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:362)
        at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:308)
        at org.apache.solr.core.Config.<init>(Config.java:116)
        at org.apache.solr.core.Config.<init>(Config.java:86)
        at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:161)
        at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:144)
        … 11 more


He is searching in "/opt/alfresco-5.0.d/solr/…" … the directory name is /opt/alfresco-5.0.d/solr4/…"

Should I rename the directory or where are the path definition?

douglascrp
World-Class Innovator
World-Class Innovator
You could try to rename it, but I think that's not the best thing to do.
Check the documentation I sent to on my first answer and review your environment configuration.

How did you intall your alfresco server?
Using the installer?

Verify if you have the file alfresco\tomcat\conf\catalina\localhost\solr4.xml and, if you do have it, check the path configurations inside of it:


<Environment name="solr/home"        type="java.lang.String" value="@@ALFRESCO_SOLR4_DIR@@" override="true"/>
<Environment name="solr/model/dir"   type="java.lang.String" value="@@ALFRESCO_SOLR4_MODEL_DIR@@" override="true"/>
<Environment name="solr/content/dir" type="java.lang.String" value="@@ALFRESCO_SOLR4_CONTENT_DIR@@" override="true"/>


fohnbit
Champ in-the-making
Champ in-the-making
push … no one can help?

Thank you!