mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-01 05:03:10 +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)));
|
List.of(new ImmutablePair<>("service.id", docId)));
|
||||||
}
|
}
|
||||||
default -> {
|
default -> {
|
||||||
searchClient.deleteEntityByFields(
|
List<String> indexNames = indexMapping.getChildAliases(clusterAlias);
|
||||||
indexMapping.getChildAliases(clusterAlias),
|
if (!indexNames.isEmpty()) {
|
||||||
List.of(new ImmutablePair<>(entityType + ".id", docId)));
|
searchClient.deleteEntityByFields(
|
||||||
|
indexNames, List.of(new ImmutablePair<>(entityType + ".id", docId)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user