Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
5.4.1
-
None
-
None
Description
Reproduce:
- bin/solr create mycoll
- Open http://localhost:8983/solr/#/mycoll/schema
- Click button Add field
- Enter field name mystring_s and select type string
- 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
- duplicates
-
SOLR-8607 The Schema API refuses to add new fields that match existing dynamic fields
- Closed