You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Steve Lieser (Jira)" <ji...@apache.org> on 2023/01/03 19:53:00 UTC
[jira] [Created] (SOLR-16609) Unable to set properties when creating config/collection in Solr Cloud environment
Steve Lieser created SOLR-16609:
-----------------------------------
Summary: 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
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: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org