I want to avoid duplicate values in one multivalued field.

i am using dataimport handler to import data,  the particular multivalued
field are being filled from xml source. now that xml has duplicate values,
but i want to have unique valued in this multivalued field.

e.g. xml
<data>
     a1 
     b1 
     a1 
     a1 
</data>

i have added RemoveDuplicatesTokenFilterFactory in data type of the field,
in index analyzer.
still it gives below o/p.

<arr name="field">
  <str>a1</str>
  <str>b1</str>
  <str>a1</str>
  <str>a1</str>
</arr>

i am using solr 3.5.

how can i avoid importing duplicate values in the field?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-to-use-RemoveDuplicatesTokenFilterFactory-tp4029004.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to