Hi Erick, The "real time update of the schema" means we can just do an update using REST-API curl instead of manually editing the schema.xml and restart the Solr server. In Solr 5.0, if Solr is loading the schema from the resource named in 'managedSchemaResourceName', instead of schema.xml, I can just update it from the REST-API curl.
For earlier version of Solr, the default setting is ClassicIndexSchemaFactory, which is read from schema.xml. So besides getting Solr to load the schema from the resource named in 'managedSchemaResourceName', rather than from schema.xml, is there other settings required? Zheng Lin On 12 March 2015 at 23:26, Erick Erickson <erickerick...@gmail.com> wrote: > Actually I ran across a neat IntelliJ plugin that you could install > and directly edit ZK files. And I'm pretty sure there are stand-alone > programs that do this, but they are all outside Solr. > > I'm not sure what "real time update of the schema" is for, would you > (Zheng) explain further? Collections _must_ be reloaded for schema > changes to take effect so I'm not quite sure what you're referring to. > > Nitin: > The usual process is to have the master config be local, change the > local version then upload it to ZK with the upconfig option in zkCli, > then reload your collection. > > Best, > Erick > > On Thu, Mar 12, 2015 at 6:04 AM, Shawn Heisey <apa...@elyograg.org> wrote: > > On 3/12/2015 2:00 AM, Zheng Lin Edwin Yeo wrote: > >> I understand that in Solr 5.0, they provide a REST API to do real-time > >> update of the schema using Curl. However, I could not do that for my > >> eariler version of Solr 4.10.1. > >> > >> Would like to check, is this function available for the earlier version > of > >> Solr, and is the curl syntax the same as Solr 5.0? > > > > Providing a way to simply edit the config files directly is a potential > > security issue. We briefly had a way to edit those configs right in the > > admin UI, but Redhat reported this capability as a security problem, so > > we removed it. I don't remember whether there is a way to re-enable > > this functionality. > > > > The Schema REST API is available in 4.10. It was also present in 4.9. > > Currently you can only *add* to the schema, you cannot edit what's > > already there. > > > > Thanks, > > Shawn > > >