Docs Menu
1

Navigate to the Atlas Search page for your project.

  1. If it is not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.
  2. If it is not already displayed, select your desired project from the Projects menu in the navigation bar.
  3. Click your cluster's name.
  4. Click the Search tab.
2

Create an Atlas Search index.

  • For your first index, click Create Search Index.
  • For subsequent indexes, click Create Index.
3

Select a Configuration Method and click Next.

  • For a guided experience, select Visual Editor.
  • To edit the raw index definition, select JSON Editor.
4

Enter the Index Name, and set the Database and Collection.

  1. In the Index Name field, enter default.

    Note

    If you name your index default, you don't need to specify an index parameter when using the $search pipeline stage. Otherwise, you must specify the index name using the index parameter.

  2. In the Database and Collection section, find the sample_analytics database, and select the accounts collection.
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.

6

Click Create Search Index.

7

Close the You're All Set! Modal Window.

A modal window displays to let you know your index is building. Click the Close button.

8

Wait for the index to finish building.

The index should take about one minute to build. While it is building, the Status column reads Build in Progress. When it is finished building, the Status column reads Active.

What is MongoDB Atlas? →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.