lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tuedel <>
Subject Re: RemoveDuplicatesTokenFilterFactory to avoid import duplicate values in multivalued field
Date Mon, 01 Jul 2013 12:15:06 GMT
Hey, i have tried to make use of the UniqFieldsUpdateProcessorFactory in
order to achieve distinct values in multivalued fields. Example below:

<updateRequestProcessorChain name="uniq_fields">
     <lst name="fields">
   <processor class="solr.RunUpdateProcessorFactory" />

 <requestHandler name="/update" class="solr.UpdateRequestHandler">    
   <lst name="defaults">
      <str name="update.chain">uniq_fields</str>

However the data being is indexed one by one. This may happen, since a
document may will get an additional tag in a future update. Unfortunately in
order to ensure not having any duplicate tags, i was hoping, the
UpdateProcessorFactory is doing what i want to achieve. In order to actually
add a tag, i am sending an 

"tag_type" :{"add":"foo"}, which still adds the tag, without questioning if
its already part of the field. How may i be able to achieve distinct values
on solr side?!

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message