X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=xapian-dump.cc;h=9000567c8dead965005c05effd20c3e45f415af4;hp=b28c274c7d475623e1f59e9d7360ed8bab9c2733;hb=1a6d88697b8a993f9f8fcb0371b978c6d4bcb4c6;hpb=ea96cb694f83ca00db9516bd3cb7724fb63a7854 diff --git a/xapian-dump.cc b/xapian-dump.cc index b28c274c..9000567c 100644 --- a/xapian-dump.cc +++ b/xapian-dump.cc @@ -24,12 +24,9 @@ * * And for each document ID: * - * All terms - * All values - * - * Things not yet dumped include: - * - * Data associated with a document. + * Document data + * All document terms + * All document values */ #include @@ -101,6 +98,9 @@ print_document (Xapian::Database db, Xapian::docid id) doc = db.get_document (id); + printf ("Data:\n"); + cout << "\t" << doc.get_data () << endl; + print_document_terms (doc); print_document_values (doc);