diff --git a/search-services/alfresco-search/src/main/java/org/alfresco/solr/SolrInformationServer.java b/search-services/alfresco-search/src/main/java/org/alfresco/solr/SolrInformationServer.java index 5dc1c164c..0f9711e68 100644 --- a/search-services/alfresco-search/src/main/java/org/alfresco/solr/SolrInformationServer.java +++ b/search-services/alfresco-search/src/main/java/org/alfresco/solr/SolrInformationServer.java @@ -2330,6 +2330,9 @@ public class SolrInformationServer implements InformationServer List localisedValues = getLocalisedValues(value); + // On ML multivalued fields, we cannot add multiple arrays to the set, we need to merge the values into the + // pre-set array created by our implementation of addField on PartialSolrInputDocument. This does not apply to + // SolrInputDocument that uses the default implementation of addField. if (merge) { localisedValues.forEach(val -> valueHolder.accept(storedFieldName, val));