On 4/8/2016 2:35 AM, Rohana Rajapakse wrote:
> Can someone please tell me how to create a temporary Solr server 
> programmatically for the use of Unit Tests? I was using EmbeddedSolrServer in 
> Solr 4.x. How do you do thi in Solr 6.x?

EmbeddedSolrServer still exists in 6.x.

There may be *minor* differences in usage -- you are upgrading two major
releases -- but if there are, they shouldn't be too hard to figure out.

https://www.dropbox.com/s/iokyb3wijtaz7xg/embeddedsolrserver.png?dl=0
https://lucene.apache.org/solr/6_0_0/solr-core/org/apache/solr/client/solrj/embedded/EmbeddedSolrServer.html

Thanks,
Shawn

Reply via email to