File tree 3 files changed +29
-0
lines changed
3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 38
38
- :doc: `ref/models/fields `
39
39
- :doc: `ref/models/querysets `
40
40
- :doc: `ref/models/models `
41
+ - :doc: `ref/models/indexes `
41
42
42
43
**Topic guides: **
43
44
Original file line number Diff line number Diff line change @@ -10,3 +10,4 @@ Model API reference.
10
10
fields
11
11
querysets
12
12
models
13
+ indexes
Original file line number Diff line number Diff line change
1
+ =====================
2
+ Model index reference
3
+ =====================
4
+
5
+ .. module :: django_mongodb_backend.indexes
6
+ :synopsis: Database indexes for MongoDB.
7
+
8
+ Some MongoDB-specific indexes are available in
9
+ ``django_mongodb_backend.indexes ``.
10
+
11
+ ``SearchIndex ``
12
+ ===============
13
+
14
+ .. class :: SearchIndex(*expressions, **kwargs)
15
+
16
+ ...
17
+
18
+
19
+ ``VectorSearchIndex ``
20
+ =====================
21
+
22
+ .. class :: VectorSearchIndex(*expressions, similarities="cosine", **kwargs)
23
+
24
+ Available values for ``similarities `` are ``"euclidean" ``, ``"cosine" ``, and
25
+ ``"dotProduct" ``.
26
+
27
+ ...
You can’t perform that action at this time.
0 commit comments