Skip to content

Commit f6067cd

Browse files
committed
include fix
1 parent d91eadd commit f6067cd

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

source/code-snippets/indexes/searchIndexes.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ const client = new MongoClient(uri);
1010
import {
1111
MongoClient
1212
} from "mongodb";
13-
const database = client.db("<databaseName>");
14-
const collection = database.collection("<collectionName>");
1513

1614
async function run() {
1715
try {

source/fundamentals/indexes.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,8 @@ use the ``updateSearchIndex()`` method to update an index called
405405
.. literalinclude:: /code-snippets/indexes/searchIndexes.js
406406
:language: javascript
407407
: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
410410

411411
Drop a Search Index
412412
~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)