From 29d820f86e8713ad28122353af40c0ca50147ebf Mon Sep 17 00:00:00 2001 From: Shane Harvey Date: Tue, 7 Jul 2020 15:33:03 -0700 Subject: [PATCH] PYTHON-2220 Mention Atlas Search in documentation --- pymongo/__init__.py | 4 ++++ pymongo/cursor.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/pymongo/__init__.py b/pymongo/__init__.py index ba6b17af72..b87668cd65 100644 --- a/pymongo/__init__.py +++ b/pymongo/__init__.py @@ -58,6 +58,10 @@ TEXT = "text" """Index specifier for a `text index`_. +.. seealso:: MongoDB's `Atlas Search + `_ which offers more advanced + text search functionality. + .. versionadded:: 2.7.1 .. _text index: http://docs.mongodb.org/manual/core/index-text/ diff --git a/pymongo/cursor.py b/pymongo/cursor.py index 2a994389ac..ad116d4124 100644 --- a/pymongo/cursor.py +++ b/pymongo/cursor.py @@ -745,6 +745,9 @@ def sort(self, key_or_list, direction=None): for doc in cursor: print(doc) + For more advanced text search functionality, see MongoDB's + `Atlas Search `_. + Raises :class:`~pymongo.errors.InvalidOperation` if this cursor has already been used. Only the last :meth:`sort` applied to this cursor has any effect.