Namespaces | Macros | Functions
xapian.h File Reference

Public interfaces for the Xapian library. More...

## Namespaces
| Xapian
| The Xapian namespace contains public interfaces for the Xapian library.

## Functions
const char * | Xapian::version_string ()
| Report the version string of the library which the program is linked with. More...
int | Xapian::major_version ()
| Report the major version of the library which the program is linked with. More...
int | Xapian::minor_version ()
| Report the minor version of the library which the program is linked with. More...
int | Xapian::revision ()
| Report the revision of the library which the program is linked with. More...

## Detailed Description

Public interfaces for the Xapian library.

Xapian::FieldProcessor::release
const FieldProcessor * release() const
Start reference counting this object.
Definition: queryparser.h:763
Xapian::Weight::need_stat
void need_stat(stat_flags flag)
Tell Xapian that your subclass will want a particular statistic.
Definition: weight.h:83
Xapian::ExpandDeciderFilterPrefix::ExpandDeciderFilterPrefix
ExpandDeciderFilterPrefix(const std::string &prefix_)
The parameter specify the prefix of terms to be retained.
Definition: expanddecider.h:150
Xapian::TermIterator::~TermIterator
~TermIterator()
Destructor.
Definition: termiterator.h:84
Xapian::Weight::get_query_length
Xapian::termcount get_query_length() const
The length of the query.
Definition: weight.h:359
Xapian::DB_RETRY_LOCK
const int DB_RETRY_LOCK
If the database is already locked, retry the lock.
Definition: constants.h:145
Xapian::Registry
Registry for user subclasses.
Definition: registry.h:47
Xapian::InvalidArgumentError::InvalidArgumentError
InvalidArgumentError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:257
Xapian::Unicode::NON_SPACING_MARK
@ NON_SPACING_MARK
Mark, nonspacing (Mn)
Definition: unicode.h:227
Xapian::ValueIterator::operator++
DerefWrapper_< std::string > operator++(int)
Advance the iterator to the next position (postfix version).
Definition: valueiterator.h:96
Xapian::DatabaseModifiedError
DatabaseModifiedError indicates a database was modified.
Definition: error.h:539
Xapian::ESet::operator[]
ESetIterator operator[](Xapian::doccount i) const
Return iterator pointing to the i-th object in this ESet.
Definition: eset.h:357
Xapian::MatchSpy
Abstract base class for match spies.
Definition: matchspy.h:49
Xapian::Database::allterms_end
TermIterator allterms_end(const std::string &=std::string()) const
Corresponding end iterator to allterms_begin(prefix).
Definition: database.h:265
Xapian::Unicode::INITIAL_QUOTE_PUNCTUATION
@ INITIAL_QUOTE_PUNCTUATION
Punctuation, initial quote (Pi)
Definition: unicode.h:244
Xapian::BAD_VALUENO
const valueno BAD_VALUENO
Reserved value to indicate "no valueno".
Definition: types.h:125
Xapian::TermIterator::operator++
DerefWrapper_< std::string > operator++(int)
Advance the iterator to the next position (postfix version).
Definition: termiterator.h:112
Xapian::Database::operator=
void operator=(const Database &other)
Assignment is allowed.
Xapian::StringValueRangeProcessor::prefix
bool prefix
Whether to look for str as a prefix or suffix.
Definition: queryparser.h:464
Xapian::Query::operator|=
const Query operator|=(const Query &o)
Combine with another Xapian::Query object using OP_OR.
Definition: query.h:802
Xapian::DatabaseLockError::DatabaseLockError
DatabaseLockError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:509
Xapian::Unicode::TITLECASE_LETTER
@ TITLECASE_LETTER
Letter, titlecase (Lt)
Definition: unicode.h:224
Xapian::ValueCountMatchSpy::ValueCountMatchSpy
ValueCountMatchSpy(Xapian::valueno slot_)
Construct a MatchSpy which counts the values in a particular slot.
Definition: matchspy.h:237
Xapian::LatLongCoord
A latitude-longitude coordinate.
Definition: geospatial.h:81
Xapian::Enquire::get_matching_terms_end
TermIterator get_matching_terms_end(Xapian::docid) const
End iterator corresponding to get_matching_terms_begin()
Definition: enquire.h:713
Xapian::Unicode::MATH_SYMBOL
@ MATH_SYMBOL
Symbol, math (Sm)
Definition: unicode.h:247
Xapian::BB2Weight
This class implements the BB2 weighting scheme.
Definition: weight.h:1032
Xapian::DateValueRangeProcessor
Handle a date range.
Definition: queryparser.h:512
Xapian::RangeError::RangeError
RangeError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:995
Xapian::NetworkError::NetworkError
NetworkError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:819
Xapian::Unicode::OTHER_PUNCTUATION
@ OTHER_PUNCTUATION
Punctuation, other (Po)
Definition: unicode.h:246
Xapian::Weight::Weight
Weight()
Default constructor, needed by subclass constructors.
Definition: weight.h:141
Xapian::DatabaseVersionError::DatabaseVersionError
DatabaseVersionError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:648
Xapian::Unicode::FINAL_QUOTE_PUNCTUATION
@ FINAL_QUOTE_PUNCTUATION
Punctuation, final quote (Pf)
Definition: unicode.h:245
Xapian::Unicode::get_category
category get_category(unsigned ch)
Return the category which a given Unicode character falls into.
Definition: unicode.h:338
Xapian::DBCOMPACT_SINGLE_FILE
const int DBCOMPACT_SINGLE_FILE
Produce a single-file database.
Definition: constants.h:268
Xapian::Unicode::SURROGATE
@ SURROGATE
Other, surrogate (Cs)
Definition: unicode.h:239
Xapian::MSetIterator::MSetIterator
MSetIterator()
Create an unpositioned MSetIterator.
Definition: mset.h:365
Xapian::ValueIterator::~ValueIterator
~ValueIterator()
Destructor.
Definition: valueiterator.h:85
Xapian::Database::synonyms_end
Xapian::TermIterator synonyms_end(const std::string &) const
Corresponding end iterator to synonyms_begin(term).
Definition: database.h:435
Xapian::MSet::operator[]
MSetIterator operator[](Xapian::doccount i) const
Return iterator pointing to the i-th object in this MSet.
Definition: mset.h:615
Xapian::Stopper::Stopper
Stopper()
Default constructor.
Definition: queryparser.h:56
Xapian::operator<
bool operator<(const ESetIterator &a, const ESetIterator &b)
Inequality test for ESetIterator objects.
Definition: eset.h:297
Xapian::WildcardError
WildcardError indicates an error expanding a wildcarded query.
Definition: error.h:1013
Xapian::Enquire::get_eset
ESet get_eset(Xapian::termcount maxitems, const RSet &omrset, const Xapian::ExpandDecider *edecider) const
Get the expand set for the given rset.
Definition: enquire.h:643
Xapian::LatLongCoord::LatLongCoord
LatLongCoord()
Construct an uninitialised coordinate.
Definition: geospatial.h:102
Xapian::MSet::fetch
void fetch() const
Prefetch hint the whole MSet.
Definition: mset.h:273
Xapian::LatLongCoord::longitude
double longitude
A longitude, as decimal degrees.
Definition: geospatial.h:98
Xapian::miles_to_metres
double miles_to_metres(double miles)
Convert from miles to metres.
Definition: geospatial.h:54
Xapian::ExpandDeciderAnd::ExpandDeciderAnd
ExpandDeciderAnd(const ExpandDecider &first_, const ExpandDecider &second_)
Terms will be checked with first, and if accepted, then checked with second.
Definition: expanddecider.h:98
Xapian::Database::postlist_end
PostingIterator postlist_end(const std::string &) const
Corresponding end iterator to postlist_begin().
Definition: database.h:225
Xapian::LatLongCoordsIterator::LatLongCoordsIterator
LatLongCoordsIterator()
Default constructor. Produces an uninitialised iterator.
Definition: geospatial.h:178
Xapian::DatabaseCreateError::DatabaseCreateError
DatabaseCreateError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:467
Xapian::version_string
const char * version_string()
Report the version string of the library which the program is linked with.
Definition: xapian.h:115
Xapian::RangeProcessor::flags
unsigned flags
Flags.
Definition: queryparser.h:161
Xapian::QueryParser::unstem_end
TermIterator unstem_end(const std::string &) const
End iterator over unstemmed forms of the given stemmed query term.
Definition: queryparser.h:1218
types.h
typedefs for Xapian
Xapian::TradWeight
Xapian::Weight subclass implementing the traditional probabilistic formula.
Definition: weight.h:746
Xapian::ErrorHandler::ErrorHandler
ErrorHandler()
Default constructor.
Definition: errorhandler.h:81
Xapian::MultiValueKeyMaker::add_value
void add_value(Xapian::valueno slot, bool reverse=false, const std::string &defvalue=std::string())
Add a value slot to the list to build a key from.
Definition: keymaker.h:143
Xapian::DB_CREATE_OR_OVERWRITE
const int DB_CREATE_OR_OVERWRITE
Create database if it doesn't already exist, or overwrite if it does.
Definition: constants.h:38
Xapian::timeout
unsigned timeout
A timeout value in milliseconds.
Definition: types.h:100
keymaker.h
Build key strings for MSet ordering or collapsing.
Xapian::Utf8Iterator::Utf8Iterator
Utf8Iterator()
Create an iterator which is at the end of its iteration.
Definition: unicode.h:132
Xapian::RangeProcessor::str
std::string str
The prefix (or suffix with RP_SUFFIX) string to look for.
Definition: queryparser.h:148
Xapian::NumberValueRangeProcessor::NumberValueRangeProcessor
NumberValueRangeProcessor(Xapian::valueno slot_, const std::string &str_, bool prefix_=true)
Constructor.
Definition: queryparser.h:695
Xapian::RangeProcessor::release
const RangeProcessor * release() const
Start reference counting this object.
Definition: queryparser.h:235
Xapian::ExpandDecider::ExpandDecider
ExpandDecider()
Default constructor.
Definition: expanddecider.h:47
valueiterator.h
Class for iterating over document values.
Xapian::LatLongCoordsIterator::operator*
const LatLongCoord & operator*() const
Get the LatLongCoord for the current position.
Definition: geospatial.h:181
Xapian::rev
XAPIAN_REVISION_TYPE rev
Revision number of a database.
Definition: types.h:133
Xapian::Utf8Iterator::iterator_category
std::input_iterator_tag iterator_category
We implement the semantics of an STL input_iterator.
Definition: unicode.h:204
Xapian::Unicode::to_utf8
unsigned to_utf8(unsigned ch, char *buf)
Convert a single Unicode character to UTF-8.
Definition: unicode.h:321
queryparser.h
parsing a user query string to build a Xapian::Query object
Xapian::KeyMaker::release
const KeyMaker * release() const
Start reference counting this object.
Definition: keymaker.h:83
Xapian::weight
double weight
The weight of a document or term.
Definition: types.h:122
dbfactory.h
Factory functions for constructing Database and WritableDatabase objects.
Xapian::NetworkTimeoutError::NetworkTimeoutError
NetworkTimeoutError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:861
Xapian::DatabaseCreateError
DatabaseCreateError indicates a failure to create a database.
Definition: error.h:451
Xapian::Query::WILDCARD_LIMIT_FIRST
@ WILDCARD_LIMIT_FIRST
Stop expanding when OP_WILDCARD reaches its expansion limit.
Definition: query.h:288
Xapian::ValuePostingSource
A posting source which generates weights from a value slot.
Definition: postingsource.h:401
Xapian::DB_FULL_SYNC
const int DB_FULL_SYNC
Try to ensure changes are really written to disk.
Definition: constants.h:83
document.h
API for working with documents.
Xapian::ESet::empty
bool empty() const
Return true if this ESet object is empty.
Definition: eset.h:85
Xapian::Query::Query
Query(Query::op op_)
Construct with just an operator.
Definition: query.h:598
Xapian::ValueWeightPostingSource
A posting source which reads weights from a value slot.
Definition: postingsource.h:586
Xapian::Unicode::OPEN_PUNCTUATION
@ OPEN_PUNCTUATION
Punctuation, open (Ps)
Definition: unicode.h:242
Xapian::DecreasingValueWeightPostingSource::curr_weight
double curr_weight
Weight at current position.
Definition: postingsource.h:641
weight.h
Weighting scheme API.
Xapian::MSetIterator::get_percent
int get_percent() const
Convert the weight of the current iterator position to a percentage.
Definition: mset.h:510
Xapian::Utf8Iterator::Utf8Iterator
Utf8Iterator(const char *p_, size_t len)
Create an iterator given a pointer and a length.
Definition: unicode.h:114
XAPIAN_DOCID_BASE_TYPE
#define XAPIAN_DOCID_BASE_TYPE
Base (signed) type for Xapian::docid and related types.
Definition: version.h:71
Xapian::Unicode::toupper
unsigned toupper(unsigned ch)
Convert a Unicode character to uppercase.
Definition: unicode.h:384
Xapian::DocNotFoundError
Indicates an attempt to access a document not present in the database.
Definition: error.h:674
Xapian::minor_version
int minor_version()
Report the minor version of the library which the program is linked with.
Definition: xapian.h:133
Xapian::BoolWeight
Class implementing a "boolean" weighting scheme.
Definition: weight.h:400
Xapian::StringValueRangeProcessor::valno
Xapian::valueno valno
The value slot to process.
Definition: queryparser.h:461
Xapian::Database::metadata_keys_end
Xapian::TermIterator metadata_keys_end(const std::string &=std::string()) const
Corresponding end iterator to metadata_keys_begin().
Definition: database.h:498
Xapian::DecreasingValueWeightPostingSource::items_at_end
bool items_at_end
Flag, set to true if there are docs after the end of the range.
Definition: postingsource.h:644
Xapian::MSet::size
Xapian::doccount size() const
Return number of items in this MSet object.
Xapian::Unicode::PARAGRAPH_SEPARATOR
@ PARAGRAPH_SEPARATOR
Separator, paragraph (Zp)
Definition: unicode.h:235
Xapian::MSet::begin
MSetIterator begin() const
Return iterator pointing to the first item in this MSet.
Definition: mset.h:603
Xapian::termcount
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
Definition: types.h:72
Xapian::Utf8Iterator::Utf8Iterator
Utf8Iterator(const std::string &s)
Create an iterator given a string.
Definition: unicode.h:125
Xapian::DatabaseOpeningError::DatabaseOpeningError
DatabaseOpeningError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:605
Xapian::Utf8Iterator::assign
void assign(const char *p_, size_t len)
Assign a new string to the iterator.
Definition: unicode.h:72
Xapian::PositionIterator
Class for iterating over term positions.
Definition: positioniterator.h:40
Xapian::LatLongCoords::LatLongCoords
LatLongCoords(const LatLongCoord &coord)
Construct a container holding one coordinate.
Definition: geospatial.h:269
Xapian::MSetIterator::get_weight
double get_weight() const
Get the weight for the current position.
Xapian::MSetIterator::operator++
MSetIterator operator++(int)
Advance the iterator to the next position (postfix version).
Definition: mset.h:377
Xapian::operator>=
bool operator>=(const ESetIterator &a, const ESetIterator &b)
Inequality test for ESetIterator objects.
Definition: eset.h:317
Xapian::Database::positionlist_end
PositionIterator positionlist_end(Xapian::docid, const std::string &) const
Corresponding end iterator to positionlist_begin().
Definition: database.h:252
Xapian::Query::op
op
Query operators.
Definition: query.h:78
Xapian::DatabaseVersionError::DatabaseVersionError
DatabaseVersionError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:656
Xapian::LatLongCoords::begin
LatLongCoordsIterator begin() const
Get a begin iterator for the coordinates.
Definition: geospatial.h:238
Xapian::Weight::get_total_length
Xapian::totallength get_total_length() const
Total length of all documents in the collection.
Definition: weight.h:391
Xapian::MSetIterator::operator-
difference_type operator-(const MSetIterator &o) const
Return the number of positions between o and this iterator.
Definition: mset.h:448
Xapian::LatLongCoords::append
void append(const LatLongCoord &coord)
Append a coordinate to the end of the sequence.
Definition: geospatial.h:260
Xapian::IfB2Weight
This class implements the IfB2 weighting scheme.
Definition: weight.h:887
Xapian::ESetIterator::operator-=
ESetIterator & operator-=(difference_type n)
Move the iterator back by n positions.
Definition: eset.h:239
Xapian::DOC_ASSUME_VALID
const int DOC_ASSUME_VALID
Assume document id is valid.
Definition: constants.h:280
Xapian::CoordWeight
Xapian::Weight subclass implementing Coordinate Matching.
Definition: weight.h:1487
Xapian::PostingSource::PostingSource
PostingSource()
Allow subclasses to be instantiated.
Definition: postingsource.h:67
Xapian::QueryParser
Build a Xapian::Query object from a user query string.
Definition: queryparser.h:770
Xapian::MSetIterator::get_rank
Xapian::doccount get_rank() const
Return the MSet rank for the current position.
Definition: mset.h:456
Xapian::WritableDatabase::flush
void flush()
Pre-1.1.0 name for commit().
Definition: database.h:917
Xapian::Database::check
static size_t check(const std::string &path, int opts=0, std::ostream *out=NULL)
Check the integrity of a database or database table.
Definition: database.h:552
Xapian::Database::check
static size_t check(int fd, int opts=0, std::ostream *out=NULL)
Check the integrity of a single file database.
Definition: database.h:567
Xapian::Unicode::CONNECTOR_PUNCTUATION
@ CONNECTOR_PUNCTUATION
Punctuation, connector (Pc)
Definition: unicode.h:240
Xapian::Unicode::CLOSE_PUNCTUATION
@ CLOSE_PUNCTUATION
Punctuation, close (Pe)
Definition: unicode.h:243
Xapian::LatLongCoordsIterator::operator++
LatLongCoordsIterator & operator++()
Advance the iterator to the next position.
Definition: geospatial.h:186
Xapian::DLHWeight
This class implements the DLH weighting scheme, which is a representative scheme of the Divergence fr...
Definition: weight.h:1108
Xapian::Query::OP_OR
@ OP_OR
Match documents which at least one subquery matches.
Definition: query.h:92
Xapian::SimpleStopper::SimpleStopper
SimpleStopper()
Default constructor.
Definition: queryparser.h:101
Xapian::CoordWeight::CoordWeight
CoordWeight()
Construct a CoordWeight.
Definition: weight.h:1497
Xapian::Unicode::MODIFIER_LETTER
@ MODIFIER_LETTER
Letter, modifier (Lm)
Definition: unicode.h:225
Xapian::DB_CREATE
const int DB_CREATE
Create a new database.
Definition: constants.h:44
Xapian::Database::valuestream_end
ValueIterator valuestream_end(Xapian::valueno) const
Return end iterator corresponding to valuestream_begin().
Definition: database.h:351
Xapian::Query::operator/=
const Query operator/=(double factor)
Inverse scale using OP_SCALE_WEIGHT.
Definition: query.h:587
expanddecider.h
Allow rejection of terms during ESet generation.
Xapian::Enquire::get_matching_terms_end
TermIterator get_matching_terms_end(const MSetIterator &) const
End iterator corresponding to get_matching_terms_begin()
Definition: enquire.h:742
Xapian::Weight::get_collection_size
Xapian::doccount get_collection_size() const
The number of documents in the collection.
Definition: weight.h:341
Xapian::InvalidArgumentError
InvalidArgumentError indicates an invalid parameter value was passed to the API.
Definition: error.h:241
query.h
Xapian::Query API class.
stem.h
stemming algorithms
Xapian::Unicode::nonascii_to_utf8
unsigned nonascii_to_utf8(unsigned ch, char *buf)
Convert a single non-ASCII Unicode character to UTF-8.
version.h
Define preprocessor symbols for the library version.
Xapian::Query::get_num_subqueries
size_t get_num_subqueries() const
Get the number of subqueries of the top level query.
Xapian::DatabaseOpeningError
DatabaseOpeningError indicates failure to open a database.
Definition: error.h:581
Xapian::ValueSetMatchDecider
MatchDecider filtering results based on whether document values are in a user-defined set.
Definition: valuesetmatchdecider.h:44
Xapian::DB_OPEN
const int DB_OPEN
Open an existing database.
Definition: constants.h:50
Xapian::BoolWeight::BoolWeight
BoolWeight()
Construct a BoolWeight.
Definition: weight.h:407
Xapian::DB_CREATE_OR_OPEN
const int DB_CREATE_OR_OPEN
Create database if it doesn't already exist.
Definition: constants.h:35
Xapian::valueno_diff
int valueno_diff
A signed difference between two value slot numbers.
Definition: types.h:115
Xapian::ESetIterator::operator++
ESetIterator & operator++()
Advance the iterator to the next position.
Definition: eset.h:184
Xapian::DatabaseNotFoundError
Indicates an attempt to access a database not present.
Definition: error.h:1055
Xapian::Unicode::CONTROL
@ CONTROL
Other, control (Cc)
Definition: unicode.h:236
Xapian::ValueCountMatchSpy::ValueCountMatchSpy
ValueCountMatchSpy()
Construct an empty ValueCountMatchSpy.
Definition: matchspy.h:234
Xapian::InternalError::InternalError
InternalError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:777
Xapian::MultiValueKeyMaker
KeyMaker subclass which combines several values.
Definition: keymaker.h:104
Xapian::LatLongMetric
Base class for calculating distances between two lat/long coordinates.
Definition: geospatial.h:303
Xapian::FixedWeightPostingSource
A posting source which returns a fixed weight for all documents.
Definition: postingsource.h:735
Xapian::ExpandDecider::release
ExpandDecider * release()
Start reference counting this object.
Definition: expanddecider.h:65
Xapian::Stopper
Base class for stop-word decision functor.
Definition: queryparser.h:46
Xapian::Unicode::UNASSIGNED
@ UNASSIGNED
Other, not assigned (Cn)
Definition: unicode.h:221
Xapian::SerialisationError::SerialisationError
SerialisationError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:953
Xapian::Database::compact
void compact(const std::string &output, unsigned flags, int block_size, Xapian::Compactor &compactor)
Produce a compact version of this database.
Definition: database.h:711
Xapian::Unicode::COMBINING_SPACING_MARK
@ COMBINING_SPACING_MARK
Mark, spacing combining (Mc)
Definition: unicode.h:229
Xapian::Chert::open
Database open(const std::string &dir)
Construct a Database object for read-only access to a Chert database.
Definition: dbfactory.h:123
Xapian::operator&
const Query operator&(const Query &a, const Query &b)
Combine two Xapian::Query objects using OP_AND.
Definition: query.h:636
Xapian::SimpleStopper::add
void add(const std::string &word)
Add a single stop word.
Definition: queryparser.h:116
Xapian::Stopper::release
const Stopper * release() const
Start reference counting this object.
Definition: queryparser.h:89
Xapian::MSetIterator::operator--
MSetIterator & operator--()
Move the iterator to the previous position.
Definition: mset.h:384
Xapian::Database::synonym_keys_end
Xapian::TermIterator synonym_keys_end(const std::string &=std::string()) const
Corresponding end iterator to synonym_keys_begin(prefix).
Definition: database.h:447
Xapian::ValuePostingSource::get_database
Xapian::Database get_database() const
The database we're reading values from.
Definition: postingsource.h:502
Xapian::StringValueRangeProcessor
Handle a string range.
Definition: queryparser.h:458
Xapian::MatchDecider::MatchDecider
MatchDecider()
Default constructor.
Definition: enquire.h:127
Xapian::Weight::get_termfreq
Xapian::doccount get_termfreq() const
The number of documents which this term indexes.
Definition: weight.h:350
Xapian::RangeProcessor::RangeProcessor
RangeProcessor(Xapian::valueno slot_, const std::string &str_=std::string(), unsigned flags_=0)
Constructor.
Definition: queryparser.h:183
eset.h
Class representing a list of query expansion terms.
Xapian::operator==
bool operator==(const ESetIterator &a, const ESetIterator &b)
Equality test for ESetIterator objects.
Definition: eset.h:277
Xapian::NumberValueRangeProcessor::NumberValueRangeProcessor
NumberValueRangeProcessor(Xapian::valueno slot_)
Constructor.
Definition: queryparser.h:660
Xapian::Query::operator=
Query & operator=(const Query &o)
Copying is allowed.
Definition: query.h:325
Xapian::Auto::open_stub
Database open_stub(const std::string &file)
Construct a Database object for a stub database file.
Definition: dbfactory.h:61
Xapian::SimpleStopper::operator()
virtual bool operator()(const std::string &term) const
Is term a stop-word?
Definition: queryparser.h:118
Xapian::DatabaseNotFoundError::DatabaseNotFoundError
DatabaseNotFoundError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:1079
Xapian::ESetIterator::operator-
difference_type operator-(const ESetIterator &o) const
Return the number of positions between o and this iterator.
Definition: eset.h:261
Xapian::Query::get_type
op get_type() const
Get the type of the top level of the query.
Xapian::Query::operator^=
const Query operator^=(const Query &o)
Combine with another Xapian::Query object using OP_XOR.
Definition: query.h:819
Xapian::KeyMaker
Virtual base class for key making functors.
Definition: keymaker.h:41
Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker
LatLongDistanceKeyMaker(Xapian::valueno slot_, const LatLongCoords &centre_, const LatLongMetric &metric_, double defdistance)
Construct a LatLongDistanceKeyMaker.
Definition: geospatial.h:574
Xapian::InternalError
InternalError indicates a runtime problem of some sort.
Definition: error.h:761
Xapian::ValueRangeProcessor::ValueRangeProcessor
ValueRangeProcessor()
Default constructor.
Definition: queryparser.h:406
Xapian::DBCOMPACT_NO_RENUMBER
const int DBCOMPACT_NO_RENUMBER
Use the same document ids in the output as in the input(s).
Definition: constants.h:256
Xapian::ESet::size
Xapian::doccount size() const
Return number of items in this ESet object.
Xapian::SimpleStopper::SimpleStopper
SimpleStopper(Iterator begin, Iterator end)
Initialise from a pair of iterators.
Definition: queryparser.h:113
Xapian::TradWeight::TradWeight
TradWeight(double k=1.0)
Construct a TradWeight.
Definition: weight.h:768
Xapian::Unicode::category
category
Each Unicode character is in exactly one of these categories.
Definition: unicode.h:220
Xapian::ValueSetMatchDecider::add_value
void add_value(const std::string &value)
Add a value to the test set.
Definition: valuesetmatchdecider.h:75
Xapian::Stem::is_none
bool is_none() const
Return true if this is a no-op stemmer.
Definition: stem.h:166
Xapian::Query::Query
Query(op op_, const Xapian::Query &a, const Xapian::Query &b)
Construct a Query object by combining two others.
Definition: query.h:375
Xapian::LMWeight::LMWeight
LMWeight(double param_log_=0.0, type_smoothing select_smoothing_=TWO_STAGE_SMOOTHING, double param_smoothing1_=-1.0, double param_smoothing2_=-1.0)
Construct a LMWeight.
Definition: weight.h:1439
Xapian::PostingSource::release
const PostingSource * release() const
Start reference counting this object.
Definition: postingsource.h:384
Xapian::Unicode::OTHER_NUMBER
@ OTHER_NUMBER
Number, other (No)
Definition: unicode.h:232
Xapian::Query::MatchAll
static const Xapian::Query MatchAll
A query matching all documents.
Definition: query.h:75
Xapian::ESet
Class representing a list of search results.
Definition: eset.h:43
Xapian::PostingIterator::PostingIterator
PostingIterator()
Default constructor.
Definition: postingiterator.h:80
Xapian::Weight::get_wqf
Xapian::termcount get_wqf() const
The within-query-frequency of this term.
Definition: weight.h:362
Xapian::FieldProcessor::release
FieldProcessor * release()
Start reference counting this object.
Definition: queryparser.h:751
Xapian::InvalidOperationError::InvalidOperationError
InvalidOperationError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:299
Xapian::Unicode::is_currency
bool is_currency(unsigned ch)
Test if a given Unicode character is a currency symbol.
Definition: unicode.h:371
Xapian::Query::get_terms_end
const TermIterator get_terms_end() const
End iterator for terms in the query object.
Definition: query.h:493
Xapian::MSetIterator::operator+=
MSetIterator & operator+=(difference_type n)
Move the iterator forwards by n positions.
Definition: mset.h:420
Xapian::Stopper::release
Stopper * release()
Start reference counting this object.
Definition: queryparser.h:77
Xapian::Compactor::set_compaction_level
void set_compaction_level(compaction_level compaction)
Set the compaction level.
Definition: compactor.h:116
Xapian::KeyMaker::release
KeyMaker * release()
Start reference counting this object.
Definition: keymaker.h:71
Xapian::Unicode::OTHER_LETTER
@ OTHER_LETTER
Letter, other (Lo)
Definition: unicode.h:226
Xapian::DB_BACKEND_GLASS
const int DB_BACKEND_GLASS
Use the glass backend.
Definition: constants.h:158
Xapian::Query::OP_AND
@ OP_AND
Match only documents which all subqueries match.
Definition: query.h:84
Xapian::ExpandDeciderFilterTerms::ExpandDeciderFilterTerms
ExpandDeciderFilterTerms(Iterator reject_begin, Iterator reject_end)
The two iterators specify a list of terms to be rejected.
Definition: expanddecider.h:132
Xapian::ESet::swap
void swap(ESet &o)
Efficiently swap this ESet object with another.
Definition: eset.h:95
Xapian::ValueRangeProcessor::release
ValueRangeProcessor * release()
Start reference counting this object.
Definition: queryparser.h:434
Xapian::Remote::open
Database open(const std::string &host, unsigned int port, useconds_t timeout=10000, useconds_t connect_timeout=10000)
Construct a Database object for read-only access to a remote database accessed via a TCP connection.
Xapian::doccount_diff
XAPIAN_DOCID_BASE_TYPE doccount_diff
A signed difference between two counts of documents.
Definition: types.h:45
Xapian::Query::Query
Query()
Construct a query matching no documents.
Definition: query.h:310
Xapian::Utf8Iterator::raw
const char * raw() const
Return the raw const char* pointer for the current position.
Definition: unicode.h:54
Xapian::InvalidOperationError::InvalidOperationError
InvalidOperationError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:307
Xapian::Enquire
This class provides an interface to the information retrieval system for the purpose of searching.
Definition: enquire.h:152
Xapian::DecreasingValueWeightPostingSource::range_end
Xapian::docid range_end
End of range of docids for which weights are known to be decreasing.
Definition: postingsource.h:638
Xapian::Database::termlist_end
TermIterator termlist_end(Xapian::docid) const
Corresponding end iterator to termlist_begin().
Definition: database.h:238
Xapian::Query::OP_INVALID
@ OP_INVALID
Construct an invalid query.
Definition: query.h:254
Xapian::Unicode::append_utf8
void append_utf8(std::string &s, unsigned ch)
Append the UTF-8 representation of a single Unicode character to a std::string.
Definition: unicode.h:332
Xapian::totallength
XAPIAN_TOTALLENGTH_TYPE totallength
The total length of all documents in a database.
Definition: types.h:139
Xapian::ESet::end
ESetIterator end() const
Return iterator pointing to just after the last item in this ESet.
Definition: eset.h:350
Xapian::Query::OP_XOR
@ OP_XOR
Match documents which an odd number of subqueries match.
Definition: query.h:107
Xapian::ValueSetMatchDecider::ValueSetMatchDecider
ValueSetMatchDecider(Xapian::valueno slot, bool inclusive_)
Construct a ValueSetMatchDecider.
Definition: valuesetmatchdecider.h:68
Xapian::termcount_diff
XAPIAN_TERMCOUNT_BASE_TYPE termcount_diff
A signed difference between two counts of terms.
Definition: types.h:79
Xapian::AssertionError
AssertionError is thrown if a logical assertion inside Xapian fails.
Definition: error.h:199
Xapian::Unicode::DECIMAL_DIGIT_NUMBER
@ DECIMAL_DIGIT_NUMBER
Number, decimal digit (Nd)
Definition: unicode.h:230
Xapian::termpos_diff
XAPIAN_TERMPOS_BASE_TYPE termpos_diff
A signed difference between two term positions.
Definition: types.h:90
Xapian::Unicode::LOWERCASE_LETTER
@ LOWERCASE_LETTER
Letter, lowercase (Ll)
Definition: unicode.h:223
Xapian::DatabaseModifiedError::DatabaseModifiedError
DatabaseModifiedError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:563
Xapian::Query::LEAF_POSTING_SOURCE
@ LEAF_POSTING_SOURCE
Value returned by get_type() for a PostingSource.
Definition: query.h:260
Xapian::RangeProcessor::operator()
virtual Xapian::Query operator()(const std::string &begin, const std::string &end)
Check for a valid range of this type.
Xapian::DPHWeight
This class implements the DPH weighting scheme.
Definition: weight.h:1331
Xapian::RSet::add_document
void add_document(const Xapian::MSetIterator &i)
Add a document to the relevance set.
Definition: enquire.h:98
Xapian::Unicode::is_whitespace
bool is_whitespace(unsigned ch)
Test if a given Unicode character is a whitespace character.
Definition: unicode.h:361
Xapian::FieldProcessor
Base class for field processors.
Definition: queryparser.h:721
Xapian::PL2Weight
This class implements the PL2 weighting scheme.
Definition: weight.h:1168
Xapian::Weight::stat_flags
stat_flags
Stats which the weighting scheme can use (see need_stat()).
Definition: weight.h:38
Xapian::operator*
const Query operator*(double factor, const Query &q)
Scale a Xapian::Query object using OP_SCALE_WEIGHT.
Definition: query.h:661
Xapian::InternalError::InternalError
InternalError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:785
Xapian::Document::values_end
ValueIterator values_end() const
Equivalent end iterator for values_begin().
Definition: document.h:271
matchspy.h
MatchSpy implementation.
Xapian::operator+
ESetIterator operator+(ESetIterator::difference_type n, const ESetIterator &it)
Return ESetIterator it incremented by n positions.
Definition: eset.h:337
Xapian::DatabaseClosedError::DatabaseClosedError
DatabaseClosedError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:1113
postingiterator.h
Class for iterating over a list of document ids.
Xapian::Utf8Iterator
An iterator which returns Unicode character values from a UTF-8 encoded string.
Definition: unicode.h:38
Xapian::QueryParserError::QueryParserError
QueryParserError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:903
Xapian::Database::compact
void compact(const std::string &output, unsigned flags=0, int block_size=0)
Produce a compact version of this database.
Definition: database.h:615
Xapian::Query::~Query
~Query()
Destructor.
Definition: query.h:313
Xapian::PostingSource
Base class which provides an "external" source of postings.
Definition: postingsource.h:47
Xapian::DBCHECK_SHOW_FREELIST
const int DBCHECK_SHOW_FREELIST
Show the bitmap for the B-tree.
Definition: constants.h:222
Xapian::RangeProcessor
Base class for range processors.
Definition: queryparser.h:132
Xapian::ExpandDeciderFilterPrefix
ExpandDecider subclass which restrict terms to a particular prefix.
Definition: expanddecider.h:143
Xapian::Document::termlist_end
TermIterator termlist_end() const
Equivalent end iterator for termlist_begin().
Definition: document.h:260
Xapian::Query::Query
Query(const Query &o)
Copying is allowed.
Definition: query.h:319
Xapian::Unicode::tolower
unsigned tolower(unsigned ch)
Convert a Unicode character to lowercase.
Definition: unicode.h:376
Xapian::Unicode::PRIVATE_USE
@ PRIVATE_USE
Other, private use (Co)
Definition: unicode.h:238
Xapian::MatchSpy::MatchSpy
MatchSpy()
Default constructor, needed by subclass constructors.
Definition: matchspy.h:60
Xapian::BM25Weight
Xapian::Weight subclass implementing the BM25 probabilistic formula.
Definition: weight.h:513
Xapian::AssertionError::AssertionError
AssertionError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:215
Xapian::NumberRangeProcessor::NumberRangeProcessor
NumberRangeProcessor(Xapian::valueno slot_, const std::string &str_=std::string(), unsigned flags_=0)
Constructor.
Definition: queryparser.h:375
Xapian::operator<=
bool operator<=(const ESetIterator &a, const ESetIterator &b)
Inequality test for ESetIterator objects.
Definition: eset.h:327
Xapian::RSet
A relevance set (R-Set).
Definition: enquire.h:60
Xapian::ESet::back
ESetIterator back() const
Return iterator pointing to the last object in this ESet.
Definition: eset.h:362
Xapian::FeatureUnavailableError
Indicates an attempt to use a feature which is unavailable.
Definition: error.h:719
Xapian::operator&=
const Query operator&=(Query &a, const InvertedQuery_ &b)
Combine two Xapian::Query objects using OP_AND_NOT with result in the first.
Definition: query.h:726
Xapian::revision
int revision()
Report the revision of the library which the program is linked with.
Definition: xapian.h:142
Xapian::sortable_serialise
std::string sortable_serialise(double value)
Convert a floating point number to a string, preserving sort order.
Definition: queryparser.h:1305
Xapian::MSet::convert_to_percent
int convert_to_percent(double weight) const
Convert a weight to a percentage.
error.h
Hierarchy of classes which Xapian can throw as exceptions.
Xapian::Unicode::is_wordchar
bool is_wordchar(unsigned ch)
Test if a given Unicode character is "word character".
Definition: unicode.h:343
Xapian::NumberRangeProcessor
Handle a number range.
Definition: queryparser.h:335
errorhandler.h
Decide if a Xapian::Error exception should be ignored.
Xapian::Weight::get_doclength_lower_bound
Xapian::termcount get_doclength_lower_bound() const
A lower bound on the minimum length of any document in the database.
Definition: weight.h:378
Xapian::MSetIterator::operator+
MSetIterator operator+(difference_type n) const
Return the iterator incremented by n positions.
Definition: mset.h:435
Xapian::operator|
const Query operator|(const Query &a, const Query &b)
Combine two Xapian::Query objects using OP_OR.
Definition: query.h:643
Xapian::ValueIterator
Class for iterating over document values.
Definition: valueiterator.h:40
Xapian::TermGenerator::flags
int flags
For backward compatibility with Xapian 1.2.
Definition: termgenerator.h:98
Xapian::TermGenerator::index_text
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.
Definition: termgenerator.h:216
Xapian::Query::get_description
std::string get_description() const
Return a string describing this object.
Xapian::Database::compact
void compact(int fd, unsigned flags, int block_size, Xapian::Compactor &compactor)
Produce a compact version of this database.
Definition: database.h:766
Xapian::ValueCountMatchSpy
Class for counting the frequencies of values in the matching documents.
Definition: matchspy.h:205
Xapian::RangeProcessor::release
RangeProcessor * release()
Start reference counting this object.
Definition: queryparser.h:223
Xapian::Query::serialise
std::string serialise() const
Serialise this object into a string.
Xapian::ExpandDecider::release
const ExpandDecider * release() const
Start reference counting this object.
Definition: expanddecider.h:77
Xapian::Query::get_subquery
const Query get_subquery(size_t n) const
Read a top level subquery.
Xapian::InvalidArgumentError::InvalidArgumentError
InvalidArgumentError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:265
Xapian::DatabaseError
DatabaseError indicates some sort of database related error.
Definition: error.h:367
Xapian::operator/
const Query operator/(const Query &q, double factor)
Inverse-scale a Xapian::Query object using OP_SCALE_WEIGHT.
Definition: query.h:683
Xapian::FeatureUnavailableError::FeatureUnavailableError
FeatureUnavailableError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:735
Xapian::LogicError
The base class for exceptions indicating errors in the program logic.
Definition: error.h:154
Xapian::Unicode::LINE_SEPARATOR
@ LINE_SEPARATOR
Separator, line (Zl)
Definition: unicode.h:234
Xapian::LatLongCoords
A sequence of latitude-longitude coordinates.
Definition: geospatial.h:232
Xapian::DatabaseClosedError
Indicates an attempt to access a closed database.
Definition: error.h:1097
Xapian::DatabaseError::DatabaseError
DatabaseError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:391
Xapian::DateValueRangeProcessor::DateValueRangeProcessor
DateValueRangeProcessor(Xapian::valueno slot_, bool prefer_mdy_=false, int epoch_year_=1970)
Constructor.
Definition: queryparser.h:527
Xapian::TermIterator
Class for iterating over a list of terms.
Definition: termiterator.h:41
Xapian::Unicode::MODIFIER_SYMBOL
@ MODIFIER_SYMBOL
Symbol, modified (Sk)
Definition: unicode.h:249
Xapian::LatLongCoords::LatLongCoords
LatLongCoords()
Construct an empty container.
Definition: geospatial.h:266
Xapian::DatabaseModifiedError::DatabaseModifiedError
DatabaseModifiedError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:555
Xapian::Weight::get_doclength_upper_bound
Xapian::termcount get_doclength_upper_bound() const
An upper bound on the maximum length of any document in the database.
Definition: weight.h:368
Xapian::operator>
bool operator>(const ESetIterator &a, const ESetIterator &b)
Inequality test for ESetIterator objects.
Definition: eset.h:307
Xapian::Stem
Class representing a stemming algorithm.
Definition: stem.h:62
Xapian::Query::OP_AND_NOT
@ OP_AND_NOT
Match documents which the first subquery matches but no others do.
Definition: query.h:99
Xapian::Query::Query
Query(op op_, I begin, I end, Xapian::termcount window=0)
Construct a Query object from a begin/end iterator pair.
Definition: query.h:458
Xapian::DatabaseCorruptError
DatabaseCorruptError indicates database corruption was detected.
Definition: error.h:409
Xapian::ValueSetMatchDecider::remove_value
void remove_value(const std::string &value)
Remove a value from the test set.
Definition: valuesetmatchdecider.h:84
Xapian::LatLongMetric::operator()
double operator()(const LatLongCoords &a, const std::string &b) const
Return the distance between two coordinate lists, in metres.
Definition: geospatial.h:337
Xapian::LatLongCoordsIterator
An iterator across the values in a LatLongCoords object.
Definition: geospatial.h:165
Xapian::SerialisationError
Indicates an error in the std::string serialisation of an object.
Definition: error.h:929
Xapian::DBCHECK_FIX
const int DBCHECK_FIX
Fix problems.
Definition: constants.h:243
Xapian::major_version
int major_version()
Report the major version of the library which the program is linked with.
Definition: xapian.h:124
XAPIAN_TOTALLENGTH_TYPE
#define XAPIAN_TOTALLENGTH_TYPE
Type for returning total document length.
Definition: version.h:80
registry.h
Class for looking up user subclasses during unserialisation.
Xapian::ValuePostingSource::set_termfreq_min
void set_termfreq_min(Xapian::doccount termfreq_min_)
Set a lower bound on the term frequency.
Definition: postingsource.h:540
Xapian::StringValueRangeProcessor::StringValueRangeProcessor
StringValueRangeProcessor(Xapian::valueno slot_)
Constructor.
Definition: queryparser.h:474
Xapian::ValuePostingSource::get_slot
Xapian::valueno get_slot() const
The slot we're reading values from.
Definition: postingsource.h:508
Xapian::DateRangeProcessor::DateRangeProcessor
DateRangeProcessor(Xapian::valueno slot_, const std::string &str_, unsigned flags_=0, int epoch_year_=1970)
Constructor.
Definition: queryparser.h:309
Xapian::DatabaseNotFoundError::DatabaseNotFoundError
DatabaseNotFoundError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:1071
Xapian::Compactor
Compact a database, or merge and compact several.
Definition: compactor.h:42
Xapian::DateRangeProcessor
Handle a date range.
Definition: queryparser.h:245
Xapian::StringValueRangeProcessor::str
std::string str
The prefix (or suffix if prefix==false) string to look for.
Definition: queryparser.h:467
Xapian::DB_NO_SYNC
const int DB_NO_SYNC
Don't attempt to ensure changes have hit disk.
Definition: constants.h:66
Xapian::Compactor::set_multipass
void set_multipass(bool multipass)
Set whether to merge postlists in multiple passes.
Definition: compactor.h:102
termiterator.h
Class for iterating over a list of terms.
Xapian::TermIterator::positionlist_end
PositionIterator positionlist_end() const
Return an end PositionIterator for the current term.
Definition: termiterator.h:104
Xapian::QueryParser::set_max_expansion
void set_max_expansion(Xapian::termcount max_expansion, int max_type=Xapian::Query::WILDCARD_LIMIT_ERROR, unsigned flags=FLAG_WILDCARD|FLAG_PARTIAL)
Specify the maximum expansion of a wildcard and/or partial term.
Xapian::IneB2Weight
This class implements the IneB2 weighting scheme.
Definition: weight.h:960
Xapian::Error::get_context
const std::string & get_context() const
Optional context information.
Definition: error.h:133
Xapian::Database::spellings_end
Xapian::TermIterator spellings_end() const
Corresponding end iterator to spellings_begin().
Definition: database.h:424
Xapian::Error::get_msg
const std::string & get_msg() const
Message giving details of the error, intended for human consumption.
Definition: error.h:122
Xapian::Query::MatchNothing
static const Xapian::Query MatchNothing
A query matching no documents.
Definition: query.h:65
Xapian::UnimplementedError::UnimplementedError
UnimplementedError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:349
Xapian::TermIterator::TermIterator
TermIterator()
Default constructor.
Definition: termiterator.h:80
Xapian::LatLongCoords::size
size_t size() const
Get the number of coordinates in the container.
Definition: geospatial.h:248
Xapian::Unicode::OTHER_SYMBOL
@ OTHER_SYMBOL
Symbol, other (So)
Definition: unicode.h:250
Xapian::AssertionError::AssertionError
AssertionError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:223
Xapian::NumberValueRangeProcessor
Handle a number range.
Definition: queryparser.h:654
Xapian::InMemory::open
WritableDatabase open()
Construct a WritableDatabase object for a new, empty InMemory database.
Definition: dbfactory.h:104
Xapian::MSetIterator
Iterator over a Xapian::MSet.
Definition: mset.h:347
Xapian::PostingSource::release
PostingSource * release()
Start reference counting this object.
Definition: postingsource.h:372
Xapian::ExpandDeciderAnd
ExpandDecider subclass which rejects terms using two ExpandDeciders.
Definition: expanddecider.h:88
Xapian::Query::get_unique_terms_end
const TermIterator get_unique_terms_end() const
End iterator for unique terms in the query object.
Definition: query.h:507
Xapian::PositionIterator::PositionIterator
PositionIterator()
Default constructor.
Definition: positioniterator.h:81
Xapian::DatabaseVersionError
DatabaseVersionError indicates that a database is in an unsupported format.
Definition: error.h:632
Xapian::DB_DANGEROUS
const int DB_DANGEROUS
Update the database in-place.
Definition: constants.h:103
Xapian::PostingIterator::positionlist_end
PositionIterator positionlist_end() const
Return an end PositionIterator for the current document.
Definition: postingiterator.h:109
Xapian::DocNotFoundError::DocNotFoundError
DocNotFoundError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:690
Xapian::BM25Weight::BM25Weight
BM25Weight(double k1, double k2, double k3, double b, double min_normlen)
Construct a BM25Weight.
Definition: weight.h:558
Xapian::DBCHECK_FULL_TREE
const int DBCHECK_FULL_TREE
Show a full display of the B-tree contents.
Definition: constants.h:216
Xapian::Unicode::SPACE_SEPARATOR
@ SPACE_SEPARATOR
Separator, space (Zs)
Definition: unicode.h:233
Xapian::ValueIterator::ValueIterator
ValueIterator()
Default constructor.
Definition: valueiterator.h:81
Xapian::DBCHECK_SHORT_TREE
const int DBCHECK_SHORT_TREE
Show a short-format display of the B-tree contents.
Definition: constants.h:210
Xapian::MSetIterator::operator-=
MSetIterator & operator-=(difference_type n)
Move the iterator back by n positions.
Definition: mset.h:426
Xapian::PostingIterator
Class for iterating over a list of terms.
Definition: postingiterator.h:41
Xapian::QueryParserError
Indicates a query string can't be parsed.
Definition: error.h:887
Xapian::ErrorHandler
Decide if a Xapian::Error exception should be ignored.
Definition: errorhandler.h:50
Xapian::ErrorHandler::release
const ErrorHandler * release() const
Start reference counting this object.
Definition: errorhandler.h:117
Xapian::ErrorHandler::release
ErrorHandler * release()
Start reference counting this object.
Definition: errorhandler.h:105
Xapian::ValuePostingSource::done
void done()
End the iteration.
Definition: postingsource.h:522
Xapian::Unicode::DASH_PUNCTUATION
@ DASH_PUNCTUATION
Punctuation, dash (Pd)
Definition: unicode.h:241
Xapian::ESetIterator::operator+=
ESetIterator & operator+=(difference_type n)
Move the iterator forwards by n positions.
Definition: eset.h:233
Xapian::ValueRangeProcessor::release
const ValueRangeProcessor * release() const
Start reference counting this object.
Definition: queryparser.h:446
Xapian::MultiValueKeyMaker::MultiValueKeyMaker
MultiValueKeyMaker(Iterator begin, Iterator end)
Construct a MultiValueKeyMaker from a pair of iterators.
Definition: keymaker.h:125
Xapian::DatabaseError::DatabaseError
DatabaseError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:383
Xapian::DatabaseCorruptError::DatabaseCorruptError
DatabaseCorruptError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:425
Xapian::operator^
const Query operator^(const Query &a, const Query &b)
Combine two Xapian::Query objects using OP_XOR.
Definition: query.h:650
Xapian::metres_to_miles
double metres_to_miles(double metres)
Convert from metres to miles.
Definition: geospatial.h:67
Xapian::ESetIterator::operator--
ESetIterator operator--(int)
Move the iterator to the previous position (postfix version).
Definition: eset.h:203
Xapian::Utf8Iterator::operator++
Utf8Iterator & operator++()
Move forward to the next Unicode character.
Definition: unicode.h:176
Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker
LatLongDistanceKeyMaker(Xapian::valueno slot_, const LatLongCoord &centre_, const LatLongMetric &metric_)
Construct a LatLongDistanceKeyMaker.
Definition: geospatial.h:650
Xapian::Query::Query
Query(op op_, const std::string &a, const std::string &b)
Construct a Query object by combining two terms.
Definition: query.h:390
Xapian::MSet::end
MSetIterator end() const
Return iterator pointing to just after the last item in this MSet.
Definition: mset.h:608
Xapian::Weight::get_wdf_upper_bound
Xapian::termcount get_wdf_upper_bound() const
An upper bound on the wdf of this term.
Definition: weight.h:386
Xapian::valueno
unsigned valueno
The number for a value slot in a document.
Definition: types.h:108
Xapian::SerialisationError::SerialisationError
SerialisationError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:945
compactor.h
Compact a database, or merge and compact several.
Xapian::ValueCountMatchSpy::get_total
size_t get_total() const
Return the total number of documents tallied.
Definition: matchspy.h:241
Xapian::percent
int percent
The percentage score for a document in an MSet.
Definition: types.h:66
Xapian::doclength
double doclength
A normalised document length.
Definition: types.h:59
Xapian::QueryParserError::QueryParserError
QueryParserError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:911
Xapian::RuntimeError
The base class for exceptions indicating errors only detectable at runtime.
Definition: error.h:176
Xapian::DB_BACKEND_INMEMORY
const int DB_BACKEND_INMEMORY
Use the "in memory" backend.
Definition: constants.h:195
database.h
API for working with Xapian databases.
Xapian::DPHWeight::DPHWeight
DPHWeight()
Construct a DPHWeight.
Definition: weight.h:1348
constants.h
Constants in the Xapian namespace.
Xapian::Error
All exceptions thrown by Xapian are subclasses of Xapian::Error.
Definition: error.h:43
Xapian::sortable_unserialise
double sortable_unserialise(const std::string &serialised)
Convert a string encoded using sortable_serialise back to a floating point number.
postingsource.h
External sources of posting information.
positioniterator.h
Class for iterating over term positions.
Xapian::ExpandDeciderFilterTerms
ExpandDecider subclass which rejects terms in a specified list.
Definition: expanddecider.h:119
Xapian::MSet::get_firstitem
Xapian::doccount get_firstitem() const
Rank of first item in this MSet.
Xapian::MSet::empty
bool empty() const
Return true if this MSet object is empty.
Definition: mset.h:279
Xapian::BM25PlusWeight::BM25PlusWeight
BM25PlusWeight(double k1, double k2, double k3, double b, double min_normlen, double delta)
Construct a BM25PlusWeight.
Definition: weight.h:672
Xapian::SimpleStopper
Simple implementation of Stopper class - this will suit most users.
Definition: queryparser.h:96
Xapian::termpos
unsigned XAPIAN_TERMPOS_BASE_TYPE termpos
A term position within a document or query.
Definition: types.h:83
Xapian::QueryParser::stoplist_end
TermIterator stoplist_end() const
End iterator over terms omitted from the query as stopwords.
Definition: queryparser.h:1210
Xapian::ValueMapPostingSource
A posting source which looks up weights in a map using values as the key.
Definition: postingsource.h:685
Xapian::UnimplementedError
UnimplementedError indicates an attempt to use an unimplemented feature.
Definition: error.h:325
Xapian::Remote::open_writable
WritableDatabase open_writable(const std::string &host, unsigned int port, useconds_t timeout=0, useconds_t connect_timeout=10000, int flags=0)
Construct a WritableDatabase object for update access to a remote database accessed via a TCP connect...
Xapian::ExpandDecider
Virtual base class for expand decider functor.
Definition: expanddecider.h:37
Xapian::Stopper::~Stopper
virtual ~Stopper()
Class has virtual methods, so provide a virtual destructor.
Definition: queryparser.h:65
Xapian::Utf8Iterator::left
size_t left() const
Return the number of bytes left in the iterator's buffer.
Definition: unicode.h:59
Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker
LatLongDistanceKeyMaker(Xapian::valueno slot_, const LatLongCoord &centre_, const LatLongMetric &metric_, double defdistance)
Construct a LatLongDistanceKeyMaker.
Definition: geospatial.h:629
Xapian::DateValueRangeProcessor::DateValueRangeProcessor
DateValueRangeProcessor(Xapian::valueno slot_, const std::string &str_, bool prefix_=true, bool prefer_mdy_=false, int epoch_year_=1970)
Constructor.
Definition: queryparser.h:569
Xapian::ValuePostingSource::get_value
std::string get_value() const
Read current value.
Definition: postingsource.h:514
Xapian::MSet
Class representing a list of search results.
Definition: mset.h:44
Xapian::ESetIterator::operator-
ESetIterator operator-(difference_type n) const
Return the iterator decremented by n positions.
Definition: eset.h:256
Xapian::doccount
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Definition: types.h:38
Xapian::DatabaseLockError
DatabaseLockError indicates failure to lock a database.
Definition: error.h:493
Xapian::Weight
Abstract base class for weighting schemes.
Definition: weight.h:35
Xapian::Unicode::ENCLOSING_MARK
@ ENCLOSING_MARK
Mark, enclosing (Me)
Definition: unicode.h:228
Xapian::Unicode::LETTER_NUMBER
@ LETTER_NUMBER
Number, letter (Nl)
Definition: unicode.h:231
Xapian::ValuePostingSource::set_termfreq_max
void set_termfreq_max(Xapian::doccount termfreq_max_)
An upper bound on the term frequency.
Definition: postingsource.h:562
Xapian::DatabaseCorruptError::DatabaseCorruptError
DatabaseCorruptError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:433
Xapian::RSet::remove_document
void remove_document(const Xapian::MSetIterator &i)
Remove a document from the relevance set.
Definition: enquire.h:104
Xapian::InL2Weight
This class implements the InL2 weighting scheme.
Definition: weight.h:816
Xapian::PostingIterator::~PostingIterator
~PostingIterator()
Destructor.
Definition: postingiterator.h:84
Xapian::RangeError::RangeError
RangeError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:987
Xapian::PL2PlusWeight
Xapian::Weight subclass implementing the PL2+ probabilistic formula.
Definition: weight.h:1235
Xapian::ValueRangeProcessor
Base class for value range processors.
Definition: queryparser.h:396
Xapian::FeatureUnavailableError::FeatureUnavailableError
FeatureUnavailableError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:743
Xapian::MSetIterator::operator--
MSetIterator operator--(int)
Move the iterator to the previous position (postfix version).
Definition: mset.h:390
unicode.h
Unicode and UTF-8 related classes and functions.
XAPIAN_TERMPOS_BASE_TYPE
#define XAPIAN_TERMPOS_BASE_TYPE
Base (signed) type for Xapian::termpos.
Definition: version.h:77
Xapian::ValuePostingSource::set_termfreq_est
void set_termfreq_est(Xapian::doccount termfreq_est_)
An estimate of the term frequency.
Definition: postingsource.h:551
Xapian::DB_BACKEND_STUB
const int DB_BACKEND_STUB
Open a stub database file.
Definition: constants.h:179
Xapian::Database::compact
void compact(int fd, unsigned flags=0, int block_size=0)
Produce a compact version of this database.
Definition: database.h:663
Xapian::ExpandDeciderAnd::ExpandDeciderAnd
ExpandDeciderAnd(const ExpandDecider *first_, const ExpandDecider *second_)
Compatibility method.
Definition: expanddecider.h:107
Xapian::Query::WILDCARD_LIMIT_ERROR
@ WILDCARD_LIMIT_ERROR
Throw an error if OP_WILDCARD exceeds its expansion limit.
Definition: query.h:282
Xapian::DateRangeProcessor::DateRangeProcessor
DateRangeProcessor(Xapian::valueno slot_, unsigned flags_=0, int epoch_year_=1970)
Constructor.
Definition: queryparser.h:262
Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker
LatLongDistanceKeyMaker(Xapian::valueno slot_, const LatLongCoord &centre_)
Construct a LatLongDistanceKeyMaker.
Definition: geospatial.h:671
Xapian::InvalidOperationError
InvalidOperationError indicates the API was used in an invalid way.
Definition: error.h:283
Xapian::NetworkError::NetworkError
NetworkError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:827
Xapian::Database::size
size_t size() const
Return number of shards in this Database object.
Definition: database.h:93
Xapian::MSet::back
MSetIterator back() const
Return iterator pointing to the last object in this MSet.
Definition: mset.h:620
XAPIAN_TERMCOUNT_BASE_TYPE
#define XAPIAN_TERMCOUNT_BASE_TYPE
Base (signed) type for Xapian::termcount and related types.
Definition: version.h:74
Xapian::MatchSpy::release
const MatchSpy * release() const
Start reference counting this object.
Definition: matchspy.h:196
Xapian::QueryParser::add_valuerangeprocessor
void add_valuerangeprocessor(Xapian::ValueRangeProcessor *vrproc)
Register a ValueRangeProcessor.
Definition: queryparser.h:1231
Xapian::NetworkTimeoutError
Indicates a timeout expired while communicating with a remote database.
Definition: error.h:845
Xapian::MatchDecider
Base class for matcher decision functor.
Definition: enquire.h:118
Xapian::Unicode::UPPERCASE_LETTER
@ UPPERCASE_LETTER
Letter, uppercase (Lu)
Definition: unicode.h:222
Xapian::Query::get_length
Xapian::termcount get_length() const
Return the length of this query object.
Xapian::WildcardError::WildcardError
WildcardError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:1037
Xapian::StemImplementation
Class representing a stemming algorithm implementation.
Definition: stem.h:38
Xapian::DBCHECK_SHOW_STATS
const int DBCHECK_SHOW_STATS
Show statistics for the B-tree.
Definition: constants.h:228
Xapian::StringValueRangeProcessor::StringValueRangeProcessor
StringValueRangeProcessor(Xapian::valueno slot_, const std::string &str_, bool prefix_=true)
Constructor.
Definition: queryparser.h:485
Xapian::TermGenerator
Parses a piece of text and generate terms.
Definition: termgenerator.h:48
XAPIAN_REVISION_TYPE
#define XAPIAN_REVISION_TYPE
Underlying type for Xapian::rev.
Definition: version.h:83
Xapian::ESetIterator
Iterator over a Xapian::ESet.
Definition: eset.h:160
Xapian::MSetIterator::operator++
MSetIterator & operator++()
Advance the iterator to the next position.
Definition: mset.h:371
Xapian::LatLongCoordsIterator::operator==
bool operator==(const LatLongCoordsIterator &other) const
Equality test for LatLongCoordsIterator objects.
Definition: geospatial.h:199
Xapian::Query::empty
bool empty() const
Check if this query is Xapian::Query::MatchNothing.
Definition: query.h:515
Xapian::Weight::get_average_length
Xapian::doclength get_average_length() const
The average length of a document in the collection.
Definition: weight.h:347
Xapian::LatLongDistanceKeyMaker
KeyMaker subclass which sorts by distance from a latitude/longitude.
Definition: geospatial.h:551
Xapian::DatabaseOpeningError::DatabaseOpeningError
DatabaseOpeningError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:597
Xapian::LatLongDistancePostingSource
Posting source which returns a weight based on geospatial distance.
Definition: geospatial.h:454
Xapian::Weight::get_reltermfreq
Xapian::doccount get_reltermfreq() const
The number of relevant documents which this term indexes.
Definition: weight.h:353
Xapian::StemImplementation::StemImplementation
StemImplementation()
Default constructor.
Definition: stem.h:49
Xapian::LatLongCoordsIterator::operator++
DerefWrapper_< LatLongCoord > operator++(int)
Advance the iterator to the next position (postfix version).
Definition: geospatial.h:192
Xapian::LatLongCoord::latitude
double latitude
A latitude, as decimal degrees.
Definition: geospatial.h:88
enquire.h
API for running queries.
Xapian::DecreasingValueWeightPostingSource::range_start
Xapian::docid range_start
Start of range of docids for which weights are known to be decreasing.
Definition: postingsource.h:632
valuesetmatchdecider.h
MatchDecider subclass for filtering results by value.
Xapian::Query::unserialise
static const Query unserialise(const std::string &serialised, const Registry &reg=Registry())
Unserialise a string and return a Query object.
Xapian::LMWeight
Xapian::Weight subclass implementing the Language Model formula.
Definition: weight.h:1384
Xapian::Weight::get_collection_freq
Xapian::termcount get_collection_freq() const
The collection frequency of the term.
Definition: weight.h:356
Xapian::ESetIterator::operator--
ESetIterator & operator--()
Move the iterator to the previous position.
Definition: eset.h:197
Xapian::Unicode::FORMAT
@ FORMAT
Other, format (Cf)
Definition: unicode.h:237
Xapian::QueryParser::add_boolean_prefix
void add_boolean_prefix(const std::string &field, const std::string &prefix, bool exclusive)
Add a boolean term prefix allowing the user to restrict a search with a boolean filter specified in t...
Definition: queryparser.h:1176
Xapian::Weight::get_rset_size
Xapian::doccount get_rset_size() const
The number of documents marked as relevant.
Definition: weight.h:344
Xapian::docid
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Definition: types.h:52
Xapian::Error::get_type
const char * get_type() const
The type of this error (e.g. "DocNotFoundError".)
Definition: error.h:117
Xapian::DecreasingValueWeightPostingSource
Read weights from a value which is known to decrease as docid increases.
Definition: postingsource.h:625
Xapian::PositionIterator::operator++
DerefWrapper_< Xapian::termpos > operator++(int)
Advance the iterator to the next position (postfix version).
Definition: positioniterator.h:96
Xapian::PostingSource::get_maxweight
double get_maxweight() const
Return the currently set upper bound on what get_weight() can return.
Definition: postingsource.h:131
Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker
LatLongDistanceKeyMaker(Xapian::valueno slot_, const LatLongCoords &centre_)
Construct a LatLongDistanceKeyMaker.
Definition: geospatial.h:614
Xapian::LatLongDistanceKeyMaker::LatLongDistanceKeyMaker
LatLongDistanceKeyMaker(Xapian::valueno slot_, const LatLongCoords &centre_, const LatLongMetric &metric_)
Construct a LatLongDistanceKeyMaker.
Definition: geospatial.h:594
Xapian::ValuePostingSource::get_started
bool get_started() const
Flag indicating if we've started (true if we have).
Definition: postingsource.h:531
termgenerator.h
parse free text and generate terms
Xapian::WritableDatabase
This class provides read/write access to a database.
Definition: database.h:777
Xapian::DBCOMPACT_MULTIPASS
const int DBCOMPACT_MULTIPASS
If merging more than 3 databases, merge the postlists in multiple passes.
Definition: constants.h:262
Xapian::RangeProcessor::RangeProcessor
RangeProcessor()
Default constructor.
Definition: queryparser.h:165
Xapian::DocNotFoundError::DocNotFoundError
DocNotFoundError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:698
Xapian::TfIdfWeight::TfIdfWeight
TfIdfWeight()
Construct a TfIdfWeight using the default normalizations ("ntn").
Definition: weight.h:487
Xapian::MatchSpy::release
MatchSpy * release()
Start reference counting this object.
Definition: matchspy.h:184
Xapian
The Xapian namespace contains public interfaces for the Xapian library.
Definition: error.h:34
Xapian::DatabaseLockError::DatabaseLockError
DatabaseLockError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:517
Xapian::WildcardError::WildcardError
WildcardError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:1029
Xapian::GreatCircleMetric
Calculate the great-circle distance between two coordinates on a sphere.
Definition: geospatial.h:399
Xapian::Unicode::CURRENCY_SYMBOL
@ CURRENCY_SYMBOL
Symbol, currency (Sc)
Definition: unicode.h:248
Xapian::Utf8Iterator::assign
void assign(const std::string &s)
Assign a new string to the iterator.
Definition: unicode.h:92
Xapian::NetworkTimeoutError::NetworkTimeoutError
NetworkTimeoutError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:869
Xapian::DatabaseCreateError::DatabaseCreateError
DatabaseCreateError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:475
Xapian::ValueCountMatchSpy::top_values_end
TermIterator top_values_end(size_t) const
End iterator corresponding to top_values_begin()
Definition: matchspy.h:272
Xapian::Compactor::compaction_level
compaction_level
Compaction level.
Definition: compactor.h:48
Xapian::DatabaseClosedError::DatabaseClosedError
DatabaseClosedError(const std::string &msg_, int errno_)
Construct from message and errno value.
Definition: error.h:1121
Xapian::LatLongCoords::end
LatLongCoordsIterator end() const
Get an end iterator for the coordinates.
Definition: geospatial.h:243
Xapian::TfIdfWeight
Xapian::Weight subclass implementing the tf-idf weighting scheme.
Definition: weight.h:425
Xapian::Query
Class representing a query.
Definition: query.h:46
Xapian::ValueCountMatchSpy::values_end
TermIterator values_end() const
End iterator corresponding to values_begin()
Definition: matchspy.h:255
Xapian::QueryParser::set_max_wildcard_expansion
void set_max_wildcard_expansion(Xapian::termcount)
Specify the maximum expansion of a wildcard.
Definition: queryparser.h:1268
Xapian::ESetIterator::operator+
ESetIterator operator+(difference_type n) const
Return the iterator incremented by n positions.
Definition: eset.h:248
Xapian::Compactor::set_renumber
void set_renumber(bool renumber)
Set whether to preserve existing document id values.
Definition: compactor.h:90
Xapian::ESetIterator::operator++
ESetIterator operator++(int)
Advance the iterator to the next position (postfix version).
Definition: eset.h:190
Xapian::LatLongCoords::empty
bool empty() const
Return true if and only if there are no coordinates in the container.
Definition: geospatial.h:254
Xapian::MSet::swap
void swap(MSet &o)
Efficiently swap this MSet object with another.
Definition: mset.h:282
constinfo.h
Mechanism for accessing a struct of constant information.
Xapian::QueryParser::FLAG_WILDCARD
@ FLAG_WILDCARD
Support wildcards.
Definition: queryparser.h:801
Xapian::RangeError
RangeError indicates an attempt to access outside the bounds of a container.
Definition: error.h:971
Xapian::TermGenerator::index_text_without_positions
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.
Definition: termgenerator.h:246
Xapian::QueryParser::add_boolean_prefix
void add_boolean_prefix(const std::string &field, Xapian::FieldProcessor *proc, bool exclusive)
Register a FieldProcessor for a boolean prefix.
Definition: queryparser.h:1196
Xapian::PostingIterator::operator++
DerefWrapper_< Xapian::docid > operator++(int)
Advance the iterator to the next position (postfix version).
Definition: postingiterator.h:117
Xapian::RangeProcessor::slot
Xapian::valueno slot
The value slot to process.
Definition: queryparser.h:145
Xapian::MSetIterator::operator-
MSetIterator operator-(difference_type n) const
Return the iterator decremented by n positions.
Definition: mset.h:443
Xapian::ESet::begin
ESetIterator begin() const
Return iterator pointing to the first item in this ESet.
Definition: eset.h:345
Xapian::ESetIterator::ESetIterator
ESetIterator()
Create an unpositioned ESetIterator.
Definition: eset.h:178
Xapian::operator!=
bool operator!=(const ESetIterator &a, const ESetIterator &b)
Inequality test for ESetIterator objects.
Definition: eset.h:287
Xapian::FieldProcessor::FieldProcessor
FieldProcessor()
Default constructor.
Definition: queryparser.h:731
geospatial.h
Geospatial search support routines.
Xapian::DB_NO_TERMLIST
const int DB_NO_TERMLIST
When creating a database, don't create a termlist table.
Definition: constants.h:136
Xapian::Document
A handle representing a document in a Xapian database.
Definition: document.h:61
Xapian::BM25PlusWeight
Xapian::Weight subclass implementing the BM25+ probabilistic formula.
Definition: weight.h:617
Xapian::DB_BACKEND_CHERT
const int DB_BACKEND_CHERT
Use the chert backend.
Definition: constants.h:170
Xapian::Database
This class is used to access a database, or a group of databases.
Definition: database.h:68
Xapian::DateValueRangeProcessor::DateValueRangeProcessor
DateValueRangeProcessor(Xapian::valueno slot_, const char *str_, bool prefix_=true, bool prefer_mdy_=false, int epoch_year_=1970)
Constructor.
Definition: queryparser.h:620
mset.h
Class representing a list of search results.
Xapian::UnimplementedError::UnimplementedError
UnimplementedError(const std::string &msg_, const std::string &context_=std::string(), int errno_=0)
General purpose constructor.
Definition: error.h:341
Xapian::PositionIterator::~PositionIterator
~PositionIterator()
Destructor.
Definition: positioniterator.h:85
Xapian::RSet::contains
bool contains(const Xapian::MSetIterator &i) const
Test if a given document in the relevance set.
Definition: enquire.h:110
Xapian::Query::LEAF_MATCH_ALL
@ LEAF_MATCH_ALL
Value returned by get_type() for MatchAll or equivalent.
Definition: query.h:267
Xapian::Enquire::get_mset
MSet get_mset(Xapian::doccount first, Xapian::doccount maxitems, const RSet *omrset, const MatchDecider *mdecider=0) const
Get (a portion of) the match set for the current query.
Definition: enquire.h:576
Xapian::KeyMaker::KeyMaker
KeyMaker()
Default constructor.
Definition: keymaker.h:51
Xapian::Document::add_boolean_term
void add_boolean_term(const std::string &term)
Add a boolean filter term to the document.
Definition: document.h:191
Xapian::NetworkError
Indicates a problem communicating with a remote database.
Definition: error.h:803
Xapian::Stem::get_available_languages
static std::string get_available_languages()
Return a list of available languages.
Definition: stem.h:181