#include <config.h>#include <xapian.h>#include <cstdlib>#include <cstring>#include <iostream>#include "gnu_getopt.h"

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) |
| catch (const Xapian::Error &err) | |
Variables | |
| static const char * | sw [] |
| catch | ( | const Xapian::Error & | err | ) |
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 65 of file quest.cc.
References Xapian::QueryParser::add_boolean_prefix(), Xapian::Database::add_database(), Xapian::QueryParser::add_prefix(), Xapian::MSet::begin(), Xapian::MSet::end(), Xapian::QueryParser::FLAG_DEFAULT, Xapian::QueryParser::FLAG_SPELLING_CORRECTION, Xapian::Stem::get_available_languages(), Xapian::QueryParser::get_corrected_query_string(), Xapian::Document::get_data(), Xapian::Query::get_description(), Xapian::Enquire::get_mset(), gnu_getopt_long(), 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.
| static void show_usage | ( | ) | [static] |
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 38 of file quest.cc.
Referenced by main().