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);
A handle representing a document in a Xapian database.
Base class for matcher decision functor.
MatchDecider filtering results based on whether document values are in a user-defined set.
ValueSetMatchDecider(Xapian::valueno slot, bool inclusive_)
Construct a ValueSetMatchDecider.
void remove_value(const std::string &value)
Remove a value from the test set.
valueno valuenum
The value slot to look in.
std::set< std::string > testset
Set of values to test for.
void add_value(const std::string &value)
Add a value to the test set.
bool inclusive
Whether to include or exclude documents with the specified values.
The Xapian namespace contains public interfaces for the Xapian library.
unsigned valueno
The number for a value slot in a document.
Define XAPIAN_VISIBILITY_* macros.
#define XAPIAN_VISIBILITY_DEFAULT