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
145 typedef enum { STOP_NONE,
STOP_ALL, STOP_STEMMED } stop_strategy;
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;
A handle representing a document in a Xapian database.
A smart pointer that uses intrusive reference counting.
Class representing a stemming algorithm.
Abstract base class for stop-word decision functor.
Parses a piece of text and generate terms.
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.
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.
int flags
For backward compatibility with Xapian 1.2.
An iterator which returns Unicode character values from a UTF-8 encoded string.
This class provides read/write access to a database.
The Xapian namespace contains public interfaces for the Xapian library.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_TERMPOS_BASE_TYPE termpos
A term position within a document or query.
static Xapian::Stem stemmer
Unicode and UTF-8 related classes and functions.
Define XAPIAN_VISIBILITY_* macros.
#define XAPIAN_VISIBILITY_DEFAULT