This directory contains all Solr examples and config sets that are provided by default. Each example is self-contained in a separate directory. It contains a fully self-contained Solr installation. It has a sample configuration, some documents, and ZooKeeper data.
Solr provides the following sample data out of the box:
- films
- files
- exampledocs
Solr provides the following config sets:
- schemaless
- DIH
- techproducts
Let's look at one such directory structure of an out-of-the-box example of Solr cloud:
Here is the detailed directory structure of our out-of-the-box example of Solr cloud :
- The parent-level directory contains node1 and node2, stating that Solr has been started in cluster mode for this config set.
- Each node contains two folders, solr and logs.
- The solr folder contains two folders, test_shard1_replica_n1 and zoo_data. Since we have started Solr in clusters, it creates one replication folder, test_shard1_replica_n1. It contains the data folder and one file, core.properties, which has information about the other node.
- Apache Solr comes with embedded ZooKeeper. zoo_data is the ZooKeeper data directory.
- In the solr directory, there are two configuration files: solr.xml and zoo.cfg.
- solr.xml has some global configuration options that apply to all or defined cores.
- zoo.cfg contains the ZooKeeper-related files.
Let's look at all the configuration files that we would be using on a day-to-day basis.