Document the index option and the fact that additional options gets forwarded to pymongo's create_index method
This commit is contained in:
parent
b0148e7860
commit
83fe7f7eef
@ -492,7 +492,9 @@ the field name with a **#**::
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
If a dictionary is passed then the following options are available:
|
If a dictionary is passed then additional options become available. Valid options include,
|
||||||
|
but are not limited to:
|
||||||
|
|
||||||
|
|
||||||
:attr:`fields` (Default: None)
|
:attr:`fields` (Default: None)
|
||||||
The fields to index. Specified in the same format as described above.
|
The fields to index. Specified in the same format as described above.
|
||||||
@ -516,8 +518,12 @@ If a dictionary is passed then the following options are available:
|
|||||||
:attr:`name` (Optional)
|
:attr:`name` (Optional)
|
||||||
Allows you to specify a name for the index
|
Allows you to specify a name for the index
|
||||||
|
|
||||||
|
:attr:`collation` (Optional)
|
||||||
|
Allows to create case insensitive indexes (MongoDB v3.4+ only)
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
|
Additional options are forwarded as **kwargs to pymongo's create_index method.
|
||||||
Inheritance adds extra fields indices see: :ref:`document-inheritance`.
|
Inheritance adds extra fields indices see: :ref:`document-inheritance`.
|
||||||
|
|
||||||
Global index default options
|
Global index default options
|
||||||
|
Loading…
x
Reference in New Issue
Block a user