convering matchDocs to match:matchDoc table