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

[Atlas] Search Geo example has extraneous type: document

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Atlas
    • 1

      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"
            }
          }
        }
      }
      

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

              Created:
              Updated:
              Resolved:
              2 years, 21 weeks ago