22 #ifndef XAPIAN_INCLUDED_VALUESETMATCHDECIDER_H
23 #define XAPIAN_INCLUDED_VALUESETMATCHDECIDER_H
25 #if !defined XAPIAN_IN_XAPIAN_H && !defined XAPIAN_LIB_BUILD
26 # error Never use <xapian/valuesetmatchdecider.h> directly; include <xapian.h> instead.
68 : valuenum(slot), inclusive(inclusive_) { }
76 testset.insert(value);
Class representing a document.
Abstract base class for match deciders.
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.
Abstract base class for match deciders.
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