Merge pull request #1913 from Alfresco/fix/MNT-23987_restored-contentIndexingIsEnabled-if-statement

[MNT-23987] Restored contentIndexingIsEnabled IF statement
This commit is contained in:
tiagosalvado10
2023-10-19 17:19:25 +01:00
committed by GitHub

View File

@@ -2427,6 +2427,11 @@ public class SolrInformationServer implements InformationServer
contentIndexingHasBeenEnabledOnThisInstance
&& contentIndexingHasBeenRequestedForThisNode;
if (!contentIndexingIsEnabled)
{
markAsContentInSynch(document);
}
final BiConsumer<String, Object> setValue = document::setField;
final BiConsumer<String, Object> addValue = document::addField;
final BiConsumer<String, Object> collectName = (name, value) -> addFieldIfNotSet(document, name);