RE: EmbeddedSolrServer No such core: collection1

2015-07-08 Thread Chaushu, Shani
Hi, My problem was that I didn't had core.properties file, so it couldn't create the core. Thanks for the help Shani -Original Message- From: Upayavira [mailto:u...@odoko.co.uk] Sent: Sunday, July 05, 2015 18:25 To: solr-user@lucene.apache.org Subject: Re: EmbeddedSolrServ

Re: EmbeddedSolrServer No such core: collection1

2015-07-05 Thread Upayavira
Hi Shani, What version of Solr are you using? The instructions you quote look like they are for something like <4.4 from what you have written below. The below is cloned from one of my projects, and hacked without testing, but I hope it gives you the idea of how it can be done. public SolrServ

EmbeddedSolrServer No such core: collection1

2015-07-05 Thread Chaushu, Shani
Hi, I'm using EmbeddedSolrServer for testing the solr. I went step by step in this instuctions (for solr 4) https://wiki.searchtechnologies.com/index.php/Unit_Testing_with_Embedded_Solr I can see that the config loaded, but when I try to put document, the error I get is: org.apache.solr.common.S