Jan Høydahl created SOLR-8624: --------------------------------- Summary: 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: Data-driven Schema Affects Versions: 5.4.1 Reporter: Jan Høydahl Fix For: 5.5
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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org