Skip to content

Commit f792240

Browse files
authored
fix: on getting _id in indexing (#266)
1 parent 7c809ca commit f792240

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def from_result(self, result: FetcherResult) -> FetcherResult:
320320
)
321321

322322
id_field_name = self.config.index.id_field_name
323-
_id = data.get(id_field_name)
323+
_id = (processed_result.document or {}).get(id_field_name)
324324
if processed_result.status == FetcherStatus.REMOVED:
325325
return FetcherResult(
326326
status=FetcherStatus.REMOVED,

0 commit comments

Comments
 (0)