Re: Create a core via SolrClient, single server

2022-06-01 Thread Shawn Heisey
On 6/1/2022 6:31 PM, Shawn Heisey wrote: The end result is the same ... except in the second case, it references the configset by name, which will be in the created core.properties file.  If you were to change the config in the configset directory and then reload each core, test_core would no

Re: Create a core via SolrClient, single server

2022-06-01 Thread Shawn Heisey
On 6/1/2022 3:34 PM, Christopher Schultz wrote: So I tried this with configSet=_default and I /did/ get a core created. I didn't get the same thing I got from the CLI: This is what I get from "solr create -c test_core": Using bin/solr to create a core does it in multiple steps.  It creates t

Re: Create a core via SolrClient, single server

2022-06-01 Thread Christopher Schultz
Shawn, On 6/1/22 16:34, Christopher Schultz wrote: Shawn, On 6/1/22 15:18, Shawn Heisey wrote: On 6/1/2022 11:41 AM, Christopher Schultz wrote: How can I provide the schema for the core once it's been created? Can I use the API for that, or do I have to resort to pushing the config file dire

Re: Create a core via SolrClient, single server

2022-06-01 Thread Christopher Schultz
Shawn, On 6/1/22 15:18, Shawn Heisey wrote: On 6/1/2022 11:41 AM, Christopher Schultz wrote: How can I provide the schema for the core once it's been created? Can I use the API for that, or do I have to resort to pushing the config file directly similar to these kindx of curl commands: curl

Re: Create a core via SolrClient, single server

2022-06-01 Thread Shawn Heisey
On 6/1/2022 11:41 AM, Christopher Schultz wrote: How can I provide the schema for the core once it's been created? Can I use the API for that, or do I have to resort to pushing the config file directly similar to these kindx of curl commands: curl -d "{ ... config }" \    ${SCHEME}://localhost

Re: Create a core via SolrClient, single server

2022-06-01 Thread Christopher Schultz
Clemens, On 6/1/22 13:41, Christopher Schultz wrote: Clemens, On 5/30/22 02:02, Clemens WYSS (Helbling Technik) wrote: Given a connection to Solr ( e.g. adminSolrConnection ) CoreAdminRequest.Create createCoreRequest = new CoreAdminRequest.Create(); createCoreRequest.setCoreName( coreName );

Re: Create a core via SolrClient, single server

2022-06-01 Thread Christopher Schultz
Clemens, On 5/30/22 02:02, Clemens WYSS (Helbling Technik) wrote: Given a connection to Solr ( e.g. adminSolrConnection ) CoreAdminRequest.Create createCoreRequest = new CoreAdminRequest.Create(); createCoreRequest.setCoreName( coreName ); createCoreRequest.process( adminSolrConnection ); What

RE: Create a core via SolrClient, single server

2022-05-29 Thread Clemens WYSS (Helbling Technik)
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-

Re: Create a core via SolrClient, single server

2022-05-25 Thread Shawn Heisey
On 5/25/2022 3:25 PM, Christopher Schultz wrote: 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 c