Ok.. Got Zheng... Thanks a Lot.. On Sat, Mar 14, 2015 at 1:02 PM, Zheng Lin Edwin Yeo <edwinye...@gmail.com> wrote:
> Hi Nitin, > > 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. > > Zheng Lin > > > On 14 March 2015 at 15:22, Nitin Solanki <nitinml...@gmail.com> wrote: > > > Hi Zheng, > > As you said **there's no physical schema.xml** but I > > have. I am using sampletechproductsconfig configuration where I have > > found schema.xml. In that, I am managing my schema.xml and then I > > upload that it into zookeeper and reload the collection. > > > > > > > > On 3/14/15, Zheng Lin Edwin Yeo <edwinye...@gmail.com> wrote: > > > 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 > > >> > > > >> > > > > > >