Book Image

Solr Cookbook - Third Edition

By : Rafal Kuc
Book Image

Solr Cookbook - Third Edition

By: Rafal Kuc

Overview of this book

Table of Contents (18 chapters)
Solr Cookbook Third Edition
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a collection on defined nodes


There are use cases where we want to create a collection only on some of the nodes. For example, we would like to have one collection created on other better machines, because we know that this collection will be heavier in terms of indexing and querying. The other collections can live on the smaller and worse performing nodes. In such cases, we still have all the collections in a single cluster, but we know that they will be placed on hardware we want them to be placed. This recipe will show you how to do this.

Getting ready

Before reading further, I advise you to read the Creating a new SolrCloud cluster and Having more than a single shard from a collection on a node recipes of this chapter. These recipes will show you how to create a new SolrCloud cluster. We also assume that ZooKeeper is running on 192.168.1.10 and is listening on port 2181 and that we already have four SolrCloud nodes running as a cluster. We also assume that we have a configuration...