mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-10-01 14:41:19 +00:00
[SEARCH-2143]
restored node deletion before update
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user