dsmiley opened a new pull request, #4964: URL: https://github.com/apache/solr/pull/4964
🤖 Fixes an upgrade regression reported by Hoss in [SOLR-18197](https://issues.apache.org/jira/browse/SOLR-18197?focusedCommentId=18120890#comment-18120890). When `NestPathField` extended `SortableTextField`, its `setArgs` injected `maxCharsForDocValues="-1"` (among others), and any Schema API write persisted that into `managed-schema.xml`. Now that it extends `StrField`, that arg is rejected: `schema fieldtype _nest_path_(org.apache.solr.schema.NestPathField) invalid arguments:{maxCharsForDocValues=-1}`, so cores fail to load after upgrading to 9.11. Fix: `NestPathField.setArgs` removes `maxCharsForDocValues`. (`omitNorms` / `omitTermFreqAndPositions` are generic props that `StrField` accepts.) Test: `schema-nest.xml` now declares `_nest_path_` exactly as the 9.10 Schema API persisted it; `TestNestedUpdateProcessor` et al. failed with the above error before the fix and pass after. No new changelog entry since SOLR-18197 is unreleased. Needs backport to branch_10x and branch_9x (9.11 RC). 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
