Varun Thacker commented on SOLR-11939:

Hi Alexander ,


When you say there is discrepancy b/w the docs and the API which docs are you 
referring to? Anything from [http://lucene.apache.org/solr/guide/] ? 



In general since you are creating a 4 shard collection , internally the 
collections api will creates 1 replica per shard which internally is a core . 
"property.name" won't work since you can't pass all 4 names.

Perhaps if you use the add-replica command ( 
 )  you could specify the name but in general it's best if you let Solr pick a 
generic name. 


So unless you find anywhere in the solr ref guide that confused you to believe 
that you need to specify "property.name" I'd like to close out the Jira. 



> Collection API: property.name ignored when creating collections
> ---------------------------------------------------------------
>                 Key: SOLR-11939
>                 URL: https://issues.apache.org/jira/browse/SOLR-11939
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 5.3.1
>            Reporter: Alexander S.
>            Assignee: Varun Thacker
>            Priority: Major
> Trying to create a collection this way:
> {code:java}
> /solr/admin/collections?wt=json&action=CREATE&name=carmen-test&replicationFactor=1&numShards=4&shards=shard1,shard2,shard3,shard4&collection.configName=carmen&router.name=compositeId&property.name=carmen_test{code}
> This appears in the log:
> {code:java}
> OverseerCollectionProcessor.processMessage : create , {
>   "name":"carmen-test",
>   "fromApi":"true",
>   "replicationFactor":"1",
>   "collection.configName":"carmen",
>   "numShards":"4",
>   "shards":"shard1,shard2,shard3,shard4",
>   "stateFormat":"2",
>   "property.name":"carmen_test",
>   "router.name":"compositeId",
>   "operation":"create"}{code}
> But the resulting core name is *carmen-test_shard1_replica1* matching 
> "collection name" + sharn name + replica number.
> How can I set a custom core name when creating a collection?

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to