projects
/
notmuch.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
test: test format version difference between v2 and v3
[notmuch.git]
/
test
/
ghost-report.cc
1
#include <iostream>
2
#include <cstdlib>
3
#include <xapian.h>
4
5
int main(int argc, char **argv) {
6
7
if (argc < 2) {
8
std::cerr << "usage: ghost-report xapian-dir" << std::endl;
9
exit(1);
10
}
11
12
Xapian::Database db(argv[1]);
13
std::cout << db.get_termfreq("Tghost") << std::endl;
14
}