On 6/4/2015 11:39 PM, Zheng Lin Edwin Yeo wrote: > The reason is we want to allow flexibility to change the collection name > based on the needs of the users. > > For the collection aliasing, does this mean that the user will reference > the collection by the alias name instead of the collection name, but at the > backend we will still reference by the collection name? Whenever the user > wants to change the name, they'll just change the alias name, and leave the > collection name intact?
The users can change the collection name? That sounds like a recipe for disaster. Collection aliases are a way for an admin to do index swapping in SolrCloud so that new indexes can be built and then swapped with the old index. You build a collection named something like foo20150605 and then set up an alias named "foo" that points to that collection. Your program doesn't need to know about the real collection name, the alias redirects all activity from the well-known name to the actual collection, and that mapping can change anytime it needs to. Thanks, Shawn