[SEARCH-2143]

restored node deletion before update
This commit is contained in:
eliaporciani
2020-04-09 09:39:05 +02:00
parent cc52c0a780
commit 9d05e6c318

View File

@@ -1666,7 +1666,7 @@ public class SolrInformationServer implements InformationServer
AddUpdateCommand addDocCmd = new AddUpdateCommand(request); AddUpdateCommand addDocCmd = new AddUpdateCommand(request);
addDocCmd.overwrite = overwrite; addDocCmd.overwrite = overwrite;
deleteErrorNode(processor, request, node); deleteNode(processor, request, node);
// Check index control // Check index control
Map<QName, PropertyValue> properties = nodeMetaData.getProperties(); Map<QName, PropertyValue> properties = nodeMetaData.getProperties();
@@ -2012,8 +2012,7 @@ public class SolrInformationServer implements InformationServer
} }
// Make sure any unindexed or error doc is removed. // Make sure any unindexed or error doc is removed.
deleteErrorNode(processor, request, node); deleteNode(processor, request, node);
addDocCmd.solrDoc = addDocCmd.solrDoc =
populateWithMetadata(basicDocument(nodeMetaData, DOC_TYPE_NODE, PartialSolrInputDocument::new), populateWithMetadata(basicDocument(nodeMetaData, DOC_TYPE_NODE, PartialSolrInputDocument::new),
nodeMetaData); nodeMetaData);