Re: Renaming a collection

2016-12-13 Thread Zheng Lin Edwin Yeo
ename action in the Collections API. > > No. There is no rename functionality. The workaround is to use the > alias feature, which Erick mentioned. Renaming a collection could be > done with a significant amount of manual editing, both in the relevant > nodes and in zookeepe

Re: Renaming a collection

2016-12-13 Thread Shawn Heisey
tioned. Renaming a collection could be done with a significant amount of manual editing, both in the relevant nodes and in zookeeper. If you want to try this, I strongly recommend that you shut down the relevant Solr instances. As you can might imagine, it would be highly disruptive. > I read from he

Re: Renaming a collection

2016-12-13 Thread Erick Erickson
Why not just use a collection alias? Best, Erick On Tue, Dec 13, 2016 at 7:38 AM, Zheng Lin Edwin Yeo wrote: > Hi, > > Is it possible to rename a collection without using a collection API? I > could not find any rename action in the Collections API. > > I read from here > http://stackoverflow.co

Renaming a collection

2016-12-13 Thread Zheng Lin Edwin Yeo
Hi, Is it possible to rename a collection without using a collection API? I could not find any rename action in the Collections API. I read from here http://stackoverflow.com/questions/34889307/how-can-i-rename-a-core-created-in-solr that we can use action=RENAME http://localhost:8983/solr/admi

Re: Renaming a collection

2016-05-14 Thread Anil
Hi Arcadius, Yeah.. i was using that. i am trying to understand if there is a way to rename collection name. Thanks for the response. Regards, Anil On 14 May 2016 at 16:53, Arcadius Ahouansou wrote: > Hi Anil. > You may want to look at collection alias > > > https://cwiki.apache.org/confluenc

Re: Renaming a collection

2016-05-14 Thread Arcadius Ahouansou
Hi Anil. You may want to look at collection alias https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api4 When using alias, the name of the underlying collection should not really matter. Thanks. On 14 May 2016 at 10:58, Anil wrote: > Seems solr allows to rename

Re: Renaming a collection

2016-05-14 Thread Anil
Seems solr allows to rename the core only not the collection. On 14 May 2016 at 15:06, Anil wrote: > HI, > > Can we rename the collection ? > > if yes, action=rename with request path /admin/cores works ? Please > clarify. > > i tried following code.. but no luck. > > CloudSolrServer cloudSolrSe

Renaming a collection

2016-05-14 Thread Anil
HI, Can we rename the collection ? if yes, action=rename with request path /admin/cores works ? Please clarify. i tried following code.. but no luck. CloudSolrServer cloudSolrServer = new CloudSolrServer("localhost:2181/solr"); cloudSolrServer.setDefaultCollection("test-collection-2010"); Modif