@@ -27,12 +27,12 @@ class Meta:
27
27
errors ,
28
28
[
29
29
checks .Warning (
30
- "This MongoDB server does not support atlas search ." ,
30
+ "This MongoDB server does not support SearchIndex ." ,
31
31
hint = (
32
- "The index won't be created. Silence this warning if you "
33
- "don't care about it."
32
+ "The index won't be created. Use an Atlas-enabled version of MongoDB, "
33
+ "or silence this warning if you don't care about it."
34
34
),
35
- obj = Article . _meta . indexes [ 0 ] ,
35
+ obj = Article ,
36
36
id = "django_mongodb_backend.indexes.SearchIndex.W001" ,
37
37
)
38
38
],
@@ -50,12 +50,12 @@ class Meta:
50
50
errors ,
51
51
[
52
52
checks .Warning (
53
- "This MongoDB server does not support atlas search ." ,
53
+ "This MongoDB server does not support VectorSearchIndex ." ,
54
54
hint = (
55
- "The index won't be created. Silence this warning if you "
56
- "don't care about it."
55
+ "The index won't be created. Use an Atlas-enabled version of MongoDB, "
56
+ "or silence this warning if you don't care about it."
57
57
),
58
- obj = Article . _meta . indexes [ 0 ] ,
58
+ obj = Article ,
59
59
id = "django_mongodb_backend.indexes.VectorSearchIndex.W001" ,
60
60
)
61
61
],
@@ -80,7 +80,7 @@ class Meta:
80
80
checks .Error (
81
81
"Atlas vector search requires size on title_embedded." ,
82
82
id = "django_mongodb_backend.indexes.VectorSearchIndex.E001" ,
83
- obj = Article . _meta . indexes [ 0 ] ,
83
+ obj = Article ,
84
84
)
85
85
],
86
86
)
@@ -100,7 +100,7 @@ class Meta:
100
100
"An Atlas vector search index requires the base field of ArrayField "
101
101
"Model.field_name to be FloatField or DecimalField but is CharField." ,
102
102
id = "django_mongodb_backend.indexes.VectorSearchIndex.E002" ,
103
- obj = Article . _meta . indexes [ 0 ] ,
103
+ obj = Article ,
104
104
)
105
105
],
106
106
)
@@ -119,9 +119,9 @@ class Meta:
119
119
errors ,
120
120
[
121
121
checks .Error (
122
- "Unsupported filter of type JSONField." ,
122
+ "VectorSearchIndex does not support ' JSONField' data ." ,
123
123
id = "django_mongodb_backend.indexes.VectorSearchIndex.E003" ,
124
- obj = Article . _meta . indexes [ 0 ] ,
124
+ obj = Article ,
125
125
)
126
126
],
127
127
)
@@ -146,8 +146,8 @@ class Meta:
146
146
"An Atlas vector search index requires the same number of similarities "
147
147
"and vector fields, but 1 similarity function were expected and 2 "
148
148
"were provided." ,
149
- id = "django_mongodb_backend.indexes.VectorSearchIndex.E005 " ,
150
- obj = Article . _meta . indexes [ 0 ] ,
149
+ id = "django_mongodb_backend.indexes.VectorSearchIndex.E004 " ,
150
+ obj = Article ,
151
151
),
152
152
],
153
153
)
@@ -173,8 +173,8 @@ class Meta:
173
173
"An Atlas vector search index requires the same number of similarities "
174
174
"and vector fields, but 2 similarities functions were expected and 1 "
175
175
"was provided." ,
176
- id = "django_mongodb_backend.indexes.VectorSearchIndex.E005 " ,
177
- obj = Article . _meta . indexes [ 0 ] ,
176
+ id = "django_mongodb_backend.indexes.VectorSearchIndex.E004 " ,
177
+ obj = Article ,
178
178
),
179
179
],
180
180
)
0 commit comments