Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
375 views
in Technique[技术] by (71.8m points)

elasticsearch - Apache Solr Cloud - One aliases for Multiple Collection

We have 4 collection in Solr Cloud (6.6.6). All of these have same schema and hence same type of content. When query, we have to specify each collection name one by one in the query parameters. Is it possible to create a aliases (or something like this) that can route traffic to all collections at bottom level. Due to some technical reasons, we cannot use multiple shards.

It is more like mailing list where a mail is sent to many (mailing-list) users.

question from:https://stackoverflow.com/questions/65932313/apache-solr-cloud-one-aliases-for-multiple-collection

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can create a alias for multiple collection.

Below is the way you create an alias for multiple collection.

http://localhost:8983/solr/admin/collections?action=CREATEALIAS&name=testalias&collections=collection1,collection2&wt=xml

Please refer the solr documentation for more details. Collection Alias


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...