How to embed Apache Solr Cloud in your unit tests. Looking at the solr code base, i noticed they have tests for solr cloud cluster, so i thought of writing some tests using their classes.
mvn clean compile test
- creation of solr cloud cluster using 1 node and 1 zookeeper instance
- how to create a collection along with its configs
- conncecting to this solr cloud using solr cloud client i.e. using zookeeper url
- Embedded Solr Cloud is not the same as Embedded Solr Server.
- The tests create 2 directories 'SOLR_HOME' and 'ZK_DIR'. The test might fail if they exist, so simply delete them and tests will pass.