lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From caman <aboxfortheotherst...@gmail.com>
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"/>

 

Thanks

James

http://www.click2money.com

 

 

From: Blargy [via Lucene]
[mailto:ml-node+722785-1511121936-124354@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-124354@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.

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