[ 
https://issues.apache.org/jira/browse/SOLR-17834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris M. Hostetter updated SOLR-17834:
--------------------------------------
    Attachment: SOLR-17834-1.patch
        Status: Open  (was: Open)

updated patch

> 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.9, 9.8
>            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: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to