Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

solrctl -schemaless option always enabled

solrctl -schemaless option always enabled

New Contributor

The two commands below generate exactly the same files in CDH 6.0.0 Release:

 

# solrctl instancedir --generate test_collection_config -schemalesss
# solrctl instancedir --generate test_collection_config

 

Is this expected?

How to generate config files with a schema file?

 

Thanks.

1 REPLY 1
Highlighted

Re: solrctl -schemaless option always enabled

Cloudera Employee

In CDH 6 there is no schema.xml file created by default rather the managed-schema file will be used as a schema.xml.

 

You can either download the instancedir and move the managed-schema to schema.xml or use a sample schema.xml from CDH5(SOLR 4.10.3) and modify the schema.xml(as there are some parameters which won't be accepted in CDH6(SOLR 7.x) so if you can make the required changes that will pick up the schema.xml which can be used in CDH6.