I am trying to index some documents for search engine in Solr. in my piece of code, here is a part that I do nit understand:
System.SetProperty("solr.solr.home", "/home/emre/solr");
CoreContainer.Initializer Initializer = new CoreContainer.Initializer();
what does CoreContainer do? what does the first line of the code mean?
I am assuming you are using
EmbeddedSolrServer
.solr.solr.home
sets where the solr is installed.you should read more about this here https://wiki.apache.org/solr/Solrj#EmbeddedSolrServer
Also just so that you know The use of EmbeddedSolrServer is not recommended.
Read here https://wiki.apache.org/solr/EmbeddedSolr