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

Solr needs to enforce that _root_ field has the same fieldType as the uniqueKey field

    Details

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

      Description

      it's pretty important for correct childDocument behavior that the _root_ field have the same <fieldType/> as the uniqueKey field – but nothing seems to enforce that.

      (I realized this while working on SOLR-10807 where i was forcing all fields to be Points based except for the uniqueKey field and got some weird errors in PeerSync that only related to replacing child documents – because the schema.xml has a TrieIntField based "id" field, but _root_ was using IntPointField – but the same problem could affect any schema if folks change the id from string to long, or int to string, and don't make the corrisponding change to the definition of _root_)

        Attachments

        1. SOLR-10830.patch
          17 kB
          Hoss Man
        2. SOLR-10830.patch
          7 kB
          Hoss Man

          Issue Links

            Activity

              People

              • Assignee:
                hossman Hoss Man
                Reporter:
                hossman Hoss Man
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: