Merge pull request #1882 from bagerard/fix_doc_index_options

fix doc for meta index_options
This commit is contained in:
erdenezul 2018-09-07 14:37:38 +08:00 committed by GitHub
commit 6a8eb9562f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -529,7 +529,7 @@ There are a few top level defaults for all indexes that can be set::
title = StringField()
rating = StringField()
meta = {
'index_options': {},
'index_opts': {},
'index_background': True,
'index_cls': False,
'auto_create_index': True,
@ -537,8 +537,8 @@ There are a few top level defaults for all indexes that can be set::
}
:attr:`index_options` (Optional)
Set any default index options - see the `full options list <https://docs.mongodb.com/manual/reference/method/db.collection.createIndex/#ensureindex-options>`_
:attr:`index_opts` (Optional)
Set any default index options - see the `full options list <http://docs.mongodb.org/manual/reference/method/db.collection.ensureIndex/#db.collection.ensureIndex>`_
:attr:`index_background` (Optional)
Set the default value for if an index should be indexed in the background