diff --git a/solr/solr-ref-guide/src/migrate-to-policy-rule.adoc b/solr/solr-ref-guide/src/migrate-to-policy-rule.adoc index 6ad3c59f893..587147e6a38 100644 --- a/solr/solr-ref-guide/src/migrate-to-policy-rule.adoc +++ b/solr/solr-ref-guide/src/migrate-to-policy-rule.adoc @@ -18,7 +18,8 @@ Replica placement rules (legacy) are deprecated in favor of the new policy and preferences syntax (new). This document helps you to migrate your existing replica placement rules to the new syntax. -Every rule in the legacy framework can be expressed in the new syntax. Please refer to <> document for more details. + +Every rule in the legacy framework can be expressed in the new syntax. Please refer to <> document for more details. The following is the legacy syntax for a rule that limits maximum one replica for each shard in any Solr node @@ -34,9 +35,9 @@ The equivalent new syntax is {"replica":"<2","node":"#ANY","shard":"#EACH"} ---- -The new policy rules have to be created separately using an API call <> - +The new policy rules have to be created separately using an API call <> +[[rule-operators1]] == Rule Operators All the following operators can be directly used in the new policy syntax and they mean the same. @@ -46,6 +47,7 @@ All the following operators can be directly used in the new policy syntax and th * *less than (<)*: `tag:` - +[[less-than-5-cores]] === Create replicas in nodes with less than 5 cores only This rule uses the `replica` condition to define any number of replicas, but adds a pre-defined tag named `core` and uses operators for "less than 5". @@ -147,7 +153,7 @@ cores:<5 ---- {"cores":"<5", "node":"#ANY"} ---- - +[[do-not-create-on-host]] === Do not create any replicas in host 192.45.67.3 *legacy:* @@ -164,7 +170,7 @@ host:!192.45.67.3 {"replica": 0, "host":"192.45.67.3"} ---- - +[[defining-rules1]] == Defining Rules Rules are always defined in along with the collection in the legacy system. The new syntax allows you to specify rules globally as well as on a <> diff --git a/solr/solr-ref-guide/src/solrcloud-autoscaling-api.adoc b/solr/solr-ref-guide/src/solrcloud-autoscaling-api.adoc index c784ef4a888..edb6bd9cd3c 100644 --- a/solr/solr-ref-guide/src/solrcloud-autoscaling-api.adoc +++ b/solr/solr-ref-guide/src/solrcloud-autoscaling-api.adoc @@ -387,7 +387,7 @@ We can remove all cluster preferences by setting preferences to an empty list. "set-cluster-preferences": [] } ---- - +[[cluster-specific-policies]] === Create and Modify Cluster Policies Cluster policies are set using the `set-cluster-policy` command.