On 9/28/2016 5:07 AM, marcyborg wrote:
> How can I edit managed-schema, if I'm using schemaless configuration?
> That file doesn't exist in Solr core. 

When you are using the managed schema class, the "conf" directory (or
the zookeeper config location, when running SolrCloud) will contain a
file named "managed-schema" with no extension.  If you are not using the
managed schema class, the file will be named "schema.xml".

As of Solr version 5.5, all example configs use the managed schema. 
Before that, only the "data_driven_schema_configs" example used the
managed schema.  Both before and after 5.5, the data driven example is
the one that is schemaless -- fields can be automatically added to
managed-schema by indexing.

Right at the top of the managed-schema file found in the example
configs, it will tell you to not edit the file manually.  There are good
reasons for this comment being in that file, but if manual edits are the
only way the file ever gets changed, you can ignore that warning.

If you're running in schemaless mode, you do need to be careful that you
are not indexing data when you make manual edits, or the schema may
change as you are editing it.

Thanks,
Shawn

Reply via email to