Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-13810

Index option "unique" should be disallowed for text/geo indexes

    XMLWordPrintableJSON

Details

    • Query Integration

    Description

      The semantics of the {unique: true} option for text/geo indexes are implementation-specific, unintuitive, and not useful (for text indexes, this option enforces that no two documents can have the same term+score pair; for geo indexes, this option enforces that no two documents can have a point with the same geohash value).

      This option is currently disallowed for hashed indexes.

      Attachments

        Activity

          People

            backlog-query-integration Backlog - Query Integration
            backlog-server-query Backlog - Query Team (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: