On 5/6/2013 7:55 AM, Andre Bois-Crettez wrote: > Excellent idea ! > And it is possible to use collection aliasing with the CREATEALIAS to > make this transparent for the query side. > > ex. with 2 collections named : > collection_1 > collection_2 > > /collections?action=CREATEALIAS&name=collectionalias&collections=collection_1 > > "collectionalias" is now a virtual collection pointing to collection_1. > > Index on collection_2, then : > /collections?action=CREATEALIAS&name=collectionalias&collections=collection_2 > > "collectionalias" now is an alias to collection_2. > > http://wiki.apache.org/solr/SolrCloud#Managing_collections_via_the_Collections_API
Awesome idea, Andre! I was wondering whether you might have to delete the original alias before creating the new one, but a quick look at the issue for collection aliasing shows that this isn't the case. https://issues.apache.org/jira/browse/SOLR-4497 The wiki doesn't mention the DELETEALIAS action. I won't have time right now to update the wiki. Thanks, Shawn