You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "saicharan.kota@spglobal.com" <sa...@spglobal.com> on 2020/05/01 08:34:59 UTC

How to use percentage in collection specific policy

Hello,

I was trying to use a collection specific policy with sysprop and percentage for replica

{
    "set-policy": {
        "generalpolicy": [
            {
                "replica": "33%",
                "shard": "#EACH",
                "sysprop.key": "general"
            }
        ]
    }
}

But when I am trying to create  a collection

http://search-solr2-av.midevcld.spglobal.com:8983/solr/admin/collections?action=CREATE&name=generalcollection&numShards=6&replicationFactor=3&policy=generalpolicy&maxShardsPerNode=6

its violating the sysprop.key parameter

Thanks,
Charan

________________________________

The information contained in this message is intended only for the recipient, and may be a confidential attorney-client communication or may otherwise be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, please be aware that any dissemination or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the message and deleting it from your computer. S&P Global Inc. reserves the right, subject to applicable local law, to monitor, review and process the content of any electronic message or information sent to or from S&P Global Inc. e-mail addresses without informing the sender or recipient of the message. By sending electronic message or information to S&P Global Inc. e-mail addresses you, as the sender, are consenting to S&P Global Inc. processing any of your personal data therein.