[
https://issues.apache.org/jira/browse/SOLR-8624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steve Rowe resolved SOLR-8624.
------------------------------
Resolution: Duplicate
Assignee: Steve Rowe
Fix Version/s: (was: 5.5)
> Unable to create managed schema field matching an existing dynamic field
> ------------------------------------------------------------------------
>
> Key: SOLR-8624
> URL: https://issues.apache.org/jira/browse/SOLR-8624
> Project: Solr
> Issue Type: Bug
> Components: Schema and Analysis
> Affects Versions: 5.4.1
> Reporter: Jan Høydahl
> Assignee: Steve Rowe
>
> h3. 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.*
> h3. Resolution
> In {{ManagedIndexSchema#addFields}}, line #398, the test {{getFieldOrNull()}}
> will return both fields and dynamic fields. We need to check for ordinary
> fields only.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]