Get matching terms for some document. document can be either a Xapian::DocID or a Xapian::MSetIterator
[Validate]