@@ -17,7 +17,7 @@ async function run() {
17
17
const collection = database . collection ( "<collectionName>" ) ;
18
18
19
19
// start createSearchIndex example
20
- // Create an Atlas Search index
20
+ // Creates an Atlas Search index
21
21
const index1 = {
22
22
name : "search1" ,
23
23
definition : {
@@ -30,7 +30,7 @@ async function run() {
30
30
// end createSearchIndex example
31
31
32
32
// start vectorSearchIdx example
33
- // Create an Atlas Vector Search index
33
+ // Creates an Atlas Vector Search index
34
34
const vectorSearchIdx = {
35
35
name : "vsidx1" ,
36
36
type : "vectorSearch" ,
@@ -48,7 +48,7 @@ async function run() {
48
48
// end vectorSearchIdx example
49
49
50
50
// start listSearchIndexes example
51
- // List search indexes
51
+ // Lists search indexes
52
52
const result = await collection . listSearchIndexes ( ) . toArray ( ) ;
53
53
console . log ( "Existing search indexes:\n" ) ;
54
54
for ( const doc in result ) {
@@ -57,7 +57,7 @@ async function run() {
57
57
// end listSearchIndexes example
58
58
59
59
// start updateSearchIndex example
60
- // Update a search index
60
+ // Updates a search index
61
61
const index2 = {
62
62
"mappings" : {
63
63
"dynamic" : true ,
@@ -72,7 +72,7 @@ async function run() {
72
72
// end updateSearchIndex example
73
73
74
74
// start dropSearchIndex example
75
- // Dropping (deleting ) a search index
75
+ // Drops (deletes ) a search index
76
76
await collection . dropSearchIndex ( "search1" ) ;
77
77
// end dropSearchIndex example
78
78
} finally {
0 commit comments