Foren

Liferay 6.2 CE and solr web plugin

Joan Tapia, geändert vor 10 Jahren.

Liferay 6.2 CE and solr web plugin

New Member Beiträge: 5 Beitrittsdatum: 09.03.14 Neueste Beiträge
Hello,

I want to add to my Liferay 6.2. CE the solr web plugin but until now I can not achieve it. The plugin in the marketplace is for Liferay 6.1, not compatible with the 6.2.

Which should be the steps to do it?
Where I should find the source code of the solr web plugin?

I want to integrate Liferay with Solr 4.5.1 version

Thanks in advance,

Joan
thumbnail
meera prince, geändert vor 10 Jahren.

RE: Liferay 6.2 CE and solr web plugin

Liferay Legend Beiträge: 1111 Beitrittsdatum: 08.02.11 Neueste Beiträge
Hi

Try to get the web plugin from following location and test it. here you can find solr web plugins.

https://github.com/liferay/liferay-plugins/tree/6.2.x/webs

Regards,
Meera Prince
Joan Tapia, geändert vor 10 Jahren.

RE: Liferay 6.2 CE and solr web plugin

New Member Beiträge: 5 Beitrittsdatum: 09.03.14 Neueste Beiträge
Thank you very much Meera Prince, I've gotten the plugin through the location you gave me and now I have my Liferay 6.2 working with solr 4.5.1 perfectly!
thumbnail
meera prince, geändert vor 10 Jahren.

RE: Liferay 6.2 CE and solr web plugin

Liferay Legend Beiträge: 1111 Beitrittsdatum: 08.02.11 Neueste Beiträge
Hi
Thats gr8....


Regards,
Meera Prince
Sneha Jajoo, geändert vor 9 Jahren.

RE: Liferay 6.2 CE and solr web plugin

New Member Beiträge: 12 Beitrittsdatum: 09.06.14 Neueste Beiträge
Hi ,

hi,

Can you please guide how to connect solr4.4 from liferay 6.2 spring portlet

I have written following code for it
SolrServer server = new LBHttpSolrServer("http://localhost:8983/solr/");
SolrQuery query = new SolrQuery();
query.setQuery("coins");
QueryResponse res = server.query(query);

but for above QueryResponse it shows following exception
05:40:26,920 ERROR [http-bio-8080-exec-16][render_portlet_jsp:132] null
java.lang.NoSuchMethodError: org.apache.http.impl.conn.SchemeRegistryFactory.createSystemDefault()Lorg/apache/http/conn/scheme/SchemeRegistry;
at org.apache.http.impl.client.SystemDefaultHttpClient.createClientConnectionManager(SystemDefaultHttpClient.java:118)
at org.apache.http.impl.client.AbstractHttpClient.getConnectionManager(AbstractHttpClient.java:445)
at org.apache.http.impl.client.AbstractHttpClient.createHttpContext(AbstractHttpClient.java:274)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:797)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:365)
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180)
at org.apache.solr.client.solrj.impl.LBHttpSolrServer.request(LBHttpSolrServer.java:446)
at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:90)
at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:301)
at com.tru.portal.registry.search.controller.SearchController.defaultSearch(SearchController.java:65)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:103)
at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:55)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

Thanks,
Sneha
Sneha Jajoo, geändert vor 9 Jahren.

RE: Liferay 6.2 CE and solr web plugin

New Member Beiträge: 12 Beitrittsdatum: 09.06.14 Neueste Beiträge
Hi Joan,

Please tell the path for solr web plugin for Liferay 6.2.

Thanks,
Sneha
thumbnail
Subhash Pavuskar, geändert vor 9 Jahren.

RE: Liferay 6.2 CE and solr web plugin

Regular Member Beiträge: 234 Beitrittsdatum: 13.03.12 Neueste Beiträge
https://www.liferay.com/marketplace/-/mp/application/15193648

solr-web-6.0.6.1.war --> Download
azaz desai, geändert vor 9 Jahren.

RE: Liferay 6.2 CE and solr web plugin

New Member Beiträge: 3 Beitrittsdatum: 12.08.14 Neueste Beiträge
Hi Joan,

I got the plugin but when i put into the webapps folder, i think it didn't deploy. i got the error like this:

[liferay/search_writer/SYSTEM_ENGINE-1][ProxyMessageListener:81] com.liferay.portal.kernel.search.SearchException: Bad Request__Bad Request__request: http://localhost:8983/solr/update?wt=javabin&version=2 [Sanitized]
com.liferay.portal.kernel.search.SearchException: Bad Request__Bad Request__request: http://localhost:8983/solr/update?wt=javabin&version=2 [Sanitized]
at com.liferay.portal.search.solr.SolrIndexWriterImpl.addDocuments(SolrIndexWriterImpl.java:82)
at com.liferay.portal.search.solr.SolrIndexWriterImpl.updateDocuments(SolrIndexWriterImpl.java:177)
at sun.reflect.GeneratedMethodAccessor579.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:85)
at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:51)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:69)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
at java.lang.Thread.run(Thread.java:745)