Yes, it is possible to copy from a field to another field that has no value.

In fact, that is the only kind of copy you should be doing unless the field is 
multivalued.

IOW, copy field is not “replace field”.

-- Jack Krupansky

From: Luís Portela Afonso 
Sent: Wednesday, August 07, 2013 7:22 PM
To: solr-user@lucene.apache.org 
Subject: SOLR Copy field if no value on destination

Hi, 

Is possible to copy a value of a field to another if the destination doesn't 
have value?
An example:
  a.. Indexing an rss 
  b.. The feed has the fields link and guid, but sometimes guid cannot be 
present in the feed 
  c.. I have a field that i will copy values with the name finalLink

Now i want to copy guid to finalLink, but if guid has not value i want to copy 
link. 

My question is, is that possible just with the schema, Processors, 
solrconfig.xml, and the data-config?

Thanks a lot

Reply via email to