xapian-core
1.4.20
|
Command line search tool using Xapian::QueryParser. More...
#include <config.h>
#include <xapian.h>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <iostream>
#include "gnu_getopt.h"
Go to the source code of this file.
Classes | |
struct | qp_flag |
struct | qp_op |
struct | wt |
Macros | |
#define | PROG_NAME "quest" |
#define | PROG_DESC "Xapian command line search tool" |
#define | INDENT " " |
Enumerations | |
enum | { WEIGHT_BB2, WEIGHT_BM25, WEIGHT_BM25PLUS, WEIGHT_BOOL, WEIGHT_COORD, WEIGHT_DLH, WEIGHT_DPH, WEIGHT_IFB2, WEIGHT_INEB2, WEIGHT_INL2, WEIGHT_LM, WEIGHT_PL2, WEIGHT_PL2PLUS, WEIGHT_TFIDF, WEIGHT_TRAD } |
Functions | |
static bool | operator< (const qp_flag &f1, const qp_flag &f2) |
static bool | operator< (const qp_op &f1, const qp_op &f2) |
static bool | operator< (const wt &f1, const wt &f2) |
static void | show_usage () |
static unsigned | decode_qp_flag (const char *s) |
static int | decode_qp_op (const char *s) |
static int | decode_wt (const char *s) |
int | main (int argc, char **argv) |
Variables | |
static const char *const | sw [] |
static const qp_flag | flag_tab [] |
const int | n_flag_tab = sizeof(flag_tab) / sizeof(flag_tab[0]) |
static const qp_op | op_tab [] |
const int | n_op_tab = sizeof(op_tab) / sizeof(op_tab[0]) |
static const wt | wt_tab [] |
const int | n_wt_tab = sizeof(wt_tab) / sizeof(wt_tab[0]) |
Command line search tool using Xapian::QueryParser.
Definition in file quest.cc.
#define INDENT " " |
Referenced by show_usage().
#define PROG_DESC "Xapian command line search tool" |
#define PROG_NAME "quest" |
Definition at line 36 of file quest.cc.
Referenced by main(), and show_usage().
anonymous enum |
|
static |
Definition at line 202 of file quest.cc.
References qp_flag::f, n_flag_tab, and qp_flag::s.
Referenced by main().
|
static |
|
static |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 235 of file quest.cc.
References Xapian::QueryParser::add_boolean_prefix(), Xapian::Database::add_database(), Xapian::QueryParser::add_prefix(), Xapian::MSet::begin(), decode_qp_flag(), decode_qp_op(), decode_wt(), Xapian::MSet::end(), option::flag, Xapian::QueryParser::FLAG_DEFAULT, Xapian::Stem::get_available_languages(), Xapian::QueryParser::get_corrected_query_string(), Xapian::Document::get_data(), Xapian::Error::get_description(), Xapian::Query::get_description(), Xapian::MSet::get_matches_estimated(), Xapian::MSet::get_matches_lower_bound(), Xapian::MSet::get_matches_upper_bound(), Xapian::Enquire::get_mset(), Xapian::Error::get_msg(), Xapian::MSet::get_termfreq(), Xapian::Query::get_terms_begin(), Xapian::Query::get_terms_end(), gnu_getopt_long(), no_argument, 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(), Xapian::Enquire::set_weighting_scheme(), show_usage(), Xapian::QueryParser::STEM_SOME, stemmer, sw, WEIGHT_BB2, WEIGHT_BM25, WEIGHT_BM25PLUS, WEIGHT_BOOL, WEIGHT_COORD, WEIGHT_DLH, WEIGHT_DPH, WEIGHT_IFB2, WEIGHT_INEB2, WEIGHT_INL2, WEIGHT_LM, WEIGHT_PL2, WEIGHT_PL2PLUS, WEIGHT_TFIDF, and WEIGHT_TRAD.
Definition at line 72 of file quest.cc.
References qp_flag::s.
|
static |
|
static |
Definition at line 70 of file quest.cc.
Referenced by decode_qp_flag(), and show_usage().
Definition at line 86 of file quest.cc.
Referenced by show_usage().
Definition at line 128 of file quest.cc.
Referenced by show_usage().
|
static |
|
static |
Definition at line 40 of file quest.cc.
Referenced by main().
|
static |