26 #ifndef XAPIAN_INCLUDED_ENQUIRE_H 27 #define XAPIAN_INCLUDED_ENQUIRE_H 29 #if !defined XAPIAN_IN_XAPIAN_H && !defined XAPIAN_LIB_BUILD 30 # error Never use <xapian/enquire.h> directly; include <xapian.h> instead. 72 void operator=(
const RSet &rset);
74 #ifdef XAPIAN_MOVE_SEMANTICS 113 std::string get_description()
const;
158 void operator=(
const Enquire & other);
160 #ifdef XAPIAN_MOVE_SEMANTICS 259 void clear_matchspies();
267 void set_weighting_scheme(
const Weight &weight_);
285 void set_expansion_scheme(
const std::string &eweightname_,
286 double expand_k_ = 1.0)
const;
380 void set_cutoff(
int percent_cutoff,
double weight_cutoff = 0);
386 void set_sort_by_relevance();
507 void set_time_limit(
double time_limit);
547 const RSet * omrset = 0,
583 return get_mset(first, maxitems, 0, omrset, mdecider);
595 static const int INCLUDE_QUERY_TERMS = 1;
605 static const int USE_EXACT_TERMFREQ = 2;
632 double min_wt = 0.0)
const;
649 return get_eset(maxitems, omrset, 0, edecider);
681 double min_wt = 0.0)
const) {
682 set_expansion_scheme(
"trad", k);
683 return get_eset(maxitems, rset, flags, edecider, min_wt);
751 std::string get_description()
const;
The Xapian namespace contains public interfaces for the Xapian library.
ESet get_eset(Xapian::termcount maxitems, const RSet &omrset, const Xapian::ExpandDecider *edecider) const
Get the expand set for the given rset.
This class is used to access a database, or a group of databases.
TermIterator get_matching_terms_end(Xapian::docid) const
End iterator corresponding to get_matching_terms_begin()
Abstract base class for match spies.
#define XAPIAN_DEPRECATED_EX(D)
Compiler attribute macros.
bool contains(const Xapian::MSetIterator &i) const
Test if a given document in the relevance set.
Define XAPIAN_DEPRECATED() and related macros.
Class representing a list of search results.
TermIterator get_matching_terms_end(const MSetIterator &) const
End iterator corresponding to get_matching_terms_begin()
Virtual base class for expand decider functor.
void remove_document(const Xapian::MSetIterator &i)
Remove a document from the relevance set.
#define XAPIAN_DEPRECATED(X)
#define XAPIAN_VISIBILITY_DEFAULT
bool contains(const std::string &s, char substring)
Class for iterating over a list of terms.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
Decide if a Xapian::Error exception should be ignored.
Iterator over a Xapian::MSet.
Define XAPIAN_VISIBILITY_* macros.
Class representing a list of search results.
void add_document(const Xapian::MSetIterator &i)
Add a document to the relevance set.
Base class for matcher decision functor.
static Xapian::Query query(Xapian::Query::op op, const string &t1=string(), const string &t2=string(), const string &t3=string(), const string &t4=string(), const string &t5=string(), const string &t6=string(), const string &t7=string(), const string &t8=string(), const string &t9=string(), const string &t10=string())
This class provides an interface to the information retrieval system for the purpose of searching...
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Class representing a list of query expansion terms.
unsigned valueno
The number for a value slot in a document.
Class representing a list of search results.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Class representing a query.
A smart pointer that uses intrusive reference counting.
Class for iterating over a list of terms.
Internals of enquire system.
docid_order
Ordering of docids.
MSet get_mset(Xapian::doccount first, Xapian::doccount maxitems, const RSet *omrset, const MatchDecider *mdecider=0) const
Get (a portion of) the match set for the current query.
A handle representing a document in a Xapian database.
Virtual base class for key making functors.
Abstract base class for weighting schemes.
MatchDecider()
Default constructor.