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

Unable to create managed schema field matching an existing dynamic field

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 5.4.1
    • None
    • Schema and Analysis
    • 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

              sarowe Steven Rowe
              janhoy Jan Høydahl
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: