-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.0 CE GA1, 7.0.0 DXP SP1
-
Fix Version/s: 7.0.1 CE GA2
-
Component/s: Search Infrastructure, Search Infrastructure > Solr Connector
-
Labels:
-
Story Points:1.25
-
Fix Priority:4
-
Git Pull Request:
1- Setup Solr 5 with master/7.0: See: https://support-kb.liferay.com/web/knowledge/knowledge-base/-/knowledge_base/article/52685
2- Execute reindex from the Server Administration
Result: reindex generates errors like this:
14:01:00,429 ERROR [liferay/search_writer/SYSTEM_ENGINE-1][SolrUpdateDocumentCommandImpl:111] org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/liferay: ERROR: [doc=com_liferay_configuration_admin_web_portlet_SystemSettingsPortlet_PORTLET_com.liferay.nested.portlets.web.configuration.NestedPortletsPortletInstanceConfiguration] multiple values encountered for non multiValued field configurationModelAttributeName: [Layout template id, Layout templates unsupported] org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/liferay: ERROR: [doc=com_liferay_configuration_admin_web_portlet_SystemSettingsPortlet_PORTLET_com.liferay.nested.portlets.web.configuration.NestedPortletsPortletInstanceConfiguration] multiple values encountered for non multiValued field configurationModelAttributeName: [Layout template id, Layout templates unsupported] at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:560) at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:235) at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:227) at org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:526) at com.liferay.portal.search.solr.internal.connection.ReadWriteSolrClient.request(ReadWriteSolrClient.java:59) at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:135) at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:107) at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:72) at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:86) at com.liferay.portal.search.solr.internal.SolrUpdateDocumentCommandImpl.doUpdateDocuments(SolrUpdateDocumentCommandImpl.java:100) at com.liferay.portal.search.solr.internal.SolrUpdateDocumentCommandImpl.updateDocument(SolrUpdateDocumentCommandImpl.java:52) at com.liferay.portal.search.solr.internal.SolrIndexWriter.updateDocument(SolrIndexWriter.java:198) at sun.reflect.GeneratedMethodAccessor249.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:86) at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:54) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74) at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667) at java.lang.Thread.run(Thread.java:745)
Note
As I mentioned in the KB-article, adding attribute multiValued="true" to field configurationModelAttributeName solves the issue:
schema.xml
<field indexed="true" name="configurationModelAttributeName" multiValued="true" stored="true" type="string" />
- Discovered while testing
-
LPS-64269 Custom date range search in Search Portlet fails with NullPointerException using Solr. Facet count is always zero for "Custom Range" facet term (Elasticsearch, Solr)
- Closed