-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Python: Fix Redis FT.CREATE PREFIX sending one prefix per character of collec… #13895
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
Changes from all commits
f709cf9
295096f
736fdae
a277506
b5120f3
0f2eb6f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -278,7 +278,7 @@ async def ensure_collection_exists(self, **kwargs) -> None: | |
| raise VectorStoreOperationException("Invalid index type supplied.") | ||
| fields = _definition_to_redis_fields(self.definition, self.collection_type) | ||
| index_definition = IndexDefinition( | ||
| prefix=f"{self.collection_name}:", index_type=INDEX_TYPE_MAP[self.collection_type] | ||
| prefix=[f"{self.collection_name}:"], index_type=INDEX_TYPE_MAP[self.collection_type] | ||
| ) | ||
| await self.redis_database.ft(self.collection_name).create_index(fields, definition=index_definition, **kwargs) | ||
|
Comment on lines
280
to
283
|
||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.