cancel
Showing results for 
Search instead for 
Did you mean: 

Configured Alfresco 4.2.c to use Lucene but I can see Solr related information in acceess log file

akshatjain
Champ in-the-making
Champ in-the-making
Hello Everyone,

I have configured my alfresco 4.2.c to use lucene system for the indexing, but in the access log file, I can see the access logs related to the SOLR.
I think if we are using lucene as our indexing system then it the sysmtem should not use SOLR.
Can any one tell me why it is trying to access the SOLR?
Is this is the default behavior od the Alfresco? if not what changes I need to do to stop it?

Thank you in advance.

Regards,
Akshat Jain
6 REPLIES 6

bisana
Champ on-the-rise
Champ on-the-rise
Did u change this lines in alfresco.global.properties

### License location ###
dir.license.external=/opt/alfresco

### Solr indexing ###
index.subsystem.name=solr
dir.keystore=${dir.root}/keystore
solr.port.ssl=8443

akshatjain
Champ in-the-making
Champ in-the-making
I have following written in my configuration file

index.subsystem.name=lucene
#index.recovery.mode=FULL
dir.keystore=${dir.root}/keystore
solr.port.ssl=8443

mitpatoliya
Star Collaborator
Star Collaborator
Yes, as John suggested you need to change that index subsystem name to Lucene.

bopolissimus
Confirmed Champ
Confirmed Champ
I assume you're using the alfresco 4.2.c bundle.  The solr related log messages you see are due to the fact that solr runs as a separate application inside tomcat.  Even if alfresco doesn't use solr for indexing, solr is still running.  To stop it from running:


# assuming you have alfresco in /opt/alfresco-4.2.c
cd /opt/alfresco-4.2.c/tomcat/conf/Catalina/localhost
rm solr.xml

Well, that's for linux.  if you're using Windows, do whatever the equivalent of the above is.

michaelc
Champ on-the-rise
Champ on-the-rise
Here are my notes, hope it helps.
———
index.recovery.mode=FULL
it will only do a full re-index for lucene.
For a full solr re-index, you have to stop solr, and delete the solr index directory. That may be what have happened here, you haven't actually re-indexed solr.
Back to how to remove solr
Stop tomcat
delete tomcat/conf/Catalina/localhost/solr.xml
delete directory tomcat/webapps/solr
restart
———-



I didn't look in that log file on the first go.

This forums article suggests for the problem that you're seeing that you should totally remove the solr area.
See the second to last message with instructions:
http://forums.alfresco.com/forum/installation-upgrades-configuration-integration/configuration/solr-...

Sounds like something you'd want to try after you've backed up your system.

You might also want to comment out the solr parameters in the global config, but it doesn't seem like they should be getting used:
dir.keystore=${dir.root}/keystore
solr.port.ssl=8443

If you are running with lucene only you can remove the solr app. Solr runs as a separate application, and can run simultaneous to lucene. But the repository will not use it for search, it just index in the background.
So when you do
index.recovery.mode=FULL
it will only do a full re-index for lucene.
For a full solr re-index, you have to stop solr, and delete the solr index directory. That may be what have happened here, you haven't actually re-indexed solr.
Back to how to remove solr
Stop tomcat
delete tomcat/conf/Catalina/localhost/solr.xml
delete directory tomcat/webapps/solr
restart
More on Solr http://wiki.alfresco.com/wiki/Alfresco_And_SOLR

blondangel
Champ in-the-making
Champ in-the-making
You wrote 'delete directory tomcat/webapps/solr'  but that folder doesn't exist in windows installation of Alfresco 4.2C.  Is it safe to ignore that step or is there an equivalent step that I am supposed to do?