留言板
Liferay 6.2 CE and solr web plugin
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,修改在10 年前。
RE: Liferay 6.2 CE and solr web plugin
Liferay Legend 帖子: 1111 加入日期: 11-2-8 最近的帖子
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
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,修改在10 年前。
RE: Liferay 6.2 CE and solr web plugin
Liferay Legend 帖子: 1111 加入日期: 11-2-8 最近的帖子
Hi
Thats gr8....
Regards,
Meera Prince
Thats gr8....
Regards,
Meera Prince
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
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,修改在9 年前。
RE: Liferay 6.2 CE and solr web plugin
Regular Member 帖子: 234 加入日期: 12-3-13 最近的帖子
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)