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

Who Me Too'd this solution

Re: Schema.xml for new collection in CloudEra search

Expert Contributor

Hey Srini,


When you first created the collection, you ran a command similar to:


- solrctl instancedir --generate $HOME/solr_configs


This command was what created the configs that you imported for solr.  You can see the various configs by running:


- solrctl instancedir --list


Then pick the config that goes with your collection and run:


- solrctl instancedir --get <name_from_list> /path/to/local_fs


Then change the schema.xml in /path/to/local_fs/conf and run:


- solrctl instancedir --update <name_from_list> /path/to/local_fs


Then the schema will get updated.  Note, when you update the schema, you have to reindex all your documents or else they won't have indexes for the latest schema changes.


Hope this helps.




Who Me Too'd this solution