diff --git a/ingestion/src/metadata/ingestion/ometa/mixins/es_mixin.py b/ingestion/src/metadata/ingestion/ometa/mixins/es_mixin.py index 62f946c09394..1fac47a6a666 100644 --- a/ingestion/src/metadata/ingestion/ometa/mixins/es_mixin.py +++ b/ingestion/src/metadata/ingestion/ometa/mixins/es_mixin.py @@ -46,7 +46,10 @@ class HitsModel(BaseModel): """Elasticsearch hits model""" index: Annotated[str, Field(description="Index name", alias="_index")] - type: Annotated[str, Field(description="Type of the document", alias="_type")] + type: Annotated[ + Optional[str], + Field(default=None, description="Type of the document", alias="_type"), + ] id: Annotated[str, Field(description="Document ID", alias="_id")] score: Annotated[ Optional[float], Field(description="Score of the document", alias="_score")