examples/quest.cc File Reference

#include <config.h>
#include <xapian.h>
#include <stdlib.h>
#include <iostream>
#include "gnu_getopt.h"

Include dependency graph for quest.cc:

Go to the source code of this file.

Defines

#define PROG_NAME   "quest"
#define PROG_DESC   "Xapian command line search tool"

Functions

static void show_usage ()
int main (int argc, char **argv)

Variables

static const char * sw []


Define Documentation

#define PROG_NAME   "quest"

Definition at line 33 of file quest.cc.

#define PROG_DESC   "Xapian command line search tool"

Definition at line 34 of file quest.cc.


Function Documentation

static void show_usage (  )  [static]

Definition at line 49 of file quest.cc.

References PROG_NAME.

int main ( int  argc,
char **  argv 
)

Definition at line 62 of file quest.cc.

References Xapian::Database::add_database(), atoi(), Xapian::MSet::begin(), Xapian::MSet::end(), Xapian::Stem::get_available_languages(), Xapian::Error::get_description(), Xapian::Query::get_description(), Xapian::Enquire::get_mset(), Xapian::Error::get_msg(), gnu_getopt_long(), long_opts, no_argument, Xapian::Query::OP_OR, optarg, optind, opts, PACKAGE_STRING, Xapian::QueryParser::parse_query(), PROG_DESC, PROG_NAME, query(), required_argument, Xapian::QueryParser::set_database(), Xapian::QueryParser::set_default_op(), Xapian::Enquire::set_query(), Xapian::QueryParser::set_stemmer(), Xapian::QueryParser::set_stemming_strategy(), Xapian::QueryParser::set_stopper(), show_usage(), Xapian::QueryParser::STEM_SOME, stemmer, and sw.


Variable Documentation

const char* sw[] [static]

Initial value:

 {
    "a", "about", "an", "and", "are", "as", "at",
    "be", "by",
    "en",
    "for", "from",
    "how",
    "i", "in", "is", "it",
    "of", "on", "or",
    "that", "the", "this", "to",
    "was", "what", "when", "where", "which", "who", "why", "will", "with"
}

Definition at line 37 of file quest.cc.

Referenced by main().


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