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

Unable to create managed schema field matching an existing dynamic field

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 5.4.1
    • Fix Version/s: None
    • Component/s: Schema and Analysis
    • Labels:
      None

      Description

      Reproduce:

      1. bin/solr create mycoll
      2. Open http://localhost:8983/solr/#/mycoll/schema
      3. Click button Add field
      4. Enter field name mystring_s and select type string
      5. Submit -> Error message Field 'myfield_s' already exists.

      Resolution

      In ManagedIndexSchema#addFields, line #398, the test getFieldOrNull() will return both fields and dynamic fields. We need to check for ordinary fields only.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                steve_rowe Steve Rowe
                Reporter:
                janhoy Jan Høydahl
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: