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

attempting to configured a dynamicField as required, or using a default value, should fail.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      In SOLR-5222 Pascal noted that he did not get the behavior expected when using sortMissingLast with a dynamicField using docValues in Solr < 4.5 – but up to Solr 4.4, docValues required a default value, so he should have gotten a hard error as soon as he tried specifying a default value on a dynamicField.

        Issue Links

          Activity

          Hide
          hossman Hoss Man added a comment -

          looking at the code, i realize we have the same potential problem if someone tries to make a dynamicField "required"

          Show
          hossman Hoss Man added a comment - looking at the code, i realize we have the same potential problem if someone tries to make a dynamicField "required"
          Hide
          hossman Hoss Man added a comment -

          patch with tests.

          I'll include some details in the upgrading section of CHANGES.txt when committing.

          Show
          hossman Hoss Man added a comment - patch with tests. I'll include some details in the upgrading section of CHANGES.txt when committing.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 1521587 from hossman@apache.org in branch 'dev/trunk'
          [ https://svn.apache.org/r1521587 ]

          SOLR-5227: Correctly fail schema init if a dynamicField is configured to be required, or have a default value

          Show
          jira-bot ASF subversion and git services added a comment - Commit 1521587 from hossman@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1521587 ] SOLR-5227 : Correctly fail schema init if a dynamicField is configured to be required, or have a default value
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 1521596 from hossman@apache.org in branch 'dev/branches/branch_4x'
          [ https://svn.apache.org/r1521596 ]

          SOLR-5227: Correctly fail schema init if a dynamicField is configured to be required, or have a default value (merge r1521587)

          Show
          jira-bot ASF subversion and git services added a comment - Commit 1521596 from hossman@apache.org in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1521596 ] SOLR-5227 : Correctly fail schema init if a dynamicField is configured to be required, or have a default value (merge r1521587)
          Hide
          jpountz Adrien Grand added a comment -

          4.5 release -> bulk close

          Show
          jpountz Adrien Grand added a comment - 4.5 release -> bulk close

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development