File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ const client = new MongoClient(uri);
10
10
import {
11
11
MongoClient
12
12
} from "mongodb" ;
13
- const database = client . db ( "<databaseName>" ) ;
14
- const collection = database . collection ( "<collectionName>" ) ;
15
13
16
14
async function run ( ) {
17
15
try {
Original file line number Diff line number Diff line change @@ -405,8 +405,8 @@ use the ``updateSearchIndex()`` method to update an index called
405
405
.. literalinclude:: /code-snippets/indexes/searchIndexes.js
406
406
:language: javascript
407
407
:dedent:
408
- :start-after: start dropSearchIndex example
409
- :end-before: end dropSearchIndex example
408
+ :start-after: start updateSearchIndex example
409
+ :end-before: end updateSearchIndex example
410
410
411
411
Drop a Search Index
412
412
~~~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments