@@ -171,50 +171,8 @@ Each document in the ``indexes`` array can take the following fields:
171171 type <index-types>`. If specifying direction, specify ``1`` for
172172 ascending or ``-1`` for descending.
173173
174-
175- MongoDB supports several different index types including
176- :ref:`text <index-feature-text>`, :ref:`geospatial
177- <index-feature-geospatial>`, and :ref:`hashed
178- indexes <index-type-hashed>`. See :ref:`index types
179- <index-types>` for more information.
180-
181- :ref:`Wildcard indexes <wildcard-index-core>`
182- support workloads where users query against custom fields or a
183- large variety of fields in a collection:
184-
185- - To create a wildcard index on all fields and subfields in a
186- document, specify ``{ "$**" : 1 }`` as the index key. You
187- cannot specify a descending index key when creating a wildcard index.
188-
189- You can also either include *or* exclude specific fields and
190- their subfields from the index using the optional
191- ``wildcardProjection`` parameter.
192-
193- .. include:: /includes/extracts/wildcard-index-id.rst
194-
195- - You can create a wildcard index on a specific field
196- and its subpaths by specifying the full path to that field as
197- the index key and append ``"$**"`` to the path:
198-
199- ``{ "path.to.field.$**" : 1 }``
200-
201- You cannot specify a descending index key when creating a
202- wildcard index.
203-
204- The path-specific wildcard index syntax is incompatible with
205- the ``wildcardProjection`` option. You cannot specify
206- additional inclusions or exclusions on the specified path.
207-
208- The wildcard index key **must** use one of the syntaxes listed
209- above. For example, you cannot specify a
210- :doc:`compound index key </core/index-compound>`. For more
211- complete documentation on wildcard indexes, including
212- restrictions on their creation, see :ref:`wildcard-index-restrictions`.
213-
214- For examples of wildcard index creation, see
215- :ref:`createIndexes-command-wildcard-examples`.
216-
217-
174+ ..include:: /includes/indexes/wildcard-use-wc-methods.rst
175+
218176 * - ``name``
219177
220178 - string
0 commit comments