You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Mónica Marrero <mo...@europeana.eu> on 2023/10/16 10:50:40 UTC

Remove duplicates in destination of copy field

Dear community,

We have duplicated content in some multi-valued fields used as destination
of the copy field clause. I have tested the
*UniqFieldsUpdateProcessorFactory* to see if it would remove this
duplicated content automatically, but it does not work for the copied
content.

For example, if I have the *UniqFieldsUpdateProcessorFactory* applied to
*field1*, *field2* and *field3*, *field3* is the copy field destination of
*field1* and *field2*, and I add *field1*=c1, c2, c1 and *field2*=c2, c3
,c3, then the result will be: *field1*=c1,c2, *field2*=c2,c3, and *field3*
=c1,c2,c2,c3.

Do you know any option to do this in Solr?

Best,

Mónica

-- 
Disclaimer: This email and any files transmitted with it are confidential 
and intended solely for the use of the individual or entity to whom they 
are
addressed. If you have received this email in error please notify the 
system manager. If you are not the named addressee you should not 
disseminate,
distribute or copy this email. Please notify the sender 
immediately by email if you have received this email by mistake and delete 
this email from your
system.

Re: Remove duplicates in destination of copy field

Posted by Mónica Marrero <mo...@europeana.eu>.
Thank you, Hoss. It works well.

Best,

Mónica

On Fri, 20 Oct 2023 at 20:55, Chris Hostetter <ho...@fucit.org>
wrote:

>
> copyField -- at a schema level -- is a very low level operation that
> happens at the moment the documents are being added to the index (long
> after he update processor chains are run)
>
> More complicated logic and/around copying values from one field to another
> as part of an update processor chain can be done using the
> CloneFieldUpdateProcessorFactory
>
>
>
> -Hoss
> http://www.lucidworks.com/
>

-- 
Disclaimer: This email and any files transmitted with it are confidential 
and intended solely for the use of the individual or entity to whom they 
are
addressed. If you have received this email in error please notify the 
system manager. If you are not the named addressee you should not 
disseminate,
distribute or copy this email. Please notify the sender 
immediately by email if you have received this email by mistake and delete 
this email from your
system.

Re: Remove duplicates in destination of copy field

Posted by Chris Hostetter <ho...@fucit.org>.
copyField -- at a schema level -- is a very low level operation that 
happens at the moment the documents are being added to the index (long 
after he update processor chains are run)

More complicated logic and/around copying values from one field to another 
as part of an update processor chain can be done using the 
CloneFieldUpdateProcessorFactory



-Hoss
http://www.lucidworks.com/