Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Solr create alias of aliases

Highlighted

Solr create alias of aliases

New Contributor

Hi,

I am trying to organize my solr collections as it follows:

1 - I have a real collection for each month of multiple years;

2 - I have an alias for each year that includes all the relevant months;

3 - I would like an alias that includes all years;

4 - I would like an alias that includes different kind of dataset of the previous step;

 

Since I cannot create an alias including aliases only, I created a real empty collection for creating the alias which includes all years (3rd step) and managed to make it works.

 

However I cannot manage to to reach the last step: although I can create the alias that wraps all datasets, if I try to make a query on this alias I get an error reporting that solr cannot find the alias of a year (the 2nd step) although this year is included in an alias included in the last one.

 

The Solr documentation reports:

"Aliasing allows you to create a single 'virtual' collection name that can point to one more real collections. You can update the alias on the fly."

 

Is there a way to create alias of aliases in Solr?

 

Thank you.

1 REPLY 1

Re: Solr create alias of aliases

Super Collaborator

As far as I know you cannot create alias of aliases.

Don't have an account?
Coming from Hortonworks? Activate your account here