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 Doss <it...@gmail.com> on 2019/07/24 11:46:46 UTC

SOLR Atomic Update - String multiValued Field

HI,

I have a multiValued field of type String.

<field name="namelist" type="string"  indexed="true" stored="true"
multiValued="true"/>

I want to keep this list unique, so I am using atomic updates with
"add-distinct"

{"docid":123456,"namelist":{"add-distinct":["Adam","Jane"]}}

but this is not maintaining the expected uniqueness, am I doing something
wrong? Guide me please.

Thanks,
Doss.

Re: SOLR Atomic Update - String multiValued Field

Posted by Furkan KAMACI <fu...@gmail.com>.
Hi Doss,

What was existing value and what happens after you do atomic update?

Kind Regards,
Furkan KAMACI

On Wed, Jul 24, 2019 at 2:47 PM Doss <it...@gmail.com> wrote:

> HI,
>
> I have a multiValued field of type String.
>
> <field name="namelist" type="string"  indexed="true" stored="true"
> multiValued="true"/>
>
> I want to keep this list unique, so I am using atomic updates with
> "add-distinct"
>
> {"docid":123456,"namelist":{"add-distinct":["Adam","Jane"]}}
>
> but this is not maintaining the expected uniqueness, am I doing something
> wrong? Guide me please.
>
> Thanks,
> Doss.
>