lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject [25/50] [abbrv] lucene-solr:master: SOLR-11327: MODIFYCOLLECTION should be able to edit policy attribute
Date Wed, 04 Oct 2017 08:25:17 GMT
SOLR-11327: MODIFYCOLLECTION should be able to edit policy attribute


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/a73ffff8
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/a73ffff8
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/a73ffff8

Branch: refs/heads/master
Commit: a73ffff8e374d28654c8fee55efbcc406742f5a3
Parents: f121de2
Author: Noble Paul <noble@apache.org>
Authored: Thu Sep 7 20:01:09 2017 +0930
Committer: Noble Paul <noble@apache.org>
Committed: Thu Sep 7 20:01:09 2017 +0930

----------------------------------------------------------------------
 solr/solr-ref-guide/src/collections-api.adoc                    | 3 +++
 solr/solrj/src/resources/apispec/collections.Commands.json      | 5 +++++
 .../apispec/collections.collection.Commands.modify.json         | 5 +++++
 3 files changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/a73ffff8/solr/solr-ref-guide/src/collections-api.adoc
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/collections-api.adoc b/solr/solr-ref-guide/src/collections-api.adoc
index 09d79635..1bb0201 100644
--- a/solr/solr-ref-guide/src/collections-api.adoc
+++ b/solr/solr-ref-guide/src/collections-api.adoc
@@ -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.
@@ -173,6 +175,7 @@ The attributes that can be modified are:
 * collection.configName
 * rule
 * snitch
+* policy
 +
 See the <<create,CREATE action>> section above for details on these attributes.
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/a73ffff8/solr/solrj/src/resources/apispec/collections.Commands.json
----------------------------------------------------------------------
diff --git a/solr/solrj/src/resources/apispec/collections.Commands.json b/solr/solrj/src/resources/apispec/collections.Commands.json
index b7444f6..2e3769b 100644
--- a/solr/solrj/src/resources/apispec/collections.Commands.json
+++ b/solr/solrj/src/resources/apispec/collections.Commands.json
@@ -101,6 +101,11 @@
             "type": "string"
           }
         },
+        "policy": {
+          "type": "string",
+          "documentation": "https://lucene.apache.org/solr/guide/solrcloud-autoscaling-policy-preferences.html",
+          "description": "Name of the collection-level policy"
+        },
         "properties": {
           "type": "object",
           "documentation": "https://lucene.apache.org/solr/guide/defining-core-properties.html",

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/a73ffff8/solr/solrj/src/resources/apispec/collections.collection.Commands.modify.json
----------------------------------------------------------------------
diff --git a/solr/solrj/src/resources/apispec/collections.collection.Commands.modify.json
b/solr/solrj/src/resources/apispec/collections.collection.Commands.modify.json
index f1115bc..658b4eb 100644
--- a/solr/solrj/src/resources/apispec/collections.collection.Commands.modify.json
+++ b/solr/solrj/src/resources/apispec/collections.collection.Commands.modify.json
@@ -19,6 +19,11 @@
         "type": "string"
       }
     },
+    "policy": {
+      "type": "string",
+      "documentation": "https://lucene.apache.org/solr/guide/solrcloud-autoscaling-policy-preferences.html",
+      "description": "Name of the collection-level policy"
+    },
     "autoAddReplicas": {
       "type": "boolean",
       "description": "When set to true, enables auto addition of replicas on shared file
systems (such as HDFS). See https://lucene.apache.org/solr/guide/running-solr-on-hdfs.html
for more details on settings and overrides."


Mime
View raw message