[MNT-23987] Restored contentIndexingIsEnabled IF statement

This commit is contained in:
Tiago Salvado
2023-10-17 22:22:03 +01:00
parent e428a98512
commit e912279d3d

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);