37 return word.substr(0, 3);
113 string lang(
"xdummy");
114 for (
unsigned ch = 0; ch <= 255; ++ch) {
DEFINE_TESTCASE(stem1, !backend)
Test user stemming algorithms.
test functionality of the Xapian API
string operator()(const string &word) override
Stem the specified word.
string get_description() const override
Return a string describing this object.
A handle representing a document in a Xapian database.
TermIterator termlist_end() const
Equivalent end iterator for termlist_begin().
TermIterator termlist_begin() const
Start iterating the terms in this document.
InvalidArgumentError indicates an invalid parameter value was passed to the API.
Class representing a stemming algorithm implementation.
Class representing a stemming algorithm.
std::string get_description() const
Return a string describing this object.
bool is_none() const
Return true if this is a no-op stemmer.
Parses a piece of text and generate terms.
void index_text(const Xapian::Utf8Iterator &itor, Xapian::termcount wdf_inc=1, const std::string &prefix=std::string())
Index some text.
void set_document(const Xapian::Document &doc)
Set the current document.
void set_stemming_strategy(stem_strategy strategy)
Set the stemming strategy.
void set_stemmer(const Xapian::Stem &stemmer)
Set the Xapian::Stem object to be used for generating stemmed terms.
static Xapian::Stem stemmer
a generic test suite engine
#define TEST_EQUAL(a, b)
Test for equality of two things.
#define TEST(a)
Test a condition, without an additional explanation for failure.
#define TEST_NOT_EQUAL(a, b)
Test for non-equality of two things.
Xapian-specific test helper functions and macros.
#define TEST_EXCEPTION(TYPE, CODE)
Check that CODE throws exactly Xapian exception TYPE.
Public interfaces for the Xapian library.