lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomer Levi <>
Subject RE: Ignoring Duplicates in Multivalue Field
Date Mon, 03 Nov 2014 09:19:52 GMT
Hi Ahmet,
When I add the RunUpdateProcessorFactory Solr didn't remove any duplications.
Any other idea?

-----Original Message-----
From: Ahmet Arslan [] 
Sent: Monday, November 03, 2014 1:35 AM
Subject: Re: Ignoring Duplicates in Multivalue Field

Hi Tomer,

What happens when you add   <processor class="solr.RunUpdateProcessorFactory" /> to
your chain?


On Sunday, November 2, 2014 1:22 PM, Tomer Levi <> wrote:

I’m trying to make my “update” request handler ignore multivalue duplications in updates.
To make my use case clear, let’s assume my index already contains a document like:
 “myMultValueField”: [“1”,”2”,”3”]

Later I would like to send an update like:
   myMultValueField” {“add”:”2”}

How can I make the update request handler understand that “2” already exist and ignore
I tried to add update chain below but it didn’t work for me.

<updateRequestProcessorChain name="uniq-fields">
                   <processor class="solr.UniqFieldsUpdateProcessorFactory">
                                <str name="fieldRegex"> myMultValueField </str>

And add it to my requestHandler:
<requestHandler name="/update" class="solr.UpdateRequestHandler">       
           <lst name="defaults">
             <str name="update.chain">uniq-fields</str>

Tomer Levi 
Software Engineer  
Big Data Group 
Product & Technology Unit 
(T) +972 (9) 775-2693   
View raw message