Legacy Knowledge Base
Published Jun. 30, 2025

Observing Solr Error - 'multiple values encountered for non multiValued field'

Written By

Kenny Back

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

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:

  1. Shutdown Solr
  2. 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)
  3. Delete the contents of the respective data folder
  4. Start Solr
  5. Re-index

 

Did this article resolve your issue ?

Legacy Knowledge Base