Re: no such core error with EmbeddedSolrServer

2012-01-06 Thread Erik Hatcher
Also note that an EmbeddedSolrServer is for a specific core, not for all cores (and thus solr.xml is not used). My hunch is that you need to point to the core's home directory, not to the parent of solr.xml. Erik On Jan 6, 2012, at 03:06 , Sven Maurmann wrote: Hi, from your

Re: no such core error with EmbeddedSolrServer

2012-01-06 Thread Phillip Rhodes
On Fri, Jan 6, 2012 at 3:06 AM, Sven Maurmann s...@kippdata.de wrote: Hi, from your snippets the reason is not completely clear. There are a number of reasons for not starting up the server. For example in case of a faulty configuration of the core (solrconfig.xml, schema.xml) the core

Re: no such core error with EmbeddedSolrServer

2012-01-06 Thread Phillip Rhodes
On Fri, Jan 6, 2012 at 8:06 AM, Erik Hatcher erik.hatc...@gmail.com wrote: Also note that an EmbeddedSolrServer is for a specific core, not for all cores (and thus solr.xml is not used).  My hunch is that you need to point to the core's home directory, not to the parent of solr.xml. Oh,

Re: no such core error with EmbeddedSolrServer

2012-01-06 Thread Yury Kats
On 1/6/2012 9:57 AM, Phillip Rhodes wrote: On Fri, Jan 6, 2012 at 3:06 AM, Sven Maurmann s...@kippdata.de wrote: Hi, from your snippets the reason is not completely clear. There are a number of reasons for not starting up the server. For example in case of a faulty configuration of the core

Re: no such core error with EmbeddedSolrServer

2012-01-06 Thread Phillip Rhodes
2012/1/6 Yury Kats yuryk...@yahoo.com: Have you tried passing core name (collection1) to the c'tor, instead of the empty string? Yep, but that gives the same error (with the core name appended) such as no such core: collection1 Phil

Re: no such core error with EmbeddedSolrServer

2012-01-06 Thread Yury Kats
On 1/6/2012 10:19 AM, Phillip Rhodes wrote: 2012/1/6 Yury Kats yuryk...@yahoo.com: Have you tried passing core name (collection1) to the c'tor, instead of the empty string? Yep, but that gives the same error (with the core name appended) such as no such core: collection1 That probably

Re: no such core error with EmbeddedSolrServer

2012-01-06 Thread Erik Hatcher
On Jan 6, 2012, at 10:46 , Yury Kats wrote: On 1/6/2012 10:19 AM, Phillip Rhodes wrote: 2012/1/6 Yury Kats yuryk...@yahoo.com: Have you tried passing core name (collection1) to the c'tor, instead of the empty string? Yep, but that gives the same error (with the core name appended) such

Re: no such core error with EmbeddedSolrServer

2012-01-06 Thread Phillip Rhodes
2012/1/6 Yury Kats yuryk...@yahoo.com: That probably means the home is not set properly, so it can't find solr.xml Well, all the docs mention doing is this bit, which I have: System.setProperty('solr.solr.home', '/usr/servers/solr/apache-solr-3.5.0/example/heceta'); I've also tried it the

Re: no such core error with EmbeddedSolrServer

2012-01-06 Thread Phillip Rhodes
On Fri, Jan 6, 2012 at 11:03 AM, Erik Hatcher erik.hatc...@gmail.com wrote: Again, EmbeddedSolrServer (unless I'm gravely mistaken!) doesn't do multicore.  It's for a single core.  If you want multiple cores supported... created multiple EmbeddedSolrServer instances.   You point the

Re: no such core error with EmbeddedSolrServer

2012-01-06 Thread Christopher Childs
Multicore does work with EmbeddedSolrServer. It's what we use in our application. solr.xml is also relevant for configuring the cores. We do not do it in quite the same manner that Phillip is describing, though. Our CoreContainer is initialized by SolrDispatchFilter. After the core container

Re: no such core error with EmbeddedSolrServer

2012-01-06 Thread Phillip Rhodes
On Fri, Jan 6, 2012 at 11:28 AM, Christopher Childs cjchi...@me.com wrote: Multicore does work with EmbeddedSolrServer. It's what we use in our application. solr.xml is also relevant for configuring the cores. We do not do it in quite the same manner that Phillip is describing, though. Our