File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -157,9 +157,12 @@ To create a ``text`` index, use the following invocation of
157
157
158
158
db.collection.ensureIndex( { content: "text" } )
159
159
160
- ``text`` indexes catalog all string data in the ``content`` field. Your
161
- ``text`` index can include content from multiple fields, or arrays,
162
- and from fields in sub-documents, as in the following:
160
+ This ``text`` index catalogs all string data in the ``content`` field
161
+ where the ``content`` field contains a string or an array of string
162
+ elements. To index fields in sub-documents, you need to specify the
163
+ individual fields from the sub-documents using the :term:`dot
164
+ notation`. A ``text`` index can include multiple fields, as in the
165
+ following:
163
166
164
167
.. code-block:: javascript
165
168
You can’t perform that action at this time.
0 commit comments