diff --git a/pymongo/collection.py b/pymongo/collection.py index e3cc4c786..d03bb3d08 100644 --- a/pymongo/collection.py +++ b/pymongo/collection.py @@ -1250,7 +1250,7 @@ class Collection(common.BaseObject): using the option will fail if a duplicate value is detected. .. note:: `expireAfterSeconds` requires server version **>= 2.2** - .. note:: `partialFilterIndexes` requires server version **>= 3.2** + .. note:: `partialFilterExpression` requires server version **>= 3.2** :Parameters: - `keys`: a single key or a list of (key, direction) diff --git a/pymongo/operations.py b/pymongo/operations.py index e9116bb6c..820618d64 100644 --- a/pymongo/operations.py +++ b/pymongo/operations.py @@ -228,7 +228,7 @@ class IndexModel(object): See the MongoDB documentation for a full list of supported options by server version. - .. note:: `partialFilterIndexes` requires server version **>= 3.2** + .. note:: `partialFilterExpression` requires server version **>= 3.2** :Parameters: - `keys`: a single key or a list of (key, direction)