Please bear with me. I am new to Solr. I have searched all the existing posts
about this and could not find an answer. I wanted to know how do I go about
creating a 

SolrServer using EmbeddedSolrServer. I tried to initialize this several ways
but was unsuccesful. I do not have multi-core. I am using solrj 1.3. I
attempted to use the 

depracated methods as mentioned in the SolrJ documentation the following way
but it fails as well with unable to locate Core.


 SolrCore core = SolrCore.getSolrCore();
  SolrServer server = new EmbeddedSolrServer( core );

So far my installation is pretty basic with Solr running on Tomcat as per
instructions in the wiki. My solr home is outside of webapps folder i.e
"c:/tomcat-solr/solr". I am 

able to connect using CommonsHttpSolrServer("http://localhost:8080/solr";)
without a problem. The question in a nutshell is, how do I instantiate
EmbeddedSolrServer using  new EmbeddedSolrServer(CoreContainer
coreContainer, String coreName) ? Initializing CoreContainer appears to be
complicated when compared to SolrCore.getSolrCore() as per the examples. Is
there a simpler way to Initialize CoreContainer? Is a core(or CoreName)
necessary eventhough I don't use multi-core? Also, is it possible to
initialize EmbeddedSolrServer using spring? Thanks in advance for the help.


-- 
View this message in context: 
http://www.nabble.com/EmbeddedSolrServer-in-Single-Core-tp21383525p21383525.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to