Remove content fallback logic in get_docs_by_status from Redis
This commit is contained in:
parent
40a4cacee0
commit
dafdf92715
1 changed files with 0 additions and 6 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue