[DOCS-15123] [Atlas] Search Geo example has extraneous type: document Created: 23/Feb/22  Updated: 29/Oct/23  Resolved: 04/Mar/22

Status: Closed
Project: Documentation
Component/s: Atlas
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Matt Kalan Assignee: Kanchana Sekhar
Resolution: Fixed Votes: 0
Labels: cet-captain
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 1 year, 48 weeks, 5 days ago
Story Points: 1

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



 Comments   
Comment by Kanchana Sekhar [ 04/Mar/22 ]

PR

Generated at Thu Feb 08 08:12:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.