Displaying 1 result from an estimated 1 matches for "db_w".
Did you mean:
db_pw
2015 Jul 26
1
Get term from document by position
...clude <cstring>
#include <fstream>
class MyText
{
public:
std::string text_str;
void set_string();
};
std::string database_dir="db_dir";
std::string query_string="extracellular microbe";
int
main(int argc, char **argv)
{
// indexing
Xapian::WritableDatabase db_w(database_dir, Xapian::DB_CREATE_OR_OVERWRITE);
MyText text_to_index;
text_to_index.set_string();
Xapian::TermGenerator indexer;
Xapian::Stem stemmer("english");
indexer.set_stemmer(stemmer);
Xapian::Document doc;
indexer.set_document(doc);
indexer.set_stemm...