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

[Atlas] Search Geo example has extraneous type: document

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • None
    • Atlas
    • 1
    • CET: Bojack (22 - 28 Feb 22), CET: Cheshire Cat (1-7 Mar 22)

    Description

      In this doc page, the geo example has an extra type: "document" at the top. It should have a field name before that or it should be removed
      https://docs.atlas.mongodb.com/atlas-search/index-definitions/#geo

      I believe the part in red should be removed.

      {
        "mappings": {
          "dynamic": false,
          "fields": {
            {color:#DE350B}"type": "document"{color},
            "<field-name>": {
              "indexShapes": true|false,
              "type": "geo"
            }
          }
        }
      }
      

      Attachments

        Activity

          People

            kanchana.sekhar@mongodb.com Kanchana Sekhar
            matt.kalan@mongodb.com Matt Kalan
            Jess Mokrzecki Jess Mokrzecki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 29 weeks ago