Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SearchIndex.from_existing assumes only 1 prefix #258

Open
justin-cechmanek opened this issue Jan 10, 2025 · 0 comments
Open

SearchIndex.from_existing assumes only 1 prefix #258

justin-cechmanek opened this issue Jan 10, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@justin-cechmanek
Copy link
Collaborator

When an index is defined with multiple prefixes such as:

IndexDefinition(prefix=["AA","BB","CC"], index_type=IndexType.HASH)

and we call .from_existing(..) the returned index is:
"index": {
"name": "index:test",
"prefix": "AA",
"key_separator": ":",
"storage_type": "hash"
},

Looks like this line is always grabbing just the first entry from a list of prefixes
https://github.com/redis/redis-vl-python/blob/main/redisvl/redis/connection.py#L87

@justin-cechmanek justin-cechmanek added the bug Something isn't working label Jan 10, 2025
@justin-cechmanek justin-cechmanek self-assigned this Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant