[
https://issues.apache.org/jira/browse/SOLR-17834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18013955#comment-18013955
]
ASF subversion and git services commented on SOLR-17834:
--------------------------------------------------------
Commit cbe0626912c48b5af468ec50be81608aeaa2c35c in solr's branch
refs/heads/main from Chris M. Hostetter
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=cbe0626912c ]
SOLR-17834: Fixed a bug preventing Config API set properties (aka:
configoverlay.json) from being used in config file property substitution
> config API 'set-user-property' no longer has affect on solrconfig.xml:
> notably update.autoCreateFields
> -------------------------------------------------------------------------------------------------------
>
> Key: SOLR-17834
> URL: https://issues.apache.org/jira/browse/SOLR-17834
> Project: Solr
> Issue Type: Bug
> Affects Versions: 9.8, 9.9
> Reporter: Chris M. Hostetter
> Assignee: Chris M. Hostetter
> Priority: Major
> Attachments: SOLR-17834-1.patch, SOLR-17834.hack.test.patch,
> SOLR-17834.patch
>
>
> As (indirectly) discovered by tim610156 on the solr-user mailing list,
> Something broke between 9.7.0 and 9.8.0 that (evidently) causes the
> {{set-user-property}} command to no longer modify the variables resolved when
> the {{solrconfig.xml}} is re-loaded as part of the resulting core/collection
> reload.
> *MOST NOTABLY*
> This mean that our well documented instructions for disabling
> {{autoCreateFields}} no longer seems to have any effect...
> {noformat}
> hossman@slate:~$ curl -sS 'http://localhost:8983/solr/test/schema/fields' |
> grep bogus
> hossman@slate:~$ curl http://localhost:8983/solr/test/config -d
> '{"set-user-property": {"update.autoCreateFields":"false"}}'
> {
> "responseHeader":{
> "status":0,
> "QTime":245
> },
> "WARNING":"This response format is experimental. It is likely to change in
> the future."
> }hossman@slate:~$
> hossman@slate:~$ curl
> 'http://localhost:8983/solr/test/update?commitWithin=1000&overwrite=true' -H
> 'Content-type: application/json' --data
> '[{"id":"hoss","bogus_field":"bogus_value"}]'
> {
> "responseHeader":{
> "status":0,
> "QTime":191
> }
> }hossman@slate:~$
> hossman@slate:~$ curl -sS 'http://localhost:8983/solr/test/schema/fields' |
> grep bogus
> "name":"bogus_field",
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]