Skip to content

Commit 005217f

Browse files
committed
atlas search idx note
1 parent f1560c9 commit 005217f

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

source/interact-data/raw-queries.txt

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -164,19 +164,10 @@ that covers the fields you want to query. Then, pass a ``$search``
164164
or ``$searchMeta`` stage in an aggregation pipeline parameter to
165165
the ``raw_aggregate()`` method.
166166

167-
.. important::
167+
.. tip::
168168

169-
You cannot use the ``QuerySet`` API to create Atlas Search indexes.
170-
However, you can create an index by exposing your ``MongoClient``
171-
object directly, on which you can call the PyMongo driver's
172-
``create_search_index()`` method. To learn how to expose the
173-
``MongoClient``, see the :ref:`django-client-operations` section
174-
of this guide.
175-
176-
For instructions on using the PyMongo driver to create an Atlas
177-
Search index, see `Atlas Search and Vector Search Indexes
178-
<{+pymongo-docs+}/indexes/atlas-search-index/>`__
179-
in the PyMongo documentation.
169+
To learn how to create Atlas Search indexes, see :ref:`django-indexes-atlas-search`
170+
in the Create Indexes guide.
180171

181172
This example runs an Atlas Search query by passing the ``$search`` pipeline
182173
stage to the ``raw_aggregate()`` method. The code performs the following

0 commit comments

Comments
 (0)