My level 1 paladin searched a ruin as his first action, killed two skeletons and found a helm with +int and +view. He got no experience for this. His second action was to search another ruin, killing its guardian (1 ghoul?) found a another crappy item and again received zero XP.
I really think heroes should get some XP for searching ruins, so I'm hoping this is a bug.