You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org> on 2019/02/26 23:21:00 UTC
[jira] [Created] (SOLR-13273) Add a collection selector to policy
rules
Shalin Shekhar Mangar created SOLR-13273:
--------------------------------------------
Summary: Add a collection selector to policy rules
Key: SOLR-13273
URL: https://issues.apache.org/jira/browse/SOLR-13273
Project: Solr
Issue Type: Improvement
Security Level: Public (Default Security Level. Issues are Public)
Components: AutoScaling
Reporter: Shalin Shekhar Mangar
Fix For: 8.0, master (9.0)
Today, we must specify the exact collection name on which a policy rule is applied or omit it entirely in which case the rule matches all collections. In case a rule must apply to a subset of collections, before we create a new collection, we must copy over the rule with the collection name changed to the new collection.
It'd be nice to have a selector for collections based on the collection property.
For example:
{code}
{"replica": "#ALL", "collection":{"property_name":"property_value"}, "sysprop.node_type": "xyz"}
{code}
The above rule matches all collections which have {{property_name}} set to {{property_value}} as a collection property. This makes it possible to add just one rule and have it apply to all collections having the property.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org