Re: Update solr schema.xml in real time for Solr 4.10.1

2015-03-14 Thread Shawn Heisey
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

Re: Update solr schema.xml in real time for Solr 4.10.1

2015-03-14 Thread Nitin Solanki
Ok.. Got Zheng... Thanks a Lot.. On Sat, Mar 14, 2015 at 1:02 PM, Zheng Lin Edwin Yeo 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 sch

Re: Update solr schema.xml in real time for Solr 4.10.1

2015-03-14 Thread Zheng Lin Edwin Yeo
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 Cla

Re: Update solr schema.xml in real time for Solr 4.10.1

2015-03-14 Thread Nitin Solanki
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

Re: Update solr schema.xml in real time for Solr 4.10.1

2015-03-13 Thread Zheng Lin Edwin Yeo
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

Re: Update solr schema.xml in real time for Solr 4.10.1

2015-03-13 Thread Zheng Lin Edwin Yeo
Hi Nitin, To update the schema using Curl in Solr 5.0, we can use the following command if we are using ManagedIndexSchemaFactory: curl -X POST -H 'Content-type:application/json' --data-binary '{ "add-field" : { "name":"sell-by", "type":"tdate", "stored":true} }' http:

Re: Update solr schema.xml in real time for Solr 4.10.1

2015-03-12 Thread Erick Erickson
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

Re: Update solr schema.xml in real time for Solr 4.10.1

2015-03-12 Thread Shawn Heisey
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 ver

Re: Update solr schema.xml in real time for Solr 4.10.1

2015-03-12 Thread Nitin Solanki
Hi Zheng, *** I understand that in Solr 5.0, they provide a REST API to do real-time update of the schema using Curl ** *. Would please help me how to do this? I need to update both schema.xml and solrconfig.xml in Solr 5.0 in SolrCloud. Your help is appreciated.. *Thanks Again..* On Thu, Mar

Update solr schema.xml in real time for Solr 4.10.1

2015-03-12 Thread Zheng Lin Edwin Yeo
Hi, 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