GIves a warning with GCC 4.7.2 because it shadows the Xapian::weight typedef - I've renamed this to `wt` elsewhere.