Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-15216

[Atlas Search] Creating an Atlas Search Index Fails Using the API if a Collection Doesn't Exist

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • FTS
    • None
    • 2

    Description

      If you try to create an Atlas Search index using the API, it will fail if the collection doesn't exist.

      However, this isn't clear from our Documentation.

      On the main "Create an Atlas Search Index" page, the prerequisites are listed as:

      To create an Atlas Search index, you must have an Atlas cluster with:
       
          MongoDB version 4.2 or higher
          At least one collection
      

      This says at least one collection, but doesn't mention the specific collection.

      If you're creating an Atlas Search index through the UI, you can only select an existing collection.

      However on the relevant API page, it doesn't mention that the collection must exist.

      I'm suggesting:
      1. On the main "Create an Atlas Search Index" page, state that the collection must exist
      2. On the API page state that although the request may return a status of 200, the index creation will fail if the collection does not exist

      Attachments

        Activity

          People

            kanchana.sekhar@mongodb.com Kanchana Sekhar
            ronan.merrick@mongodb.com Ronan Merrick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 42 weeks, 5 days ago