26 #define XAPIAN_DEPRECATED(D) D
82 database = copy_database;
84 copy_database = std::move(move_database);
93 document = copy_document;
95 copy_document = std::move(move_document);
106 copy_eset = std::move(move_eset);
115 esetiterator = copy_esetiterator;
117 copy_esetiterator = std::move(move_esetiterator);
120 #ifdef XAPIAN_HAS_INMEMORY_BACKEND
127 enquire = copy_enquire;
129 copy_enquire = std::move(move_enquire);
141 copy_mset = std::move(move_mset);
150 msetiterator = copy_msetiterator;
152 copy_msetiterator = std::move(move_msetiterator);
161 positioniterator = copy_positioniterator;
163 copy_positioniterator = std::move(move_positioniterator);
172 postingiterator = copy_postingiterator;
174 copy_postingiterator = std::move(move_postingiterator);
185 copy_query = std::move(move_query);
194 queryparser = copy_queryparser;
196 copy_queryparser = std::move(move_queryparser);
207 copy_rset = std::move(move_rset);
213 registry = copy_registry;
214 copy_registry = std::move(move_registry);
224 copy_stem = std::move(move_stem);
233 termgenerator = copy_termgenerator;
235 copy_termgenerator = std::move(move_termgenerator);
244 termiterator = copy_termiterator;
246 copy_termiterator = std::move(move_termiterator);
252 utf8iterator = copy_utf8iterator;
253 copy_utf8iterator = std::move(move_utf8iterator);
261 valueiterator = copy_valueiterator;
263 copy_valueiterator = std::move(move_valueiterator);
272 writabledatabase = copy_writabledatabase;
274 copy_writabledatabase = std::move(move_writabledatabase);
282 using traits = iterator_traits<Xapian::ESetIterator>;
283 using pointer_base = std::remove_pointer<traits::pointer>::type;
284 using reference_base = std::remove_reference<traits::reference>::type;
285 static_assert(is_same<decltype(*std::declval<Xapian::ESetIterator>()),
286 pointer_base>::value,
287 "iterator_traits<ESetIterator>::pointer inconsistent with "
288 "type from dereferencing ESetIterator");
289 static_assert(is_same<decltype(*std::declval<Xapian::ESetIterator>()),
290 reference_base>::value,
291 "iterator_traits<ESetIterator>::reference inconsistent with "
292 "type from dereferencing ESetIterator");
295 using traits = iterator_traits<Xapian::MSetIterator>;
296 using pointer_base = std::remove_pointer<traits::pointer>::type;
297 using reference_base = std::remove_reference<traits::reference>::type;
298 static_assert(is_same<decltype(*std::declval<Xapian::MSetIterator>()),
299 pointer_base>::value,
300 "iterator_traits<MSetIterator>::pointer inconsistent with "
301 "type from dereferencing MSetIterator");
302 static_assert(is_same<decltype(*std::declval<Xapian::MSetIterator>()),
303 reference_base>::value,
304 "iterator_traits<MSetIterator>::reference inconsistent with "
305 "type from dereferencing MSetIterator");
308 using traits = iterator_traits<Xapian::PositionIterator>;
309 using pointer_base = std::remove_pointer<traits::pointer>::type;
310 using reference_base = std::remove_reference<traits::reference>::type;
311 static_assert(is_same<decltype(*std::declval<Xapian::PositionIterator>()),
312 pointer_base>::value,
313 "iterator_traits<PositionIterator>::pointer inconsistent with "
314 "type from dereferencing PositionIterator");
315 static_assert(is_same<decltype(*std::declval<Xapian::PositionIterator>()),
316 reference_base>::value,
317 "iterator_traits<PositionIterator>::reference inconsistent with "
318 "type from dereferencing PositionIterator");
321 using traits = iterator_traits<Xapian::PostingIterator>;
322 using pointer_base = std::remove_pointer<traits::pointer>::type;
323 using reference_base = std::remove_reference<traits::reference>::type;
324 static_assert(is_same<decltype(*std::declval<Xapian::PostingIterator>()),
325 pointer_base>::value,
326 "iterator_traits<PostingIterator>::pointer inconsistent with "
327 "type from dereferencing PostingIterator");
328 static_assert(is_same<decltype(*std::declval<Xapian::PostingIterator>()),
329 reference_base>::value,
330 "iterator_traits<PostingIterator>::reference inconsistent with "
331 "type from dereferencing PostingIterator");
334 using traits = iterator_traits<Xapian::TermIterator>;
335 using pointer_base = std::remove_pointer<traits::pointer>::type;
336 using reference_base = std::remove_reference<traits::reference>::type;
337 static_assert(is_same<decltype(*std::declval<Xapian::TermIterator>()),
338 pointer_base>::value,
339 "iterator_traits<TermIterator>::pointer inconsistent with "
340 "type from dereferencing TermIterator");
341 static_assert(is_same<decltype(*std::declval<Xapian::TermIterator>()),
342 reference_base>::value,
343 "iterator_traits<TermIterator>::reference inconsistent with "
344 "type from dereferencing TermIterator");
347 using traits = iterator_traits<Xapian::Utf8Iterator>;
348 using pointer_base = std::remove_pointer<traits::pointer>::type;
349 using reference_base = std::remove_reference<traits::reference>::type;
350 static_assert(is_same<decltype(*std::declval<Xapian::Utf8Iterator>()),
351 pointer_base>::value,
352 "iterator_traits<Utf8Iterator>::pointer inconsistent with "
353 "type from dereferencing Utf8Iterator");
354 static_assert(is_same<decltype(*std::declval<Xapian::Utf8Iterator>()),
355 reference_base>::value,
356 "iterator_traits<Utf8Iterator>::reference inconsistent with "
357 "type from dereferencing Utf8Iterator");
360 using traits = iterator_traits<Xapian::ValueIterator>;
361 using pointer_base = std::remove_pointer<traits::pointer>::type;
362 using reference_base = std::remove_reference<traits::reference>::type;
363 static_assert(is_same<decltype(*std::declval<Xapian::ValueIterator>()),
364 pointer_base>::value,
365 "iterator_traits<ValueIterator>::pointer inconsistent with "
366 "type from dereferencing ValueIterator");
367 static_assert(is_same<decltype(*std::declval<Xapian::ValueIterator>()),
368 reference_base>::value,
369 "iterator_traits<ValueIterator>::reference inconsistent with "
370 "type from dereferencing ValueIterator");
378 std::remove_pointer<Xapian::ESet::pointer>::type;
379 using reference_base =
380 std::remove_reference<Xapian::ESet::reference>::type;
382 static_assert(is_same<value_type, pointer_base>::value,
383 "Xapian::ESet::pointer inconsistent with "
384 "Xapian::ESet::value_type");
385 static_assert(is_same<value_type, reference_base>::value,
386 "Xapian::ESet::reference inconsistent with "
387 "Xapian::ESet::value_type");
391 std::remove_pointer<Xapian::MSet::pointer>::type;
392 using reference_base =
393 std::remove_reference<Xapian::MSet::reference>::type;
395 static_assert(is_same<value_type, pointer_base>::value,
396 "Xapian::MSet::pointer inconsistent with "
397 "Xapian::MSet::value_type");
398 static_assert(is_same<value_type, reference_base>::value,
399 "Xapian::MSet::reference inconsistent with "
400 "Xapian::MSet::value_type");
static Xapian::Query query(Xapian::Query::op op, const string &t1=string(), const string &t2=string(), const string &t3=string(), const string &t4=string(), const string &t5=string(), const string &t6=string(), const string &t7=string(), const string &t8=string(), const string &t9=string(), const string &t10=string())
DEFINE_TESTCASE(defaultctor1, !backend)
Check uncopyable API classes which should have a default ctor actually do.
test functionality of the Xapian API
This class implements the BB2 weighting scheme.
Xapian::Weight subclass implementing the BM25+ probabilistic formula.
Xapian::Weight subclass implementing the BM25 probabilistic formula.
Class implementing a "boolean" weighting scheme.
Xapian::Weight subclass implementing Coordinate Matching.
This class implements the DLH weighting scheme, which is a representative scheme of the Divergence fr...
This class implements the DPH weighting scheme.
This class is used to access a database, or a group of databases.
virtual std::string get_description() const
Return a string describing this object.
Read weights from a value which is known to decrease as docid increases.
std::string get_description() const
Return a string describing this object.
A handle representing a document in a Xapian database.
std::string get_description() const
Return a string describing this object.
Iterator over a Xapian::ESet.
std::string get_description() const
Return a string describing this object.
Class representing a list of search results.
std::string get_description() const
Return a string describing this object.
Xapian::ESetIterator value_type
This class provides an interface to the information retrieval system for the purpose of searching.
std::string get_description() const
Return a string describing this object.
A posting source which returns a fixed weight for all documents.
std::string get_description() const
Return a string describing this object.
This class implements the IfB2 weighting scheme.
This class implements the InL2 weighting scheme.
This class implements the IneB2 weighting scheme.
Xapian::Weight subclass implementing the Language Model formula.
Iterator over a Xapian::MSet.
std::string get_description() const
Return a string describing this object.
Class representing a list of search results.
Xapian::MSetIterator value_type
std::string get_description() const
Return a string describing this object.
KeyMaker subclass which combines several values.
Xapian::Weight subclass implementing the PL2+ probabilistic formula.
This class implements the PL2 weighting scheme.
Class for iterating over term positions.
std::string get_description() const
Return a string describing this object.
Class for iterating over a list of terms.
std::string get_description() const
Return a string describing this object.
virtual std::string get_description() const
Return a string describing this object.
Build a Xapian::Query object from a user query string.
std::string get_description() const
Return a string describing this object.
Class representing a query.
std::string get_description() const
Return a string describing this object.
std::string get_description() const
Return a string describing this object.
Base class for range processors.
Registry for user subclasses.
Simple implementation of Stopper class - this will suit most users.
virtual std::string get_description() const
Return a string describing this object.
Class representing a stemming algorithm.
std::string get_description() const
Return a string describing this object.
Parses a piece of text and generate terms.
std::string get_description() const
Return a string describing this object.
Class for iterating over a list of terms.
std::string get_description() const
Return a string describing this object.
Xapian::Weight subclass implementing the tf-idf weighting scheme.
Xapian::Weight subclass implementing the traditional probabilistic formula.
An iterator which returns Unicode character values from a UTF-8 encoded string.
Class for counting the frequencies of values in the matching documents.
virtual std::string get_description() const
Return a string describing this object.
Class for iterating over document values.
std::string get_description() const
Return a string describing this object.
A posting source which looks up weights in a map using values as the key.
std::string get_description() const
Return a string describing this object.
A posting source which generates weights from a value slot.
A posting source which reads weights from a value slot.
std::string get_description() const
Return a string describing this object.
This class provides read/write access to a database.
std::string get_description() const
Return a string describing this object.
const int DB_BACKEND_INMEMORY
Use the "in memory" backend.
#define TEST(a)
Test a condition, without an additional explanation for failure.
Xapian-specific test helper functions and macros.
Public interfaces for the Xapian library.