Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
363 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 Reply

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...