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:
![](https://static.packt-cdn.com/products/9781835884362/graphics/image/B21539_Appendix_1.jpg)
- Select JSON Editor and then click Next:
![](https://static.packt-cdn.com/products/9781835884362/graphics/image/B21539_Appendix_2.jpg)
- Leave Index Name as default, select the Database and Collection you require, paste in your JSON index definition, and then click Next:
![](https://static.packt-cdn.com/products/9781835884362/graphics/image/B21539_Appendix_3.jpg)
- On the review screen, click Create Search Index to finish:
![](https://static.packt-cdn.com/products/9781835884362/graphics/image/B21539_Appendix_4.jpg)
- It may take a few minutes for the system to generate the text search index.
Note...