Closed svanschalkwyk closed 4 years ago
When merging constant field to field with multiple instances as below, the output is
<meta name="p_similar_products">https://grocery.walmart.com</meta> <meta name="p_similar_products">/ip/Peeled-Baby-Cut-Carrots-2-lbs/10451316?athcpid=10451316&athpgid=similaritems&athcgid=null&athznid=null&athieid=null&athstid=CS014&athguid=090dc30f-848d-4305-9c08-37176357bce2&athancid=null&athena=true</meta> <meta name="p_similar_products">/ip/Marketside-Organic-Baby-Carrots-16-oz/51259199?athcpid=51259199&athpgid=similaritems&athcgid=null&athznid=null&athieid=null&athstid=CS014&athguid=090dc30f-848d-4305-9c08-37176357bce2&athancid=null&athena=true</meta> ...
<tagger class="com.norconex.importer.handler.tagger.impl.ConstantTagger"> <constant name="source">https://grocery.walmart.com</constant> </tagger> </preParseHandlers> <postParseHandlers> <tagger class="com.norconex.importer.handler.tagger.impl.MergeTagger"> <merge toField="p_similar_products" deleteFromFields="false" singleValue="false" singleValueSeparator=""> <fromFields>source,p_similar_products_temp</fromFields> </merge> </tagger>
What is your question/issue? On the surface, this looks good to me.
The constant isn't being added to the second field. I can, however, merge two dynamic fields. I will visit this again later when I need it.
When merging constant field to field with multiple instances as below, the output is