1
Navigate to the Atlas Search page for your project.
- If it isn't already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.
- If it isn't already displayed, select your desired project from the Projects menu in the navigation bar.
- Click your cluster's name.
- Click the Search tab.
2
3
4
Enter the Index Name, and set the Database and Collection.
In the Index Name field, enter
default
.NoteIf you name your index
default
, you don't need to specify anindex
parameter when using the $search pipeline stage. Otherwise, you must specify the index name using theindex
parameter.In the Database and Collection section, find the
sample_training
database, and select the collection.- To create an index for the
companies
collection, selectcompanies
. - To create an index for the
inspections
collection, selectinspections
.
- To create an index for the
5
Specify an index definition.
The following index definition dynamically indexes the fields of supported types in the collection. You can use the Visual Editor or the JSON Editor in the Atlas user interface to create the index.
7