@@ -27,12 +27,12 @@ class Meta:
2727 errors ,
2828 [
2929 checks .Warning (
30- "This MongoDB server does not support atlas search ." ,
30+ "This MongoDB server does not support SearchIndex ." ,
3131 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."
3434 ),
35- obj = Article . _meta . indexes [ 0 ] ,
35+ obj = Article ,
3636 id = "django_mongodb_backend.indexes.SearchIndex.W001" ,
3737 )
3838 ],
@@ -50,12 +50,12 @@ class Meta:
5050 errors ,
5151 [
5252 checks .Warning (
53- "This MongoDB server does not support atlas search ." ,
53+ "This MongoDB server does not support VectorSearchIndex ." ,
5454 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."
5757 ),
58- obj = Article . _meta . indexes [ 0 ] ,
58+ obj = Article ,
5959 id = "django_mongodb_backend.indexes.VectorSearchIndex.W001" ,
6060 )
6161 ],
@@ -80,7 +80,7 @@ class Meta:
8080 checks .Error (
8181 "Atlas vector search requires size on title_embedded." ,
8282 id = "django_mongodb_backend.indexes.VectorSearchIndex.E001" ,
83- obj = Article . _meta . indexes [ 0 ] ,
83+ obj = Article ,
8484 )
8585 ],
8686 )
@@ -100,7 +100,7 @@ class Meta:
100100 "An Atlas vector search index requires the base field of ArrayField "
101101 "Model.field_name to be FloatField or DecimalField but is CharField." ,
102102 id = "django_mongodb_backend.indexes.VectorSearchIndex.E002" ,
103- obj = Article . _meta . indexes [ 0 ] ,
103+ obj = Article ,
104104 )
105105 ],
106106 )
@@ -119,9 +119,9 @@ class Meta:
119119 errors ,
120120 [
121121 checks .Error (
122- "Unsupported filter of type JSONField." ,
122+ "VectorSearchIndex does not support ' JSONField' data ." ,
123123 id = "django_mongodb_backend.indexes.VectorSearchIndex.E003" ,
124- obj = Article . _meta . indexes [ 0 ] ,
124+ obj = Article ,
125125 )
126126 ],
127127 )
@@ -146,8 +146,8 @@ class Meta:
146146 "An Atlas vector search index requires the same number of similarities "
147147 "and vector fields, but 1 similarity function were expected and 2 "
148148 "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 ,
151151 ),
152152 ],
153153 )
@@ -173,8 +173,8 @@ class Meta:
173173 "An Atlas vector search index requires the same number of similarities "
174174 "and vector fields, but 2 similarities functions were expected and 1 "
175175 "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 ,
178178 ),
179179 ],
180180 )
0 commit comments