In addition to creating a new collection with the API exposed by SolrCloud, we are also allowed to use two additional operations. The first is to delete our collection and the second one is to reload the whole collection. Along with the ability to create new collections, we are able to dynamically manage our cluster. This recipe will show you how to use the delete
and reload
operations and where they can be useful.
The content of this recipe is based on the Setting up two collections inside a single cluster recipe in this chapter. Please read it before continuing.
I assume that we already have two collection deployed on our cluster –bookscollection
and userscollection
– the same ones that we configured in the Setting up two collections inside a single cluster recipe in this chapter. So our cluster view looks similar to the following screenshot:
First, let's delete one of the collections –
userscollection
. To do this, we send the...