We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f96f89b commit 5c0e67eCopy full SHA for 5c0e67e
source/faq/indexes.txt
@@ -116,3 +116,14 @@ The :operator:`$ne` and :operator:`$nin` operators are not selective.
116
See :ref:`index-selectivity`. If you need to use these,
117
it is often best to make sure that an additional, more selective
118
criterion is part of the query.
119
+
120
+.. _faq-index-min-max:
121
122
+Can I use index keys to constrain query matches?
123
+------------------------------------------------
124
125
+The :method:`min() <cursor.min()>` and the :method:`max()
126
+<cursor.max()>` methods provide a way to constrain the results of the
127
+:method:`find() <db.collection.find()>` method using index keys.
128
129
0 commit comments