On 3/14/2015 1:32 AM, Zheng Lin Edwin Yeo wrote:
> What I experienced is when I create a new collection, there's no physical
> schema in that collection. But there is schema.xml in some of the example
> folder. You can create your own schema.xml in your own collection, but in
> order to use it, you have to change the schemaFactory class
> to ClassicIndexSchemaFactory in solrconfig.xml. As by default, the
> schemaFactory class is set to ManagedIndexSchemaFactory in Solr 5.0.

If you are running SolrCloud, then the situation can be slightly
different than what you have described.

In SolrCloud, the active schema (whether it is schema.xml or
managed-schema) is in Zookeeper, not on the disk.

If you're NOT using the managed schema with SolrCloud (and probably even
if you are), you can upload a new config set to zookeeper at any time
using a zookeeper client, then reload the collection.  There is a custom
commandline zookeeper client included with Solr, handled by a script
called zkCli.  With that, you can change the config, schema, and
anything else that would normally be in the conf directory, even if you
do not have direct access to the filesystem.

It's not quite correct to say that the default in 5.0 is a managed
schema.  It is default if you choose to use the data-driven example, but
the techproducts example is the one that is the most like the examples
in previous versions, and it does not have a managed schema.

Thanks,
Shawn

Reply via email to