Remove content fallback logic in get_docs_by_status from Redis

This commit is contained in:
yangdx 2025-07-29 19:13:07 +08:00
parent 40a4cacee0
commit dafdf92715

View file

@ -786,12 +786,6 @@ class RedisDocStatusStorage(DocStatusStorage):
# Make a copy of the data to avoid modifying the original
data = doc_data.copy()
# If content is missing, use content_summary as content
if (
"content" not in data
and "content_summary" in data
):
data["content"] = data["content_summary"]
# If file_path is not in data, use document id as file path
if "file_path" not in data:
data["file_path"] = "no-file-path"