@@ -19,10 +19,10 @@ Definition
1919
2020 .. code-block:: php
2121
22- function createSearchIndex(
23- array|object $definition,
24- array $options = []
25- ): string
22+ function createSearchIndex(
23+ array|object $definition,
24+ array $options = []
25+ ): string
2626
2727 .. include:: /includes/extracts/note-atlas-search-requirement.rst
2828
@@ -37,28 +37,28 @@ Parameters
3737 An array specifying the desired options.
3838
3939 .. list-table::
40- :header-rows: 1
41- :widths: 20 20 80
40+ :header-rows: 1
41+ :widths: 20 20 80
4242
43- * - Name
44- - Type
45- - Description
43+ * - Name
44+ - Type
45+ - Description
4646
47- * - comment
48- - mixed
49- - .. include:: /includes/extracts/common-option-comment.rst
47+ * - comment
48+ - mixed
49+ - .. include:: /includes/extracts/common-option-comment.rst
5050
51- * - name
52- - string
53- - | Name of the search index to create.
54- | You cannot create multiple indexes with the same name on a single
55- collection. If you do not specify a name, the index is named ``default``.
51+ * - name
52+ - string
53+ - | Name of the search index to create.
54+ | You cannot create multiple indexes with the same name on a single
55+ collection. If you do not specify a name, the index is named ``default``.
5656
57- * - type
58- - string
59- - Type of index to create. Accepted values are ``'search'`` and
60- ``'vectorSearch'``. If you omit this option, the default
61- value is ``'search'`` and the method creates an Atlas Search index.
57+ * - type
58+ - string
59+ - Type of index to create. Accepted values are ``'search'`` and
60+ ``'vectorSearch'``. If you omit this option, the default
61+ value is ``'search'`` and the method creates an Atlas Search index.
6262
6363Return Values
6464-------------
@@ -95,8 +95,8 @@ to index all document fields containing
9595 $collection = (new MongoDB\Client)->getCollection('test', 'articles');
9696
9797 $indexName = $collection->createSearchIndex(
98- ['mappings' => ['dynamic' => true]],
99- ['name' => 'test-search-index']
98+ ['mappings' => ['dynamic' => true]],
99+ ['name' => 'test-search-index']
100100 );
101101
102102 var_dump($indexName);
0 commit comments