23 #ifndef XAPIAN_INCLUDED_COMPACTOR_H 24 #define XAPIAN_INCLUDED_COMPACTOR_H 26 #if !defined XAPIAN_IN_XAPIAN_H && !defined XAPIAN_LIB_BUILD 27 # error Never use <xapian/compactor.h> directly; include <xapian.h> instead. 62 void set_flags_(
unsigned flags,
unsigned mask = 0);
92 ~
unsigned(DBCOMPACT_NO_RENUMBER));
104 ~
unsigned(DBCOMPACT_MULTIPASS));
117 set_flags_(compaction, ~
unsigned(STANDARD|FULL|FULLER));
158 set_status(
const std::string & table,
const std::string & status);
183 resolve_duplicate_metadata(
const std::string & key,
184 size_t num_tags,
const std::string
tags[]);
The Xapian namespace contains public interfaces for the Xapian library.
void set_multipass(bool multipass)
Set whether to merge postlists in multiple passes.
Constants in the Xapian namespace.
Define XAPIAN_DEPRECATED() and related macros.
const int DBCOMPACT_NO_RENUMBER
Use the same document ids in the output as in the input(s).
#define XAPIAN_DEPRECATED(X)
#define XAPIAN_VISIBILITY_DEFAULT
Define XAPIAN_VISIBILITY_* macros.
Compact a database, or merge and compact several.
void set_compaction_level(compaction_level compaction)
Set the compaction level.
compaction_level
Compaction level.
void set_renumber(bool renumber)
Set whether to preserve existing document id values.
const int DBCOMPACT_MULTIPASS
If merging more than 3 databases, merge the postlists in multiple passes.
A smart pointer that uses intrusive reference counting.