Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10829

IndexSchema should enforce that uniqueKey field must not be points based

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.7, 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)

      Description

      if a uniqueKey field is defined, then the IndexSchema should fail fast & hard on startup if the field type of the specific uniqueKey uses "points" (ie: FieldType.isPointField())

      The reason for this is because deleting by id, and overwriting existing documents are predicated on being able to use IndexWriter.deleteDocuments(Term...) and IndexWriter.updateDocument(Term, Iterable<..docs..>) respectively – but Points based fields have no "Term" that can be based to these methods.

      IndexSchema.readSchema should fail fast in this case with a clear error (just like it does if the uniqueKey field is multivalued)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hossman Hoss Man
                Reporter:
                hossman Hoss Man
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: