Forums de discussion
Liferay 6.2 CE and solr web plugin
Joan Tapia, modifié il y a 10 années.
Liferay 6.2 CE and solr web plugin
New Member Publications: 5 Date d'inscription: 09/03/14 Publications récentes
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
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, modifié il y a 10 années.
RE: Liferay 6.2 CE and solr web plugin
Liferay Legend Publications: 1111 Date d'inscription: 08/02/11 Publications récentes
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
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, modifié il y a 10 années.
RE: Liferay 6.2 CE and solr web plugin
New Member Publications: 5 Date d'inscription: 09/03/14 Publications récentes
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, modifié il y a 10 années.
RE: Liferay 6.2 CE and solr web plugin
Liferay Legend Publications: 1111 Date d'inscription: 08/02/11 Publications récentes
Hi
Thats gr8....
Regards,
Meera Prince
Thats gr8....
Regards,
Meera Prince
Sneha Jajoo, modifié il y a 9 années.
RE: Liferay 6.2 CE and solr web plugin
New Member Publications: 12 Date d'inscription: 09/06/14 Publications récentes
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
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, modifié il y a 9 années.
RE: Liferay 6.2 CE and solr web plugin
New Member Publications: 12 Date d'inscription: 09/06/14 Publications récentes
Hi Joan,
Please tell the path for solr web plugin for Liferay 6.2.
Thanks,
Sneha
Please tell the path for solr web plugin for Liferay 6.2.
Thanks,
Sneha
Subhash Pavuskar, modifié il y a 9 années.
RE: Liferay 6.2 CE and solr web plugin
Regular Member Publications: 234 Date d'inscription: 13/03/12 Publications récentes
azaz desai, modifié il y a 9 années.
RE: Liferay 6.2 CE and solr web plugin
New Member Publications: 3 Date d'inscription: 12/08/14 Publications récentes
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)
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)