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

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

    XMLWordPrintable

Details

    • Improvement
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • Index Maintenance

    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

        Issue Links

          Activity

            People

              backlog-query-optimization Backlog - Query Optimization
              backlog-server-query Backlog - Query Team (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: