diff options
| author | Carl Worth <cworth@cworth.org> | 2009-10-13 13:18:32 -0700 |
|---|---|---|
| committer | Carl Worth <cworth@cworth.org> | 2009-10-13 13:18:32 -0700 |
| commit | 1a6d88697b8a993f9f8fcb0371b978c6d4bcb4c6 (patch) | |
| tree | ff148f66ec0cab96e8d7bb583ed6eee8059cf912 | |
| parent | ea96cb694f83ca00db9516bd3cb7724fb63a7854 (diff) | |
Include document data in the dump.
At the same time, I've started hacking up sup with a new NotmuchIndex
class in the place of the previous XapianIndex class. The new class
stores only the source_info field in the document data, (rather than
a serialized ruby hash with a bunch of data that can be found in the
original message).
Eventually, I plan to replace source_info with a relative filename for
the message, (or even a list of filenames for when multiple messages
in the database share a common message ID).
| -rw-r--r-- | xapian-dump.cc | 12 |
1 files changed, 6 insertions, 6 deletions
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 <cstdlib> @@ -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); |
