Re: Modify Schema - Schema API

2014-09-10 Thread Joseph Obernberger
Wow - that's really cool! Thank you! -Joe On Wed, Sep 10, 2014 at 12:29 PM, Anshum Gupta wrote: > You don't need to bring down the shards/collections, instead here's what > you can do: > * Retain the filename ("managed_schema", if you didn't change the default > resource name). > * Edit the fi

Re: Modify Schema - Schema API

2014-09-10 Thread Anshum Gupta
You don't need to bring down the shards/collections, instead here's what you can do: * Retain the filename ("managed_schema", if you didn't change the default resource name). * Edit the file locally * Upload it to replace the current zk file. * Reload the collection(s). * Reindex Here's another th

Re: Modify Schema - Schema API

2014-09-10 Thread Joseph Obernberger
Thank you - yes that was my question. I should have stated that it was for SolrCloud and hence a managed schema. Could I bring down the shards, edit the managed schema on zookeeper, fire the shards back up and re-index? -Joe On Wed, Sep 10, 2014 at 11:50 AM, Anshum Gupta wrote: > Hi Joseph, >

Re: Modify Schema - Schema API

2014-09-10 Thread Anshum Gupta
Hi Joseph, It isn't supported by an exiting REST API (if that was your question) but you can always edit the schema manually (if it isn't managed), upload the new schema and reload the collections (or cores in case of non-SolrCloud mode). Do remember that changing the field type might require you

Modify Schema - Schema API

2014-09-10 Thread Joseph Obernberger
In addition to adding new fields to the schema, is there a way to modify an existing field? If I created a field called userID as a long, but decided later that it should be a string? Thank you! -Joe