Skip to content

PYTHON-2220 Mention Atlas Search in documentation #455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pymongo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
TEXT = "text"
"""Index specifier for a `text index`_.

.. seealso:: MongoDB's `Atlas Search
<https://docs.atlas.mongodb.com/atlas-search/>`_ which offers more advanced
text search functionality.

.. versionadded:: 2.7.1

.. _text index: http://docs.mongodb.org/manual/core/index-text/
Expand Down
3 changes: 3 additions & 0 deletions pymongo/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://docs.atlas.mongodb.com/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.
Expand Down