mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-31 04:14:34 +00:00
* Fix User Deletion Error in Search - Adding Conditional Check * Fix User Deletion Error in Search - Adding Conditional Check
This commit is contained in:
parent
656da03b14
commit
9aa85b37be
@ -586,9 +586,11 @@ public class SearchRepository {
|
||||
List.of(new ImmutablePair<>("service.id", docId)));
|
||||
}
|
||||
default -> {
|
||||
searchClient.deleteEntityByFields(
|
||||
indexMapping.getChildAliases(clusterAlias),
|
||||
List.of(new ImmutablePair<>(entityType + ".id", docId)));
|
||||
List<String> indexNames = indexMapping.getChildAliases(clusterAlias);
|
||||
if (!indexNames.isEmpty()) {
|
||||
searchClient.deleteEntityByFields(
|
||||
indexNames, List.of(new ImmutablePair<>(entityType + ".id", docId)));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user