mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 02:29:03 +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); |           (ReportData) entity); | ||||||
|       case Entity.TEST_CASE_RESOLUTION_STATUS -> new TestCaseResolutionStatusIndex( |       case Entity.TEST_CASE_RESOLUTION_STATUS -> new TestCaseResolutionStatusIndex( | ||||||
|           (TestCaseResolutionStatus) entity); |           (TestCaseResolutionStatus) entity); | ||||||
|       default -> buildExternalIndexes(entityType); |       default -> buildExternalIndexes(entityType, entity); | ||||||
|     }; |     }; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   protected SearchIndex buildExternalIndexes(String entityType) { |   protected SearchIndex buildExternalIndexes(String entityType, Object entity) { | ||||||
|     throw new IllegalArgumentException( |     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
	 mohitdeuex
						mohitdeuex