You need to consult the "export_descr_unit.txt" file to see both the primary and secondary stats. Indeed, a spear unit using swords against cavalry lose their bonus, and conversely, a backup weapon that is a spear gains the bonus [and IIRC, Foresters are the only unit with a spear as a secondary...one has to wonder how they wear it while using the bow:inquisitive:)]
This is a pretty damn good summary of what everything in the descr_unit.txt file means:
http://www.twcenter.net/forums/showt...lete-EDU-Guide