Given a connection to Solr ( e.g. adminSolrConnection )
CoreAdminRequest.Create createCoreRequest = new CoreAdminRequest.Create();
createCoreRequest.setCoreName( coreName );
createCoreRequest.process( adminSolrConnection );

On 2022/05/25 21:25:09 Christopher Schultz wrote:
> All,
>
> I have a non-clustered/ZK Solr instance and I'd like to create a core
> using the Java SolrClient library. Is that currently possible? I only
> see methods for working with documents in the current core (selected
> when the client object is initially created, based upon the URL which
> contains the core name).
>
> I'm using Solr 7.7.3 and the vanilla SolrJ client library.
>
> Thanks,
> -chris
>

Reply via email to