import("system.project"); import("system.logging"); import("DuplicateScanner_lib"); var filterName = "PersonDuplicates"; var targetEntity = "Person_entity"; var recordBlockSize = DuplicateScannerUtils.GetBlockSize(); logging.log(filterName + ": Delete duplicates -> "); DuplicateScannerUtils.DeleteDuplicateClustersByTargetEntity(targetEntity); logging.log(filterName + ": Recalculate duplicates -> "); DuplicateScannerUtils.RebuildDuplicatesCache(filterName, targetEntity, recordBlockSize, null); logging.log(filterName + ": Refresh unrelated duplicates -> "); DuplicateScannerUtils.RefreshUnrelatedDuplicateRelations(targetEntity); logging.log(filterName + ": Done rebuilding ");