On Wed, Aug 20, 2008 at 01:04:19AM -0300, Agustín wrote: > Is there any way to get which terms from that query matched a returned > document efficiently? This should be pretty efficient: Xapian::Enquire::get_matching_terms_begin() If you're finding that's too slow, a testcase would be useful. Cheers, Olly