Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Joan Tapia
Liferay 6.2 CE and solr web plugin
March 9, 2014 12:02 PM
Answer

Joan Tapia

Rank: New Member

Posts: 5

Join Date: March 9, 2014

Recent Posts

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
Meera Prince
RE: Liferay 6.2 CE and solr web plugin
March 9, 2014 8:07 PM
Answer

Meera Prince

Rank: Liferay Legend

Posts: 1110

Join Date: February 8, 2011

Recent Posts

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
RE: Liferay 6.2 CE and solr web plugin
March 10, 2014 3:55 PM
Answer

Joan Tapia

Rank: New Member

Posts: 5

Join Date: March 9, 2014

Recent Posts

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!
Meera Prince
RE: Liferay 6.2 CE and solr web plugin
March 10, 2014 7:31 PM
Answer

Meera Prince

Rank: Liferay Legend

Posts: 1110

Join Date: February 8, 2011

Recent Posts

Hi
Thats gr8....


Regards,
Meera Prince
Sneha Jajoo
RE: Liferay 6.2 CE and solr web plugin
June 10, 2014 4:10 AM
Answer

Sneha Jajoo

Rank: New Member

Posts: 12

Join Date: June 9, 2014

Recent Posts

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
RE: Liferay 6.2 CE and solr web plugin
June 10, 2014 4:36 AM
Answer

Sneha Jajoo

Rank: New Member

Posts: 12

Join Date: June 9, 2014

Recent Posts

Hi Joan,

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

Thanks,
Sneha
Subhash Pavuskar
RE: Liferay 6.2 CE and solr web plugin
June 10, 2014 5:51 AM
Answer

Subhash Pavuskar

Rank: Regular Member

Posts: 234

Join Date: March 12, 2012

Recent Posts

https://www.liferay.com/marketplace/-/mp/application/15193648

solr-web-6.0.6.1.war --> Download
azaz desai
RE: Liferay 6.2 CE and solr web plugin
September 3, 2014 7:07 AM
Answer

azaz desai

Rank: New Member

Posts: 3

Join Date: August 12, 2014

Recent Posts

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
com.liferay.portal.kernel.search.SearchException: Bad Request__Bad Request__request: http://localhost:8983/solr/update?wt=javabin&version=2
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)