lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From caman <>
Subject RE: CopyField
Date Fri, 16 Apr 2010 01:06:05 GMT

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"/>






From: Blargy [via Lucene]
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 @ 
To start a new topic under Solr - User, email 
To unsubscribe from Solr - User, click
< (link removed) 
yc3R1ZmZAZ21haWwuY29tfDQ3MjA2OHwtOTM0OTI1NzEx>  here. 


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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message