Skip to content

Commit 9f4a386

Browse files
DOCSP-37511 Indexes (#59)
1 parent e27c96e commit 9f4a386

17 files changed

+847
-179
lines changed

snooty.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ toc_landing_pages = [
44
"/get-started",
55
"/write-operations",
66
"/read",
7-
"/connect"
7+
"/connect",
8+
"/indexes"
89
]
910

1011
intersphinx = [

source/fundamentals.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@ Fundamentals
1111
:titlesonly:
1212
:maxdepth: 1
1313

14+
/fundamentals/authentication
1415
/fundamentals/collations
1516
/fundamentals/databases-and-collections
1617
/fundamentals/dates-and-times
1718
/fundamentals/gridfs
18-
/fundamentals/indexes
1919
/fundamentals/type-hints
2020

2121
- :ref:`pymongo-auth`
2222
- :ref:`pymongo-collations`
2323
- :ref:`pymongo-databases-collections`
2424
- :ref:`pymongo-dates-times`
2525
- :ref:`pymongo-gridfs`
26-
- :ref:`pymongo-indexes`
2726
- :ref:`pymongo-type-hints`

source/fundamentals/indexes.txt

Lines changed: 0 additions & 176 deletions
This file was deleted.

source/includes/indexes/indexes.py

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# start-index-single
2+
3+
# end-index-single
4+
5+
# start-index-single-query
6+
7+
# end-index-single-query
8+
9+
# start-compound-index
10+
11+
# end-compound-index
12+
13+
# start-index-compound-query
14+
15+
# end-index-compound-query
16+
17+
# start-index-multikey
18+
19+
# end-index-multikey
20+
21+
# start-index-multikey-query
22+
23+
# end-index-multikey-query
24+
25+
# start-index-text-single
26+
27+
# end-index-text-single
28+
29+
# start-index-text-single-query
30+
31+
# end-index-text-single-query
32+
33+
# start-index-text-multi
34+
35+
# end-index-text-multi
36+
37+
# start-index-text-multi-query
38+
39+
# end-index-text-multi-query
40+
41+
# start-index-geo
42+
43+
# end-index-geo
44+
45+
# start-index-geo-query
46+
47+
# end-index-geo-query
48+
49+
# start-index-wildcard
50+
51+
# end-index-wildcard
52+
53+
# start-index-clustered
54+
55+
# end-index-clustered
56+
57+
# start-remove-index
58+
59+
# end-remove-index
60+
61+
# start-create-search-index
62+
63+
# end-create-search-index
64+
65+
# start-create-search-indexes
66+
67+
# end-create-search-indexes
68+
69+
# start-list-search-indexes
70+
71+
# end-list-search-indexes
72+
73+
# start-update-search-indexes
74+
75+
# end-update-search-indexes
76+
77+
# start-delete-search-indexes
78+
79+
# end-delete-search-indexes
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
DuplicateKeyException
2+
~~~~~~~~~~~~~~~~~~~~~
3+
4+
If you perform a write operation that stores a duplicate value that violates
5+
a :ref:`unique index <pymongo-unique-index>`, the driver raises a
6+
``DuplicateKeyException``, and MongoDB throws an error resembling the following:
7+
8+
.. code-block:: none
9+
:copyable: false
10+
11+
E11000 duplicate key error index

source/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ MongoDB PyMongo Documentation
2020
/write-operations
2121
/read
2222
/specify-a-query
23+
/indexes
2324
/security
2425
/tools
2526
API Documentation <{+api-root+}>

0 commit comments

Comments
 (0)