[ 
https://issues.apache.org/jira/browse/SOLR-16609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17656414#comment-17656414
 ] 

David Smiley commented on SOLR-16609:
-------------------------------------

This issue feels more like it should be a user list email.
FYI you can also use bin/solr; try this instead:
bin/solr config -c $CREATE_NAME -p $CREATE_PORT -action set-user-property 
-property update.autoCreateFields -value false

The error you show suggests some sort of terminal escaping or syntax issue that 
led to the POST payload to be missing / detached.

> Unable to set properties when creating config/collection in Solr Cloud 
> environment
> ----------------------------------------------------------------------------------
>
>                 Key: SOLR-16609
>                 URL: https://issues.apache.org/jira/browse/SOLR-16609
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 9.1
>         Environment: taken from [SOLR_URL]:8983/solr/#/~java-properties
> java.​runtime.​name = OpenJDK Runtime Environment
> java.​runtime.​version = 11.0.14.1+1-LTS
> os.​arch = amd64
> os.​name = Linux
> os.​version = 3.10.0-1160.53.1.el7.x86_64
>            Reporter: Steve Lieser
>            Priority: Major
>
> I'm trying to set the following properties: 
>  * updateHandler.autoCommit.maxTime=60000
>  * updateHandler.autoCommit.openSearcher=true
>  * updateHandler.autoSoftCommit.maxTime=30000
> These properties are described in the docs 
> [here|https://solr.apache.org/guide/solr/latest/configuration-guide/config-api.html]
>  and 
> [here|https://solr.apache.org/guide/solr/latest/configuration-guide/config-api.html#examples-of-common-properties]
>  In solrJ, I've tried setting the properties when creating the collecion via 
> {{{}CollectionAdminRequest.Create{}}}.
> I've tried updating the collection with 
> {{{}CollectionAdminRequest.modifyCollection{}}}.
> I've tried setting the properties when creating the configset tied to the 
> collection via {{{}ConfigSetAdminRequest.Create{}}}.
> Since the javadoc does not specify whether the property values should be 
> strings or not, I tried both (ex: "true" and BOOLEAN.TRUE). Neither had any 
> effect. 
> While I cannot find any online documentation on setting collection/config 
> properties via solrj, there is a clear example using curl 
> [here|https://solr.apache.org/guide/solr/latest/configuration-guide/config-api.html#examples-of-common-properties]
> However, that does not even work. When running both the v1 and v2 api 
> versions of the command, I get the same response:
> {  "responseHeader":
> {    "status":400,    "QTime":2}
> ,  "WARNING":"This response format is experimental.  It is likely to change 
> in the future.",  "error":{    "metadata":[      
> "error-class","org.apache.solr.common.SolrException",     
> "root-error-class","org.apache.solr.common.SolrException"],   
> "msg":"missing content stream",    "code":400}}
> Manually setting these properties isn't really viable for the app I'm working 
> on. Any help would be greatly appreciated.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to