As far as I know, No.

But why don't you keep another column 'source_final' and you populate it
with value from sourc1 or sourc2 depending on what has value(Look at
transformer, may be script transformer) . then in schema.xml

  <copyField source="source_final" dest="dest"/>

 

Thanks

James

http://www.click2money.com

 

 

From: Blargy [via Lucene]
[mailto:ml-node+722785-1511121936-124...@n3.nabble.com] 
Sent: Thursday, April 15, 2010 5:54 PM
To: caman
Subject: CopyField

 

Is there anyway to instruct copy field overwrite an existing field, or only
accept the first one? 

  <copyField source="source1" dest="dest"/> 
  <copyField source="source2" dest="dest"/> 

Basically I'm want to copy source1 to dest (if it exists). If source1 doesnt
exist then copy source2 into dest. 

Is this possible? 

  _____  

View message @ http://n3.nabble.com/CopyField-tp722785p722785.html 
To start a new topic under Solr - User, email
ml-node+472068-464289649-124...@n3.nabble.com 
To unsubscribe from Solr - User, click
< (link removed) 
yc3R1ZmZAZ21haWwuY29tfDQ3MjA2OHwtOTM0OTI1NzEx>  here. 

 


-- 
View this message in context: 
http://n3.nabble.com/CopyField-tp722785p722800.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to