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/04/08 10:06:35 UTC

requesting help to solve an issue

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.

Re: requesting help to solve an issue

Posted by Sandeep Dharembra <sa...@gmail.com>.
The property feature didn't work for me. I wanted to spawn Tlog types on
certain nodes and pull on others. I started nodes with a type key with
values TLOG and PULL but that didn't work

I didn't probe further but followed a workaround with starting solr on a
certain port where I wanted tlogs and another port where I wanted pull
types. Then set the policies accordingly and it is working for me.

You can try something similar if you like or if someone else replies, I can
also benefit from it.

Thanks,
Sandeep

On Thu, Apr 9, 2020, 10:36 AM saicharan.kota@spglobal.com <
saicharan.kota@spglobal.com> wrote:

> Hi,
> That’s not happening the replicas are created even on property
> value-typeahead
> Thanks.
>
>
> -----Original Message-----
> From: Sandeep Dharembra <sa...@gmail.com>
> Sent: Wednesday, April 08, 2020 8:23 PM
> To: solr-user@lucene.apache.org
> Subject: Re: requesting help to solve an issue
>
> 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.kota@spglobal.com <
> saicharan.kota@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/collectio
> > ns?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.
> >
>
> ________________________________
>
> 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.
>

RE: requesting help to solve an issue

Posted by "saicharan.kota@spglobal.com" <sa...@spglobal.com>.
Hi,
That’s not happening the replicas are created even on property value-typeahead
Thanks.


-----Original Message-----
From: Sandeep Dharembra <sa...@gmail.com>
Sent: Wednesday, April 08, 2020 8:23 PM
To: solr-user@lucene.apache.org
Subject: Re: requesting help to solve an issue

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.kota@spglobal.com < saicharan.kota@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/collectio
> ns?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.
>

________________________________

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.

Re: requesting help to solve an issue

Posted by Sandeep Dharembra <sa...@gmail.com>.
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.kota@spglobal.com <
saicharan.kota@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.
>