Skip to content

Commit 9a2b7be

Browse files
authored
Update how-to-create-wildcard-indexes.md
1 parent bb4e0d8 commit 9a2b7be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/cosmos-db/mongodb/vcore/how-to-create-wildcard-indexes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Consider the json document below:
5454
}
5555
```
5656

57-
The following indices will be created under the covers when wildcard indexing is used.
57+
The following indices are created under the covers when wildcard indexing is used.
5858
- db.collection.createIndex({"firstName", 1})
5959
- db.collection.createIndex({"lastName", 1})
6060
- db.collection.createIndex({"companyName", 1})
@@ -91,9 +91,9 @@ git clone https://github.com/Azure-Samples/cosmosdb-mongodb-vcore-wildcard-index
9191

9292
The cloned repository does not need to be built if there are no changes to be made to the solution. The built runnable jar named azure-cosmosdb-mongo-data-indexer-1.0-SNAPSHOT.jar is already included in the runnableJar/ folder. The jar can be executed by specifying the following required parameters:
9393
- Azure Cosmos DB for MongoDB vCore cluster connection string with the username and password used when the cluster was provisioned
94-
- The database within which the collection has been created
95-
- The name of the collection to be indexed
96-
- The location of the local json file containing the document structure for the specified collection. This is the document that will be read by the jar file to extract each field and issue individual createIndex operations.
94+
- The Azure Cosmos DB for MongoDB vCore database
95+
- The collection to be indexed
96+
- The location of the json file with the document structure for the collection. This document is parsed by the jar file to extract every field and issue individual createIndex operations.
9797

9898
```bash
9999
java -jar azure-cosmosdb-mongo-data-indexer-1.0-SNAPSHOT.jar mongodb+srv://<user>:<password>@abinav-test-benchmarking.global.mongocluster.cosmos.azure.com/?tls=true&authMechanism=SCRAM-SHA-256&retrywrites=false&maxIdleTimeMS=120000 cosmicworks employee sampleEmployee.json

0 commit comments

Comments
 (0)