21 #ifndef XAPIAN_INCLUDED_TERMGENERATOR_H 22 #define XAPIAN_INCLUDED_TERMGENERATOR_H 24 #if !defined XAPIAN_IN_XAPIAN_H && !defined XAPIAN_LIB_BUILD 25 # error Never use <xapian/termgenerator.h> directly; include <xapian.h> instead. 40 class WritableDatabase;
61 #ifdef XAPIAN_MOVE_SEMANTICS 136 FLAG_CJK_NGRAM = FLAG_NGRAMS
141 STEM_NONE, STEM_SOME, STEM_ALL, STEM_ALL_Z, STEM_SOME_FULL_POS
159 flags set_flags(flags toggle, flags mask = flags(0));
179 void set_stemming_strategy(stem_strategy strategy);
199 void set_stopper_strategy(stop_strategy strategy);
216 void set_max_word_length(
unsigned max_word_length);
226 const std::string & prefix = std::string());
236 const std::string & prefix = std::string()) {
252 const std::string & prefix = std::string());
266 const std::string & prefix = std::string()) {
267 index_text_without_positions(
Utf8Iterator(text), wdf_inc, prefix);
290 std::string get_description()
const;
295 #endif // XAPIAN_INCLUDED_TERMGENERATOR_H Unicode and UTF-8 related classes and functions.
The Xapian namespace contains public interfaces for the Xapian library.
Class representing a stemming algorithm.
Parses a piece of text and generate terms.
static Xapian::Stem stemmer
#define XAPIAN_VISIBILITY_DEFAULT
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
stop_strategy
Stopper strategies, for use with set_stopper_strategy().
stem_strategy
Stemming strategies, for use with set_stemming_strategy().
This class provides read/write access to a database.
Define XAPIAN_VISIBILITY_* macros.
void index_text(const std::string &text, Xapian::termcount wdf_inc=1, const std::string &prefix=std::string())
Index some text in a std::string.
int flags
For backward compatibility with Xapian 1.2.
An iterator which returns Unicode character values from a UTF-8 encoded string.
unsigned XAPIAN_TERMPOS_BASE_TYPE termpos
A term position within a document or query.
Abstract base class for stop-word decision functor.
A smart pointer that uses intrusive reference counting.
A handle representing a document in a Xapian database.
void index_text_without_positions(const std::string &text, Xapian::termcount wdf_inc=1, const std::string &prefix=std::string())
Index some text in a std::string without positional information.