cancel
Showing results for 
Search instead for 
Did you mean: 

Moving from solr to lucene search

rutaveejshah
Champ in-the-making
Champ in-the-making
Hello Evreyone ..
I  want to use lucene serch instead of solr.
I have changed all the properties file for that.
Still i got the error like org.alfresco.httpclient.HttpClientFactory bean creation exception in core-service-context.xml file.

Please any body have any idea reply as early as possible.
3 REPLIES 3

parzgnat
Star Contributor
Star Contributor
Can you post your entire error message with the stack trace?  I assume that when you say that you changed "all the properties file for that" that you included
index.subsystem.name=lucene
?

Hi!

I have change the alfresco golabal properties file that lies under this  C:\Alfresco\tomcat\shared\classes\alfresco-golbal.properties file and C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes folder struture.
The followings changes are made by me:-
#index.subsystem.name=solr
#Edited By Rutaveej#
#dir.keystore=${dir.root}/keystore
#dir.keystore=C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/keystore
#solr.port.ssl=8443
#Added BY RUTAVEEJ
index.subsystem.name=lucene
dir.indexes=C:/Alfresco/alf_data/lucene-indexes
dir.indexes.backup=C:/Alfresco/alf_data/backup-lucene-indexes
index.recovery.mode=FULL

But when i restart the server still it serach for lucene only and i got the error like keystores are invalid

org.alfresco.error.AlfrescoRuntimeException: 08170039 Keystores are invalid
   at org.alfresco.encryption.EncryptionChecker$1.execute(EncryptionChecker.java:71)
   at org.alfresco.encryption.EncryptionChecker$1.execute(EncryptionChecker.java:61)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:259)
   at org.alfresco.encryption.EncryptionChecker.onBootstrap(EncryptionChecker.java:60)
   at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
   at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
   at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
   at org.apache.catalina.core.StandardService.start(StandardService.java:519)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)


Please if you have any idea than reply.

maraiah_t
Champ in-the-making
Champ in-the-making
check the property "index.subsystem.name". its value should be lucene if you want to go with lucene. This property is availale in repository.properties file