examples/simpleindex.cc File Reference

Index each paragraph of a text file as a Xapian document. More...

#include <xapian.h>
#include <iostream>
#include <string>
#include <stdlib.h>

Include dependency graph for simpleindex.cc:

Go to the source code of this file.

Functions

int main (int argc, char **argv)


Detailed Description

Index each paragraph of a text file as a Xapian document.

Definition in file simpleindex.cc.


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 31 of file simpleindex.cc.

References Xapian::WritableDatabase::add_document(), Xapian::DB_CREATE_OR_OPEN, Xapian::TermGenerator::index_text(), Xapian::TermGenerator::set_document(), Xapian::TermGenerator::set_stemmer(), and stemmer.


Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.