Thank you for your reply. If I was to say which one, I'd maybe be talking about the concept for Solr. I understand we should use "ClassicSchemaFactory" when we want to hand-edit, but why are there two files, schema.xml and managed-schema, in spite that we can hand-edit managed-schema? If we can modify the schema.xml through Schema API, I think we won't need the managed-schema, but is there any reason why that can't be done? Could you please let me know if there is any information that can clear things up around those details?
Thanks, Issei 2017-02-27 1:51 GMT+09:00 Erick Erickson <erickerick...@gmail.com>: > This is the sequence that gets you in trouble: > > start solr > > hand edit the schema _without_ reloading your collection or restarting > all your Solr instances. > > use the managed-schema API to make modifications. > > In this scenario your hand-edits can be lost since the in-memory version > of the > schema is written out without re-fetching it from Zookeeper. > > If you only ever hand-edit your schema, you'll be fine. > > If you conscientiously reload your collection (or restart all your Solr's) > after > you hand-edit your schema, you'll be fine even if you use the managed > schema > API calls. > > But really, if you want to hand-edit your schema why not go back to using > the ClassicSchemaFactory? See: > https://cwiki.apache.org/confluence/display/solr/ > Schema+Factory+Definition+in+SolrConfig#SchemaFactoryDefinitioninSolrC > onfig-SwitchingfromManagedSchematoManuallyEditedschema.xml > > Best, > Erick > > On Sun, Feb 26, 2017 at 8:22 AM, Issei Nishigata <duo.2...@gmail.com> > wrote: > > Hi, All > > > > Similar questions may have been already asked, but just in case please > let > > me ask you. > > According to the below URL it says as "Schema modifications via the > Schema > > API will now be enabled by default.", > > but would there be any issues if I edited with text editor instead of > > Schema API? > > > > https://cwiki.apache.org/confluence/display/solr/Major+ > Changes+from+Solr+5+to+Solr+6 > > > > > > In the answer to the past question, it seemed okay. > > > > http://lucene.472066.n3.nabble.com/Solr-6-managed- > schema-amp-version-control-td4289243.html > > > > > > I was worried because managed-schema said "<!-- Solr managed schema - > > automatically generated - DO NOT EDIT -->" when managed-schema was > > automatically generated from schema.xml. > > If I need to use Schema API and if I wanted to do some process that > cannot > > be done with Schema API(modifying unique key, etc), what should I do? > > > > > > Thanks, > > Issei >