Skip to content

Commit 7c988f0

Browse files
committed
custom index
1 parent e02220a commit 7c988f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/scout.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,14 +186,15 @@ documents for MongoDB Atlas Search from Eloquent models (MongoDB or SQL).
186186
To customize the index definition, add the ``index-definitions``
187187
configuration to the ``mongodb`` entry in your
188188
``config/scout.php`` file. The following code demonstrates how to
189-
specify a custom index definition for the ``scout_index`` index:
189+
specify a custom index definition to create on the
190+
``scout_movies`` collection:
190191

191192
.. code-block:: php
192193

193194
'mongodb' => [
194195
'connection' => env('SCOUT_MONGODB_CONNECTION', 'mongodb'),
195196
'index-definitions' => [
196-
'scout_index' => [
197+
'scout_movies' => [
197198
'mappings' => [
198199
'dynamic' => false,
199200
'fields' => ['title' => ['type' => 'string']]

0 commit comments

Comments
 (0)