Compare commits

...

1 Commits

Author SHA1 Message Date
Jaffar Keikei
7c40b84c40 fix: invert already_existed logic in ingestion API response
new_docs counts documents that are new (not already existing),
so new_docs > 0 means the document is new — the opposite of
already_existed. Changed to new_docs == 0.

Closes #9997
2026-04-08 13:49:30 -04:00

View File

@@ -172,7 +172,7 @@ def upsert_ingestion_doc(
return IngestionResult(
document_id=document.id,
already_existed=indexing_pipeline_result.new_docs > 0,
already_existed=indexing_pipeline_result.new_docs == 0,
)