redis-vl-python icon indicating copy to clipboard operation
redis-vl-python copied to clipboard

SearchIndex.from_existing assumes only 1 prefix

Open justin-cechmanek opened this issue 9 months ago • 0 comments

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 avatar Jan 10 '25 23:01 justin-cechmanek