Sorry,
I found the error myself..I need to specify configName as paramete rof
setCollectionConfigName():
      createRequest.setCollectionConfigName(configName);

Best,
Flavio


On Wed, Jan 15, 2014 at 4:26 PM, Flavio Pompermaier <pomperma...@okkam.it>wrote:

> Hi to everybody,
>
> I'm trying to create a collection programmatically instead of doing via
> http.
> Is that possible? I found around to use something like
>
> CoreAdminRequest.Create createRequest = new CoreAdminRequest.Create();
>   createRequest.setCoreName(coreName);
> createRequest.setCollectionConfigName(collectionName);
> createRequest.setConfigName(configName);
>  createRequest.setNumShards(1);
> createRequest.process(solrServer);
>
> But:
> 1) I don't want to specify any core name (like with the http request)
>  2) it doesn't work
>
> Best,
> Flavio
>

Reply via email to