From 588ae4d6867c81fa2b3ef8d9eec5de78d705c9b1 Mon Sep 17 00:00:00 2001 From: Eva Vasques Date: Mon, 21 Mar 2022 11:37:57 +0000 Subject: [PATCH] Add comment to change in mltextProperty --- .../src/main/java/org/alfresco/solr/SolrInformationServer.java | 3 +++ 1 file changed, 3 insertions(+) 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));