Thanks Erick!

In addition to looking at TestCoreDiscovery.java, I also found 
TestSolrProperties.java to be useful.  My problems basically boiled down to my 
having not correctly set the cores up for discovery.  I had moved away from the 
old style solr.xml, but had not done it correctly.

Thanks again,
Rich

-----Original Message-----
From: Erick Erickson [mailto:erickerick...@gmail.com] 
Sent: Wednesday, July 22, 2015 10:51 AM
To: solr-user@lucene.apache.org
Subject: Re: Migrating junit tests from Solr 4.5.1 to Solr 5.2.1

Take a look at TestCoreDiscovery.java, it creates a bunch of cores and
tests loading them. You probably want to ignore anything about
transient cores in that file.

But... how are you creating cores? 5.x doesn't support defining
multiple cores in solr.xml, so that's the first thing you need to be
aware of.

Otherwise, exactly what are you seeing?

Best,
Erick

On Tue, Jul 21, 2015 at 8:49 AM, Rich Hume <rh...@identifix.com> wrote:
> I am migrating from Solr 4.5.1 to Solr 5.2.1 on a Windows platform.  I am 
> using multi-core, but not Solr cloud.  I am having issues with my suite of 
> junit tests.  My tests currently use code I found in SOLR-4502.
>
> I was wondering whether anyone could point me at best-practice examples of 
> multi-core junit tests for Solr 5.2.1?
>
> Thanks
> Rich
>

Reply via email to