In standalone, Solr will use core discovery to figure out what cores to load. Read more about it at https://solr.apache.org/guide/8_8/defining-core-properties.html In short, any sub folder below SOLR_HOME containg a core.properties file will be loaded as a core.
Jan > 18. mai 2021 kl. 13:10 skrev Steve Smith <[email protected]>: > > Hi all, > > I'm new to SOLR and am struggling with this aspect. > > How does SOLR know which cores to load when it starts? > > Our SOLR_HOME var is set to "/var/solr/data". > > There were 6 cores loaded before I stopped SOLR. - (opt/solr8-8.6.2/bin/solr > stop -p 8983) > > I then started SOLR with opt/solr8-8.6.2/bin/solr start. > > When I then went to the admin UI I can now only see 5 cores loaded. > > In the /var/solr/data folder there are many other cores (test stuff / junk ) > that are not being loaded when I start SOLR. I can see all the other hero > cores that have loaded, as well as the villain core that hasn't loaded. > > SOLRCore documentation says that SOLR will automatically find any cores in or > below SOLR_HOME which in our case I believe is /var/solr/data, so I am > stumped as to why it's not loading the other junk cores, why it's loading > these hero cores, and why it isn't loading the villain core. > > I don't think I can use the UI ADD Core option as it looks to me as if it > wants to create the core whereas the core already exists. > > Can anyone help me understand what's going on? Is there something like a > master config file I am missing that lists all the cores to be loaded? > > Can I add the villain core to the SOLR instance from a command line? > > Thanks in advance, > > Steve
