specifying 'policy' during collection creation

This commit is contained in:
Noble Paul 2017-09-06 18:51:20 +09:30
parent 1d31370577
commit 2d8aaa3dcf
2 changed files with 3 additions and 0 deletions

View File

@ -109,6 +109,8 @@ Replica placement rules. See the section <<rule-based-replica-placement.adoc#rul
`snitch`::
Details of the snitch provider. See the section <<rule-based-replica-placement.adoc#rule-based-replica-placement,Rule-based Replica Placement>> for details.
`policy`:: Name of the collection-level policy. See <<solrcloud-autoscaling-policy-preferences.adoc#collection-specific-policy, Defining Collection-Specific Policies >> for details
=== CREATE Response
The response will include the status of the request and the new core names. If the status is anything other than "success", an error message will explain why the request failed.

View File

@ -186,6 +186,7 @@ Place all replicas in nodes with freedisk more than 500GB when possible. Here we
[source,json]
{"replica": 0, "freedisk": "<500", "strict" : false}
[[collection-specific-policy]]
== Defining Collection-Specific Policies
By default, the cluster policy, if it exists, is used automatically for all collections in the cluster. However, we can create named policies which can be attached to a collection at the time of its creation by specifying the policy name along with a `policy` parameter.