Hi, You have used ! - not operator, so, the replicas would be created on all nodes not having that property value (typeahead)
Thanks On Wed, Apr 8, 2020, 4:21 PM saicharan.k...@spglobal.com < saicharan.k...@spglobal.com> wrote: > Hi there, > > We are trying to apply the following collection specific policy in solr > { > "set-policy": { > "generalpolicy": [ > { > "replica": "<2", > "shard": "#EACH", > "sysprop.key":"!typeahead", > "strict": "true" > } > ] > } > } > > And when we are trying to create a collection using the following CREATE > api > > > http://search-solr2-av.midevcld.spglobal.com:8983/solr/admin/collections?action=CREATE&name=generalcollection&numShards=1&replicationFactor=2&policy=generalpolicy > > > The replica's are spreading across other keys rather than being confined > to the key mentioned in the policy > > We have created the sysprop key during the node start-up by including > "-Dkey=typeahead" in user data script > > ________________________________ > > 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. >