[ 
https://issues.apache.org/jira/browse/SOLR-11939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16351708#comment-16351708
 ] 

Alexander S. commented on SOLR-11939:
-------------------------------------

Hi Varun,

I am referring to 
[https://lucene.apache.org/solr/guide/6_6/collections-api.html]
|property._name_=_value_|string|No| |Set core property _name_ to _value_. See 
the section [Defining 
core.properties|https://lucene.apache.org/solr/guide/6_6/defining-core-properties.html#defining-core-properties]
 for details on supported properties and values.|

All shards and replicas are created on separate Solr instances so a single name 
for all cores would work in this case.

Well, I started working on core names mostly because the WEB UI (at least in 
5.3.1) doesn't work with collections so I wasn't aware that query requests 
would work with collection names also. Core name doesn't matter that much then 
and we're fine with generic core names.

It would be good to mention this in the docs somewhere.

Best,

Alexander S.

> 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
(v7.6.3#76005)

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

Reply via email to