File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ You can create an Atlas Search index in either of the following ways:
64
64
:ref:`laravel-schema-builder-atlas-idx` section of the Schema Builder guide.
65
65
66
66
- Access a collection, then call the
67
- :phpmethod:`MongoDB\Collection::createSearchIndex()` from the
67
+ :phpmethod:`MongoDB\Collection::createSearchIndex()` method from the
68
68
{+php-library+}, as shown in the following code:
69
69
70
70
.. code-block:: php
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ You can create an Atlas Search index in either of the following ways:
64
64
:ref:`laravel-schema-builder-atlas-idx` section of the Schema Builder guide.
65
65
66
66
- Access a collection, then call the
67
- :phpmethod:`MongoDB\Collection::createSearchIndex()` from the
67
+ :phpmethod:`MongoDB\Collection::createSearchIndex()` method from the
68
68
{+php-library+}. You must specify the ``type`` option as
69
69
``'vectorSearch'``, as shown in the following code:
70
70
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function up(): void
33
33
});
34
34
// end-create-search-indexes
35
35
36
- // start -create-vs-index
36
+ // begin -create-vs-index
37
37
Schema::create ('galaxies ' , function (Blueprint $ collection ) {
38
38
$ collection ->vectorSearchIndex ([
39
39
'fields ' => [
You can’t perform that action at this time.
0 commit comments