Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions redisvl/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ def for_svs_vamana(cls, min_redis_version: str):
"no such index",
"search_index_not_found",
"index not found",
# Valkey Search words the error as
# "Index with name '<name>' not found in database <n>", where the index
# name sits between "index" and "not found", so "index not found" misses it.
"not found in database",
)


Expand Down
4 changes: 4 additions & 0 deletions tests/unit/test_index_exists.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
f"{INDEX_NAME}: no such index",
f"SEARCH_INDEX_NOT_FOUND Index not found: {INDEX_NAME}",
"Index not found",
# Valkey Search (e.g. Amazon ElastiCache for Valkey) puts the index name
# between "index" and "not found", so the "index not found" fragment above
# does not match it. Before #672 this wording worked via FT._LIST.
f"Index with name '{INDEX_NAME}' not found in database 0",
]

# Failures that must never be read as "the index is absent": reporting False
Expand Down