26 #define XAPIAN_DEPRECATED(D) D 45 TEST(!fixedweightpostingsource.get_description().empty());
61 TEST(!valuemappostingsource.get_description().empty());
63 TEST(!valuepostingsource.get_description().empty());
65 TEST(!valueweightpostingsource.get_description().empty());
73 TEST(!copy_database.get_description().empty());
75 TEST(!move_database.get_description().empty());
76 database = copy_database;
77 TEST(!database.get_description().empty());
78 copy_database = std::move(move_database);
79 TEST(!copy_database.get_description().empty());
82 TEST(!document.get_description().empty());
84 TEST(!copy_document.get_description().empty());
86 TEST(!move_document.get_description().empty());
87 document = copy_document;
88 TEST(!document.get_description().empty());
89 copy_document = std::move(move_document);
90 TEST(!copy_document.get_description().empty());
93 TEST(!eset.get_description().empty());
95 TEST(!copy_eset.get_description().empty());
97 TEST(!move_eset.get_description().empty());
99 TEST(!eset.get_description().empty());
100 copy_eset = std::move(move_eset);
101 TEST(!copy_eset.get_description().empty());
104 TEST(!esetiterator.get_description().empty());
106 TEST(!copy_esetiterator.get_description().empty());
108 TEST(!move_esetiterator.get_description().empty());
109 esetiterator = copy_esetiterator;
110 TEST(!esetiterator.get_description().empty());
111 copy_esetiterator = std::move(move_esetiterator);
112 TEST(!copy_esetiterator.get_description().empty());
114 #ifdef XAPIAN_HAS_INMEMORY_BACKEND 116 TEST(!enquire.get_description().empty());
118 TEST(!copy_enquire.get_description().empty());
120 TEST(!move_enquire.get_description().empty());
121 enquire = copy_enquire;
122 TEST(!enquire.get_description().empty());
123 copy_enquire = std::move(move_enquire);
124 TEST(!copy_enquire.get_description().empty());
128 TEST(!mset.get_description().empty());
130 TEST(!copy_mset.get_description().empty());
132 TEST(!move_mset.get_description().empty());
134 TEST(!mset.get_description().empty());
135 copy_mset = std::move(move_mset);
136 TEST(!copy_mset.get_description().empty());
139 TEST(!msetiterator.get_description().empty());
141 TEST(!copy_msetiterator.get_description().empty());
143 TEST(!move_msetiterator.get_description().empty());
144 msetiterator = copy_msetiterator;
145 TEST(!msetiterator.get_description().empty());
146 copy_msetiterator = std::move(move_msetiterator);
147 TEST(!copy_msetiterator.get_description().empty());
150 TEST(!positioniterator.get_description().empty());
152 TEST(!copy_positioniterator.get_description().empty());
154 TEST(!move_positioniterator.get_description().empty());
155 positioniterator = copy_positioniterator;
156 TEST(!positioniterator.get_description().empty());
157 copy_positioniterator = std::move(move_positioniterator);
158 TEST(!copy_positioniterator.get_description().empty());
161 TEST(!postingiterator.get_description().empty());
163 TEST(!copy_postingiterator.get_description().empty());
165 TEST(!move_postingiterator.get_description().empty());
166 postingiterator = copy_postingiterator;
167 TEST(!postingiterator.get_description().empty());
168 copy_postingiterator = std::move(move_postingiterator);
169 TEST(!copy_postingiterator.get_description().empty());
172 TEST(!query.get_description().empty());
174 TEST(!copy_query.get_description().empty());
176 TEST(!move_query.get_description().empty());
178 TEST(!query.get_description().empty());
179 copy_query = std::move(move_query);
180 TEST(!copy_query.get_description().empty());
183 TEST(!queryparser.get_description().empty());
185 TEST(!copy_queryparser.get_description().empty());
187 TEST(!move_queryparser.get_description().empty());
188 queryparser = copy_queryparser;
189 TEST(!queryparser.get_description().empty());
190 copy_queryparser = std::move(move_queryparser);
191 TEST(!copy_queryparser.get_description().empty());
194 TEST(!rset.get_description().empty());
196 TEST(!copy_rset.get_description().empty());
198 TEST(!move_rset.get_description().empty());
200 TEST(!rset.get_description().empty());
201 copy_rset = std::move(move_rset);
202 TEST(!copy_rset.get_description().empty());
207 registry = copy_registry;
208 copy_registry = std::move(move_registry);
213 TEST(!copy_stem.get_description().empty());
215 TEST(!move_stem.get_description().empty());
217 TEST(!stem.get_description().empty());
218 copy_stem = std::move(move_stem);
219 TEST(!copy_stem.get_description().empty());
222 TEST(!termgenerator.get_description().empty());
224 TEST(!copy_termgenerator.get_description().empty());
226 TEST(!move_termgenerator.get_description().empty());
227 termgenerator = copy_termgenerator;
228 TEST(!termgenerator.get_description().empty());
229 copy_termgenerator = std::move(move_termgenerator);
230 TEST(!copy_termgenerator.get_description().empty());
233 TEST(!termiterator.get_description().empty());
235 TEST(!copy_termiterator.get_description().empty());
237 TEST(!move_termiterator.get_description().empty());
238 termiterator = copy_termiterator;
239 TEST(!termiterator.get_description().empty());
240 copy_termiterator = std::move(move_termiterator);
241 TEST(!copy_termiterator.get_description().empty());
244 TEST(!valueiterator.get_description().empty());
246 TEST(!copy_valueiterator.get_description().empty());
248 TEST(!move_valueiterator.get_description().empty());
249 valueiterator = copy_valueiterator;
250 TEST(!valueiterator.get_description().empty());
251 copy_valueiterator = std::move(move_valueiterator);
252 TEST(!copy_valueiterator.get_description().empty());
255 TEST(!writabledatabase.get_description().empty());
257 TEST(!copy_writabledatabase.get_description().empty());
259 TEST(!move_writabledatabase.get_description().empty());
260 writabledatabase = copy_writabledatabase;
261 TEST(!writabledatabase.get_description().empty());
262 copy_writabledatabase = std::move(move_writabledatabase);
263 TEST(!copy_writabledatabase.get_description().empty());
const int DB_BACKEND_INMEMORY
Use the "in memory" backend.
virtual std::string get_description() const
Return a string describing this object.
Simple implementation of Stopper class - this will suit most users.
#define TEST(a)
Test a condition, without an additional explanation for failure.
This class is used to access a database, or a group of databases.
Class representing a stemming algorithm.
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.
Parses a piece of text and generate terms.
virtual std::string get_description() const
Return a string describing this object.
Build a Xapian::Query object from a user query string.
Class for iterating over document values.
Class representing a list of search results.
This class implements the InL2 weighting scheme.
DEFINE_TESTCASE(defaultctor1, !backend)
Check uncopyable API classes which should have a default ctor actually do.
Read weights from a value which is known to decrease as docid increases.
test functionality of the Xapian API
This class implements the BB2 weighting scheme.
Class for iterating over a list of terms.
Class for iterating over a list of terms.
KeyMaker subclass which combines several values.
Class implementing a "boolean" weighting scheme.
This class provides read/write access to a database.
Iterator over a Xapian::MSet.
std::string get_description() const
Return a string describing this object.
Registry for user subclasses.
Public interfaces for the Xapian library.
A posting source which returns a fixed weight for all documents.
Xapian::Weight subclass implementing the traditional probabilistic formula.
This class implements the DLH weighting scheme, which is a representative scheme of the Divergence fr...
Class for iterating over term positions.
This class implements the IneB2 weighting scheme.
Iterator over a Xapian::ESet.
A posting source which generates weights from a value slot.
Base class for range processors.
Class for counting the frequencies of values in the matching documents.
This class implements the IfB2 weighting scheme.
A posting source which reads weights from a value slot.
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())
This class provides an interface to the information retrieval system for the purpose of searching...
virtual std::string get_description() const
Return a string describing this object.
Xapian-specific test helper functions and macros.
Class representing a list of search results.
Class representing a query.
A handle representing a document in a Xapian database.
Xapian::Weight subclass implementing the BM25 probabilistic formula.
Xapian::Weight subclass implementing the tf-idf weighting scheme.