Create an Atlas Search index
To complete the examples in Chapter 13, Full-Text Search Examples, you need to use a MongoDB Atlas cluster rather than a self-managed MongoDB deployment. The simplest way to provision an Atlas cluster is to create a free-tier cluster (see https://www.mongodb.com/cloud/atlas). Once created, you can use the following steps to create a search index:
- First, in the Atlas (see https://cloud.mongodb.com/) console, for your database cluster, click the Search tab and then click Create Search Index:
- Select JSON Editor and then click Next:
- Leave Index Name as default, select the Database and Collection you require, paste in your JSON index definition, and then click Next:
- On the review screen, click Create Search Index to finish:
- It may take a few minutes for the system to generate the text search index.
Note...