掲示板

which version solr is compatible with solr-web-6.0.12.1 (Liferay 6 EE SP2)

12年前 に Advait Trivedi によって更新されました。

which version solr is compatible with solr-web-6.0.12.1 (Liferay 6 EE SP2)

Junior Member 投稿: 56 参加年月日: 10/03/30 最新の投稿
Hi,

I am trying to setup solr-web-6.0.12.1.war plugin with my Liferay 6 EE SP2 on windows.
I tried with solr 1.4.1.
Solr server is starting successfully and Solr's admin UI is visible all OK. But when I start Liferay I am getting following -


Bad Request

request: http://localhost:8090/solr/update?wt=javabin&version=1
org.apache.solr.common.SolrException: Bad Request

Bad Request

request: http://localhost:8090/solr/update?wt=javabin&version=1
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:435)
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:244)
at com.liferay.portal.search.solr.server.BasicAuthSolrServer.request(BasicAuthSolrServer.java:98)
at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105)
at org.apache.solr.client.solrj.SolrServer.deleteById(SolrServer.java:102)
at com.liferay.portal.search.solr.SolrIndexWriterImpl.deleteDocument(SolrIndexWriterImpl.java:88)
at com.liferay.portal.search.solr.SolrIndexWriterImpl.updateDocument(SolrIndexWriterImpl.java:162)
at sun.reflect.GeneratedMethodAccessor122.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.liferay.portal.kernel.util.MethodHandler.invoke(MethodHandler.java:84)
at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:57)
at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:50)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:77)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:669)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:580)
at java.lang.Thread.run(Thread.java:619)
04:32:19,593 ERROR [ProxyMessageListener:79] com.liferay.portal.kernel.search.SearchException: Bad Request

Bad Request

request: http://localhost:8090/solr/update?wt=javabin&version=1
com.liferay.portal.kernel.search.SearchException: Bad Request

Bad Request

request: http://localhost:8090/solr/update?wt=javabin&version=1
at com.liferay.portal.search.solr.SolrIndexWriterImpl.deleteDocument(SolrIndexWriterImpl.java:97)
at com.liferay.portal.search.solr.SolrIndexWriterImpl.updateDocument(SolrIndexWriterImpl.java:162)
at sun.reflect.GeneratedMethodAccessor122.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.liferay.portal.kernel.util.MethodHandler.invoke(MethodHandler.java:84)
at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:57)
at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:50)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:77)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:669)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:580)
at java.lang.Thread.run(Thread.java:619)
04:33:00,281 ERROR [SolrIndexWriterImpl:95] org.apache.solr.common.SolrException: Bad Request

I tried invoking this URL http://localhost:8090/solr/update?wt=javabin&version=1 directly from browser and it says "this method does not support HTTP GET". So it looks to me that my solr-web plugin and solr server are not compatible version. Or could there be some other reason ?
12年前 に Advait Trivedi によって更新されました。

RE: which version solr is compatible with solr-web-6.0.12.1 (Liferay 6 EE S

Junior Member 投稿: 56 参加年月日: 10/03/30 最新の投稿
I got the root cause, my setup is multicore and for that solr-web\WEB-INF\classes\META-INF\solr-spring.xml should point to master core -
<constructor-arg type="java.lang.String" value="http://localhost:8080/solr/lr_master" />

default value is
<constructor-arg type="java.lang.String" value="http://localhost:8080/solr" />
11年前 に mukund S によって更新されました。

RE: which version solr is compatible with solr-web-6.0.12.1 (Liferay 6 EE S

Junior Member 投稿: 26 参加年月日: 12/10/25 最新の投稿
hi
What is lr_master ?
Could you explain it