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

IndexSchema should enforce that uniqueKey field must not be points based

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 6.7, 7.0
    • None

    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

        1. SOLR-10829.patch
          3 kB
          Chris M. Hostetter

        Issue Links

          Activity

            People

              hossman Chris M. Hostetter
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: