Forums de discussion

SOLR integration doesn't work with Liferay 6.1 GA Release

Gaurish Sharma, modifié il y a 11 années.

SOLR integration doesn't work with Liferay 6.1 GA Release

New Member Publications: 22 Date d'inscription: 23/01/09 Publications récentes
Hi,

I have been trying to get Solr integration work with the latest Liferay release. But I am facing some issues.

Steps done so far -

1) Installed apache-solr-1.4.1.war
2) Downloaded liferay-solr plugin 'solr-web-6.0.6.1.war' and deployed on Liferay

When I try to deploy the web plugin I get the error mentioned below with the stack trace in red below.

The error clearly states that Liferay isn't able to find any implementation of methods stated in SearchEngine interface. I checked the SearchEngine interface methods and could not find them in the impl class of SearchEngine (SolrSearchEngineImpl) that exists in the solr-web-6.0.6.1.war plugin war file.
There is no method getIndexSearcher() in the impl class while the interface expects the impl class to have it.

Do we have the updated Solr web plugin for Liferay that has updated Search Engine implementation class?

Thanks,
Gaurish

ERROR [ContextLoader:227] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'messageListener.solr_reader' defined in ServletContext resource [/WEB-IN
F/classes/META-INF/messaging-spring.xml]: Invocation of init method failed; nest
ed exception is java.lang.AbstractMethodError: com.liferay.portal.search.solr.So
lrSearchEngineImpl.getIndexSearcher()Lcom/liferay/portal/kernel/search/IndexSear
cher;
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:192)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finish
BeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:425)
at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:282)
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:204)
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:47)
at com.liferay.portal.spring.context.PortletContextLoaderListener.contex
tInitialized(PortletContextLoaderListener.java:99)
at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextList
ener.doPortalInit(PortalClassLoaderServletContextListener.java:91)
at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePor
talLifecycle.java:42)
at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLif
ecycleUtil.java:61)
at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLif
ecycleUtil.java:53)
at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLife
cycle(BasePortalLifecycle.java:52)
at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextList
ener.contextInitialized(PortalClassLoaderServletContextListener.java:50)
thumbnail
Hitoshi Ozawa, modifié il y a 11 années.

RE: SOLR integration doesn't work with Liferay 6.1 GA Release

Liferay Legend Publications: 7942 Date d'inscription: 24/03/10 Publications récentes
1) Installed apache-solr-1.4.1.war
2) Downloaded liferay-solr plugin 'solr-web-6.0.6.1.war' and deployed on Liferay


You need to use liferay 6.0.6 if you're going to use solr-web-6.0.6
Gaurish Sharma, modifié il y a 11 années.

RE: SOLR integration doesn't work with Liferay 6.1 GA Release

New Member Publications: 22 Date d'inscription: 23/01/09 Publications récentes
Thanks for your reply.

I have tried with 'solr-web-6.1.0.1-ce-rc1.war' that I found on one of the sites but faced the same issue. I haven't found any official plugin for 6.1 from Liferay though.
thumbnail
Hitoshi Ozawa, modifié il y a 11 années.

RE: SOLR integration doesn't work with Liferay 6.1 GA Release

Liferay Legend Publications: 7942 Date d'inscription: 24/03/10 Publications récentes
I haven't found any official plugin for 6.1 from Liferay though.


It's not "officially" supported yet. I'm not sure if liferay.com is going to.

I 've created my own version for our ThermiStruts Enterprise Portal product series, which is based on liferay, but can't give it away because of company policy.

Time changes and conditions changes. Just have to do the best with the current conditions on hand. :-)
Gaurish Sharma, modifié il y a 11 années.

RE: SOLR integration doesn't work with Liferay 6.1 GA Release

New Member Publications: 22 Date d'inscription: 23/01/09 Publications récentes
Thanks Hitoshi.

For the time being I have gone back to Liferay 6.06 where the integration is working fine.
thumbnail
Hitoshi Ozawa, modifié il y a 11 années.

RE: SOLR integration doesn't work with Liferay 6.1 GA Release

Liferay Legend Publications: 7942 Date d'inscription: 24/03/10 Publications récentes
Great! It's possible to set Solr on the same application server as liferay or on an external server.
Rajarshi Chakrabarty, modifié il y a 11 années.

RE: SOLR integration doesn't work with Liferay 6.1 GA Release

New Member Publications: 14 Date d'inscription: 12/06/12 Publications récentes
Hi,
Is there any solr-web plugin exist which work smoothly with solr 3.6.0 and liferay 6.1 GA ???
thumbnail
Hitoshi Ozawa, modifié il y a 11 années.

RE: SOLR integration doesn't work with Liferay 6.1 GA Release

Liferay Legend Publications: 7942 Date d'inscription: 24/03/10 Publications récentes
Is there any solr-web plugin exist which work smoothly with solr 3.6.0 and liferay 6.1 GA ???


You'll have to modify the plugin yourself for now. I've been modifying my plugin to work with Japanese.
Rajarshi Chakrabarty, modifié il y a 11 années.

RE: SOLR integration doesn't work with Liferay 6.1 GA Release

New Member Publications: 14 Date d'inscription: 12/06/12 Publications récentes
Thanks for your reply. Actually I wanted to do faceted search. I have successfully integrated liferay 6.0.6 and solr 3.6.0 with plugin solr-web 6.0.6. For faceted search, i downloaded and deployed faceted-search.war but it is not working as it should be. I read somewhere that solr-web 6.0.6 plugin hides extra features of solr.

Now i am trying to integrate liferay 6.1 ga with solr 3.6.0 using solr-web-6.1.0 ga plugin (as liferay 6.1 has faceted search feature with its OOB search portlet). But integration is not working.

So what should i do if i want to implement faceted search???