23 #ifndef XAPIAN_INCLUDED_VALUESETMATCHDECIDER_H 24 #define XAPIAN_INCLUDED_VALUESETMATCHDECIDER_H 26 #if !defined XAPIAN_IN_XAPIAN_H && !defined XAPIAN_LIB_BUILD 27 # error Never use <xapian/valuesetmatchdecider.h> directly; include <xapian.h> instead. 69 : valuenum(slot), inclusive(inclusive_) { }
77 testset.insert(value);
The Xapian namespace contains public interfaces for the Xapian library.
MatchDecider filtering results based on whether document values are in a user-defined set...
void remove_value(const std::string &value)
Remove a value from the test set.
void add_value(const std::string &value)
Add a value to the test set.
#define XAPIAN_VISIBILITY_DEFAULT
valueno valuenum
The value slot to look in.
std::set< std::string > testset
Set of values to test for.
Define XAPIAN_VISIBILITY_* macros.
Base class for matcher decision functor.
unsigned valueno
The number for a value slot in a document.
A handle representing a document in a Xapian database.
bool inclusive
Whether to include or exclude documents with the specified values.
ValueSetMatchDecider(Xapian::valueno slot, bool inclusive_)
Construct a ValueSetMatchDecider.