Issue
- We have encountered an issue indexing journal articles while utilizing structures and templates for adding/modifying web content with repeatable fields, and we suspect that the repeatable field data may be causing the problem. Here is the error we see:
WARN [liferay/background_task-2][BulkDocumentRequestExecutorImpl:29]
{class=class org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException,
message=Error from server at http://localhost:8983/solr: ERROR: [doc=com.liferay.journal.model.JournalArticle_PORTLET_32823]
multiple values encountered for non multiValued field ddm__keyword__32583__ProductNumber_en_US_String_sortable: [EMD3, BR24]}
ERROR [liferay/background_task-2][SolrIndexWriter:361] Update failed
INFO [liferay/background_task-2][ReindexSingleIndexerBackgroundTaskExecutor:143]
Finished reindexing company 16615336944270 for class name com.liferay.journal.model.JournalArticle
Environment
- Quarterly Release 2024.Q2
Resolution
Please follow the below steps:
- Shutdown Solr
- Update the schema.xml (to be the updated one on master - https://github.com/liferay/liferay-portal/blob/master/modules/apps/portal-search-solr8/portal-search-solr8-impl/src/main/resources/META-INF/resources/schema.xml)
- Delete the contents of the respective data folder
- Start Solr
- Re-index