mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-06 15:43:04 +00:00
Collate Knowledge Center Indexes needs entity
This commit is contained in:
parent
e786380915
commit
e418f4da2f
@ -122,12 +122,13 @@ public class SearchIndexFactory {
|
||||
(ReportData) entity);
|
||||
case Entity.TEST_CASE_RESOLUTION_STATUS -> new TestCaseResolutionStatusIndex(
|
||||
(TestCaseResolutionStatus) entity);
|
||||
default -> buildExternalIndexes(entityType);
|
||||
default -> buildExternalIndexes(entityType, entity);
|
||||
};
|
||||
}
|
||||
|
||||
protected SearchIndex buildExternalIndexes(String entityType) {
|
||||
protected SearchIndex buildExternalIndexes(String entityType, Object entity) {
|
||||
throw new IllegalArgumentException(
|
||||
String.format("Entity Type [%s] is not valid for Index Factory", entityType));
|
||||
String.format(
|
||||
"Entity Type [%s] is not valid for Index Factory, Entity: %s", entityType, entity));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user