Skip to content

Commit 977da85

Browse files
committed
Index prefix cannot be longer than 3 chars
1 parent 3154ac6 commit 977da85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django_mongodb_backend/indexes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def where_node_idx(self, compiler, connection):
109109

110110

111111
class SearchIndex(Index):
112-
suffix = "search"
112+
suffix = "six"
113113

114114
# Maps Django internal type to atlas search index type.
115115
# Reference: https://www.mongodb.com/docs/atlas/atlas-search/define-field-mappings/#data-types
@@ -145,7 +145,7 @@ def get_pymongo_index_model(
145145

146146

147147
class VectorSearchIndex(SearchIndex):
148-
suffix = "vector_search"
148+
suffix = "vsi"
149149
ALLOWED_SIMILARITY_FUNCTIONS = frozenset(("euclidean", "cosine", "dotProduct"))
150150

151151
def __init__(self, *expressions, similarities="cosine", **kwargs):

0 commit comments

Comments
 (0)