Add accept() wrapper
[xapian.git] / xapian-core / NEWS
blobea1cde8d0405732c0f8cb3b93b0afc259a30732d
1 Xapian-core 1.4.20 (2022-07-04):
3 API:
5 * Throw DatabaseNotFoundError when the database directory doesn't exist or
6   when it doesn't contain a Xapian database.  Patch from Germán Méndez Bravo
7   in https://github.com/xapian/xapian/pull/258
9 * Improve exception message for attempting to remove an empty term (the
10   exception type is still InvalidArgumentError).  Reported by David Bremner.
12 testsuite:
14 * Enable queryparser testcase for OR under NEAR, which has been supported since
15   1.4.3.
17 * Expand some query-related testcases.
19 matcher:
21 * Optimise when a value range is a superset of the slot bounds but the value
22   slot frequency is not equal to the document count by replacing the lower
23   bound with an empty string to make the bounds check very cheap.
25 * Avoid creating a PostList tree for an empty shard.  This avoids pointless
26   work in an uncommon case, but also by handling this up front the code in
27   PostList subclasses for query operators can assume the shard isn't empty
28   which simplifies the code in several places.
30 * Remove lingering handling for database backends without slot bounds since
31   all backends have been required to support these since 1.4.11.
33 * Fix collection frequency estimates for positional operators.  This affects
34   the weighting of positional operators in subqueries of OP_SYNONYM with
35   weighting schemes which use the collection frequency.
37 glass backend:
39 * xapian-check: Test decompress data in the spelling and synonym tables.
40   We don't have structure checking for these tables, but we can at least fetch
41   each entry and check for decompression problems.
43 * Improve error if a block is detected as overwritten in WritableDatabase.
44   Drop "are there multiple writers?" as it's rarely a useful question to ask
45   since we started using fcntl() locking as it's now very hard to get multiple
46   concurrent writers on a database.  Instead suggest running xapian-check,
47   which is probably the best next step for a user who hits this problem.
49 documentation:
51 * Document precedence of NEAR and ADJ.
53 * INSTALL: Note that MSVS 2022 works.
55 tools:
57 * quest: Add --freqs option to show term frequencies.
59 * xapian-delve -v: Show value slot bounds and freq
61 portability:
63 * Fix to build with a C++20 compiler.
65 * configure now probes for a declaration of strerror_r() before using it, since
66   a declaration is required in C++ code.
68 * MSVC: Use intrinsics to implement addition with overflow check.
70 Xapian-core 1.4.19 (2021-12-31):
72 API:
74 * New QueryParser::FLAG_NO_POSITIONS flag.  With this flag enabled, any query
75   operations which would use positional information are replaced by the nearest
76   equivalent which doesn't (so phrase searches, NEAR and ADJ will result in
77   OP_AND).  This is intended to replace the automatic conversion of OP_PHRASE,
78   etc to OP_AND when a database has no positional information, which will no
79   longer happen in the release series after 1.4.
81 * Give a compile error for code which adds a Database to WritableDatabase.
83   Prior to 1.4.19, this compiled and effectively created a "black-hole" shard
84   which quietly discarded any changes made to it.
86   In 1.4.19 it's still possible to perform this operation by assigning the
87   WritableDatabase to a Database first, which is harder to fix.  This case
88   throws an exception on git master where it's easier to address.
90   Reported by David Bremner on #xapian.
92 * Fix TermIterator::skip_to() with sharded databases which sometimes was
93   failing to advance all the way to the requested term.  Uncovered while
94   addressing warning from GCC's -Wduplicated-cond, reported by dcb in #816.
96 * Clamp edit distance to one less than the length of the word we've been asked
97   to correct, which makes the algorithm we use more efficient.  We already
98   require suggestion to have at least one character in common, so the only
99   change to suggestions is we'll no longer suggest corrections which are
100   twice as long or longer even if the edit distance would allow it, which
101   seems like an improvement in itself.
103 * Minor optimisation expanding wildcards.
105 * PostingIterator::get_description(): For an all-docs iterator on a glass
106   database, get_description() would call get_docid() which isn't valid to
107   do once the iterator has reached the end.
109 testsuite:
111 * Expand allterms test coverage.
113 matcher:
115 * Fetch wdf upper bound from postlist which avoids an extra postlist table
116   cursor seek per weighted query term, and also means we now use a per-shard
117   wdf upper bound for local shards which will in typically give a tighter
118   weight upper bound which will tend to make various other matcher
119   optimisations more effective.  Eric Wong reported this speeds up a
120   particularly slow case from ~2 minutes to ~3 seconds.
122   With this change, OP_ELITE_SET can now select a different subset of terms for
123   each shard regardless of shard type (previously this only happened for remote
124   shards).
126 * Avoid triggering a pointless maximum weight recalculation if an unweighted
127   child of a MultiAndPostList prunes.
129 * Only check if the database has positional information when the query
130   uses positional information.  This should help improve notmuch delete
131   performance.  Thanks to andreas on #notmuch for analysis of the problem.
133 glass backend:
135 * Optimise Glass::Inverter::has_positions().  Use const auto& instead of just
136   auto for the loop variables.  Reported to be faster by andreas on #notmuch.
138 * Cache result of Glass::Inverter::has_positions() since calculating it is
139   potentially very expensive, while maintaining a cached answer is very cheap.
141 remote backend:
143 * Add missing closing parenthesis to reported remote prog context, which has
144   been missing since this code was first added over 20 years ago!  Spotted by
145   Gaurav Arora.
147 build system:
149 * Enable compiler option -fno-semantic-interposition if supported.
151   This GCC option allows the compiler to optimise essentially assuming
152   that functions/variables aren't replaced at dynamic link time.
154   Such replacement is not something that it's useful to do for Xapian
155   symbols, and we already turn on -Bsymbolic-functions by default which
156   prevents such replacement anyway by resolving references within the
157   library at build time.
159   Reduces the size of the stripped library on x86-64 Debian unstable by
160   ~1%, and likely makes it faster too.
162 * Avoid bogus deprecation warning when compiling with GCC without optimisation.
163   In this situation, GCC emits a deprecation warning for code in the definition
164   of QueryParser::add_valuerangeprocessor() which is provided for backwards
165   API compatibility even if this method is never used anywhere.
167   This isn't helpful, especially if the user is using -Werror, so disable the
168   -Wdeprecated-deprecations warning for this code.
170   Reported by starmad on #xapian.
172 * Fix GCC -Wmaybe-uninitialized warning.  The warning seems bogus as it's about
173   the this pointer being passed to a method which doesn't reference the object,
174   but we can just make the method static to avoid the warning, and that's
175   arguably cleaner for a method called from the object initialiser list.
177 * Automatically enable GCC warnings -Wduplicated-cond and -Wduplicated-branches
178   if using a GCC version new enough to support them.  The usefulness of
179   -Wduplicated-cond was highlighted by dcb in #816.
181 * Replace uses of obsolete autoconf macros, fixing warnings if configure is
182   regenerated with a recent release of autoconf.
184 * Simplify configure probe for sigsetjmp and siglongjmp.  Just probe
185   individually with AC_CHECK_DECLS and then check that both exist with a
186   preprocessor check.
188 * Update XO_LIB_XAPIAN to fix warning that AC_ERROR is obsolete with modern
189   autoconf.
191 * Support linking against static libxapian with cmake. Patch from Anonymous
192   Maarten in https://github.com/xapian/xapian/pull/317
194 * Clean up handling of libs we link libxapian with - previously any libraries
195   explicitly specified to configure by the user via LIBS=... as well as -lm
196   (if configure determined it was needed) could get added to XAPIAN_LIBS
197   multiple times, as well as also getting added to the libxapian link command
198   anyway by automake/libtool standard handling.
200   Specifying a library more than once on the link line is not a problem on
201   common platforms, but may be an issue somewhere (and it's on less common
202   platforms where the user is more likely to have to specify LIBS to configure
203   and/or where -lm may be needed).
205 documentation:
207 * configure: Add missing AC_ARG_VAR for all programs so that they are
208   documented in --help output, and so that autoconf knows they are "precious"
209   and preserves them if configure is rerun even when they're specified via an
210   environment variable.
212 * Don't use x^2 to mean x squared in API docs.  This is potentially confusing
213   since in C/C++ (and some other languages), ^ means exclusive-or.  Write x²
214   instead, which should be clear to all readers.
216 * Improve docs for Xapian::Stopper and SimpleStopper.
218 * docs/intro_ir.rst: Fixed an incorrect term index.  Patch from Jaak Ristioja
219   in https://github.com/xapian/xapian/pull/321.
221 * Update for the IRC channel move from freenode to libera.chat.
223 examples:
225 * quest: Don't enable spelling correction by default.  It was really only on by
226   default because the spelling correction support in quest was added before
227   --flags.  It seems more helpful for the default to match the
228   Xapian::QueryParser API, and also this fixes the weird situation that
229   `--flags default` isn't the default you get without any `--flags` option.
231 * quest: Multiple `--flags` options now get combined - previously only the last
232   was used.
234 portability:
236 * Don't automatically use _FORTIFY_SOURCE on mingw-w64.  Recent mingw-w64
237   versions require -lssp to be linked when _FORTIFY_SOURCE is enabled, so just
238   skip the automatic enabling.  Users who want to enable it can specify it
239   explicitly.
241   Fixes #808, reported by xpbxf4.
243 * Workaround NFS issue in test harness function for deleting test databases.
244   On NFS, rmdir() can fail with EEXIST or ENOTEMPTY (POSIX allows either)
245   due to .nfs* files which are used by NFS clients to implement the Unix
246   semantics of a deleted but open file continuing to exist.  We now sleep
247   and retry a few times in this situation to give the NFS client a chance
248   to process the closing of the open handle.  Problem mentioned in #631.
250 * configure: Drop -lm special case for Sun C++ as this no longer seems to
251   be required.  Tested with Sun C++ 5.13, which is the oldest version we
252   now support due to us now requiring C++11.
254 * Use strerrordesc_np() if available. This is a GNU-specific replacement for
255   sys_errlist and sys_nerr.  It was added in glibc 2.32 since which sys_errlist
256   and sys_nerr are no longer declared in the headers.
258 * Update debug logging to use std::uncaught_exceptions() under C++17 and later
259   since this allows the debug logging to detect a function without RETURN()
260   annotation which exits normally while there's an uncaught exception
261   (previously the debug logging would think the stack was being unwound through
262   the function).  This also avoids deprecation warnings - the old
263   std::uncaught_exception() (note: singular) function was deprecated by
264   C++17 and removed in C++20.
266 * Increase size of buffer passed to strerror_r() from 128 to 1024 bytes, which
267   is the size recommended by the man page on Linux.
269 * Fix -Wdeprecated-copy warning from clang 13.
271 Xapian-core 1.4.18 (2021-01-14):
273 API:
275 * QueryParser::FLAG_ACCUMULATE: New flag.  Previously the unstem and stoplist
276   data was always reset by a call to QueryParser::parse_query(), which makes
277   sense if you use the same QueryParser object to parse a series of independent
278   queries.  If you're using the same QueryParser object to parse several fields
279   on the same query form, you may want to have the unstem and stoplist data
280   combined for all of them, in which case you can use this flag to prevent this
281   data from being reset.
283 * QueryParser::unstem_begin(): Eliminate unnecessary copying of the data.
285 * Fix typo in Swedish stopword list, syncing change made to Snowball by Daniel
286   Gómez Villanueva.
288 * Remove some French stop words with other meanings, syncing change made to
289   Snowball by PhilippeOuellet.
291 testsuite:
293 * Run testcase testlock4 using backend chert, not just using glass
295 * Skip testcase testlock4 on platforms that don't allow us to implement
296   Database::locked() (which notably include GNU Hurd and Microsoft Windows).
298 documentation:
300 * List DB_NO_TERMLIST in the WritableDatabase constructor API documentation
301   where we already list the other DB_* constants.
303 portability:
305 * Eliminate single use of std::mem_fun() which was deprecated in C++11 and
306   removed in C++17.  Reported by Mateusz Pusz in #806.
308 * Add missing includes for std::numeric_limits<>.  Reported by stac47 in #805.
310 * Work around mingw.org header issue.  MSVC seems to implicitly include
311   <winerror.h> but mingw.org's headers don't, leading to ERROR_PIPE_CONNECTED
312   not being defined.  Fixes https://github.com/xapian/xapian/pull/318, reported
313   by Alex Sandro.
315 * Suppress MSVC warnings about possible loss of data.  The values involved are
316   the number of set bits in a value of integer type, so these warnings are
317   bogus.
319 * Include <sys/types.h> for size_t and off_t, which is the appropriate header,
320   and needed with Android's bionic libc.  Patch from Matthieu Gautier.
322 * Use a temporary file for the Doxygen configuration to work around Doxygen
323   1.8.19 bug which truncates a config file read from stdin to 4096 bytes
324   (https://github.com/doxygen/doxygen/issues/7975).
326 Xapian-core 1.4.17 (2020-08-21):
328 API:
330 * Database::get_average_length(): Add this as an alias for
331   Database::get_avlen().  In git master we've added this as a preferred new
332   name - adding it to 1.4.x too will make it easier for users to update to
333   using this.
335 * Database::get_spelling_suggestion(): Optimise edit distance initialisation
336   loop to significantly reduce the cost of a typical edit distance calculation.
338 * Fix query expansion on sharded databases.  The mechanism for passing in which
339   shard a TermList is from wasn't hooked up and as a result we'd always think
340   it's from the first shard, meaning the statistics would be wrong and that our
341   suggested terms may not have been as good as they should be in this
342   situation.
344 * Enquire::get_eset(): Use string::compare() to avoid 1/3 of the string compares
345   on average.
347 documentation:
349 * Update doxygen HTML headers and footers to resolve issues with some
350   interactive features of the API docs not working.  Reported by Enrico Zini.
352 * Stop specifying obsolete doxygen settings PERL_PATH and MSCGEN_PATH.
354 * Clarify API docs for MSet::get_termfreq() to make it clear that this
355   considers all documents in the database, not only those that matched the
356   searched (it would sometimes be useful to be able to report the number of
357   occurrences of a term in the matched documents, but it's not something we
358   currently keep track of).  Reported by Tadeusz Sośnierz and Peter Salomonsen.
360 Xapian-core 1.4.16 (2020-06-08):
362 API:
364 * MSet::snippet(): The snippet now includes trailing punctuation which carries
365   meaning or gives useful context.  See
366   https://github.com/xapian/xapian/pull/180, reported by Robert Stepanek.
368 * MSet::snippet(): Fix segfault generating snippet from default-constructed
369   MSet.  This probably isn't something you'd typically do, but it shouldn't
370   crash.  Found during extended testing of #803 (which only affected git
371   master) which was reported by Robert Stepanek.
373 * Remove trailing full stop from exception messages.  We conventionally don't
374   include one, but a few cases didn't follow that convention.
376 testsuite:
378 * Replace direct use of ftime() which gives deprecation warnings with recent
379   mingw.  Reported by srinivasyadav22.
381 matcher:
383 * Fix segfault in rare cases in the query optimiser.  We keep a pointer to the
384   most recent posting list to use as a hint for opening the next posting list,
385   but the existing mechanism to take ownership of this hint had a flaw.  We now
386   invalidate the hint in situations where it might be indirectly deleted which
387   is safe, but somewhat conservative.
389 * Improve the optimisation of an always-matching OP_VALUE_GE to also take
390   effect when the value slot's lower bound is equal to the limit of the
391   OP_VALUE_GE.  Patch from boda sadalla.
393 glass backend:
395 * Report the correct errno value if commit() fails.  We were potentially
396   reporting ENOENT from an unlink() call cleaning up a temporary file prior to
397   throwing the exception instead.
399 documentation:
401 * Fix missing menus in API documentation.  Newer doxygen generates .js files
402   which we also need to distribute and install.  Reported by sec^nd on #xapian.
404 * Note OP_FILTER ignored subquery bug fixed in 1.4.15 as present in 1.4.14 and
405   older.
407 portability:
409 * Use our own autoconf cache variable namespace (xo_cv_ prefix instead of
410   ac_cv_) to avoid colliding with standard autoconf macro use if config.site or
411   a shared config.cache is used.  The former case caused a build failure for
412   the OpenBSD port with 1.4.15, reported by Lucas R.
414 * Use clock_gettime() and nanosleep() under modern mingw as these allow higher
415   precision than what we previously used.
417 Xapian-core 1.4.15 (2020-02-24):
419 API:
421 * Database::check(): Fix checking of replication changesets.  This reverts a
422   change incorrectly made in 1.3.7.
424 * Database::locked(): Return false instead of true for a closed inmemory DB.
426 * Database::commit(): If commit() failed with an exception while trying to add
427   pending changes (e.g. InvalidArgumentError due to a long term containing zero
428   bytes) then a subsequent commit() on the same object would throw the same
429   exception.  Now we clear the pending changes in this situation (like we
430   already did for failure at other stages in the commit).  This bug remains
431   unfixed for the chert backend as it's harder to fix there and the effort to
432   fix it and extra risk of breakage don't seem justified for a backend we
433   recommend people migrate away from.
435 * QueryParser::parse_query(): Optimise parsing of multi-word synonyms.
437 testsuite:
439 * Use 50-word synonym for qp_scale1 "large" case.  50 divides exactly into the
440   number of repetitions we do for the "small" case, which 60 (as used before)
441   doesn't.  This makes the two cases a little more comparable and should help
442   make this testcase less flaky (see #764).
444 * Adjust testcase matches1 to work with remote shards where the matcher can
445   return slightly better bounds on the number of matches in some cases.
446   Resolves 2 XFAILs.
448 * The testharness get_remote_database() method is now supported for sharded
449   databases.  This is needed for keepalive1 to run successfully under multi
450   test backends.  Resolves 2 XFAILs of keepalive1.
452 * Improved test coverage:
454   + Test locked() on a closed WritableDatabase, which already returns false (as
455     expected) in 1.4.x (but was broken on master).
457   + Check multi databases in testsuite - this has been supported by
458     Database::check() since 1.4.12.
460   + Also test OP_SYNONYM and OP_MAX in emptydb1.
462   + Backport testcases boolorbug1, emptynot1, emptymaybe1 and
463     phraseweightcheckbug1 from git master - these are regression tests for
464     fixed bugs which only affected git master, but it's useful to confirm that
465     these bugs don't currently affect 1.4, and ensure they don't get introduced.
467 * perftest: Store memory sizes as long long since on Microsoft Windows long is
468   only 32 bits, which is less than common memory sizes.
470 matcher:
472 * Hoist positional check above OP_FILTER.
474 * Handle OP_FILTER with more than two subqueries correctly.  Previously we'd
475   only check the first two subqueries in some situations.
477 remote backend:
479 * For a remote WritableDatabase, the client now keeps track of whether there
480   are pending changes, and if there aren't then we now do nothing for commit()
481   or cancel() calls.  In particular this saves a message exchange when the
482   WritableDatabase destructor is called when changes have already been
483   committed with an explicit call to commit() (which is what we recommend
484   doing, since with an explicit call to commit() you get to see any exception
485   which gets thrown).
487 * When closing a remote prog WritableDatabase, previously an exception could
488   leave the remote connection open with the remote server running, and we'd
489   then wait for the specified timeout before closing the connection.  Now we
490   close the connection before letting the exception propagate.
492 * Don't swallow exceptions from Database::close() on a remote database.  If
493   we aren't in a transaction and so try to commit() and that fails then
494   previously the caller would have no indication of the failure.
496 * Fix handling the reported term weight when remote shards are searched.
497   Fixes 5 XFAILs in the testsuite.
499 * Add missing space to mismatching protocol versions error message.
501 build system:
503 * Fix to build when configured with --disable-backend-remote, broken by changes
504   in 1.4.14.  Fixes #797, reported by Дилян Палаузов.
506 * The clang and icc compilers both define __GNUC__, which led our ABI mismatch
507   message to report them as "g++" with a bogus version (the version of GCC that
508   these compilers advertise themselves as, which for clang is always 4.2.0) -
509   now we report clang++ or icc along with the actual version of that compiler.
511 documentation:
513 * AUTHORS: Apply missed update to the thankyou list for 1.4.14.
515 * INSTALL: Note that MSVC 2019 works.
517 * INSTALL: Note that Xapian can use the system uuid.h on AIX and OpenBSD.
519 portability:
521 * Simplify probes for snprintf.  The broken snprintf in libbsd in Linux libc4
522   is from ~25 years ago so way too ancient to matter now, and all callers
523   already handle the pre-ISO semantics of returning -1 for an undersize buffer
524   so we don't need to run a test program to probe for this at configure time,
525   which is more cross-compile friendly.
527 * Don't quote messages in #error - the quotes aren't required and appear in the
528   compiler output (at least with GCC and clang) making it less readable.
530 * Use a different approach for getting a 64-bit capable stat() for mingw32.
531   This means we now use the same stat variant for mingw32 and MSVC, which
532   seems a better plan.
534 * Work around unhelpful config.status behaviour.  It comments out any #undef
535   lines in config.h, even those added via AH_TOP and AH_BOTTOM.  Splitting
536   these lines means they don't match the regex hammer config.status uses.
538 * Avoid -Wdeprecated-copy warnings from clang 10.
540 * Avoid deprecation warning on recent Linux.  We were including sys/sysctl.h if
541   it existed, which it does on Linux but we don't actually use it there.
542   Including it now warns that it is deprecated, so skip including it under
543   Linux.  Reported on IRC by kumaran.
545 * Suppress GCC -Wduplicated-branches warning from our API headers in a
546   different way which avoids needing a compiler-specific #pragma.
548 * Workaround closefrom1 failure on macOS.  It seems under macOS our fd tracking
549   can end up using fd 10 so start from 13 when testing closefrom() so we don't
550   close the fd which our fd tracking is using internally.
552 debug code:
554 * Log RemoteConnection::read_at_least() return value.
556 Xapian-core 1.4.14 (2019-11-23):
558 API:
560 * Xapian::QueryParser: Handle "" inside a quoted phrase better.  In a quoted
561   boolean term, "" is treated as an escaped ", so handle it in a compatible way
562   for quoted phrases.  Previously we'd drop out of the phrase and start a new
563   phrase.  Fixes #630, reported by Austin Clements.
565 * Xapian::Stem: The constructor which takes a stemmer name now takes an
566   optional second bool parameter - if this is true, then an unknown stemmer
567   name falls back to using the "none" stemmer instead of throwing an exception.
568   This allows simply constructing a stemmer from an ISO language code without
569   having to worry about whether there's a stemmer for that language, and
570   without having to handle an exception if there isn't.
572 * Xapian::Stem: Fix a bug with handling 4-byte UTF-8 sequences which
573   potentially affects most of the stemmers.  None of the stemmers work in
574   languages where 4-byte UTF-8 sequences are part of the alphabet, but this
575   bug could result in invalid UTF-8 sequences in terms generated from text
576   containing high Unicode codepoints such as emoji, which can cause issues (for
577   example, in some language bindings).  Fix synced from Snowball git post
578   2.0.0.  Reported by Ilari Nieminen in
579   https://github.com/snowballstem/snowball/issues/89.
581 * Xapian::Stem: Add a new is_none() method which tests if this is a "none"
582   stemmer.
584 * Xapian::Weight: The total length of all documents is now made available to
585   Xapian::Weight subclasses, and this is now used by DLHWeight, DPHWeight and
586   LMWeight.  To maintain ABI compatibility, internally this still fetches the
587   average length and the number of documents, multiplies them, then rounds the
588   result, but in the next release series this will be handled directly.
590 * Xapian::Database::locked() on an inmemory database used to always return
591   false, but an inmemory Database is always actually a WritableDatabase
592   underneath, so now we always report true in this case because it's really
593   always report being locked for writing.
595 testsuite:
597 * Fix failing multi_glass_remoteprog_glass tests on x86.  When the tests are
598   run under valgrind, remote servers should be run using the runsrv wrapper
599   script, but this wasn't happening for remote servers in multi-databases - now
600   it is.  Also, previously runsrv only used valgrind for the remote for an x86
601   build that didn't use SSE, but it seems there are x87 instructions in libc
602   that are affected by valgrind not providing excess precision, so do this for
603   x86 builds which use SSE too.  Together these changes fix failures of
604   topercent2, xor2, tradweight1 under backend multi_glass_remoteprog_glass on
605   x86.
607 * Fix C++ One-Definition Rule (ODR) violation in testsuite code.  Two different
608   source files linked into apitest were each defining a different `struct
609   test`.  Wrap each in an anonymous namespace to localise it to the file it is
610   defined and used in.  This was probably harmless in practice, unless trying
611   to build with Link-Time Optimisation or similar (which is how it was
612   detected).
614 * Test all language codes in stemlangs1.  The testsuite hardcodes a list of
615   supported language codes which hadn't been updated since 2008.
617 * Improve DateRangeProcessor test coverage.
619 matcher:
621 * Handle pruning under a positional check.  This used to be impossible, but
622   since 1.4.13 it can happen as we now hoist AND_NOT to just below where we
623   hoist the positional checks.  The code on master already handles pruning here
624   so this bug is specific to the RELEASE/1.4 branch.  Fixes #796, reported by
625   Oliver Runge.
627 * When searching with collapsing over multiple shards, at least some of which
628   are remote, uncollapsed_upper_bound could be too low and
629   uncollapsed_lower_bound too high.  This was causing assertion failures in
630   testcases msize1 and msize2 under test harness backends
631   multi_glass_remoteprog_glass and multi_remoteprog_glass.
633 * Internally we no longer calculate a bogus total_term_count as the sum of
634   total_length * doc_count for all shards.  Instead we just use the sum of
635   total_length, which gives the total number of term occurrences.  This change
636   should improve the estimated collection_freq values for synonyms.
638 * Several places where we might divide zero by zero in a database where wdf was
639   always zero have been fixed.
641 build system:
643 * configure: Stop using AC_FUNC_MEMCMP.  The autoconf manual marks it as
644   "obsolescent", and it seems clear that nobody's relying on it as we're
645   missing the "'AC_LIBOBJ' replacement for 'memcmp'" which it would try to
646   use if needed.
648 documentation:
650 * HACKING: Replace release docs with pointer to the developer guide where they
651   are now maintained.
653 portability:
655 * Eliminate 2 uses of atoi().  These are potentially problematic in a
656   multithreaded application if setlocale() is called by another thread at the
657   same time.  See #665.
659 * Don't check __GNUC__ in visibility.h as the configure probe before defining
660   XAPIAN_ENABLE_VISIBILITY checks that the visibility attributes work.  This
661   probably makes no difference in practice, as all compilers we're aware of
662   which support symbol visibility also define __GNUC__.
664 * Document Sun C++ requires --disable-shared.  Closes #631.
666 Xapian-core 1.4.13 (2019-10-14):
668 API:
670 * Fix write one past end of std::vector on certain QueryParser parser errors.
671   This is undefined behaviour, but the write was always into reserved space, so
672   in practice we'd actually get away with it (it was noticed because it
673   triggers an error when running under ubsan and using libc++).  Reported by
674   Germán M. Bravo.
676 * MSet::get_matches_estimated(): Improve rounding of result - a bug meant we
677   would almost always round down.
679 * Optimise test for UTF-8 continuation character.  Performing a signed char
680   comparison shaves an instruction or two on most architectures.
682 * Database::get_revision(): Return revision 0 for a Database with no shards
683   rather that throwing InvalidOperationError.
685 * DPHWeight: Avoid dividing by 0 when searching a sharded database when one
686   shard is empty.  The result wasn't used in this case, but it's still
687   undefined behaviour.  Detected by UBSan.
689 testsuite:
691 * The "singlefile" test harness backend manager now creates databases by
692   compacting the corresponding underlying backend database (creating it first
693   if need be) rather than always creating a temporary database to compact.
695 * Enable compaction testcases for multi and singlefile test harness backends.
697 * Add generated database support for remoteprog and remotetcp test harness
698   backends.  Implemented by Tanmay Sachan.
700 * Add test harness support for running testcases using a multi database
701   comprised of one local and one remote shard, or two remote shards.
702   Implemented by Tanmay Sachan.
704 * Check if removing existing multi stub failed.  Previously if removing an
705   existing stub failed, the test harness would create a temporary new stub and
706   then try to rename it over the old one, which will always fail on Microsoft
707   Windows.
709 * Wait for xapian-tcpsrv processes to finish before moving on to the next
710   testcase under __WIN32__ like we already do on POSIX platforms.
712 matcher:
714 * Optimise OP_AND_NOT better.  We now combine its left argument with other
715   connected and-like subqueries, and gather up and hoist the negated subqueries
716   and apply them together above the combined and-like subqueries, just below
717   any positional filters.
719 * Optimise OP_AND_MAYBE better.  We now combine its left argument with other
720   connected and-like subqueries, and gather up and hoist the optional
721   subqueries and apply them together above the combined and-like subqueries and
722   any hoisted positional filters.
724 * Treat all BoolWeight queries as scaled by 0 - we can optimise better if we
725   know the query is unweighted.
727 glass backend:
729 * Allow zlib compression to reduce size by one byte.  We were specifying an
730   output buffer size one byte smaller than the input, but it appears zlib won't
731   use the final byte in the buffer, so we actually need to pass the input size
732   as the output buffer size.
734 * Only try to compress Btree item values > 18 bytes, which saves CPU time
735   without sacrificing any significant size savings.
737 remote backend:
739 * Fix match stats when searching with collapsing over multiple shards and at
740   least some shards are remote.  Bug discovered by Tanmay Sachan's test harness
741   improvements.
743 * Ignore orphaned remote protocol replies which can happen when searching with
744   a remote shard if an exception is thrown by another shard.  Bug discovered
745   by Tanmay Sachan's test harness improvements.
747 * Wait for xapian-progsrv child to exit when a remote Database or
748   WritableDatabase object is closed under __WIN32__ like we already do for
749   POSIX platforms.
751 documentation:
753 * Correct documentation of initial messages in replication protocol.
755 tools:
757 * quest: Report bounds and estimate of number of matches.
759 * xapian-delve: Improve output when database revision information is not
760   available.  We now specially handle the cases of a DB with multiple shards
761   and a backend which doesn't support get_revision().
763 portability:
765 * Fix warning from GCC 9 with -Wdeprecated-copy (which is enabled by -Wextra)
766   if a reference to an Error object is thrown.
768 * Suppress GCC warning in our API headers when compiling code using Xapian with
769   GCC and -Wduplicated-branches.
771 * Mark some internal classes as final (following GCC -Wsuggest-final-types
772   suggestions to allow some method calls to be devirtualised).
774 * Fix to build with --enable-maintainer-mode and Perl < 5.10, which doesn't
775   have the `//=` operator.  It's unlikely developers will have such an old
776   Perl, but the mingw environment on appveyor CI does.  The use of `//=` was
777   introduced by changes in 1.4.10.
779 Xapian-core 1.4.12 (2019-07-23):
781 API:
783 * Xapian::PostingSource: When a PostingSource without a clone() method is used
784   with a Database containing multiple shards, the documented behaviour has
785   always been that Xapian::InvalidOperationError is thrown.  However, since at
786   least 1.4.0, this exception hasn't been thrown, but instead a single
787   PostingSource object would get used for all the shards, typically leading to
788   incorrect results.  The actual behaviour now matches what was documented.
790 * Xapian::Database: Add size() method which reports the number of shards.
792 * Xapian::Database::check(): You can now pass a stub database which will check
793   all the databases listed in it (or throw Xapian::UnimplementedError for
794   backends which don't support checking).
796 * Xapian::Document: When updating a document use a emplace_hint() to make the
797   bulk insertion O(n) instead of O(n·log(n)), and use std::move() to avoid
798   copying OmDocumentTerm objects.
800 * Xapian::Query: Add missing get_unique_terms_end() method.
802 * Xapian::iterator_valid(): Implement for Utf8Iterator
804 testsuite:
806 * Fix keepalive1 failures on some platforms.  On some platforms a timeout
807   gives NetworkTimeoutError and on others NetworkError - since 1.4.10 changed
808   to checking the exact exception type, keepalive1 has been failing on the
809   former set of platforms.  We now just check for NetworkError or a subclass
810   here (since NetworkTimeoutError is a subclass of NetworkError).
812 * Run cursordelbug1 testcase with multi databases too.
814 matcher:
816 * Ownership of PostingSource objects during the match now makes use of the
817   optional reference-counting mechanism rather than a separate flag.
819 remote backend:
821 * Fix remote protocol design bug.  Previously some messages didn't send a reply
822   but could result in an exception being sent over the link.  That exception
823   would then get read as a response to the next message instead of its actual
824   response so we'd be out of step.  Fixes #783, reported by Germán M. Bravo.
825   This fix necessitated a minor version bump in the remote protocol (to 39.1).
826   If you are upgrading a live system which uses the remote backend, upgrade the
827   servers before the clients.
829 * Fix socket leaks on errors during opening a database.  Fixes
830   https://github.com/xapian/xapian/pull/237 and #781, reported by Germán M.
831   Bravo.
833 * Don't close remote DB socket on receiving EOF as the levels above won't
834   know it's been closed and may try to perform operations on it, which would be
835   problematic if that fd gets reused in the meantime.  Leaving it open means
836   any further operations will also get EOF.  Reported by Germán M. Bravo.
838 * We add a wrapper around the libc socket() function which deals with the
839   corner case where SOCK_CLOEXEC is defined but socket() fails if it is
840   specified (which can happen with a newer libc and older kernel).
841   Unfortunately, this wrapper wasn't checking the returned value from socket()
842   correctly, so when SOCK_CLOEXEC was specified and non-zero it would create
843   the socket() with SOCK_CLOEXEC, then leak that one and create it again
844   without SOCK_CLOEXEC.  We now check the return value properly.
846 * Fix potential infinite loop in ValueCountMatchSpy::merge_results() if passed
847   serialised results with extra data appended (which shouldn't happen in normal
848   use).
850 build system:
852 * Current versions of valgrind result in false positives on current versions of
853   macOS, so on this platform configure now only enables use of valgrind if it's
854   specified explicitly.  Fixes #713, reported by Germán M. Bravo.
856 * Refactor macros to probe for compiler flags so they automatically cache
857   their results and consistently report success/failure.
859 * Rename our custom TYPE_SOCKLEN_T macro to XAPIAN_TYPE_SOCKLEN_T.  The
860   AX_TYPE_SOCKLEN_T macro defines an alias of TYPE_SOCKLEN_T for itself which
861   means it can get used instead in some situations, but it isn't compatible
862   with our macro.  We can't just switch to AX_TYPE_SOCKLEN_T as it doesn't
863   handle cases we need, so just rename our macro to avoid potential problems.
865 documentation:
867 * Improve API documentation for Xapian::Query class.  Add missing doc
868   comments and improve some of the existing ones.  Problems highlighted by
869   Дилян Палаузов in #790.
871 * Add Unicode consortium names and codes for categories from Chapter 4, Version
872   11 of the Unicode standard.  Patch from David Bremner.
874 * Improve configure --help output - drop "[default=no]" for --enable-*
875   options which default off.  Fixes #791, reported by and patch from Дилян
876   Палаузов.
878 * Fix API documentation typo - Query::op (the type) not op_ (a parameter name).
880 * Note which version Document::remove_postings() was added in.
882 * In the remote protocol documentation, MSG_REPLACEDOCUMENTTERM was documented
883   as not having a reply, but actually REPLY_ADDDOCUMENT is sent.
885 * Update list of <xapian/iterator.h> users.
887 tools:
889 * copydatabase: A change in 1.4.6 which added support for \ as directory
890   separator on platforms where that's the norm broke the code in copydatabase
891   which removes a trailing slash from input databases.  Bug reported and
892   culprit commit identified by Eric Wong.
894 portability:
896 * Resolve crash on Windows when using clang-cl and MSVC.  Reported by Christian
897   Mollekopf in https://github.com/xapian/xapian/pull/256.
899 * Add missing '#include <cstring>'.  Patch from Tanmay Sachan.
901 * Fix str() helper function when converting the most negative value
902   of a signed integer type.
904 * Avoid calling close() on fd we know must actually be a WIN32 SOCKET.
906 * Include <ios> not <iomanip> for std::boolalpha.
908 * Rework setenv() compatibility handling.  Now that Solaris 9 is dead we can
909   assume setenv() is provided by Unix-like platforms (POSIX requires it).  For
910   other platforms, provide a compatibility implementation of setenv() which
911   so the compatibility code is encapsulated in one place rather than replicated
912   at every use.
914 * Fix maintainer-mode builds on Solaris where /bin/tr is not POSIX compliant.
915   We now use the simple workaround suggested by the autoconf manual.
917 * Improve support for Sun C++ (see #631):
919   + Suppress unhelpful warning for lambda with multiple return statements.
921   + Enable reporting the tags corresponding to warnings, which we need
922     to know in order to suppress any new unhelpful warnings.
924   + Adjust our workaround for bug with this compiler's <cmath> header to avoid
925     a compiler warning.
927   + Use -xldscope=symbolic for Sun C++.  This flag is roughly equivalent to
928     -Bsymbolic-functions which we've probed for with GNU ld since Xapian 1.0.0.
930 Xapian-core 1.4.11 (2019-03-02):
932 API:
934 * MSet::SNIPPET_CJK_NGRAM - new flag for use with MSet::snippet() to enable
935   support for selecting and highlighting snippets which works with the
936   QueryParser and TermGenerator FLAG_CJK_NGRAM flags.  This mode can also be
937   enabled by setting environment variable XAPIAN_CJK_NGRAM to a non-empty
938   value.  (There was nominally already support for XAPIAN_CJK_NGRAM in
939   MSet::snippet(), but it didn't work usefully - the highlighting added was all
940   empty start/end pairs at the end of the span of CJK characters containing the
941   CJK ngram terms, which to the user would typically look like it was selecting
942   the end of the text and not highlighting anything).
944 * Deprecate XAPIAN_CJK_NGRAM environment variable.  There are now flags which
945   can be used instead in all cases, and there's sadly no portable thread-safe
946   way to read an environment variable so checking environment variables is
947   problematic in library code that may be used in multithreaded programs.
949 * Query::OP_ELITE_SET currently incorrectly recursively flattens any OP_OR (or
950   OP_OR-like) subqueries into the list of subqueries it selects from - until
951   that's fixed, we now select from the full exploded list rather than the last
952   n (where n is the number of direct subqueries of the OP_ELITE_SET).
954 testsuite:
956 * Testcases which need a generated database now get run with a sharded
957   database.
959 * Avoid using strerror() in the testsuite which removes an obstacle to running
960   tests in parallel in separate threads.
962 matcher:
964 * Extend detection of cases of OP_SYNONYM with disjoint subqueries (which means
965   we don't need document length) which was added in 1.4.8 - we now detect when
966   all subqueries are different terms, or when all subqueries are
967   non-overlapping wildcards.  The second case is what QueryParser produces for
968   a wildcard or partial query with a query prefix which maps to more than one
969   term prefix.
971 glass backend:
973 * Handle an empty value slot lower bound gracefully.  This shouldn't happen for
974   a non-empty slot, but has been reported by a notmuch user so it seems there
975   is (or perhaps was as the database was several years old) a way it can come
976   about.  We now check for this situation and set the smallest possible valid
977   lower bound instead, so other code assuming a valid lower bound will work
978   correctly.  Reported by jb55.
980 chert backend:
982 * Handle an empty value slot lower bound gracefully, equivalent to the change
983   made for glass.
985 documentation:
987 * HACKING: We no longer use auto_ptr<>.
989 * NEWS: Correct factual error in old entry - the 0.4.1 release was Open Muscat
990   not OmSee (the OmSee name was only applied after that final release was made,
991   and only used internally to BrightStation).
993 portability:
995 * Suppress more clang -Wself-assign-overloaded warnings in testcases which are
996   deliberately testing handling of self-assignment.
998 * Add missing includes of <cerrno>.  Fixes #776, reported by Matthieu Gautier.
1000 debug code:
1002 * When configured with --enable-log, the O_SYNC flag was always specified when
1003   opening the logfile, with the intention that the most recent log entries
1004   wouldn't get lost if there was a crash, but O_SYNC can incur a significant
1005   performance overhead and most debugging is not of such crashes.  So we no
1006   longer specify O_SYNC by default, but you can now request synchronous logging
1007   by including %! anywhere in the filename specified with XAPIAN_DEBUG_LOG
1008   (the %! is replaced with the empty string).  We also now use O_DSYNC if
1009   available in preference to O_SYNC, since the mtime of the log file isn't
1010   important.
1012 Xapian-core 1.4.10 (2019-02-12):
1014 API:
1016 * DatabaseClosedError: New exception class thrown instead of DatabaseError when
1017   an operation is attempted which can't be completed because it involves a
1018   database which close() was previously called on.  DatabaseClosedError is a
1019   subclass of DatabaseError so existing code catching DatabaseError will still
1020   work as before.  Fixes #772, reported by Germán M. Bravo.  Patch from
1021   Vaibhav Kansagara.
1023 * DatabaseNotFoundError: New exception class thrown instead of
1024   DatabaseOpeningError when the problem is the problem is "file not found" or
1025   similar.  DatabaseNotFoundError is a subclass of DatabaseOpeningError so
1026   existing code catching DatabaseOpeningError will still work as before.  Fixes
1027   #773, reported by Germán M. Bravo.  Patch from Vaibhav Kansagara.
1029 * Query: Make &=, |= and ^= on Query objects opportunistically append to
1030   an existing query with a matching query operator which has a reference
1031   count of 1.  This provides an easy way to incrementally build flatter query
1032   trees.
1034 * Query: Support `query &= ~query2` better - this now is handled exactly
1035   equivalent to `query = query & ~query2` and gives `query AND_NOT query2`
1036   instead of `query AND (<alldocuments> AND_NOT query2)`.
1038 * QueryParser: Now uses &=, |= and ^= to produce flatter query trees.  This
1039   fixes problems with running out of stack space when handling Query object
1040   trees built by abusing QueryParser to parse very large machine-generated
1041   queries.
1043 * Stopper: Fix incorrect accents in Hungarian stopword list.  Patch from David
1044   Corbett.
1046 testsuite:
1048 * Test MSet::snippet() with small and zero lengths.  Fixes #759.  Patch from
1049   Vaibhav Kansagara.
1051 * Fix testcase stubdb4 annotations - this testcase doesn't need a backend.
1053 * Add PATH annotation for testcases needing get_database_path() to avoid having
1054   to repeatedly list the backends where this is supported in testcase
1055   annotations.
1057 * TEST_EXCEPTION helper macro now checks that the exact specified exception
1058   type is thrown.  Previously it would allow a subclass of the specified
1059   exception type, but in testcases we really want to be able to test for an
1060   exact type.  Issue noted by Vaibhav Kansagara on IRC.
1062 matcher:
1064 * Map OP_VALUE_GE/OP_VALUE_LE on an empty slot to EmptyPostList.  We already do
1065   this for OP_VALUE_RANGE, and it's a little more efficient than creating a
1066   postlist object which checks the empty value slot.
1068 glass backend:
1070 * We no longer flush all pending positional changes when a postlist, termlist
1071   or all-terms is opened on a modified WritableDatabase.  Doing so was
1072   incurring a significant performance cost, and the first of these happens
1073   internally when `replace_document(term, doc)` is used, which is the usual way
1074   to support non-numeric unique ids.  We now only flush pending positional
1075   changes when committing.  Reported and diagnosed by Germán M. Bravo.
1077 remote backend:
1079 * Use poll() where available instead of select().  poll() is specified by
1080   POSIX.1-2001 so should be widely available by now, and it allows watching any
1081   fd (select() is limited to watching fds < FD_SETSIZE).  For any platforms
1082   which still lack poll() we now workaround this select() limitation when a
1083   high numbered fd needs to be watched (for example, by trying a non-blocking
1084   read or write and on EAGAIN sleeping for a bit before retrying).
1086 * Stop watching fds for "exceptional conditions" - none of these are relevant
1087   to our usage.
1089 * Remove 0.1s timeout in ready_to_read().  The comment says this is to avoid a
1090   busy loop, but that's out of date - the matcher first checks which remotes
1091   are ready to read and then does a second pass to handle those which weren't
1092   with a blocking read.
1094 build system:
1096 * Stop probing for header sys/errno.h which is no longer used - it was only
1097   needed for Compaq C++, support for which was dropped in 1.4.8.
1099 documentation:
1101 * docs/valueranges.html: Update to document RangeProcessor instead of
1102   ValueRangeProcessor - the latter is deprecated and will be gone in the next
1103   release series.
1105 * Document RangeProcessor::operator()() returns OP_INVALID to signal it doesn't
1106   recognise a range.
1108 * Update some URLs for pages which have moved.
1110 * Use https for URLs where available.
1112 * HACKING: Update "empty()" section for changes in C++11.
1114 portability:
1116 * Suppress clang warnings for self-assignment tests.  Some testcases trigger
1117   this new-ish clang warning while testing that self-assignment works, which
1118   seems a useful thing to be testing - at least one of these is a regression
1119   test.
1121 * Add std::move to fix clang -Wreturn-std-move warning (which is enabled by
1122   -Wall).
1124 * Add casts to fix ubsan warnings.  These cases aren't undefined behaviour, but
1125   are reported by ubsan extra checks implicit-integer-truncation and/or
1126   implicit-conversion which it is useful to be able to enable to catch
1127   potential bugs.
1129 * Fix check for when to use _byteswap_ulong() - in practice this would only
1130   have caused a problem if a platform provided _byteswap_ushort() but not
1131   _byteswap_ulong(), but we're not aware of any which do.
1133 * Fix return values of do_bswap() helpers to match parameter types (previously
1134   we always returned int and only supported swapping types up to 32 bits, so
1135   this probably doesn't result in any behavioural changes).
1137 * Only include <intrin.h> if we'll use it instead of always including it when
1138   it exists.  Including <intrin.h> can result in warnings about duplicate
1139   declarations of builtin functions under mingw.
1141 * Remove call to close()/closesocket() when the argument is always -1 (since
1142   the change to use getaddrinfo() in 1.3.3).
1144 Xapian-core 1.4.9 (2018-11-02):
1146 API:
1148 * Document::add_posting(): Fix bugs with the change in 1.4.8 to more
1149   efficiently handle insertion of a batch of extra positions in ascending
1150   order.  These could lead to missing positions and corrupted encoded
1151   positional data.
1153 remote backend:
1155 * Avoid hang if remote connection shutdown fails by not waiting for the
1156   connection to close in this situation.  Seems to fix occasional hangs seen on
1157   macOS.  Patch from Germán M. Bravo.
1159 Xapian-core 1.4.8 (2018-10-25):
1161 API:
1163 * QueryParser,TermGenerator: Add new stemming mode STEM_SOME_FULL_POS.
1164   This stores positional information for both stemmed and unstemmed terms,
1165   allowing NEAR and ADJ to work with stemmed terms.  The extra positional
1166   information is likely to take up a significant amount of extra disk space so
1167   the default STEM_SOME is likely to be a better choice for most users.
1169 * Database::check(): Fetch and decompress the document data to catch problems
1170   with the splitting of large data into multiple entries, corruption of the
1171   compressed data, etc.  Also check that empty document data isn't explicitly
1172   stored for glass.
1174 * Fix an incorrect type being used for term positions in the TermGenerator API.
1175   These were Xapian::termcount but should be Xapian::termpos.  Both are
1176   typedefs for the same 32-bit unsigned integer type by default (almost always
1177   "unsigned int") so this change is entirely compatible, except that if you
1178   were configuring 1.4.7 or earlier with --enable-64bit-termcount you need to
1179   also use the new --enable-64bit-termpos configure option with 1.4.8 and up or
1180   rebuild your applications.  This change was necessary to make
1181   --enable-64bit-termpos actually useful.
1183 * Add Document::remove_postings() method which removes all postings in a
1184   specified term position range much more efficiently than by calling
1185   remove_posting() repeatedly.  It returns the number of postings removed.
1187 * Fix bugs with handling term positions >= 0x80000000.  Reported by Gaurav
1188   Arora.
1190 * Document::add_posting(): More efficiently handle insertion of a batch of
1191   extra positions in ascending order.
1193 * Query: Simplify OP_SYNONYM with single OP_WILDCARD subquery by converting to
1194   OP_WILDCARD with combiner OP_SYNONYM, which means such cases can take
1195   advantage of the new matcher optimisation in this release to avoid needing
1196   document length for OP_WILDCARD with combiner OP_SYNONYM.
1198 testsuite:
1200 * Catch and report std::exception from the test harness itself.
1202 * apitest: Drop special case for not storing doc length in testcase postlist5 -
1203   all backends have stored document lengths for a long time.
1205 * test_harness: Create directories in a race-free way.
1207 matcher:
1209 * Avoid needing document length for an OP_WILDCARD with combiner OP_SYNONYM.
1210   We know that we can't get any duplicate terms in the expansion of a wildcard
1211   so the sum of the wdf from them can't possibly exceed the document length.
1213 * OP_SYNONYM: No longer tries to initialise weights for its subquery, which
1214   should reduce the time taken to set up a large wildcard query.
1216 * OP_SYNONYM: Fix frequency estimates when OP_SYNONYM is used with a
1217   subquery containing OP_XOR or OP_MAX - in such cases the frequency
1218   estimates for the first subquery of the OP_XOR/OP_MAX were used for
1219   all its subqueries.  Also the estimated collection frequency is
1220   now rounded to the nearest integer rather than always being rounded
1221   down.
1223 glass backend:
1225 * Revert change made in 1.4.6:
1227     Enable glass's "open_nearby_postlist" optimisation (which especially helps
1228     large wildcard queries) for writable databases without any uncommitted
1229     changes as well.
1231   The amended check isn't conservative enough as there may be postlist changes
1232   in the inverter while the table is unmodified.  This breaks testcase
1233   T150-tagging.sh in notmuch's testsuite, reported by David Bremner.
1235 * When indexing a document without any terms we now avoid some unnecessary work
1236   when storing its termlist.
1238 build system:
1240 * New --enable-64bit-termpos configure option which makes Xapian::termpos a
1241   64-bit type and enables support for storing 64-bit termpos values in the
1242   glass backend in an upwardly compatible way.  Few people will actually want
1243   to index documents more than 4 billion words long, but the extra numbering
1244   space can be helpful if you want to use term positions in "interesting" ways.
1246 * Hook up configure --disable-sse/--enable-sse=sse options for MSVC.
1248 * Fix configure probes for builtin functions for clang.  We need to specify the
1249   argument types for each builtin since otherwise AC_CHECK_DECLS tries to
1250   compile code which just tries to take a pointer to the builtin function
1251   causing clang to give an error saying that's not allowed.  If the argument
1252   types are specified then AC_CHECK_DECLS tries to compile a call to the
1253   builtin function instead.
1255 documentation:
1257 * Fix documentation comment typo.
1259 tools:
1261 * xapian-delve: Test for all docs empty using get_total_length() which is
1262   slightly simpler internally than get_avlength(), and avoids an exact floating
1263   point equality check.
1265 examples:
1267 * quest: Support --weight=coord.
1269 * xapian-pos: New tool to show term position info to help debugging when using
1270   positional information in more complex ways.
1272 portability:
1274 * Fix undefined behaviour from C++ ODR violation due to using the same name
1275   two different non-static inline functions.  It seems that with current GCC
1276   versions the desired function always ends up being used, but with current
1277   clang the other function is sometimes used, resulting in database corruption
1278   when using value slots in docid 16384 or higher with the default glass
1279   backend.  Patch from Germán M. Bravo.
1281 * Suppress alignment cast warning on sparc Linux.  The pointer being cast is to
1282   a record returned by getdirentries(), so it should be suitable aligned.
1284 * Drop special handling for Compaq C++.  We never actually achieved a working
1285   build using it, and I can find no evidence that this compiler still exists,
1286   let alone that it was updated for C++11 which we now require.
1288 * Create new database directories in race-free way.
1290 * Avoid throwing and handling an exception in replace_document() when
1291   adding a document with a specified docid which is <= last_docid but currently
1292   unused.
1294 * Use our portable code for handling UUIDs on all platforms, and only use
1295   platform-specific code for generating a new UUID.  This fixes a bug with
1296   converting UUIDs to and from string representation on FreeBSD, NetBSD and
1297   OpenBSD on little-endian platforms which resulted in reversed byte order in
1298   the first three components, so the same database would report a different
1299   UUID on these platforms compared to other platforms.  With this fix, the
1300   UUIDs of existing databases will appear to change on these platforms
1301   (except in rare "palindronic" cases).  Reported by Germán M. Bravo.
1303 * Fix to build with a C++17 compiler.  Previously we used a "byte" type
1304   internally which clashed with "std::byte" in source files which use
1305   "using namespace std;".  Fixes #768, reported by Laurent Stacul.
1307 * Adjust apitest testcase stubdb2 to allow for NetBSD oddity: NetBSD's
1308   getaddrinfo() in IPv4 mode seems to resolve ::1 to an IPv4 address on the
1309   local network.
1311 * Avoid timer_create() on OpenBSD and NetBSD.  On OpenBSD it always fails with
1312   ENOSYS (and there's no prototype in the libc headers), while on NetBSD it
1313   seems to work, but the timer never seems to fire, so it's useless to us (see
1314   #770).
1316 * Use SOCK_NONBLOCK if available to avoid a call to fcntl().  It's supported by
1317   at least Linux, FreeBSD, NetBSD and OpenBSD.
1319 * Use O_NOINHERIT for O_CLOEXEC on Windows.  This flag has essentially the same
1320   effect, and it's common in other codebases to do this.
1322 * On AIX O_CLOEXEC may be a 64-bit constant which won't fit in an int.  To
1323   workaround this stupidity we now call the non-standard open64x() instead
1324   of open() when the flags don't fit in an int.
1326 * Add functions to add/multiply with overflow check.  These are implemented
1327   with compiler builtins or equivalent where possible, so the overflow check
1328   will typically just require a check of the processor's overflow or carry
1329   flag.
1331 Xapian-core 1.4.7 (2018-07-19):
1333 API:
1335 * Database::check(): Fix bogus error reports for documents with length zero
1336   due to a new check added in 1.4.6 that the doclength was between the stored
1337   upper and lower bounds, which failed to allow for the lower bound ignoring
1338   documents with length zero (since documents indexed only by boolean terms
1339   aren't involved in weighted searches).  Reported by David Bremner.
1341 * Query: Use of Query::MatchAll in multithreaded code causes problems because
1342   the reference counting gets messed up by concurrent updates.  Document that
1343   Query(string()) should be used instead of MatchAll in multithreaded code, and
1344   avoid using it in library code.  Reported by Germán M. Bravo.
1346 * Stem:
1348   + Stemming algorithms added for Irish, Lithuanian, Nepali and Tamil.
1350   + Merge Snowball compiler changes which improve code generation.
1352   + Merge optimisations to the Arabic and Turkish stemmers.
1354 testsuite:
1356   + Fix duplicate test in apitest closedb10 testcase.  Patch from Guruprasad
1357     Hegde.
1359 glass backend:
1361 * A long-lived cursor on a table in a WritableDatabase could get into
1362   an invalid state, which typically resulted in a DatabaseCorruptError
1363   being thrown with the message:
1365       Db block overwritten - are there multiple writers?
1367   But in fact the on-disk database is not corrupted - it's just that
1368   the cursor in memory has got into an inconsistent state.  It looks
1369   like we'll always detect the inconsistency before it can cause on-disk
1370   corruption but it's hard to be completely certain.
1372   The bug is in code to rebuild the cursor when the underlying table
1373   changes in ways which require that, which is a fairly rare occurrence
1374   to start with, and only triggers when a block in the cursor has been
1375   released, reallocated, and we tried to load it in the cursor at the
1376   same level - the cursor wrongly assumes it has the current version
1377   of the block.
1379   Reported with a reproducer by Sylvain Taverne.  Confirmed by David
1380   Bremner as also fixing a problem in notmuch for which he hadn't managed
1381   to find a reduced reproducer.
1383 documentation:
1385 * INSTALL: Document need to have MSVC command line tools on PATH.
1387 portability:
1389 * Cygwin: Work around oddity where unlink() sometimes seems to indicate failure
1390   with errno set to ECHILD.
1392 Xapian-core 1.4.6 (2018-07-02):
1394 API:
1396 * API classes now support C++11 move semantics when using a compiler which
1397   we are confident supports them (currently compilers which define
1398   __cplusplus >= 201103 plus a special check for MSVC 2015 or later).
1399   C++11 move semantics provide a clean and efficient way for threaded code to
1400   hand-off Xapian objects to worker threads, but in this case it's very
1401   unhelpful for availability of these semantics to vary by compiler as it
1402   quietly leads to a build with non-threadsafe behaviour.  To address this,
1403   user code can #define XAPIAN_MOVE_SEMANTICS before #include <xapian.h> to
1404   force this on, and will then get a compilation failure if the compiler lacks
1405   suitable support.
1407 * MSet::snippet():
1409   + We were only escaping output for HTML/XML in some cases, which would
1410     potentially allow HTML to be injected into output (this has been assigned
1411     CVE-2018-0499).
1413   + Include certain leading non-word characters in snippets.  Previously we
1414     started the snippet at the start of the first actual word, but there are
1415     various cases where including non-word characters in front of the actual
1416     word adds useful context or otherwise aids comprehension.  Reported by
1417     Robert Stepanek in https://github.com/xapian/xapian/pull/180
1419 * Add MSetIterator::get_sort_key() method.  The sort key has always been
1420   available internally, but wasn't exposed via the public API before, which
1421   seems like an oversight as the collapse key has long been available.
1422   Reported by 张少华 on xapian-discuss.
1424 * Database::compact():
1426   + Allow Compactor::resolve_duplicate_metadata() implementations to delete
1427     entries.  Previously if an implementation returned an empty string this
1428     would result in a user meta-data entry with an empty value, which isn't
1429     normally achievable (empty meta-data values aren't stored), and so will
1430     cause odd behaviour.  We now handle an empty returned value by interpreting
1431     it in the natural way - it means that the merged result is to not set a
1432     value for that key in the output database.
1434   + Since 1.3.5 compacting a WritableDatabase with uncommitted changes throws
1435     Xapian::InvalidOperationError when compacting to a single-file glass
1436     database.  This release adds similar checks for chert and when compacting
1437     to a multiple-file glass database.
1439   + In the unlikely event that the total number of documents or the total
1440     length of all documents overflow when trying to compact a multi-database,
1441     we throw an exception.  This is now a DatabaseError exception instead of a
1442     const char* exception (a hang-over from before this code was turned into a
1443     public API in the library).
1445 * Document::remove_term(): Handle removing term at current TermIterator
1446   position - previously the underlying iterator was invalidated, leading to
1447   undefined behaviour (typically a segmentation fault).  Reported by Gaurav
1448   Arora.
1450 * TermIterator::get_termfreq() now always returns an exact answer.  Previously
1451   for multi-databases we approximated the result, which is probably either a
1452   hang-over from when this method was used during Enquire::get_eset(), or else
1453   due to a thinking that this method would be used in that situation (it
1454   certainly is not now).  If the user creates a TermIterator object and asks it
1455   for term frequencies then we really should give them the correct answer - it
1456   isn't hugely costly and the documentation doesn't warn that it might be
1457   approximated.
1459 * QueryParser::parse_query():
1461   + Now adds a colon after the prefix when prefixing a boolean term which
1462     starts with a colon.  This means the mapping is reversible, and matches
1463     what omega actually does in this case when it tries to reverse the mapping.
1464     Thanks to Andy Chilton for pointing out this corner case.
1466   + The parser now makes use of newer features in the lemon parser generator to
1467     make parsing faster and use less memory.
1469 * Enquire::get_mset(): Fix bug with get_mset(0, 0, X) when X > 0 which was
1470   causing an attempt to access an element in an empty vector.  Reported by
1471   sielicki in #xapian.
1473 * Stem:
1475   + Add Indonesian stemming algorithm.
1477   + Small optimisations to almost all stemming algorithms.
1479 * Stopper:
1481   + Add Indonesian stopword list.
1483   + The installed version of the Finnish stopword list now has one word per
1484     line.  Previously it had several space-separated words on some lines, which
1485     works with C++'s std::istream_iterator but may be inconvenient for use from
1486     some other languages.
1488   + The installed versions of stopword lists are now sorted in byte order
1489     rather than whatever collation order is specified by LC_COLLATE or similar
1490     at build time.  This makes the build more reproducible, and also may be
1491     more efficient for loading into some data structures.
1493 * WritableDatabase::replace_document(term, doc): Check for last_docid wrapping
1494   when used on a sharded database.
1496 * Database::locked(): Consistently throw FeatureUnavailableError on platforms
1497   where we can't test for a database lock without trying to take it.
1498   Previously GNU Hurd threw DatabaseLockError while platforms where we don't
1499   use fcntl() locking at all threw UnimplementedError.
1501 * Database and WritableDatabase constructors: Fix handling of entries for
1502   disabled backends in stub database files to throw FeatureUnavailableError
1503   instead of DatabaseError.
1505 * Database::get_value_lower_bound() now works correctly for sharded databases.
1506   Previously it returned the empty string if any shard had no values in the
1507   specified slot.
1509 * PostingIterator was failing to keep an internal reference to the parent
1510   Database object for sharded databases.
1512 * ValueIterator::skip_to() and check() had an off-by-one error in their docid
1513   calculations in some cases with sharded databases.
1515 testsuite:
1517 * apitest:
1519   + Enable testcases flagged metadata, synonym and/or writable to run on
1520     sharded databases.
1522   + Enable testcases flagged writable to run on sharded databases.  Writing to
1523     a sharded WritableDatabase has been supported since 1.3.2, but the test
1524     harness wasn't running many of the tests that could be with a sharded
1525     WritableDatabase.  This uncovered three bugs which are fixed in this
1526     release.
1528   + Support "generated" testcases for the inmemory backend, which uncovered a
1529     bug which is fixed in this release.
1531   + Skip testcase testlock1 on platforms that don't allow us to implement
1532     Database::locked() (which notably include GNU Hurd and Microsoft Windows).
1534   + Disable testlock2 on sharded databases as it fails for platforms which
1535     don't actually support testing the lock.
1537   + Extend tests of behaviour after database close.  Patch from Guruprasad
1538     Hegde.  Fixes https://trac.xapian.org/ticket/337
1540   + Enable testcase closedb5 for remote backends.  This testcase failed for
1541     remote backends when it was added and the cause wasn't clear, but it turns
1542     out it was actually a bug in the disk based backends, which was fixed way
1543     back in 2010.  Reported by Guruprasad Hegde.
1545   + Check for select() failing in retrylock1 testcase.  Retry on EINTR or
1546     EAGAIN, and report other errors rather than trying the read() anyway.
1547     Previously the read() would likely fail for the same reason the select()
1548     did, but at best this is liable to make what's going on less clear if the
1549     testcase fails.
1551 * Report bool values as true/false not 1/0.
1553 * Assorted minor testcase improvements.
1555 * The test harness now supports testcases which are expected to fail (XFAIL).
1556   Based on patch from Richard Boulton in https://trac.xapian.org/ticket/156.
1558 * Fix demangling of std::exception subclass names which wasn't happening due
1559   to a typo in the preprocessor check for the required header.  This was broken
1560   by changes in 1.4.2.
1562 * Make TEST_EQUAL() arguments side-effect free.  The TEST_EQUAL() macro
1563   evaluates its arguments a second time if the test fails in order to report
1564   their values.  This isn't ideal and really ought to be addressed, but for now
1565   fix uses where the argument has side-effect (e.g. *i++) such that the
1566   reported value should match the tested value.
1568 * runtest: Show usage if first option starts '-'.  Previously we ended up
1569   passing such options to libtool, so putting -v on runtest instead of apitest
1570   would run the tests but -v would effectively do nothing (it would make
1571   libtool verbose, but that doesn't make any difference in this case):
1572   ./runtest -v ./apitest
1574 * Suppress output from xcopy on MS Windows.
1576 * The test harness machinery for detecting file descriptor leaks should now
1577   work on any platform which has /dev/fd.
1579 * Implement recursive delete of a database directory in the test harness
1580   using nftw() if available (and not buggy like mingw64's seems to be), rather
1581   than running "rm -rf" as an external command.  This avoids the overhead of
1582   starting a new process each time we clean up a test database, which happens a
1583   lot during a test run.
1585 * Speed up generated test databases a little by adding a stat() check to avoid
1586   throwing and catching an exception when the database doesn't yet exist.
1588 * Skip timed tests when configured with --enable-log.  The logging can easily
1589   turn O(1) operations into O(n), and that's hard to avoid.  Fixes
1590   https://trac.xapian.org/ticket/757, reported by Guruprasad Hegde.
1592 matcher:
1594 * OP_VALUE_*: When a value slot's lower and upper bound are equal, we know
1595   that exactly how many documents the subquery can match (either 0 or those
1596   bounds).  This also avoids a division by zero which previously happened
1597   when trying to calculate the estimate.
1599 * Speed up sorting by keys.  Use string::compare() to avoid having to call
1600   operator< if operator> returns false.
1602 * Fix clamping of maxitems argument to get_mset() - it was being clamped
1603   to db.get_doccount(), now it's clamped to db.get_doccount() - first.  In
1604   practice this doesn't actually seem to cause any issues.
1606 * If a match time limit is in effect, when it expires we now clamp
1607   check_at_least to first + maxitems instead of to maxitems.  In practice this
1608   also doesn't seem to actually cause any issues (at least we've failed to
1609   construct a testcase where it actually makes an observable difference).
1611 * Fix percentages when only some shards have positions.  If the final shard
1612   didn't have positions this would lead to under-counting the total number leaf
1613   of subqueries which would lead to incorrect positional calculations (and a
1614   division by zero if the top level of the query was positional.  This bug was
1615   introduced in 1.4.3.
1617 * OP_NEAR: Fix "phantom positions", where OP_NEAR would think a term without
1618   positional information occurred at position 1 if it had the lowest term
1619   frequency amongst the OP_NEAR's subqueries.
1621 * Fix termfreq used in weight calculations for a term occurring more than once
1622   in the query.  Previously the termfreq for such terms was multiplied by the
1623   number of different query positions they appeared at.
1625 * OP_SYNONYM: We use the doclength upper bound for the wdf upper bound of a
1626   synonym - now we avoid fetching it twice when the doclength upper bound is
1627   explicitly needed.
1629 * Short-cut init() when factor is 0 in most Weight subclasses.  This indicates
1630   the object is for the term-independent weight contribution, which is always 0
1631   for most schemes, so there's no point fetching any stats or doing any
1632   calculations.  This fixes a divide by zero for TfIdfWeight, detected by
1633   UBSan.
1635 * OP_OR: Fix bug which caused orcheck1 to fail once hooked up to run with the
1636   inmemory backend.
1638 glass backend:
1640 * Fix glass freelist bug when changes to a new database which didn't modify the
1641   termlist table were committed.  In this corner case, a block which had been
1642   allocated to be the root block in the termlist table was leaked.  This was
1643   largely harmless, except that it was detected by Database::check() and caused
1644   it to report an error.  Reported by Antoine Beaupré and David Bremner.
1646 * Fix glass freelist bug with cancel_transaction().  The freelist wasn't
1647   reset to how it was before the transaction, resulting in leaked blocks.
1648   This was largely harmless, except that it was detected by Database::check()
1649   and caused it to report an error.
1651 * Improve the per-term wdf upper bound.  Previously we used min(cf(term),
1652   wdf_upper_bound(db)) which is tight for any terms which attain that
1653   upper bound, and also for terms with termfreq == 1 (the latter are common
1654   in the database (e.g. 66% for a database of wikipedia), but probably
1655   much less common in searches).  When termfreq > 1 we now use
1656   max(first_wdf(term), cf(term) - first_wdf(term)), which means terms with
1657   termfreq == 2 will also attain their bound (another 11% for the same
1658   database) while terms with higher termfreq but below the global bound will
1659   get a tighter bound.
1661 * Fix Database::locked() on single-file glass db to just return false (such
1662   databases can't be opened as a WritableDatabase so there can't be a write
1663   lock).  Previously this failed with: "DatabaseLockError: Unable to get write
1664   lock on /flintlock: Testing lock"
1666 * Fix compaction when both the input and output are specified as a file
1667   descriptor.  Previously this threw an exception due to an overeager check
1668   that destination != source.
1670 * Use O_TRUNC when compacting to single file.  If the output already exists but
1671   is larger than our output we don't want to just overwrite the start of it.
1672   This case also used to result in confusing compaction percentages.
1674 * Enable glass's "open_nearby_postlist" optimisation (which especially helps
1675   large wildcard queries) for writable databases without any uncommitted
1676   changes as well.
1678 * Make get_unique_terms() more efficient for glass.  We approximate
1679   get_unique_terms() by the length of the termlist (which counts boolean terms
1680   too) but clamp this to be no larger than the document length.  Since we need
1681   to open the termlist to get its length, it makes more sense to get the
1682   document length from that termlist for no extra cost rather than looking it
1683   up in the postlist table.
1685 * Database::check() now checks document lengths against the stored document
1686   length lower and upper bounds.  Patch from Uppinder Chugh.  Fixes
1687   https://trac.xapian.org/ticket/617.
1689 * Fix bogus handling of most-recently-read value slot statistics.  It seems
1690   that we get lucky and this can't actually cause a problem in practice due
1691   to another layer of caching above, but if nothing else it's a bug waiting to
1692   happen.
1694 * If we fail to create the directory for a new database because the path
1695   already exists, the exception now reports EEXIST as the errno value rather
1696   than whatever errno value happened to be set from an earlier library call.
1698 remote backend:
1700 * xapian-tcpsrv --one-shot no longer forks.  We need fork to handle multiple
1701   concurrent connections, but when handling a single connection forking just
1702   adds overhead and potentially complicates process management for our caller.
1703   This aligns with the behaviour under __WIN32__ where we use threads instead
1704   of forking, and service the connection from the main thread with --one-shot.
1706 * Fix repeat call to ValueIterator::check() on the same docid to not always
1707   set valid to true for remote backend.
1709 inmemory backend:
1711 * Fix repeat call to ValueIterator::check() on the same docid to not always
1712   set valid to true for inmemory backend.
1714 build system:
1716 * configure: Fix potentially confusing messages suggesting snprintf was added
1717   in C90 - it was actually standardised in C99.
1719 * Eliminate configure probes related to off_t by using C++11 features.
1721 * The installed xapian-config script is now cleaned up by removing code to
1722   handle use before installation.  This extra code contained build paths
1723   which meant the build wasn't bit-for-bit reproducible unless the same
1724   build directory name was used.  This change also eliminates use of
1725   automake's $(transform) (which seems to be intended an internal mechanism)
1726   and fixes "make uninstall" to remove xapian-config when a program-prefix or
1727   -suffix is in use (e.g. there's a default -1.5 suffix for git master
1728   currently).
1730 * Directory separator knowledge is now factored out into configure, based on
1731   $host_os and __WIN32__ (it seems hard to probe for this in a way which works
1732   when cross-compiling).
1734 * Fix build with --disable-backend-remote.
1736 * In an out-of-tree build configured with --enable-maintainer-mode
1737   and --disable-dependency-tracking we would fail to create the
1738   "tests/soaktest" and "unicode" directories in the build directory.
1739   Patch from Gaurav Arora.
1741 * Improve handling of multitarget rule stamp files.  Clean them on "make
1742   maintainer-clean" and ship them so that --enable-maintainer-mode when
1743   building from a tarball doesn't needlessly rerun the multitarget rules.
1745 * Split out allsnowballheaders.h again to avoid include path issues with
1746   unittest in out-of-tree maintainer-mode builds.
1748 * xapian-core.pc: Both the Name and Description were too long compared to
1749   pkg-config norms, and the Description was trying to be multi-line which it
1750   seems pkg-config doesn't support.  Fixes
1751   https://github.com/xapian/xapian/pull/203, reported by orbea.
1753 documentation:
1755 * Stop describing Xapian as "Probabilistic" - we've also had non-probabilistic
1756   weighting schemes since 1.3.2.
1758 * Improve API docs for MSet::snippet().
1760 * Correct some class names in doxygen file documentation comments.
1762 * Mark up shell command as code-block:: sh.
1764 tools:
1766 * xapian-delve:
1768   + Document values can contain binary data, so escape them by default for
1769     output.  Other options now supported are to decode as a packed integer
1770     (like omindex uses for last modified), decode using
1771     Xapian::sortable_unserialise(), and to show the raw form (which was the
1772     previous behaviour).
1774   + Report current database revision.
1776 * xapian-inspect:
1778   + Report entry count when opening table
1780   + Support inspecting single file DBs via a new --table option (which can also
1781     be used with a non-single-file DB instead of specifying the path to the
1782     table).
1784   + Add "first" and "last" commands which jump to the first/last entry in the
1785     current table respectively.
1787   + "until" now counts and reports the number of entries advanced by.
1789   + Document "until" with no arguments - this advances to the end of the table,
1790     but wasn't mentioned in the help.
1792   + Commands "goto" and "until" which take a key as an argument now expect the
1793     key in the same escaped form that's used for display.  This makes it much
1794     simpler to interact with tables with binary keys.
1796   + Fix to expect .glass not .DB extension of glass tables.
1798 portability:
1800 * Sort out building using MSVC with the standard build system, and fix assorted
1801   problems.  MSVC 2015 or later is required for decent C++11 support.  Both 32-
1802   and 64-bit builds are now supported.
1804 * Remove code specific to old MSVC nmake build system.  The latter has been
1805   removed already.
1807 * Don't use WIN32 API to parse/unparse UUIDs.  So much glue code is needed that
1808   it's simpler to just do the parsing and unparsing ourselves, and we already
1809   have an implementation which is used when generating UUIDs using /proc on
1810   Linux.  We still use UuidCreate() to generate a new UUID.
1812 * Improve compiler visibility attribute detection to check that using the
1813   attributes doesn't result in a warning - previously we'd enable them even on
1814   platforms which don't support them, which would result in a compiler warning
1815   for every file compiled.  We now probe for -fvisibility=hidden and
1816   -fvisibility-inlines-hidden together as it seems all compilers implement both
1817   or neither, and it's faster to do one probe instead of two.
1819 * Don't pass the same FDSET twice in same select() - this appears not to be
1820   allowed by current POSIX, and causes warnings with GCC8.
1822 * Fix compacttofd testcases to specify O_BINARY so they pass on platforms
1823   where O_BINARY matters.
1825 * configure: Probe for declaration of _putenv_s.  It seems that the symbol is
1826   always present in the MSVCRT DLL, but older mingw may not provide a
1827   declaration for it.
1829 * Fix "may be used uninitialised" warning with GCC 4.9.2 and -Os.
1831 * Suppress mingw32 deprecation warning for useconds_t.  We've already switched
1832   away from useconds_t on git master, but it's not easy to do for 1.4.x without
1833   ABI breakage.
1835 * Fix signed vs unsigned warnings with assertions on.
1837 * Use $(SED) instead of hard-coding "sed".  The rules concerned are all ones
1838   that only maintainers currently need to run, but we're likely to enable
1839   maintainer-mode by default at some point and then portability here will
1840   matter more.
1842 * Add missing explicit <algorithm> for std::max()/std::min().
1844 * Check for EAGAIN as well as EINTR from select().  The Linux select(2) man
1845   page says: "Portable programs may wish to check for EAGAIN and loop, just as
1846   with EINTR" and that seems to be necessary for Cygwin at least.
1848 * Probe for exp10() declaration as Cygwin seems to have the symbol but lacks a
1849   declaration in the headers.  Just ignoring it is simplest and we'll use GCC's
1850   __builtin_exp10() instead.
1852 * Fix warnings when building Snowball compiler with recent GCC.
1854 * Fix Perl script used during maintainer builds to work with Perl < 5.10.  Such
1855   old perl versions shouldn't really be relevant for maintainer builds at this
1856   point, but appveyor's mingw install has such a Perl version.
1858 * Remove unused macro STATIC_ASSERT_TYPE_DOMINATES (unused, except by
1859   internaltest unit test for it, since the flint backend was removed in 2011)
1860   and replace uses of STATIC_ASSERT_UNSIGNED_TYPE with C++11 features
1861   static_assert and std::is_unsigned instead.
1863 * Don't retry on (errno == EINTR) when read() or pread() indicates end-of-file.
1864   This could potentially have put us into an infinite loop if we encountered
1865   this situation and errno happened to be EINTR from a previous library call.
1867 * Make read-only data arrays consistently static and const.
1869 * Avoid casting invalid value to enum reply_type if an invalid reply code is
1870   received from a remote server.  This is technically undefined behaviour,
1871   though in practice probably not a problem.
1873 * Eliminate an array of function pointers and some char* array members in
1874   library, reducing the number of relocations needed at shared library load
1875   time, which reduces the total time to load the library.
1877 packaging:
1879 * Use https for tarball URLs in .spec files.  This provides protection against
1880   MITM attacks on people building packages using these spec files, and is also
1881   slightly more efficient as the http: URLs redirect to the https: versions
1882   anyway.
1884 debug code:
1886 * Fix build when configured with --enable-log due to bugs in debug logging
1887   annotations.  Patch from Uppinder Chugh.
1889 * Fix assertion for value range on empty slot.
1891 * Use AssertEq() rather than Assert with ==, the former reports the two
1892   values if the assertion fails.
1894 Xapian-core 1.4.5 (2017-10-16):
1896 API:
1898 * Add Database::get_total_length() method.  Previously you had to calculate
1899   this from get_avlength() and get_doccount(), taking into account rounding
1900   issues.  But even then you couldn't reliably get the exact value when total
1901   length is large since a double's mantissa has more limited precision than an
1902   unsigned long long.
1904 * Add Xapian::iterator_rewound() for bidirectional iterators, to test if the
1905   iterator is at the start (useful for testing whether we're done when
1906   iterating backwards).
1908 * DatabaseOpeningError exceptions now provide errno via get_error_string()
1909   rather than turning it into a string and including it in the exception
1910   message.
1912 * WritableDatabase::replace_document(): when passed a Document object which
1913   came from a database and has unmodified values, we used to always read
1914   those values into a memory structure.  Now we only do this if the document
1915   is being replaced to the same document ID which it came from, which should
1916   make other cases a bit more efficient.
1918 * Enquire::get_eset(): When approximating term frequencies we now round to the
1919   nearest integer - previously we always rounded down.
1921 testsuite:
1923 * Improve Xapian::Document test coverage.
1925 * Pass --child-silent-after-fork=yes to valgrind which stops us creating a
1926   .valgrind.log.* file for every remote testcase run.  This option was added in
1927   valgrind 3.3.0 which is already the minimum version we support.
1929 * Open and unlink valgrind log before option parsing so we no longer leave a
1930   log file behind if there's an error parsing options or for options like
1931   --help which report and exit.
1933 * Delete .valgrind.log.* on "make clean" - if tests are run under valgrind and
1934   the test is killed at just the wrong moment then a log file may be left
1935   behind.
1937 * Fix the NetworkError with ECHILD check added in 1.4.4 - this will no longer
1938   segfault if the test harness catches a NetworkError without an error string.
1940 matcher:
1942 * Iterating of positions has been sped up, which means phrase matching is now
1943   faster (by a little over 5% in some simple tests).
1945 * Fix use after free of QueryOptimiser hint in certain cases involving
1946   multiple databases only some of which have positional information.
1947   This bug was introduced by changes in xapian-core 1.4.3.  Fixes #752,
1948   reported and analysed by Robert Stepanek.
1950 * An unweighted OP_AND_MAYBE is now optimised to just its left branch - the
1951   other branch or branches only contribute weight, so can be completely ignored
1952   when the operator is unweighted.
1954 inmemory backend:
1956 * Use binary chop instead of linear search in all places where we're searching
1957   for a term or document - we weren't taking advantage of the sorted order
1958   everywhere.
1960 build system:
1962 * xapian-core.pc: Specify Libs.private in pkgconfig file, which is needed for
1963   static linking, and probably also for shared libraries on platforms without
1964   DT_NEEDED or something equivalent.  Fixes #751, reported by Matthieu Gautier.
1966 documentation:
1968 * Document that QueryParser::set_default_op() supports OP_MAX - this
1969   has been the case since OP_MAX was added, but the API docs for
1970   set_default_op() weren't updated to reflect this.
1972 * Document OP_MAX and OP_WILDCARD.
1974 * Fix documentation of TermGenerator stop_strategy values STOP_ALL and
1975   STOP_STEMMED.  Reported by Matthieu Gautier in #750.  Thanks to Gaurav Arora
1976   for additional investigation.
1978 * net/remote_protocol.rst: Update the current version of the remote protocol
1979   version (39 not 38).  The differences between the two are only in the Query
1980   and MSet serialisations which aren't documented in detail here.
1982 * Link get_unique_terms_begin() and get_terms_begin() API documentation -
1983   the cross-referencing is useful in itself, but also helps to highlight
1984   the difference between the two.
1986 * Fix "IPv5" -> "IPv6" comment typo.  Noted by James Clarke
1988 * deprecation.html:
1990   + Add deprecated Enquire::get_eset() overload - this was marked as deprecated
1991     in the header file, but hadn't been added here.
1993   + Move deprecated typedefs to the "to be removed" list - they'd been
1994     accidentally added to the "removed" list.
1996   + Improve descriptions of several deprecated features.
1998 * QueryParser::set_max_expansion() is now discussed in the API documentation
1999   instead of the deprecated set_max_wildcard_expansion().
2001 * Clarify PostList::check() API documentation:  If valid is set to false, then
2002   NULL must be returned (pruning in this situation doesn't make sense) and
2003   at_end() shouldn't be called (because it implicitly depends on the current
2004   position being valid).
2006 * HACKING:
2008   + Update re -Wold-style-cast which we enabled and then had to disable again.
2010   + Update links to C++ FAQ and libstdc++'s debug mode.
2012   + Update several URLs to use https.
2014   + The 1.2 release branch has now been retired, so remove 1.2-specific
2015     backporting tips.
2017 portability:
2019 * Also check <errno.h> for sys_nerr and sys_errlist.  This is probably a more
2020   common location for them than Linux's <stdio.h> (even on Linux the man page
2021   says they're in <errno.h> but that doesn't match reality).
2023 * Use $(CC) not $(CC_FOR_BUILD) to build zlib-vg.so.  The test for whether we
2024   need it is based on the host OS, so it makes more sense to use the host
2025   compiler to build it when cross compiling.
2027 * On Hurd F_GETLK currently always fails with errno set to ENOSYS - treat this
2028   the same way as ENOLCK.  This fixes the testsuite on GNU Hurd, broken since
2029   the addition on Database::locked() in 1.4.3.
2031 * Add missing #include "safesyssocket.h", needed on at least FreeBSD to get
2032   AF_INET and SOCK_STREAM defined.  Fixes
2033   https://github.com/xapian/xapian/pull/154, reported by Po-Chuan Hsieh
2034   (alternative fix applied was suggested by James Aylett).
2036 * configure: Fixed the probe for whether the test harness can use RTTI with
2037   IBM's xlC compiler (which defaults to not generating RTTI).  Previously the
2038   probe would always think RTTI was available.
2040 debug code:
2042 * Fix some incorrect class/method names in debug logging.
2044 * Stop disabling ccache for coverage builds as ccache 3.2.2 now supports
2045   caching compilations with --coverage, and they work as far back as ccache 3.0
2046   (caching is automatically disabled by these older versions).
2048 * Drop --enable-quiet from in COVERAGE_CONFIGURE - this option no longer does
2049   anything since 1.3.1.
2051 Xapian-core 1.4.4 (2017-04-19):
2053 API:
2055 * Database::check():
2057   + Fix checking a single table - changes in 1.4.2 broke such checks unless you
2058     specified the table without any extension.
2060   + Errors from failing to find the file specified are now thrown as
2061     DatabaseOpeningError (was DatabaseError, of which DatabaseOpeningError is
2062     a subclass so existing code should continue to work).  Also improved the
2063     error message when the file doesn't exist is better.
2065 * Drop OP_SCALE_WEIGHT over OP_VALUE_RANGE, OP_VALUE_GE and OP_VALUE_LE in the
2066   Query constructor.  These operators always return weight 0 so OP_SCALE_WEIGHT
2067   over them has no effect.  Eliminating it at query construction time is cheap
2068   (we only need to check the type of the subquery), eliminates the confusing
2069   "0 * " from the query description, and means the OP_SCALE_WEIGHT Query object
2070   can be released sooner.  Inspired by Shivanshu Chauhan asking about the query
2071   description on IRC.
2073 * Drop OP_SCALE_WEIGHT on the right side of OP_AND_NOT in the Query
2074   constructor.  OP_AND_NOT takes no weight from the right so OP_SCALE_WEIGHT
2075   has no effect there.  Eliminating it at query construction time is cheap
2076   (just need to check the subquery's type), eliminates the confusing "0 * "
2077   from the query description, and means the OP_SCALE_WEIGHT object can be
2078   released sooner.
2080 testsuite:
2082 * Add more tests of Database::check().  Fixes #238, reported by Richard
2083   Boulton.
2085 * Make apitest testcase nosuchdb1 fail if we manage to open the DB.
2087 * Skip testcases which throw NetworkError with errno value ECHILD - this
2088   indicates system resource starvation rather than a Xapian bug.  Such failures
2089   are seen on Debian buildds from time to time, see:
2090   https://bugs.debian.org/681941
2092 matcher:
2094 * Fix incorrect results due to uninitialised memory.  The array holding max
2095   weight values in MultiAndPostList is never initialised if the operator is
2096   unweighted, but the values are still used to calculate the max weight to pass
2097   to subqueries, leading to incorrect results.  This can be observed with an OR
2098   under an unweighted AND (e.g. OR under AND on the right side of AND_NOT).
2099   The fix applied is to simply default initialise this array, which should lead
2100   to a max weight of 0.0 being passed on to subqueries.  Bug reported in
2101   notmuch by Kirill A. Shutemov, and forwarded by David Bremner.
2103 documentation:
2105 * Correct "Query::feature_flag" -> "QueryParser::feature_flag".  Fixes #747,
2106   reported by James Aylett.
2108 * Rename set_metadata() `value` parameter to `metadata`.  This change is
2109   particularly motivated by making it easier to map this case specially in SWIG
2110   bindings, but the new name is also clearer and better documents its purpose.
2112 * Rename value range parameters.  The new names (`range_limit` instead of
2113   `limit`, `range_lower` instead of `begin` and `range_upper` instead of `end`)
2114   are particularly motivated by making it easier to map them specially in SWIG
2115   bindings, but they're also clearer names which better document their
2116   purposes.
2118 * Change "(key, tag)" to "(key, value)" in user metadata docs.  The user
2119   metadata is essentially what's often called a "key-value store" so users
2120   are likely to be familiar with that terminology.
2122 * Consistently name parameter of Weight::unserialise() overridden forms.
2123   In xapian/weight.h it was almost always named `serialised`, but LMWeight
2124   named it `s` and CoordWeight omitted the name.
2126 * Fix various minor documentation comment typos.
2128 portability:
2130 * Fix configure probe for __builtin_exp10() to work around bug on mingw - there
2131   GCC generates a call to exp10() for __builtin_exp10() but there is no exp10()
2132   function in the C library, so we get a link failure.  Use a full link test
2133   instead to avoid this issue.  Reported by Mario Emmenlauer on xapian-devel.
2135 * Fix configure probe for log2() which was failing on at least some platforms
2136   due to ambiguity between overloaded forms of log2().  Make the probe
2137   explicitly check for log2(double) to avoid this problem.
2139 * Workaround the unhelpful semantics of AI_ADDRCONFIG on platforms which follow
2140   the old RFC instead of POSIX (such as Linux) - if only loopback networking is
2141   configured, localhost won't resolve by name or IP address, which causes
2142   testsuites using the remote backend over localhost to fail in auto-build
2143   environments which deliberately disable networking during builds.  The
2144   workaround implemented is to check if the hostname is "::1", "127.0.0.1" or
2145   "localhost" and disable AI_ADDRCONFIG for these.  This doesn't catch all
2146   possible ways to specify localhost, but should catch all the ways these might
2147   be specified in a testsuite.  Fixes https://bugs.debian.org/853107, reported
2148   by Daniel Schepler and the root cause uncovered by James Clarke.
2150 debug code:
2152 * Adjust assertion in InMemoryPostList.  Calling skip_to() is fine when the
2153   postlist hasn't been started yet (but the assertion was failing for a term
2154   not in the database).  Latent bug, triggered by testcases complexphrase1 and
2155   complexnear1 as updated for addition of support for OP_OR subqueries of
2156   OP_PHRASE/OP_NEAR.
2158 Xapian-core 1.4.3 (2017-01-25):
2160 API:
2162 * MSet::snippet(): Favour candidate snippets which contain more of a diversity
2163   of matching terms by discounting the relevance of repeated terms using an
2164   exponential decay.  A snippet which contains more terms from the query is
2165   likely to be better than one which contains the same term or terms multiple
2166   times, but a repeated term is still interesting, just less with each
2167   additional appearance.  Diversity issue highlighted by Robert Stepanek's
2168   patch in https://github.com/xapian/xapian/pull/117 - testcases taken from his
2169   patch.
2171 * MSet::snippet(): New flag SNIPPET_EMPTY_WITHOUT_MATCH to get an empty snippet
2172   if there are no matches in the text passed in.  Implemented by Robert
2173   Stepanek.
2175 * Round MSet::get_matches_estimated() to an appropriate number of significant
2176   figures.  The algorithm used looks at the lower and upper bound and where the
2177   estimate sits between them, and then picks an appropriate number of
2178   significant figures.  Thanks to Sébastien Le Callonnec for help sorting out a
2179   portability issue on OS X.
2181 * Add Database::locked() method - where possible this non-invasively checks if
2182   the database is currently open for writing, which can be useful for
2183   dashboards and other status reporting tools.
2185 testsuite:
2187 * Use terms that exist in the database for most snippet tests.  It's good to
2188   test that snippet highlighting works for terms that aren't in the database,
2189   but it's not good for all our snippet tests to feature such terms - it's
2190   not the common usage.
2192 matcher:
2194 * Improve value range upper bound and estimated matches.  The value slot
2195   frequency provides a tighter upper bound than Database::get_doccount().
2196   The estimate is now calculated by working out the proportion of possible
2197   values between the slot lower and upper bounds which the range covers
2198   (assuming a uniform distribution).  This seems to work fairly well in
2199   practice, and is certainly better than the crude estimate we were using:
2200   Database::get_doccount() / 2
2202 * Handle arbitrary combinations of OP_OR under OP_NEAR/OP_PHRASE, partly
2203   addressing #508.  Thanks to Jean-Francois Dockes for motivation and testing.
2205 * Only convert OP_PHRASE to OP_AND if full DB has no positions.  Until now the
2206   conversion was done independently for each sub-database, but being consistent
2207   with the results from a database containing all the same documents seems more
2208   useful.
2210 * Avoid double get_wdf() call for first subquery of OP_NEAR and OP_PHRASE,
2211   which will speed them up by a small amount.
2213 documentation:
2215 * INSTALL: Update section about -Bsymbolic-functions which is not a new
2216   GNU ld feature at this point.
2218 tools:
2220 * xapian-delve: Uses new Database::locked() method to report if the database
2221   is currently locked.
2223 portability:
2225 * Fix build failure cross-compiling for android due to not pulling in header
2226   for errno.
2228 * Fix compiler warnings.
2230 Xapian-core 1.4.2 (2016-12-26):
2232 API:
2234 * Add XAPIAN_AT_LEAST(A,B,C) macro.
2236 * MSet::snippet(): Optimise snippet generation - it's now ~46% faster in a
2237   simple test.
2239 * Add Xapian::DOC_ASSUME_VALID flag which tells Database::get_document() that
2240   it doesn't need to check that the passed docid is valid.  Fixes #739,
2241   reported by Germán M. Bravo.
2243 * TfIdfWeight: Add support for the L wdf normalisation.  Patch from Vivek Pal.
2245 * BB2Weight: Fix weights when database has just one document.  Our existing
2246   attempt to clamp N to be at least 2 was ineffective due to computing
2247   N - 2 < 0 in an unsigned type.
2249 * DPHWeight: Fix reversed sign in quadratic formula, making the upper bound a
2250   tiny amount higher.
2252 * DLHWeight: Correct upper bound which was a bit too low, due to flawed logic
2253   in its derivation.  The new bound is slightly less tight (by a few percent).
2255 * DLHWeight,DPHWeight: Avoid calculating log(0) when wdf is equal to the
2256   document length.
2258 * TermGenerator: Handle stemmer returning empty string - the Arabic stemmer
2259   can currently do this (e.g. for a single tatweel) and user stemmers can too.
2260   Fixes #741, reported by Emmanuel Engelhart.
2262 * Database::check(): Fix check that the first docid in each doclength chunk is
2263   more than the last docid in the previous chunk - this code was in the wrong
2264   place so didn't actually work.
2266 * Database::get_unique_terms(): Clamp returned value to be <= document length.
2267   Ideally get_unique_terms() ought to only count terms with wdf > 0, but that's
2268   expensive to calculate on demand.
2270 glass backend:
2272 * When compacting we now only write the iamglass file out once, and we write it
2273   before we sync the tables but sync it after, which is more I/O friendly.
2275 * Database::check(): Fix in SEGV when out == NULL and opts != 0.
2277 * Fix potential SEGV with corrupt value stats.
2279 chert backend:
2281 * Fix potential SEGV with corrupt value stats.
2283 build system:
2285 * Add XO_REQUIRE autoconf macro to provide an easy way to handle version checks
2286   in user configure scripts.
2288 tools:
2290 * quest: Support BM25+, LM and PL2+ weighting schemes.
2292 * xapian-check: Fix when ellipses are shown in 't' mode.  They were being shown
2293   when there were exactly 6 entries, but we only start omitting entries when
2294   there are *more* than 6.  Fix applies to both glass and chert.
2296 portability:
2298 * Avoid using opendir()/readdir() in our closefrom() implementation as these
2299   functions can call malloc(), which isn't safe to do between fork() and exec()
2300   in a multi-threaded program, but after fork() is exactly where we want to
2301   use closefrom().  Instead we now use getdirentries() on Linux and
2302   getdirentriesattr() on OS X (OS X support bugs shaken out with help from
2303   Germán M. Bravo).
2305 * Support reading UUIDs from /proc/sys/kernel/random/uuid which is especially
2306   useful when building for Android, as it avoids having to cross-build a UUID
2307   library.
2309 * Disable volatile workaround for excess precision SEGV for SSE - previously it
2310   was only being disabled for SSE2.
2312 * When building for x86 using a compiler where we don't know how to disable
2313   use of 387 FP instructions, we now run remote servers for the testsuite under
2314   valgrind --tool=none, like we do when --disable-sse is explicitly specified.
2316 * Add alignment_cast<T> which has the same effect as reinterpret_cast<T> but
2317   avoids warnings about alignment issues.
2319 * Suppress warnings about unused private members.  DLHWeight and DPHWeight
2320   have an unused lower_bound member, which clang warns about, but we need to
2321   keep them there in 1.4.x to preserve ABI compatibility.
2323 * Remove workaround for g++ 2.95 bug as we require at least 4.7 now.
2325 * configure: Probe for <cxxabi.h>.  GCC added this header in GCC 3.1, which
2326   is much older than we support, so we've just assumed it was available if
2327   __GNUC__ was defined.  However, clang lies and defines __GNUC__ yet doesn't
2328   seem to reliably provide <cxxabi.h>, so we need to probe for it.
2330 * Fix "unused assignment" warning.
2332 * configure: Probe for __builtin_* functions.  Previously we just checked for
2333   __GNUC__ being defined, but it's cleaner to probe for them properly -
2334   compilers other than GCC and those that pretend to be GCC might provide these
2335   too.
2337 * Use __builtin_clz() with compilers which support it to speed up encoding
2338   and especially decoding of positional data.  This speeds up phrase searching
2339   by ~0.5% in a simple test.
2341 * Check signed right shift behaviour at compile time - we can use a test on a
2342   constant expression which should optimise away to just the required version
2343   of the code, which means that on platforms which perform sign-extension
2344   (pretty much everything current it seems) we don't have to rely on the
2345   compiler optimising a portable idiom down to the appropriate right shift
2346   instruction.
2348 * Improve configure check for log2().  We include <cmath> so the check really
2349   should succeed if only std::log2() is declared.
2351 * Enable win32-dll option to LT_INIT.
2353 debug code:
2355 * xapian-inspect:
2357   + Support glass instead of chert.
2359   + Allow control of showing keys/tags.
2361   + Use more mnemonic letters than X for command arguments in help.
2363 Xapian-core 1.4.1 (2016-10-21):
2365 API:
2367 * Constructing a Query for a non-reference counted PostingSource object will
2368   now try to clone the PostingSource object (as happened in 1.3.4 and
2369   earlier).  This clone code was removed as part of the changes in 1.3.5 to
2370   support optional reference counting of PostingSource objects, but that breaks
2371   the case when the PostingSource object is on the stack and goes out of scope
2372   before the Query object is used.  Issue reported by Till Schäfer and analysed
2373   by Daniel Vrátil in a bug report against Akonadi:
2374   https://bugs.kde.org/show_bug.cgi?id=363741
2376 * Add BM25PlusWeight class implementing the BM25+ weighting scheme, implemented
2377   by Vivek Pal (https://github.com/xapian/xapian/pull/104).
2379 * Add PL2PlusWeight class implementing the PL2+ weighting scheme, implemented
2380   by Vivek Pal (https://github.com/xapian/xapian/pull/108).
2382 * LMWeight: Implement Dir+ weighting scheme as DIRICHLET_PLUS_SMOOTHING.
2383   Patch from Vivek Pal.
2385 * Add CoordWeight class implementing coordinate matching.  This can be useful
2386   for specialised uses - e.g. to implement sorting by the number of matching
2387   filters.
2389 * DLHWeight,DPHWeight,PL2Weight: With these weighting schemes, the formulae
2390   can give a negative weight contribution for a term in extreme cases.  We
2391   used to try to handle this by calculating a per-term lower bound on the
2392   contribution and subtracting this from the contribution, but this idea
2393   is fundamentally flawed as the total offset it adds to a document depends on
2394   what combination of terms that document matches, meaning in general the
2395   offset isn't the same for every matching document.  So instead we now clamp
2396   each term's weight contribution to be >= 0.
2398 * TfIdfWeight: Always scale term weight by wqf - this seems the logical
2399   approach as it matches the weighting we'd get if we weighted every non-unique
2400   term in the query, as well as being explicit in the Piv+ formula.
2402 * Fix OP_SCALE_WEIGHT to work with all weighting schemes - previously it was
2403   ignored when using PL2Weight and LMWeight.
2405 * PL2Weight: Greatly improve upper bound on weight:
2406   + Split the weight equation into two parts and maximise each separately as
2407     that gives an easily solvable problem, and in common cases the maximum is
2408     at the same value of wdfn for both parts.  In a simple test, the upper
2409     bounds are now just over double the highest weight actually achieved -
2410     previously they were several hundred times.  This approach was suggested by
2411     Aarsh Shah in: https://github.com/xapian/xapian/pull/48
2412   + Improve upper bound on normalised wdf (wdfn) - when wdf_upper_bound >
2413     doclength_lower_bound, we get a tighter bound by evaluating at
2414     wdf=wdf_upper_bound.  In a simple test, this reduces the upper bound on
2415     wdfn by 36-64%, and the upper bound on the weight by 9-33%.
2417 * PL2Weight: Fix calculation of upper_bound when P2>0.  P2 is typically
2418   negative, but for a very common term it can be positive and then we should
2419   use wdfn_lower not wdfn_upper to adjust P_max.
2421 * Weight::unserialise(): Check serialised form is empty when unserialising
2422   parameter-free schemes BoolWeight, DLHWeight and DPHWeight.
2424 * TermGenerator::set_stopper_strategy(): New method to control how the Stopper
2425   object is used.  Patch from Arnav Jain.
2427 * QueryParser: Fix handling of CJK query over multiple prefixes.  Previously
2428   all the n-gram terms were AND-ed together - now we AND together for each
2429   prefix, then OR the results.  Fixes #719, reported by Aaron Li.
2431 * Add Database::get_revision() method which provides access to the database
2432   revision number for chert and glass, intended for use by xapiand.  Marked
2433   as experimental, so we don't have to go through the usual deprecation cycle
2434   if this proves not to be the approach we want to take.  Fixes #709,
2435   reported by Germán M. Bravo.
2437 * Mark RangeProcessor constructor as `explicit`.
2439 testsuite:
2441 * OP_SCALE_WEIGHT: Check top weight is non-zero - if it is zero, tests which
2442   try to check that OP_SCALE_WEIGHT works will always pass.
2444 * testsuite: Check SerialisationError descriptions from Xapian::Weight
2445   subclasses mention the weighting scheme name.
2447 matcher:
2449 * Fix stats passed to Weight with OP_SYNONYM.  Previously the number of
2450   unique terms was never calculated, and a term which matched all documents
2451   would be optimised to an all-docs postlist, which fails to supply the
2452   correct wdf info.
2454 * Use floating point calculation for OR synonym freq estimates.  The division
2455   was being done as an integer division, which means the result was always
2456   getting rounded down rather than rounded to the nearest integer.
2458 glass backend:
2460 * Fix allterms with prefix on glass with uncommitted changes.  Glass aims to
2461   flush just the relevant postlist changes in this case but the end of the
2462   range to flush was wrong, so we'd only actually flush changes for a term
2463   exactly matching the prefix.  Fixes #721.
2465 remote backend:
2467 * Improve handling of invalid remote stub entries: Entries without a colon now
2468   give an error rather than being quietly skipped; IPv6 isn't yet supported,
2469   but entries with IPv6 addresses now result in saner errors (previously the
2470   colons confused the code which looks for a port number).
2472 build system:
2474 * XO_LIB_XAPIAN: Check for user trying to specify configure for XAPIAN_CONFIG
2475   and give a more helpful error.
2477 * Fix XO_LIB_XAPIAN to work without libtool.  Modern versions of GNU m4 error
2478   out when defn is used on an undefined macro.  Uncovered by Amanda Jayanetti.
2480 * Clean build paths out of installed xapian-config, mostly in the interests of
2481   facilitating reproducible builds, but it is also a little more robust as the
2482   "uninstalled tree" case can't then accidentally be triggered.
2484 * Drop compiler options that are no longer useful:
2485   + -fshow-column is the default in all GCC versions we now support
2486     (checked as GCC 4.6).
2487   + -Wno-long-long is no longer necessary now that we require C++11 where
2488     "long long" is a standard type.
2490 documentation:
2492 * Add API documentation comments for all classes, methods, constants, etc which
2493   were lacking them, and improve the content of some existing comments.
2495 * Stop hiding undocumented classes and members.  Hiding them silences doxygen's
2496   warnings about them, so it's hard to see what is missing, and the stub
2497   documentation produced is perhaps better than not documenting at all.
2498   Fixes #736, reported by James Aylett.
2500 * xapian-check: Make command line syntax consistent with other tools.
2502 * Note when MSet::snippet() was added.
2504 * deprecation.rst: Recommend unsigned over useconds_t for timeout values (but
2505   leave the API using useconds_t for 1.4.x for ABI compatibility.  The type
2506   useconds_t is now obsolete and anyway was intended to represent a time in
2507   microseconds (confusing when Xapian's timeouts are in milliseconds).  The
2508   Linux usleep man page notes: "Programs will be more portable if they never
2509   mention this type explicitly."
2511 portability:
2513 * Suppress compiler warnings about pointer alignment on some architectures.
2514   We know the data is aligned in these cases.
2516 * Fix replicate7 under Cygwin.
2518 debug code:
2520 * Add missing forward declaration needed by --enable-log build.
2522 Xapian-core 1.4.0 (2016-06-24):
2524 API:
2526 * Update to Unicode 9.0.0.
2528 portability:
2530 * Fix build on big-endian architectures.  The new unaligned word access
2531   functions expect WORDS_BIGENDIAN to be set, but configure.ac wasn't invoking
2532   AC_C_BIGENDIAN to arrange for this to be set.
2534 * Suppress compiler warnings about pointer alignment.  We know the data is
2535   suitably aligned, because the whole point of these functions is to allow
2536   reading an aligned word.
2538 Xapian-core 1.3.7 (2016-06-01):
2540 API:
2542 * Reimplement ESet and ESetIterator as we did for MSet and MSetIterator in
2543   1.3.5.  ESetIterator internally now counts down to the end of the ESet, so
2544   the end test is now against 0, rather than against eset.size().  And more of
2545   the trivial methods are now inlined, which reduces the number of relocations
2546   needed to load the library, and should give faster code which is a very
2547   similar size to before.
2549 * MSetIterator and ESetIterator are now STL-compatible random_access_iterators
2550   (previously they were only bidirectional_iterators).
2552 testsuite:
2554 * Merge queryparsertest and termgentest into apitest.  Their testcases now use
2555   the backend manager machinery in the testharness, so we don't have to
2556   hard-code use of inmemory and chert backends, but instead run them under all
2557   backends which support the required features.  This fixes some test failures
2558   when both chert and glass are disabled due to trying to run spelling tests
2559   with the inmemory backend.
2561 * Avoid overflowing collection frequency in totaldoclen1.  We're trying to test
2562   total document length doesn't wrap, so avoid collection freq overflowing in
2563   the process, as that triggers errors when running the testsuite under ubsan.
2564   We should handle collection frequency overflow better, but that's a separate
2565   issue.
2567 * Add some test coverage for ESet::get_ebound().
2569 matcher:
2571 * Fix upper bound on matches for OP_XOR.  Due to a reversed conditional, the
2572   estimate could be one too low in some cases where the XOR matched all the
2573   documents in the database.
2575 * Improve lower bound on matches for OP_XOR.  Previously the lower bound was
2576   always set to 0, which is valid, but we can often do better.
2578 glass backend:
2580 * Fix Database::check() parsing of glass changes file header.  In practice this
2581   was unlikely to actually cause problems.
2583 build system:
2585 * --disable-backend-remote now disables replication too which makes it
2586   actually usable (currently replication and the remote backend share most of
2587   their network code, so disabling them together probably makes sense anyway).
2589 * Improve builds with various combinations of backends disabled (see #361).
2591 portability:
2593 * Revert change to handle a self-initialised PIMPL object (e.g. Xapian::Query
2594   q(q);), added in 1.3.6.  It seems this case is actually undefined behaviour,
2595   so there's not much point trying to do anything about it.  Clang warns about
2596   the testcase for it (tested with 3.5), but sadly current GCC doesn't (tested
2597   with 6.1).
2599 * Use <cstdint> for integer types of known widths now we require C++11.
2601 * Replace unaligned word access functions with optimised versions which use
2602   memcpy() and (on little-endian platforms) a byte-swap (via compiler builtins
2603   where available).  Access revision numbers in database blocks with an aligned
2604   load, since we know they are suitably aligned.
2606 * Simplify handling of platforms where timer_create() exists but isn't
2607   suitable for our needs - AIX and GNU Hurd both have timer_create() but it
2608   always seems to fail (on Hurd this is because there's a dummy implementation
2609   in glibc which always fails with ENOSYS).  Trying a call at runtime which
2610   will never succeed is a waste of time, so we want to avoid defining
2611   HAVE_TIMER_CREATE in such cases.  Probing for this properly in configure
2612   would need us to compile and run a test program, which is unhelpful when
2613   cross-compiling, so for now just test against a blacklist of platforms we
2614   know don't provide a suitable timer_create() function.
2616 * Check _POSIX_MONOTONIC_CLOCK and if it's not defined, use CLOCK_REALTIME
2617   instead of CLOCK_MONOTONIC.  The existing hard-coded platform checks still
2618   seem to be needed, as on these platforms CLOCK_MONOTONIC is available for
2619   some functions, but doesn't work with timer_create() for one reason or
2620   another.  But the new check should avoid failures on platforms without any
2621   monotonic clock support.
2623 * Make opt_intrusive_base symbols visible to avoid UBSAN warnings.
2625 * Avoid potential set-but-unused warning - with both chert and glass disabled,
2626   last_docid's final set value isn't used, which GCC doesn't warn about, but
2627   other compilers might.
2629 * Avoid explicit recursive return of void - we've had warnings for such cases
2630   from some compilers in the past, and it's an odd thing to do outside of a
2631   template.
2633 Xapian-core 1.3.6 (2016-05-09):
2635 API:
2637 * TfIdfWeight: Support freq and squared IDF normalisations.  Patch from Vivek
2638   Pal.
2640 * New Xapian::Query::OP_INVALID to provide an "invalid" query object.
2642 * Reject OP_NEAR/OP_PHRASE with non-leaf subqueries early to avoid a
2643   potential segmentation fault if the non-leaf subquery decayed at
2644   just the wrong moment.  See #508.
2646 * Reduce positional queries with a MatchAll or PostingSource subquery to
2647   MatchNothing (since these subqueries have no positional information, so
2648   the query can't match).
2650 * Deprecate ValueRangeProcessor and introduce new RangeProcessor class as
2651   a replacement.  RangeProcessor()::operator()() method returns Xapian::Query,
2652   so a range can expand to any query.  OP_INVALID is used to signal that
2653   a range is not recognised.  Fixes #663.
2655 * Combining of ranges over the same quantity with OP_OR is now handled by
2656   an explicit "grouping" parameter, with a sensible default which works
2657   for value range queries.  Boolean term prefixes and FieldProcessor now
2658   support "grouping" too, so ranges and other filters can now be grouped
2659   together.
2661 * Formally deprecate WritableDatabase::flush().  The replacement commit()
2662   method was added in 1.1.0, so code can be switched to use this and still
2663   work with 1.2.x.
2665 * Fix handling of a self-initialised PIMPL object (e.g. Xapian::Query q(q);).
2666   Previously the uninitialised pointer was copied to itself, resulting in
2667   undefined behaviour when the object was used.  This isn't something you'd see
2668   in normal code, but it's a cheap check which can probably be optimised away
2669   by the compiler (GCC 6 does).
2671 testsuite:
2673 * Fix testcase notermlist1 to check correct table extension - ".glass" not
2674   ".DB" (chert doesn't support DB_NO_TERMLIST).
2676 build system:
2678 * Bootstrap with autoconf 2.69.  This requires GNU m4 >= 4.6, but that should
2679   no longer be an issue on developer machines.
2681 * Fix build with --enable-log.  Debug logging was trying to log
2682   compress_strategy parameter which was removed recently.  Reported by Ankit
2683   Paliwal on xapian-devel.
2685 documentation:
2687 * Fix misfiled deprecation notes.  Various things marked as deprecated and
2688   removed in 1.3.x have in fact been deprecated but not removed (they were just
2689   added to the wrong list).  One instance queried by David Bremner on #xapian,
2690   and a review found several more.
2692 * Improve docs for lcov makefile targets - say that these are targets in the
2693   xapian-core directory (noted by poe_ on #xapian), document
2694   coverage-reconfigure-maintainer-mode target, and clarify what the example of
2695   how to use GENHTML_ARGS actually does.
2697 * Note that Java bindings use xapian/iterator.h.
2699 * Update release checklist.  The script to build the release tarballs now
2700   automates some of the changes needed in trac.
2702 portability:
2704 * Fix build with Android NDK which declares sys_errlist and sys_nerr in the
2705   C library headers, but doesn't actually define them in the library itself.
2706   The configure test now tries to link a trivial program which uses these
2707   symbols.  Patch from Tejas Jogi.
2709 Xapian-core 1.3.5 (2016-04-01):
2711 This release includes all changes from 1.2.23 which are relevant.
2713 API:
2715 * The Snipper class has been replaced with a new MSet::snippet() method.
2716   The implementation has also been redone - the existing implementation was
2717   slower than ideal, and didn't directly consider the query so would sometimes
2718   selects a snippet which doesn't contain any of the query terms (which users
2719   quite reasonably found surprising).  The new implementation is faster, will
2720   always prefer snippets containing query terms, and also understands exact
2721   phrases and wildcards.  Fixes #211.
2723 * Add optional reference counting support for ErrorHandler, ExpandDecider,
2724   KeyMaker, PostingSource, Stopper and TermGenerator.  Fixes #186, reported
2725   by Richard Boulton.  (ErrorHandler's reference counting isn't actually used
2726   anywhere in xapian-core currently, but means we can hook it up in 1.4.x if
2727   ticket #3 gets addressed).
2729 * Deprecate public member variables of PostingSource.  The new getters and/or
2730   setters added in 1.2.23 and 1.3.5 are preferred.  Fixes #499, reported by
2731   Joost Cassee.
2733 * Reimplement MSet and MSetIterator.  MSetIterator internally now counts down
2734   to the end of the MSet, so the end test is now against 0, rather than against
2735   mset.size().  And more of the trivial methods are now inlined, which reduces
2736   the number of relocations needed to load the library, and should give faster
2737   code which is a very similar size to before.
2739 * Only issue prefetch hints for documents if MSet::fetch() is called.  It's not
2740   useful to send the prefetch hint right before the actual read, which was
2741   happening since the implementation of prefetch hints in 1.3.4.  Fixes #671,
2742   reported by Will Greenberg.
2744 * Fix OP_ELITE_SET selection in multi-database case - we were selecting
2745   different sets for each subdatabase, but removing the special case check for
2746   termfreq_max == 0 solves that.
2748 * Remove "experimental" marker from FieldProcessor, since we're happy with the
2749   API as-is.  Reported by David Bremner on xapian-discuss.
2751 * Remove "experimental" marker from Database::check().  We've not had any
2752   negative feedback on the current API.
2754 * Databse::check() now checks that doccount <= last_docid.
2756 * Database::compact() on a WritableDatabase with uncommitted changes could
2757   produce a corrupted output.  We now throw Xapian::InvalidOperationError in
2758   this case, with a message suggesting you either commit() or open the database
2759   from disk to compact from.  Reported by Will Greenberg on #xapian-discuss
2761 * Add Arabic stemmer.  Patch from Assem Chelli in
2762   https://github.com/xapian/xapian/pull/45
2764 * Improve the Arabic stopword list.  Patch from Assem Chelli.
2766 * Make functions defined in xapian/iterator.h 'inline'.
2768 * Don't force the user to specify the metric in the geospatial API -
2769   GreatCircleMetric is probably what most users will want, so a sensible
2770   default.
2772 * Xapian::DBCHECK_SHOW_BITMAP: This was added in 1.3.0 (so has never been in
2773   a stable release) and was superseded by Xapian::DBCHECK_SHOW_FREELIST in
2774   1.3.2, so just remove it.
2776 * Make setting an ErrorHandler a no-op - this feature is deprecated and we're
2777   not aware of anyone using it.  We're hoping to rework ErrorHandler in 1.4.x,
2778   which will be simpler without having to support the current behaviour as well
2779   as the new.  See #3.
2781 testsuite:
2783 * unittest: We can't use Assert() to unit test noexcept code as it throws an
2784   exception if it fails.  Instead set up macros to set a variable and return if
2785   an assertion fails in a unittest testcase, and check that variable in the
2786   harness.
2788 glass backend:
2790 * Make glass the default backend.  The format should now be stable, except
2791   perhaps in the unlikely event that a bug emerges which requires a format
2792   change to address.
2794 * Don't explicitly store the 2 byte "component_of" counter for the first
2795   component of every Btree entry in leaf blocks - instead use one of the upper
2796   bits of the length to store a "first component" flag.  This directly saves 2
2797   bytes per entry in the Btree, plus additional space due to fewer blocks and
2798   fewer levels being needed as a result.  This particularly helps the position
2799   table, which has a lot of entries, many of them very small.  The saving would
2800   be expected to be a little less than the saving from the change which shaved
2801   2 bytes of every Btree item in 1.3.4 (since that saved 2 bytes multiple times
2802   for large entries which get split into multiple items).  A simple test
2803   suggests a saving of several percent in total DB size, which fits that.  This
2804   change reduces the maximum component size to 8194, which affects tables
2805   with a 64KB blocksize in normal use and tables with >= 16KB blocksize with
2806   full compaction.
2808 * Refactor glass backend key comparison - == and < operations are replaced by
2809   a compare() function returns negative, 0 or positive (like strcmp(), memcmp()
2810   and std::string::compare()).  This allows us to avoid a final compare to
2811   check for equality when binary chopping, and to terminate early if the binary
2812   chop hits the exact entry.
2814 * If a cursor is moved to an entry which doesn't exist, we need to step back to
2815   the first component of previous entry before we can read its tag.  However we
2816   often don't actually read its tag (e.g. if we only wanted the key), so make
2817   this stepping back lazy so we can avoid doing it when we don't want to read
2818   the tag.
2820 * Avoid creating std::string objects to hold data when compressing and
2821   decompressing tags with zlib.
2823 * Store minimum compression length per table in the version file, with 0
2824   meaning "don't compress".  Currently you can only change this setting with a
2825   hex editor on the file, but now it is there we can later make use of it
2826   without needing a database format change.
2828 * Database::check() now performs additional consistency checks for glass.
2829   Reported by Jean-Francois Dockes and Bob Cargill via xapian-discuss.
2831 * Database::check(): check docids don't exceed db_last_docid when checking
2832   a single glass table.
2834 * We now throw DatabaseCorruptError in a few cases where it's appropriate
2835   but we didn't previously, in particular in the case where all the files in a
2836   DB have been truncated to zero size (which makes handling of this case
2837   consistent with chert).
2839 * Fix compaction to a single file which already exists.  This was hanging.
2840   Noted by Will Greenberg on #xapian.
2842 chert backend:
2844 * When using 64-bit Xapian::docid, consistently use the actual maximum valid
2845   docid value rather instead of the maximum value the type can hold.
2847 build system:
2849 * Default to only building shared libraries.  Building both shared and static
2850   means having to compile the files which make up the library twice on most
2851   platforms.  Shared libraries are the better option for most users, and if
2852   anyone really wants static libraries they can configure with --enable-static
2853   (or --enable-static=xapian-core if configuring a combined tree with the
2854   bindings).
2856 * Fix XAPIAN_TEST_LINKER_FLAG macro to actually test if it's possible to link
2857   with the option in LDFLAGS - previously we attempted to guess based on
2858   whether the error message from $CXX $flag contained the option name, which
2859   doesn't actually work very well.
2861 documentation:
2863 * Document that OP_WILDCARD expansion limits currently work per sub-db.
2865 * Remove reference to ChangeLog files, as we are no longer updating them.
2867 * Remove link to apidoc.pdf which we no longer generate this by default.
2869 * Clarify LatLongCoord::operator< purpose in API documentation.
2871 * Fix documentation comment typo - LatLongDistancePostingSource is a posting
2872   source, not a match decider!
2874 * HACKING: Recommend lcov 1.11 as it uses much less memory
2876 tools:
2878 * xapian-replicate: Obviously corrupt replicas now self-heal.  If a replica
2879   database fails to open with DatabaseCorruptError then a full copy is now
2880   forced.
2882 portability:
2884 * Eliminate arrays of C strings, which result in relocations at library load
2885   time, slowing startup and making pages containing them unsharable.
2887 * Refactor MSet::fetch() to reduce load time relocations.
2889 debug code:
2891 * Fix to build when configured with --enable-assertions.
2893 * Fix to build when configured with --enable-log.  Reported by Tim McNamara
2894   on #xapian-discuss.
2896 Xapian-core 1.3.4 (2016-01-01):
2898 This release includes all changes from 1.2.22 which are relevant.
2900 API:
2902 * Update to Unicode 8.0.0.  Fixes #680.
2904 * Overhaul database compaction API.  Add a Xapian::Database::compact() method,
2905   with the Database object specifying the source database(s).
2906   Xapian::Compactor is now just a functor to use if you want to control
2907   progress reporting and/or the merging of user metadata.  The existing API
2908   has been reimplemented using the new one, but is marked as deprecated.
2910 * Add support for a default value when sorting.  Fixes #452, patch from
2911   Richard Boulton.
2913 * Make all functor objects non-copyable.  Previously some were, some weren't,
2914   but it's hard to correctly make use of this ability.  Fixes #681.
2916 * Fix use after free with WILDCARD_LIMIT_MOST_FREQUENT.  If we tried to open a
2917   postlist after processing such a wildcard, the postlist hint could be
2918   pointing to a PostList object which had been deleted.  Fixes #696, reported
2919   by coventry.
2921 * Add support for optional reference counting of MatchSpy objects.
2923 * Improve Document::get_description() - the output is now always valid UTF-8,
2924   doesn't contain implementation details like "Document::Internal", and more
2925   clearly reports if the document is linked to a database.
2927 * Remove XAPIAN_CONST_FUNCTION marker from sortable_serialise_() helper, as it
2928   writes to the passed in buffer, so it isn't const or pure.  Fixes
2929   decvalwtsource2 testcase failure when compiled with clang.
2931 * Make PostingSource::set_maxweight() public - it's hard to wrap for the
2932   bindings as a protected method.  Fixes #498, reported by Richard Boulton.
2934 testsuite:
2936 * Add unit test for internal C_isupper(), etc functions.
2938 matcher:
2940 * Optimise value range which is a superset of the bounds.  If the value
2941   frequency is equal to the doccount, such a range is equivalent to MatchAll,
2942   and we now avoid having to read the valuestream at all.
2944 * Optimise OP_VALUE_RANGE when the upper bound can't be exceeded.  In this
2945   case, we now use ValueGePostList instead of ValueRangePostList.
2947 glass backend:
2949 * Shave 2 bytes of every Btree item (which will probably typically reduce
2950   database size by several percent).
2952 * More compact item format for branch blocks - 2 bytes per item smaller.  This
2953   means each branch block can branch more ways, reducing the number of Btree
2954   levels needed, which is especially helpful for cold-cache search times.
2956 * Track an upper bound on spelling word frequency.  This isn't currently used,
2957   but will be useful for improving the spelling algorithm, and we want to
2958   stabilise the glass backend format.  See #225, reported by Philip Neustrom.
2960 * Support 64-bit docids in the glass backend on-disk format.  This changes the
2961   encoding used by pack_uint_preserving_sort() to one which supports 64 bit
2962   values, and is a byte smaller for values 16384-32767, and the same size for
2963   all other 32 bit values.  Fixes #686, from original report by James Aylett.
2965 * Use memcpy() not memmove() when no risk of overlap.
2967 * Store length of just the key data itself, allowing keys to be up to 255 bytes
2968   long - the previous limit was 252.
2970 * Change glass to store DB stats in the version file.  Previously we stored
2971   them in a special item in the postlist table, but putting them in the version
2972   file reduces the number of block reads required to open the database, is
2973   simpler to deal with, and means we can potentially recalculate tight upper
2974   and lower bounds for an existing database without having to commit a new
2975   revision.
2977 * Add support for a single-file variant for glass.  Currently such databases
2978   can only be opened for reading - to create one you need to use
2979   xapian-compact (or its API equivalent).  You can embed such databases within
2980   another file, and open them by passing in a file descriptor open on that file
2981   and positioned at the offset the database starts at).  Database::check() also
2982   supports them.  Fixes #666, reported by Will Greenberg (and previously
2983   suggested on xapian-discuss by Emmanuel Engelhart).
2985 * Avoid potential DB corruption with full-compaction when using 64K blocks.
2987 * Where posix_fadvise() is available, use it to prefetch postlist Btree blocks
2988   from the level below the root block which will be needed for postlists of
2989   terms in the query, and similarly for the docdata table when MSet::fetch() is
2990   called.  Based on patch by Will Greenberg in #671.
2992 chert backend:
2994 * Where posix_fadvise() is available, use it to prefetch postlist Btree blocks
2995   from the level below the root block which will be needed for postlists of
2996   terms in the query, and similarly for the record table when MSet::fetch() is
2997   called.  Based on patch by Will Greenberg in #671.
2999 remote backend:
3001 * Fix hook for remote support of user weighting schemes.  The commented-out
3002   code used entirely the wrong class - now we use the server object we have
3003   access to, and forward the method to the class which needs it.
3005 build system:
3007 * New configure options --enable-64bit-docid and --enable-64bit-termcount,
3008   which control the size of these types.  Because these types are used in
3009   the API, libraries built with different combinations of them won't be ABI
3010   compatible.  Based heavily on patch from James Aylett and Dylan Griffith.
3011   Fixes #385.
3013 * Sort out hiding most of the internal symbols which had public visibility
3014   for various reason.  Mostly addresses #63.
3016 tools:
3018 * xapian-inspect: We no longer install this - it's really an aid to Xapian
3019   development rather than a user tool.
3021 portability:
3023 * Minimum supported GCC version is now documented as GCC 4.7, for C++11
3024   support.  Previously we documented 4.7 as the oldest known to work.
3026 * Use CLOCK_REALTIME with timer_create() on Cygwin.
3028 * Don't include winsock headers on Cygwin.  Instead include <arpa/inet.h> for
3029   htons() and htonl().
3031 * Handle AI_ADDRCONFIG not being defined by some mingw versions.
3033 * Fix to handle mingw now providing a nanosleep() function.
3035 * Use WSAAddressToString instead of inet_ntop under __WIN32__ - at least under
3036   mingw we don't seem to have inet_ntop().
3038 * Fix testsuite to compile when S_ISSOCK() isn't defined.
3040 debug code:
3042 * Add missing parameters to debug logging for a few methods.
3044 Xapian-core 1.3.3 (2015-06-01):
3046 This release includes all changes from 1.2.20-1.2.21 which are relevant.
3048 API:
3050 * Database:
3052   + Add new flag Xapian::DB_RETRY_LOCK which allows opening a database for
3053     writing to wait until it can get a write lock.  (Fixes #275, reported by
3054     Richard Boulton).
3056   + Fix Database::get_doclength_lower_bound() over multiple databases when some
3057     are empty or consist only of zero-length documents.  Previously this would
3058     report a lower bound of zero, now it reports the same lowest bound as a
3059     single database containing all the same documents.
3061   + Database::check(): When checking a single table, handle the ".glass"
3062     extension on glass database tables, and use the extension to guide the
3063     decision of which backend the table is from.
3065 * Query:
3067   + Add new OP_WILDCARD query operator, which expands wildcards lazily, so now
3068     we create the PostList tree for a wildcard directly, rather than creating
3069     an intermediate Query tree.  OP_WILDCARD offers a choice of ways to limit
3070     wildcard expansion (no limit, throw an exception, use the first N by term
3071     name, or use the most frequent N).  (See tickets #48 and #608).
3073 * QueryParser:
3075   + Add new set_max_expansion() method which provides access to OP_WILDCARD's
3076     choice of ways to limit expansion and can set limits for partial terms as
3077     well as for wildcards.  Partial terms now default to the 100 most frequent
3078     matching terms.  (Completes #608, reported by boomboo).
3080   + Deprecate set_max_wildcard_expansion() in favour of set_max_expansion().
3082 * Add support for optional reference counting of FieldProcessor and
3083   ValueRangeProcessor objects.
3085 testsuite:
3087 * If command line option --verbose/-v isn't specified, set the verbosity level
3088   from environmental variable VERBOSE.
3090 * Re-enable replicate3 for glass, as it no longer fails.
3092 * Add more test coverage for get_unique_terms().
3094 * Don't leave an extra fd open when starting xapian-tcpsrv for remotetcp tests.
3096 glass backend:
3098 * When reporting freelist errors during a database check, distinguish between a
3099   block in use and in the freelist, and a block in the freelist more than once.
3101 * Fix compaction and database checking for the change to the format of keys
3102   in the positionlist table which happened in 1.3.2.
3104 * After splitting a block, we always insert the new block in the parent right
3105   after the block it was split from - there's no need to binary chop.
3107 * Avoid infinite recursion when we hit the end of the freelist block we're
3108   reading and the end of the block we're writing at the same time.
3110 * Fix freelist handling to allow for the newly loaded first block of the
3111   freelist being already used up.
3113 chert backend:
3115 * Fix problems with get_unique_terms() on a modified chert database.
3117 * Fix xapian-check on a single chert table, which seg faulted in 1.3.2.
3119 remote backend:
3121 * Avoid dividing zero by zero when calculating the average length for an empty
3122   database.
3124 build system:
3126 * Merge generate-allsnowballheaders script into collate-sbl.
3128 portability:
3130 * A compiler with good support for C++11 is now required to build Xapian.
3131   Most of the actively developed C++ compilers already have decent support,
3132   or are close to having it, and it makes development easier and more
3133   efficient.  Currently known to work: GCC >= 4.7, recent versions of clang
3134   (3.5 works).  Solaris Studio 12.4 compiles the code, but tests currently
3135   fail.  IBM's xlC doesn't support enough of C++11 yet.  HP's aCC hasn't
3136   been tested, but its documentation suggests it also doesn't support enough
3137   of C++11 yet.
3139 * Drop workarounds and special cases for old versions of various compilers
3140   which don't support C++11.
3142 * Use C++11's static_assert() and unique_ptr instead of custom implementations
3143   of equivalent functionality.
3145 * Building on OS/2 with EMX is no longer supported - EMX was last updated in
3146   2001 and comes with GCC 3.2.1, which is much too old to support C++11.
3148 * Building with SGI's and Compaq's C++ compilers is no longer supported -
3149   both seem to have ceased development, and don't support C++11.
3151 * Building with STLport is no longer supported - STLport was last released in
3152   2008, so it's no longer actively developed and won't support C++11.
3154 * Building on IRIX is no longer supported, because IRIX has reached end of
3155   life.
3157 * Disable "<FUNCTION> is expected to return a value" warning from Sun's C++
3158   compiler, as it fires for functions which end in a "throw" statement.
3159   Genuine instances of missing return values will be caught by compilers with
3160   superior warning machinery.
3162 * Fix warning from GCC 5.1 where template expansion leads to the comparison
3163   (bool_value < 255) which is always true.  Warning introduced by changes in
3164   1.3.2.
3166 * Use getaddrinfo() instead of gethostbyname(), since the latter may not be
3167   thread-safe, and as a step towards IPv6 support (see #374), but currently we
3168   still only look for IPv4 addresses.
3170 * timer_create() seems to always fail on AIX with EAGAIN, so just skip the
3171   matchtimelimit1 testcase there.
3173 * Under __WIN32__, we need to specify Vista as the minimum supported version to
3174   get the AI_ADDRCONFIG flag.  Older versions seem to all be out of support
3175   anyway.
3177 * Change configure probe for log2() to check for a declaration in <cmath>
3178   to get it to fix build on Solaris with Sun C++.  C++11 compilers should all
3179   provide log2(), but let's not rely on that just yet as it's easy to provide a
3180   fallback implementation.
3182 * Use scalbn() instead of ldexp() where possible (which we can in all cases
3183   when FLT_RADIX == 2, as it is on pretty much all current platforms).  On
3184   overflow and underflow ldexp() sets errno, which it seems better to avoid
3185   doing.
3187 * The list of stemmers is now in the same static const struct as the version
3188   info, and Stem::get_available_languages() is just an inlined wrapper which
3189   fetches this structure and returns the appropriate member.  This saves a
3190   relocation, reducing library load time a little.
3192 * Remove "pure" attribute from API functions which could throw an exception.
3193   These functions aren't really pure, and while we're happy for calls to them
3194   to be CSE-ed or eliminated entirely, the compiler might make more assumptions
3195   than that about a pure function - clang seems to assume pure => nothrow and
3196   an exception from such a function can't be caught.
3198 * Remove "pure" attribute from sortable_unserialise(), which can raise floating
3199   point exceptions FE_OVERFLOW and FE_UNDERFLOW.
3201 * Add "nothrow" attribute to more API functions which will never throw an
3202   exception.
3204 * Make sortable_serialise() an inlined wrapper around a function which won't
3205   throw and can be flagged with attribute 'const'.
3207 * Tweak sortable_unserialise() not to compare with a fixed string by
3208   constructing a temporary std::string object (which could throw
3209   std::bad_alloc), and mark it as XAPIAN_NOTHROW.
3211 debug code:
3213 * Only enable assertions in sortable_serialise() and sortable_unserialise() in
3214   the testsuite (since these functions shouldn't throw exceptions), and move
3215   the tests of these functions from queryparsertest to unittest to facilitate
3216   this.
3218 * Add more assertions to the glass backend code.
3220 Xapian-core 1.3.2 (2014-11-24):
3222 This release includes all changes from 1.2.16-1.2.19 which are relevant.
3224 API:
3226 * Update Unicode character database to Unicode 7.0.0.
3228 * New Xapian::Snipper class from Mihai Bivol's GSOC 2012 project.  (mostly
3229   fixes #211)
3231 * Fix all get_description() methods to always return UTF-8 text.  (fixes #620)
3233 * Database::check():
3235   + Alter to take its "out" parameter as a pointer to std::ostream instead of a
3236     reference, and make passing NULL mean "do not produce output", and make
3237     the second and third parameters optional, defaulting to a quiet check.
3239   + Escape invalid UTF-8 data in keys and tags reported by xapian-check, using
3240     the same code we use to clean up strings returned by get_description()
3241     methods.
3243   + Correct failure message which talks above the root block when it's actually
3244     testing a leaf key.
3246   + Rename DBCHECK_SHOW_BITMAP to DBCHECK_SHOW_FREELIST (old name still
3247     provided for now, but flagged as deprecated - DBCHECK_SHOW_BITMAP was new
3248     in 1.3.0, so will likely be removed before 1.4.0).
3250 * Methods and functions which take a string to unserialise now consistently
3251   call that parameter "serialised".
3253 * Weight: Make number of distinct terms indexing each document and the
3254   collection frequency of the term available to subclasses.  Patch from
3255   Gaurav Arora's Language Modelling branch.
3257 * WritableDatabase: Add support for multiple subdatabases, and support opening
3258   a stub database containing multiple subdatabases as a WritableDatabase.
3260 * WritableDatabase can now be constructed from just a pathname (defaulting to
3261   opening the database with DB_CREATE_OR_OPEN).
3263 * WritableDatabase: Add flags which can be bitwise OR-ed into the second
3264   argument when constructing:
3266   + Xapian::DB_NO_SYNC: to disable use of fsync, etc
3268   + Xapian::DB_DANGEROUS: to enable in-place updates
3270   + Xapian::DB_BACKEND_CHERT: if creating, create a chert database
3272   + Xapian::DB_BACKEND_GLASS: if creating, create a glass database
3274   + Xapian::DB_NO_TERMLIST: create a database without a termlist (see #181)
3276   + Xapian::DB_FULL_SYNC flag - if this is set for a database, we use the Mac
3277     OS X F_FULL_SYNC instead of fdatasync()/fsync()/etc on the version file
3278     when committing.
3280 * Database: Add optional flags argument to constructor - the following can be
3281   bitwise OR-ed into it:
3283   + Xapian::DB_BACKEND_CHERT (only open a chert database)
3285   + Xapian::DB_BACKEND_GLASS (only open a glass database)
3287   + Xapian::DB_BACKEND_STUB (only open a stub database)
3289 * Xapian::Auto::open_stub() and Xapian::Chert::open() are now deprecated in
3290   favour of these new flags.
3292 * Add LMWeight class, which implements the Unigram Language Modelling weighting
3293   scheme.  Patch from Gaurav Arora.
3295 * Add implementations of a number of DfR weighting schemes (BB2, DLH, DPH,
3296   IfB2, IneB2, InL2, PL2).  Patches from Aarsh Shah.
3298 * Add support for the Bo1 query expansion scheme.  Patch from Aarsh Shah.
3300 * Add Enquire::set_time_limit() method which sets a timelimit after which
3301   check_at_least will be disabled.
3303 * Database: Trying to perform operations on a database with no subdatabases now
3304   throws InvalidOperationError not DocNotFoundError.
3306 * Query: Implement new OP_MAX query operator, which returns the maximum weight
3307   of any of its subqueries.  (see #360)
3309 * Query: Add methods to allow introspection on Query objects - currently you
3310   can read the leaf type/operator, how many subqueries there are, and get a
3311   particular subquery.  For a query which is a term, Query::get_terms_begin()
3312   allows you to get the term.  (see #159)
3314 * Query: Only simplify OP_SYNONYM with a single subquery if that subquery is a
3315   term or MatchAll.
3317 * Avoid two vector copies when storing term positions in most common cases.
3319 * Reimplement version functions to use a single function in libxapian which
3320   returns a pointer to a static const struct containing the version
3321   information, with inline wrappers in the API header which call this.  This
3322   means we only need one relocation instead of 4, reducing library load time a
3323   little.
3325 * Make TermGenerator flags an anonymous enum, and typedef TermGenerator::flags
3326   to int for backward compatibility with existing user code which uses it.
3328 * Stem: Fix incorrect Unicode codepoints for o-double-acute and u-double-acute
3329   in the Hungarian Snowball stemmer.  Reported by Tom Lane to snowball-discuss.
3331 * Stem: Add an early english stemmer.
3333 * Provide the stopword lists from Snowball plus an Arabic one, installed in
3334   ${prefix}/share/xapian-core/stopwords/.  Patch from Assem Chelli, fixes #269.
3336 * Improve check for direct inclusion of Xapian subheaders in user code to
3337   catch more cases.
3339 * Add simple API to help with creating language-idiomatic iterator wrappers
3340   in <xapian/iterator.h>.
3342 testsuite:
3344 * Extend checkstatsweight1 to check that Weight::get_collection_freq() returns
3345   the same number as Database::get_collection_freq().
3347 * queryparsertest: Add testcase for FieldProcessor on boolean prefix with
3348   quoted contents.
3350 * queryparsertest: Enable some disabled cases which actually work (in some
3351   cases with slightly tweaked expected answers which are equivalent to those
3352   that were shown).
3354 * Make use of the new writable multidatabase feature to simplify the
3355   multi-database handling in the test harness.
3357 * Change querypairwise1_helper to repeat the query build 100 times, as with a
3358   fast modern machine we were sometimes trying with so many subqueries that we
3359   would run out of stack.
3361 * apitest: Use Xapian::Database::check() in cursordelbug1.  (partly addresses
3362   #238)
3364 * apitest: Test Query ops with a single MatchAll subquery.
3366 * apitest: New testcase readonlyparentdir1 to ensure that commit works with a
3367   read-only parent directory.
3369 matcher:
3371 * Streamline collation of statistics for use by weighting schemes - tests show
3372   a 2% or so increase in speed in some cases.
3374 * If a term matches all documents and its weight doesn't depend on its wdf, we
3375   can optimise it to MatchAll (the previous requirement that maxpart == 0 was
3376   unnecessarily strict).
3378 * Fix the check for a term which matches all documents to use the sub-db
3379   termfreq, not the combined db termfreq.
3381 * When we optimise a postlist for a term which matches all documents to use
3382   MatchAll, we still need to set a weight object on it to get percentages
3383   calculated correctly.
3385 glass backend:
3387 * 'brass' backend renamed to 'glass' - we decided to use names in ascending
3388   alphabetical order to make it easier to understand which backend is newest,
3389   and since 'flint' was used recently, we skipped over 'd', 'e' and 'f'.
3391 * Change positionlist keys to be ordered by term first rather than docid first,
3392   which helps phrase searching significantly.  For more efficient indexing,
3393   positionlist changes are now batched up in memory and written out in key
3394   order.
3396 * Use a separate cursor for each position list - now we're ordering the
3397   position B-tree by term first, phrase matching would cause a single cursor
3398   to cycle between disparate areas of the B-tree and reread the same blocks
3399   repeatedly.
3401 * Reference count blocks in the btree cursor, so cursors can cheaply share
3402   blocks.  This can significantly reduce the amount of memory used by cursors
3403   for queries which contain a lot of terms (e.g. wildcards which expand to a
3404   lot of terms).
3406 * Under glass, optimise the turning of a query into a postlist to reuse the
3407   cursor blocks which are the same as the previous term's postlist.  This is
3408   particularly effective for a wildcard query which expands to a lot of terms.
3410 * Keep track of unused blocks in the Btrees using freelists rather than
3411   bitmaps.  (fixes #40)
3413 * Eliminate the base files, and instead store the root block and freelist
3414   pointers in the "iamglass" file.
3416 * When compacting, sync all the tables together at the end.
3418 * In DB_DANGEROUS mode, update the version file in-place.
3420 * Only actually store the document data if it is non-empty.  The table which
3421   holds the document data is now lazily created, so won't exist if you never
3422   set the document data.
3424 chert backend:
3426 * Improve DBCHECK_FIX:
3428   + if fixing a whole database, we now take the revision from the first table
3429     we successfully look at, which should be correct in most cases, and is
3430     definitely better than trying to determine the revision of each broken
3431     table independently.
3433   + handle a zero-sized .DB file.
3435   + After we successfully regenerate baseA, remove any empty baseB file to
3436     prevent it causing problems.  Tracked down with help from Phil Hands.
3438 remote backend:
3440 * Bump remote protocol version to 38.0, due to extra statistics being tracked
3441   for weighting.
3443 * Make Weight::Internal track if any max_part values are set, so we don't need
3444   to serialise them when they've not been set.
3446 build system:
3448 * Fix conditional for enabling replication code - if chert is disabled but
3449   glass isn't, we should still enable it.
3451 * configure: Add hint for which package to install for rst2html
3453 documentation:
3455 * Don't build, ship or install PDF versions of the API docs by default, but
3456   provide an easy way for people to build it for themselves if they want it.
3458 * Convert equations in rst docs to use LaTeX via the math role and directive.
3460 * Actually ship, process and install geospatial.rst.
3462 * postingsource.rst: Use a modern class in postingsource example.  (Noted by
3463   James Aylett)
3465 * Move the protocol docs for the remote and replication protocols into the net/
3466   subdirectory.
3468 * Remove the dir_contents files and all the machinery to handle them.
3470 * HACKING: Note we now use doxygen 1.8.8 for 1.3.x snapshots and releases.
3472 * HACKING: Now using libtool 2.4.3 to bootstrap snapshots and 1.3.x releases.
3474 * HACKING: Now using automake 1.14.1 to bootstrap snapshots and 1.3.x releases.
3476 * HACKING: Drop note about needing git-svn if you're using git - bootstrap now
3477   only uses git-svn if your Xapian tree was checked out using git-svn.
3479 * HACKING: Need sphinx-doc to generate API docs for Python and Python 3 bindings.
3481 * HACKING: Note that MacTeX seems to be the best option if using homebrew.
3483 portability:
3485 * Don't pass an integer argument to log(), to avoid ambiguity errors with xlC
3486   and Sun's C++ compiler.  (fixes #627)
3488 * Fix compilations issues with Sun's C++ compiler (mostly missing library
3489   headers).
3491 * Implement RealTime::now() using clock_gettime() where it's available, since
3492   it can provide nanosecond resolution.
3494 * Implement RealTime::sleep() using nanosleep() where it's available, since it
3495   has a simpler API and a finer resolution than select().
3497 * Use lround() instead of round() in geospatial code, since we want the result
3498   as an int.  GCC 4.4.3 seems to optimise to use lround() anyway, but other
3499   compilers may not.
3501 * Include <math.h> for lround()/round(). (fixes #628)
3503 * Drop code supporting Microsoft Windows 9x which reached EOL in 2006.
3505 * Under C++11, use unique_ptr for AutoPtr.
3507 * Stop using a reference where we may end up passing *NULL, as that's invalid.
3508   Thanks Nick Lewycky and ubsan for helping track this down.
3510 * In DLHWeight and DPHWeight, avoid dividing by zero when the collection size
3511   is 0.
3513 debug code:
3515 * Fix assertion failure when built with --enable-assertions.  The behaviour
3516   when built without assertions happened to be correct.
3518 * Fix assertion in BitReader::decode(), and remove 'Assert(rd);' in two places
3519   where rd is no longer a pointer.
3521 Xapian-core 1.3.1 (2013-05-03):
3523 This release includes all changes from 1.2.10-1.2.15 which are relevant.
3525 API:
3527 * Give an compilation error if user code tries to include API headers other
3528   than xapian.h directly - these other headers are an internal implementation
3529   detail, but experience has shown that some people try to include them
3530   directly.  Please just use '#include <xapian.h>' instead.
3532 * Update Unicode character database to Unicode 6.2.0.
3534 * Add FieldProcessor class (ticket#128) - currently marked as an experimental
3535   API while we sort out how best to sort out exactly how it interacts with
3536   other QueryParser features.
3538 * Add implementation of several TF-IDF weighting schemes via a new TfIdfWeight
3539   class.
3541 * Add ExpandDeciderFilterPrefix class which only return terms with a particular
3542   prefix.  (fixes #467)
3544 * QueryParser: Adjust handling of Unicode opening/closing double quotes - if a
3545   quoted boolean term was started with ASCII double quote, then only ASCII
3546   double quote can end it, as otherwise it's impossible to quote a term
3547   containing Unicode double quotes.
3549 * Database::check(): If the database can't be opened, don't emit a bogus
3550   warning about there being too many documents to cross-check doclens.
3552 * TradWeight,BM25Weight: Throw SerialisationError instead of NetworkError if
3553   unserialise() fails.
3555 * QueryParser: Change the default stemming strategy to STEM_SOME, to eliminate
3556   the API gotcha that setting a stemmer is ignored until you also set a
3557   strategy.
3559 * Deprecate Xapian::ErrorHandler.  (ticket#3)
3561 * Stem: Generate a compact and efficient table to decode language names.  This
3562   is both faster and smaller than the approach we were using, with the added
3563   benefit that the table is auto-generated.
3565 * xapian.h:
3567   + Add check for Qt headers being included before us and defining
3568     'slots' as a macro - if they are, give a clear error advising how to work
3569     around this (previously compilation would fail with a confusing error).
3571   + Add a similar check for Wt headers which also define 'slots' as a macro
3572     by default.
3574 testsuite:
3576 * tests/generate-api_generated: Test that the string returned by a
3577   get_description() method isn't empty.
3579 * Use git commit hash in title of test coverage reports generated from a git
3580   tree.
3582 matcher:
3584 * Drop MatchNothing subqueries in OR-like situations in add_subquery() rather
3585   than adding them and then handling it later.
3587 * Handle the left side of AND_NOT and AND_MAYBE being MatchNothing in
3588   add_subquery() rather than in done().
3590 * Handle QueryAndLike with a MatchNothing subquery in add_subquery() rather
3591   than done().
3593 * Query: Multi-way operators now store their subquery pointers in a custom
3594   class rather than std::vector<Xapian::Query>.  The custom class take the
3595   same amount of space, or often less.  It's particularly efficient when
3596   there are two subqueries, which is very desirable as we no longer flatten a
3597   subtree of the same operator as we build the query.
3599 * Optimise an unweighted query term which matches all the documents in a
3600   subdatabase to use the "MatchAll" postlist.  (ticket#387)
3602 brass backend:
3604 * Iterating positional data now decodes it lazily, which should speed up
3605   phrases which include common words.
3607 * Compress changesets in brass replication. Increments the changeset version.
3608   Ticket #348
3610 * Restore two missing lines in database checking where we report a block with
3611   the wrong level.
3613 * When checking if a block was newly allocated in this revision, just look
3614   at its revision number rather than consulting the base file's bitmap.
3616 chert backend:
3618 * Iterating positional data now decodes it lazily, which should speed up
3619   phrases which include common words.
3621 remote backend:
3623 * Prefix compress list of terms and metadata keys in the remote protocol.
3624   This requires a remote protocol major version bump.
3626 build system:
3628 * Fix the 'libxapian' to be 'libxapian-1.3' and 'xapian.m4' to be
3629   'xapian-1.3.m4' (this was supposed to be the case for 1.3.0, but the
3630   change wasn't made correctly).
3632 * Remove support for 'configure --enable-quiet', 'make QUIET=' and 'make
3633   QUIET=y' - automake now supports 'configure --enable-silent-rules', 'make
3634   V=1' and 'make V=0' which are broadly equivalent and more standard.
3636 * configure: If we fail to find a function needed for the remote backend, don't
3637   autodisable it - it's more helpful to error out so the use can decide if they
3638   want to pass --disable-backend-remote to disable it, or work out what values
3639   to pass for LIBS, etc to make it work.  This also matches what we do for the
3640   disk based backends.
3642 * automake 1.13.1 is now used to generate snapshots and releases.
3644 * Add check-syntax make target to support editor syntax checks.
3646 * Fix to build when configured with --disable-backend-brass
3647   --disable-backend-chert.  (ticket#586)
3649 * Generate a check for compatible _DEBUG settings if built with MSVC.
3650   (ticket#389)
3652 * If you run "make coverage-check" by hand, the previous default of compressed
3653   HTML is unhelpful, so don't default to passing --html-gzip to genhtml, but
3654   instead add support for GENHTML_ARGS.
3656 * API methods and functions are now marked as 'const', 'pure', or 'nothrow'
3657   allowing compilers which support such annotations to generate more efficient
3658   code.  (tickets #151, #454)
3660 documentation:
3662 * HACKING: Note which MacPorts are needed for development work.
3664 * docs/remote_protocol.rst: Correct error in documentation of REPLY_DOCDATA
3665   message.
3667 tools:
3669 * xapian-check: Add "fix" option, which currently will regenerate iamchert if
3670   it isn't valid, and will regenerate base files from the .DB files (only
3671   really tested on databases which have just been compacted).
3673 portability:
3675 * Fix warning with GCC in build with assertions enabled.
3677 * common/fileutils.cc: Add safeunistd.h for mkdir, required by GCC 4.7
3678   (reported by Gaurav Arora).
3680 * backends/brass/brass_databasereplicator.cc: Use new/delete to avoid variable
3681   length array gcc extension and comply with c++98
3683 * Mark file descriptors as close-on-exec where supported.
3685 * api/queryinternal.cc: Need <functional> for mem_fun().
3687 * Work around Apple's OS X SDK defining a check() macro.
3689 * Add an option to use a flock() based locking implementation for brass and
3690   chert - this is much simpler than using fcntl() due to saner semantics around
3691   releasing locks when closing other descriptors on the same file (at least on
3692   platforms where flock() isn't just a compatibility wrapper around fcntl()).
3693   Sadly we can't simply switch to this without breaking locking compatibility
3694   with previous releases, but it's useful for platforms without fcntl()
3695   locking (it's enabled for DJGPP) and may be useful for custom builds for
3696   special purposes.
3698 packaging:
3700 * xapian-core.spec: Remove xapian-chert-update.
3702 debug code:
3704 * Building with --enable-log works once again.
3706 Xapian-core 1.3.0 (2012-03-14):
3708 API:
3710 * Update Unicode character database to Unicode 6.1.0.  (ticket#497)
3712 * TermIterator returned by Enquire::get_matching_terms_begin(),
3713   Query::get_terms_begin(), Database::synonyms_begin(),
3714   QueryParser::stoplist_begin(), and QueryParser::unstem_begin() now stores the
3715   list of terms to iterate much more compactly.
3717 * QueryParser:
3719   + Allow Unicode curly double quote characters to start and/or end phrases.
3721   + The set_default_op() method will now reject operators which don't make
3722     sense to set.  The operators which are allowed are now explicitly
3723     documented in the API docs.
3725 * Query: The internals have been completely reimplemented (ticket#280).  The
3726   notable changes are:
3728   + Query objects are smaller and should be faster.
3730   + More readable format for Query::get_description().
3732   + More compact serialisation format for Query objects.
3734   + Query operators are no longer flattened as you build up a tree (but the
3735     query optimiser still combines groups of the same operator).  This means
3736     that Query objects are truly immutable, and so we don't need to copy Query
3737     objects when composing them.  This should also fix a few O(n*n) cases when
3738     building up an n-way query pair-wise.  (ticket#273)
3740   + The Query optimiser can do a few extra optimisations.
3742 * There's now explicit support for geospatial search (this API is currently
3743   marked as experimental).  (ticket#481)
3745 * There's now an API (currently experimental) for checking the integrity of
3746   databases (partly addresses ticket#238).
3748 * Database::reopen() now returns true if the database may have been reopened
3749   (previously it returned void).  (ticket#548)
3751 * Deprecate Xapian::timeout in favour of POSIX type useconds_t.
3753 * Deprecate Xapian::percent and use int instead in the API and our own code.
3755 * Deprecate Xapian::weight typedef in favour of just using double and change
3756   all uses in the API and our own code.  (ticket#560)
3758 * Rearrange members of Xapian::Error to reduce its size (from 48 to 40 bytes on
3759   x86-64 Linux).
3761 * Assignment operators for PositionIterator and TermIterator now return *this
3762   rather than void.
3764 * PositionIterator, PostingIterator, TermIterator and ValueIterator now
3765   handle their reference counts in hand-crafted code rather than using
3766   intrusive_ptr/RefCntPtr, which means the compiler can inline the destructor
3767   and default constructor, so a comparison to an end iterator should now
3768   optimise to a simple NULL pointer check, but without the issues which the
3769   ValueIteratorEnd_ proxy class approach had (such as not working in templates
3770   or some cases of overload resolution).
3772 * Enquire:
3774   + Previously, Enquire::get_matching_terms_begin() threw InvalidArgumentError
3775     if the query was empty.  Now we just return an end iterator, which is more
3776     consistent with how empty queries behave elsewhere.
3778   + Remove the deprecated old-style match spy approach of using a MatchDecider.
3780 * Remove deprecated Sorter class and MultiValueSorter subclass.
3782 * Xapian::Stem:
3784   + Add stemmers for Armenian (hy), Basque (eu), and Catalan (ca).
3786   + Stem::operator= now returns a reference to the assigned-to object.
3788 testsuite:
3790 * Make unittest use the test harness, so it gets all the valgrind and fd leak
3791   checks, and other handy features all the other tests have.
3793 * Improve test coverage in several places.
3795 * Compress generated HTML files in coverage report.
3797 flint backend:
3799 * Remove flint backend.
3801 remote backend:
3803 * When propagating exceptions from a remote backend server, the protocol now
3804   sends a numeric code to represent which exception is being propagated, rather
3805   than the name of the type, as a number can be turned back into an exception
3806   with a simple switch statement and is also less data to transfer.
3807   (ticket#471)
3809 * Remote protocol (these changes require a protocol major version bump):
3811   + Unify REPLY_GREETING and REPLY_UPDATE.
3813   + Send (last_docid - doccount) instead of last_docid and (doclen_ubound -
3814     doclen_lbound) instead of doclen_ubound.
3816 * Remove special check which gives a more helpful error message when a modern
3817   client is used against a remote server running Xapian <= 0.9.6.
3819 build system:
3821 * Various changes allow us to now remove XAPIAN_VISIBILITY_DEFAULT from a
3822   number of functions which aren't in the public API (partly addresses
3823   ticket#63).
3825 * configure: For this development series, the library gets a -1.3 suffix and
3826   include files are installed with an extra /xapian-1.3 component to make
3827   parallel installs easier.
3829 * configure: Enable -fshow-column for GCC - things like vim's quickfix mode
3830   will then jump to the appropriate column for a compiler error or warning, not
3831   just the appropriate line.
3833 * Snowball compiler now reports "FILE:LINE:" before each error so tools like
3834   vim's quickfix mode can parse this and bring up the line with the error
3835   automatically.
3837 * docs/doxygen_api.conf.in: Don't generate XML from doxygen for the bindings -
3838   the bindings now do this for themselves.  (ticket#262)
3840 documentation:
3842 * INSTALL: Update GCC details - we now recommend 4.3 or newer (was 4.1), and
3843   note that while 3.1 is the hard minimum requirement, the oldest we've tested
3844   with at all recently was 3.3.
3846 * docs/deprecation.rst: Updated.
3848 tools:
3850 * delve:
3852   + Move delve from examples to bin and rename to xapian-delve.
3854   + Send errors to stderr not stdout.
3856 * xapian-check: Now reports useful descriptions rather than cryptic numeric
3857   codes for B-tree errors.
3859 debug code:
3861 * Add assertions that the index is in range when dereferencing MSetIterator and
3862   ESetIterator.
3864 * Fix various errors in debug logging statements.
3866 * Add QUERY category for debug logging.
3868 Xapian-core 1.2.23 (2016-03-28):
3870 API:
3872 * PostingSource: Public member variables are now wrapped by methods (mostly
3873   getters and/or setters, depending on whether they should be readable,
3874   writable or both).  In 1.3.5, the public members variables have been
3875   deprecated - we've added the replacement methods in 1.2.23 as well to make
3876   it easier for people to migrate over.
3878 chert backend:
3880 * xapian-check now performs additional consistency checks for chert. Reported
3881   by Jean-Francois Dockes and Bob Cargill via xapian-discuss.
3883 documentation:
3885 * Update links to Xapian website and trac to use https, which is now supported,
3886   thanks to James Aylett.
3888 portability:
3890 * On older Linux kernels, rename() of a file within a directory on NFS can
3891   sometimes erroneously fail with EXDEV.  This should only happen if you
3892   try to rename a file across filing systems, so workaround this issue by
3893   retrying up to 5 times on EXDEV (which should be plenty to avoid this
3894   bug, and we don't want to risk looping forever).  Fixes #698, reported by
3895   Mark Dufour.
3897 Xapian-core 1.2.22 (2015-12-29):
3899 API:
3901 * Add FLAG_CJK_NGRAM for QueryParser and TermGenerator.  Has the same effect as
3902   setting the environment variable XAPIAN_CJK_NGRAM.  Fixes #180, reported by
3903   Richard Boulton, with contributions from Pavel Strashkin, Mikkel Kamstrup
3904   Erlandsen and Brandon Schaefer.
3906 * Fix bug parsing multiple non-exclusive filter terms - previously this could
3907   result in such filters effectively being ignored.
3909 * Fix Database::get_doclength_lower_bound() over multiple databases when some
3910   are empty or consist only of zero-length documents.  Previously this would
3911   report a lower bound of zero, now it reports the same lowest bound as a
3912   single database containing all the same documents.
3914 * Make Database::get_wdf_upper_bound("") return 0.
3916 * Mark constructors taking a single argument as "explicit" to avoid unwanted
3917   implicit conversions.
3919 testsuite:
3921 * If command line option --verbose/-v isn't specified, set the verbosity level
3922   from environmental variable VERBOSE.
3924 * Skip timed tests if $AUTOMATED_TESTING is set.  Fixes #553, reported by
3925   Dagobert Michelsen.
3927 * Don't leave an extra fd open when starting xapian-tcpsrv for remotetcp tests.
3929 * apitest: Revert disabling of part of adddoc5 for clang - the test failure was
3930   in fact due to a bug in 1.3.x, and 1.2.x was never affected.
3932 * apitest: Tweak bounds checks in dbstats1 testcase - multi backends should
3933   give tight bounds.
3935 brass backend:
3937 * Format limit on docid now correctly imposed when sizeof(int) > 4.
3939 * Avoid potential DB corruption with full-compaction when using 64K blocks.
3941 chert backend:
3943 * Format limit on docid now correctly imposed when sizeof(int) > 4.
3945 * Avoid potential DB corruption with full-compaction when using 64K blocks.
3947 flint backend:
3949 * Format limit on docid now correctly imposed when sizeof(int) > 4.
3951 * Avoid potential DB corruption with full-compaction when using 64K blocks.
3953 remote backend:
3955 * Fix to handle total document length exceeding 34,359,738,368.  (Fixes #678,
3956   reported by matf).
3958 * Avoid dividing by zero when getting the average length for an empty database.
3960 * Stop apparent error from remote server when read-only client disconnects.  A
3961   read-only client just closes the connection when done, but the server
3962   previously reported "Got exception NetworkError: Received EOF", which sounds
3963   like there was a problem.  Now we just say "Connection closed" here, and
3964   "Connection closed unexpectedly" if the client connects in the middle of an
3965   exchange.  Possibly fixes #654, reported by Germán M. Bravo.
3967 * Give a clearer error message when the client and server remote protocol
3968   versions aren't compatible.
3970 * Check length of key in MSG_SETMETADATA.
3972 build system:
3974 * pkg-config: Fix library name in .pc file to say "xapian" not "xapian-core".
3975   Reported by Eric Lindblad to the xapian-devel list.
3977 * Private symbol decode_length() is no longer visible outside the library.
3979 documentation:
3981 * Stop maintaining ChangeLog files.  They make merging patches harder, and stop
3982   'git cherry-pick' from working as it should.  The git repo history should be
3983   sufficient for complying with GPLv2 2(a).
3985 * Strip out "quickstart" examples which are out of date and rather redundant
3986   with the "simple" examples.
3988 * Correct documentation of Enquire::get_query().  If no query has been set,
3989   the documentation said Xapian::InvalidArgumentError was thrown, but in
3990   fact we just return a default initialised Query object (i.e. Query()).  This
3991   seems reasonable behaviour and has been the case since Xapian 0.9.0.
3993 * Document xapian-compact --blocksize takes an argument.
3995 * Update snowball website link to snowballstem.org.
3997 tools:
3999 * xapian-replicate: Fix replication for files > 4GB on 32-bit platforms.
4000   Previously replication would fail to copy a file whose size didn't fit in
4001   size_t.  Fixes #685, reported by Josh Elsasser.
4003 * xapian-tcpsrv: Better error if -p/--port not specified
4005 * quest: Support `-f cjk_ngram`.
4007 examples:
4009 * xapian-metadata: Extend "list" subcommand to take optional key prefix.
4011 portability:
4013 * Fix new warnings from recent versions of GCC and clang.
4015 * Add spaces between literal strings and macros which expand to literal strings
4016   for C++11 compatibility in __WIN32__-specific code.
4018 * Need <unistd.h> for unlink() on FreeBSD, reported by Germán M. Bravo via
4019   github PR 72.
4021 * Fix testsuite to build when S_ISSOCK() isn't defined.
4023 * Don't provide our own implementation of sleep() under __WIN32__ if there
4024   already is one - mingw provides one, and in some situations it seems to clash
4025   with ours.  Reported to xapian-discuss by John Alveris.
4027 * Add missing '#include <arpa/inet.h>' to htons().  Seems to be implicitly
4028   included on most platforms, but Interix needs it.  Reported by Eric Lindblad
4029   on xapian-discuss.
4031 * Disable "<FUNCTION> is expected to return a value" warning from Sun's C++
4032   compiler, as it fires for functions ending in a "throw" statement.  Genuine
4033   instances will be caught by compilers with superior warning machinery.
4035 * Prefer scalbn() to ldexp() where possible, since the former doesn't ever set
4036   errno.
4038 * '#include <config.h>' in the "simple" examples, as when compiling with xlC on
4039   AIX, _LARGE_FILES gets defined by AC_SYS_LARGEFILE to enable large file
4040   support, and defining this changes the ABI of std::string, so it also needs
4041   to be defined when compiling code using Xapian.
4043 * On cygwin, include <arpa/inet.h> instead of winsock headers for htons() and
4044   htonl().
4046 * Include <cygwin/version.h> for CYGWIN_VERSION_API_MAJOR.
4048 * Avoid referencing static members via an object in that object's own
4049   definition, as this doesn't work with all compilers (noted with GCC 3.3), and
4050   is a bit of an odd construct anyway.  Reported by Eric Lindblad on
4051   xapian-discuss.
4053 * GCC < 3.4.2 lacks operator<< overloads for unsigned long long on some
4054   platforms, so simply work around this by using str(), as this isn't
4055   performance sensitive code.  Reported by Eric Lindblad on xapian-discuss.
4057 * Fix delete which should be delete[] in brass backend cursor code.
4059 Xapian-core 1.2.21 (2015-05-20):
4061 API:
4063 * QueryParser: Extend the set of characters allowed in the start of a range to
4064   be anything except for '(' and characters <= ' '.  This better matches what's
4065   accepted for a range end (anything except for ')' and characters <= ' ').
4066   Reported by Jani Nikula.
4068 matcher:
4070 * Reimplement OP_PHRASE for non-exact phrases.  The previous implementation was
4071   buggy, giving both false positives and false negatives in rare cases when
4072   three or more terms were involved.  Fixes #653, reported by Jean-Francois
4073   Dockes.
4075 * Reimplement OP_NEAR - the new implementation consistently requires the terms
4076   to occur at different positions, and fixes some previously missed matches.
4078 * Fix a reversed check for picking the shorter position list for an exact
4079   phrase of two terms.  The difference this makes isn't dramatic, but can be
4080   measured (at least with cachegrind).  Thanks to kbwt for spotting this.
4082 * When matching an exact phrase, if a term doesn't occur where we want, use
4083   its actual position to advance the anchor term, rather than just checking
4084   the next position of the anchor term.
4086 brass backend:
4088 * Fix cursor versioning to consider cancel() and reopen() as events where
4089   the cursor version may need incrementing, and flag the current cursor version
4090   as used when a cursor is rebuilt.  Fixes #675, reported by Germán M. Bravo.
4092 * Avoid using file descriptions < 3 for writable database tables, as it risks
4093   corruption if some code in the same process tries to write to stdout or
4094   stderr without realising it is closed.  (Partly addresses #651)
4096 chert backend:
4098 * Fix cursor versioning to consider cancel() and reopen() as events where
4099   the cursor version may need incrementing, and flag the current cursor version
4100   as used when a cursor is rebuilt.  Fixes #675, reported by Germán M. Bravo.
4102 * Avoid using file descriptions < 3 for writable database tables, as it risks
4103   corruption if some code in the same process tries to write to stdout or
4104   stderr without realising it is closed.  (Partly addresses #651)
4106 flint backend:
4108 * Fix cursor versioning to consider cancel() and reopen() as events where
4109   the cursor version may need incrementing, and flag the current cursor version
4110   as used when a cursor is rebuilt.  Fixes #675, reported by Germán M. Bravo.
4112 remote backend:
4114 * Fix sort by value when multiple databases are in use and one or more are
4115   remote.  This change necessitated a minor version bump in the remote
4116   protocol.  Fixes #674, reported by Dylan Griffith.  If you are upgrading a
4117   live system which uses the remote backend, upgrade the servers before the
4118   clients.
4120 build system:
4122 * The compiler ABI check in the public API headers now issues a warning
4123   (instead of an error) for an ABI mismatch for ABI versions 2 and later
4124   (which means GCC >= 3.4).  The changes in these ABI versions are bug fixes
4125   for corner cases, so there's a good chance of things working - e.g. building
4126   xapian-bindings with GCC 5.1 (which defaults to ABI version 8) against
4127   xapian-core built with GCC 4.9 (which defaults to ABI version 2) seems to
4128   work OK.  A warning is still useful as a clue to what is going on if linking
4129   fails due to a missing symbol.
4131 * xapian-config,xapian-core.pc: When compiling with xlC on AIX, the reported
4132   --cxxflags/--cflags now include -D_LARGE_FILES=1 as this is defined for the
4133   library, and defining it changes the ABI of std::string with this compiler,
4134   so it must also be defined when building code using the Xapian API.
4136 * xapian-core.pc: Include --enable-runtime-pseudo-reloc in --libs output for
4137   mingw and cygwin, like xapian-config does.
4139 * xapian-core.pc: Fix include directory reported by `pkg-config --cflags`.
4140   This bug was harmless if xapian-core was installed to a directory which was
4141   on the default header search path (such as /usr/include).
4143 * xapian-config: Fix typo so cached result of test in is_uninstalled() is
4144   actually used on subsequent calls.  Fixes #676, reported (with patch) by Ryan
4145   Schmidt.
4147 * configure: Changes in 1.2.19 broke the custom macro we use to probe for
4148   supported compiler flags such that the flags never got used.  This release
4149   fixes this problem.
4151 * configure: Set default value for AUTOM4TE before AC_OUTPUT so the default
4152   will actually get used.  Only relevant when building in maintainer mode
4153   (e.g. from git).
4155 * soaktest: Link with libtool's '-no-install' or '-no-fast-install', like we
4156   already do for other test programs, which means that libtool doesn't need to
4157   generate shell script wrappers for them on most platforms.
4159 documentation:
4161 * API documentation: Minor wording tweaks and formatting improvements.
4163 * docs/deprecation.rst: Add deprecation of omindex --preserve-nonduplicates
4164   which happened in 1.2.4.
4166 * HACKING: Update URL.
4168 * HACKING: libtool 2.4.6 is now used for bootstrapping snapshots and releases.
4170 tools:
4172 * xapian-compact: Make sure we open all the tables of input databases at the
4173   same revision.  (Fixes #649)
4175 * xapian-metadata: Add 'list' subcommand to list all the metadata keys.
4177 * xapian-replicate: Fix connection timeout to be 10 seconds rather than 10000
4178   seconds (the incorrect timeout has been the case since 1.2.3).
4180 * xapian-replicate: Set SO_KEEPALIVE for xapian-replicate's connection to the
4181   master, and add command line option to allow setting socket-level timeouts
4182   (SO_RCVTIMEO and SO_SNDTIMEO) on platforms that support them.  Fixes #546,
4183   reported by nkvoll.
4185 * xapian-replicate-server: Avoid potentially reading uninitialised data if a
4186   changeset file is truncated.
4188 portability:
4190 * Add spaces between literal strings and macros which expand to literal strings
4191   for C++11 compatibility.
4193 * ValueCountMatchSpy::top_values_begin(): Fix the comparison function not to
4194   return true for two equal elements, which manifests as incorrect sorting in
4195   some cases when using clang's libc++ (which recent OS X versions do).
4197 * apitest: The adddoc5 testcase fails under clang due to an exception handling
4198   bug, so just #ifdef out the problematic part of the testcase when building
4199   with clang for now.
4201 * Fix clang warnings on OS X.  Reported by Germán M. Bravo.
4203 * Fix examples to build with IBM's xlC compiler on AIX - they were failing due
4204   to _LARGE_FILES being defined for the library build but not for the examples,
4205   and defining this changes the ABI of std::string with this compiler.
4207 * configure: Improve the probe for whether the test harness can use RTTI to
4208   work for IBM's xlC compiler (which defaults to not generating RTTI).
4210 * Fix to build with Sun's C++ compiler.
4212 * Use F_DUPFD where available to dup to a file descriptor which is >= 2, rather
4213   than calling dup() until we get one.
4215 * When unserialising a double, avoid reading one byte past the end of the
4216   serialised value.  In practice this was harmless on most platforms, as
4217   dbl_max_mantissa is 255 for IEEE-754 format doubles, and at least GCC's
4218   std::string keeps the buffer nul-terminated.  Reported by Germán M. Bravo in
4219   github PR#67.
4221 * When unserialising a double, add missing cast to unsigned char when we check
4222   if the value will fit in the double type.  On machines with IEEE-754 doubles
4223   (which is most current platforms) this happened to work OK before.  It would
4224   also have been fine on machines where char is unsigned by default.
4226 * Fix incorrect use of "delete" which should be "delete []".  This is
4227   undefined behaviour in C++, though the type is POD, so in practice this
4228   probably worked OK on many platforms.
4230 debug code:
4232 * Fix some overly strict assertions in flint, which caused apitest's
4233   cursordelbug1 to fail with assertions on.
4235 Xapian-core 1.2.20 (2015-03-04):
4237 chert backend:
4239 * After splitting a block, we always insert the new block in the parent right
4240   after the block it was split from - there's no need to binary chop.
4242 build system:
4244 * Generate and install a file for pkg-config.  (Fixes#540)
4246 * configure: Update link to cygwin FAQ in error message.
4248 documentation:
4250 * include/xapian/weight.h: Document the enum stat_flags values.
4252 * docs/postingsource.rst: Use a modern class in postingsource example.  (Noted
4253   by James Aylett)
4255 * docs/deprecation.rst,docs/replication.rst: Fix typos.
4257 * Update doxygen configuration files to avoid warnings about obsolete tags from
4258   newer doxygen versions.
4260 * HACKING: Update details of building Xapian packages.
4262 tools:
4264 * xapian-check: For chert and brass, cross-check the position and postlist
4265   tables to detect positional data for non-existent documents.
4267 portability:
4269 * When locking a database for writing, use F_OFD_SETLK where available, which
4270   avoids having to fork() a child process to hold the lock.  This currently
4271   requires Linux kernel >= 3.15, but it has been submitted to POSIX so
4272   hopefully will be widely supported eventually.  Thanks to Austin Clements for
4273   pointing out this now exists.
4275 * Fix detection of fdatasync(), which appears to have been broken practically
4276   forever - this means we've probably been using fsync() instead, which
4277   probably isn't a big additional overhead.  Thanks to Vlad Shablinsky for
4278   helping with Mac OS X portability of this fix.
4280 * configure: Define MINGW_HAS_SECURE_API under mingw to get _putenv_s()
4281   declared in stdlib.h.
4283 * Use POSIX O_NONBLOCK in preference to O_NDELAY - the semantics of the latter
4284   differ between BSD and System V.
4286 * According to POSIX, strerror() may not be thread safe, so use alternative
4287   thread-safe ways to translate errno values where possible.
4289 * On Microsoft Windows, avoid defining EADDRINUSE, etc if they're already
4290   defined, and use WSAE* constants un-negated - they start from a high value
4291   so won't collide with E* constants.
4293 debug code:
4295 * Add more assertions to the chert backend code.
4297 Xapian-core 1.2.19 (2014-10-21):
4299 API:
4301 * Xapian::BM25Weight:
4303   + Improve BM25 upper bound in the case when our wdf upper bound > our
4304     document length lower bound.  Thanks to Craig Macdonald for pointing out
4305     this trick.
4307   + Pre-multiply termweight by (param_k1 + 1) rather than doing it for
4308     every weighted term in every document considered.
4310 testsuite:
4312 * Don't report apparent leaks of fds opened on /dev/urandom - at least on
4313   Linux, something in the C library seems to lazily open it, and the report of
4314   a possible leak followed by assurance that it's OK really is just noise we
4315   can do without.
4317 matcher:
4319 * Fix false matches reported for non-exact phrases in some cases.  Fixes the
4320   reduced testcase in #657, reported by Jean-Francois Dockes.
4322 brass backend:
4324 * Only full sync after writing the final base file (only affects Max OS X).
4326 chert backend:
4328 * Only full sync after writing the final base file (only affects Max OS X).
4330 flint backend:
4332 * Only full sync after writing the final base file (only affects Max OS X).
4334 build system:
4336 * For Sun's C++ compiler, pass -library=Crun separately since libtool looks for
4337   " -library=stlport4 " (with the spaces).  (fixes#650)
4339 * Remove .replicatmp (created by the test suite) upon "make clean".
4341 documentation:
4343 * include/xapian/compactor.h: Fix formatting of doxygen comment.
4345 * HACKING: freecode no longer accepts updates, so drop that item from the
4346   release checklist.
4348 * docs/overview.rst: Add missing database path to example of using
4349   xapian-progsrv in a stub database file.
4351 portability:
4353 * Suppress unused typedef warnings from debugging logging macros, which occur
4354   in functions which always exit via throwing an exception when compiling with
4355   recent versions of GCC or clang.
4357 * Fix debug logging code to compile with clang.  (fixes #657, reported by
4358   Germán M. Bravo)
4360 debug code:
4362 * Add missing RETURN() markup for debug logging in a few places, highlighted by
4363   warnings from recent GCC.
4365 * Fix incorrect return types in debug logging annotations so that code compiles
4366   when configured with --enable-log.
4368 Xapian-core 1.2.18 (2014-06-22):
4370 API:
4372 * Document: Fix get_docid() to return the docid for the sub-database (as it
4373   is explicitly documented to) for Document objects passed to functors like
4374   KeyMaker during the match.  (fixes#636, reported by Jeff Rand).
4376 * Document: Don't store the termname in OmDocumentTerm - we were only using it
4377   in get_description() output and an exception message.  Speeds up indexing
4378   etext.txt using simpleindex by 0.4%, and should reduce memory usage a bit
4379   too.  (Change inspired by comments from Vishesh Handa on xapian-devel).
4381 * Database: Iterating the values in a particular slot is now a bit more
4382   efficient for inmemory and remote backends (but still slow compared to
4383   flint, chert and brass).
4385 testsuite:
4387 * apitest: Expand crashrecovery1 to check that the expected base files exist
4388   and ones which shouldn't exist don't.
4390 * queryparsertest: Fix testcase for empty wildcard followed by negation to
4391   enable FLAG_LOVEHATE so the negation is actually parsed.  Fortunately the
4392   fixed testcase passes.
4394 matcher:
4396 * OP_SYNONYM: avoid fetching the doclength if the weighting scheme doesn't
4397   need it and the calculated wdf for the synonym is <= doclength_lower_bound
4398   for the current subdatabase.  (fixes #360)
4400 build system:
4402 * Releases are now bootstrapped with libtool 2.4.2 instead of 2.4, and with
4403   config.guess and config.sub updated to the latest versions.
4405 documentation:
4407 * Add an example of initializing SimpleStopper using a file listing stopwords.
4408   (Patch from Assem Chelli)
4410 * Improve the descriptions of the stem_strategy values in the API docs.
4411   (Reported by "oilap" on #xapian)
4413 * docs/sorting.rst: Fix incorrect parameter types in Xapian::Weight
4414   subclass example.
4416 * docs/glossary.rst: Add definition of "collection frequency".
4418 * HACKING:
4420   + makeindex is now in Debian package texlive-binaries.
4422   + Replace a link to the outdated autotools "goat book" with a link to the
4423     "Portable Shell" chapter of the autoconf manual.
4425 * include/xapian/base.h: Remove very out of date comments talking about atomic
4426   assignment and locking - since 0.5.0 we've adopted a "user locks" policy.
4427   (Reported by Jean-Francois Dockes)
4429 examples:
4431 * delve:
4433   + Add -A <prefix> option to list all terms with a particular prefix.
4435   + Send errors to stderr not stdout.
4437   + If -v is specified more than once, show even more info in some cases.
4438     (NEWS file claimed this was backported in 1.2.15, but it actually wasn't).
4440 * quest:
4442   + Add --default-op option.
4444   + Add --weight option to allow the weighting scheme to be specified.
4446 portability:
4448 * Explicitly '#include <algorithm>' for std::max(), fixing build with VS2013.
4449   (Fixes#641, reported by "boomboo").
4451 * Fix testcase blocksize1 not to try to delete an open database, which isn't
4452   possible under Windows.  (Fixes #643, reported by Chris Olds)
4454 * docs/quickstart.rst: Split --cxxflags and --libs for portability (noted by
4455   "Hurricane Tong" on xapian-devel).
4457 * Fix warnings with clang 5.0.
4459 debug code:
4461 * Add assertions that weighting scheme upper bounds aren't exceeded.
4463 Xapian-core 1.2.17 (2014-01-29):
4465 API:
4467 * Enquire::set_sort_by_relevance_then_value() and
4468   Enquire::set_sort_by_relevance_then_key(): Fix sense of reverse parameter.
4469   Reported by "boomboo" on IRC.
4471 * BM25Weight: Fix case where (k1 == 0 || b == 0) but k2 != 0.  Reported by
4472   "boomboo" on IRC.
4474 * Unicode::tolower(): Fix to give correct results for U+01C5, U+01C8, U+01CB,
4475   and U+01F2 (previously these were left unchanged).
4477 testsuite:
4479 * Automatically probe for and hook in eatmydata to the testsuite using the
4480   wrapper script it now includes.
4482 * Fix apitest to build when brass, chert or flint are disabled.
4484 brass backend:
4486 * Fix handling of invalid block sizes passed to Xapian::Brass::open() - the
4487   size gets fixed as documented, but the uncorrected size was passed to the
4488   base file (and abort() was called if 0 was passed).
4490 * Validate "dir_end" when reading a block.  (fixes #592)
4492 chert backend:
4494 * Fix handling of invalid block sizes passed to Xapian::Chert::open() - the
4495   size gets fixed as documented, but the uncorrected size was passed to the
4496   base file (and abort() was called if 0 was passed).
4498 * Validate "dir_end" when reading a block.  (fixes #592)
4500 flint backend:
4502 * Fix handling of invalid block sizes passed to Xapian::Flint::open() - the
4503   size gets fixed as documented, but the uncorrected size was passed to the
4504   base file (and abort() was called if 0 was passed).
4506 * Validate "dir_end" when reading a block.  (fixes #592)
4508 build system:
4510 * configure: Improve reporting of GCC version.
4512 * Use -no-fast-install on platforms where -no-install causes libtool to emit a
4513   warning.
4515 * docs/Makefile.am: Fix handling of MAINTAINER_NO_DOCS.
4517 * Include UnicodeData.txt and the script to generate the unicode tables from
4518   it.
4520 documentation:
4522 * postingsource.rst: Clarify a couple of points (reported by "vHanda" on IRC).
4524 portability:
4526 * Protect the ValueIterator::check() method against Mac OS X SDK headers
4527   which define a check() macro.
4529 * Fix warning from xlC compiler.
4531 * Avoid use of grep -e in configure, as /usr/bin/grep on Solaris doesn't
4532   support -e.
4534 * Fix check for flags which might be needed for ANSI mode for compilers called
4535   'cxx'.
4537 * configure: Improve handling of Sun's C++ compiler - trick libtool into not
4538   adding -library=Cstd, and prefer -library=stdcxx4 if supported.  Explicitly
4539   add -library=Crun which seems to be required, even though the documentation
4540   suggests otherwise.
4542 Xapian-core 1.2.16 (2013-12-04):
4544 API:
4546 * PositionIterator,PostingIterator,TermIterator,ValueIterator: Don't segfault
4547   if skip_to() or check() is called on an iterator which is already at_end().
4548   Reported by David Bremner.
4550 * ValueCountMatchSpy: get_description() on a default-constructed
4551   ValueCountMatchSpy object no longer fails when xapian-core is built with
4552   --enable-log.
4554 * ValueCountMatchSpy: get_total() on a default-constructed ValueCountMatchSpy
4555   object now returns 0 rather than segfaulting.
4557 testsuite:
4559 * If -v/--verbose is specified more than once to a test program, show the
4560   diagnostic output for passing tests as well as failing/skipped ones.
4562 * queryparsertest: Change qp_scale1 to time 5 repetitions of the large query to
4563   help average out variations.
4565 * queryparsertest: Add test coverage for explicit synonym of a term with a
4566   prefix (e.g. ~foo:search).
4568 * apitest: Remove code from registry* testcases which tries to test the
4569   consequences of throwing an exception from a destructor - it's complex to
4570   ensure we don't leak memory while doing this (it seems GCC doesn't release
4571   the object in this case, but clang does), and it's generally frowned upon,
4572   plus C++11 makes destructors noexcept by default.
4574 * Fix "make check" to actually removed cached databases first, as is
4575   intended.
4577 brass backend:
4579 * When moving a cursor on a read-only table, check if the block we want is in
4580   the internal cursor.  We already do this for a writable table, as it is
4581   necessary for correctness, but it's a cheap check and may avoid asking the
4582   OS for a block we actually already have.
4584 * Correctly report the database as closed rather than 'Bad file descriptor'
4585   in certain cases.
4587 * Reuse a cursor for reading values from valuestreams rather than creating
4588   a new one each time.  This can dramatically reduce the number of blocks
4589   redundantly reread when sorting by value.  The rereads will generally get
4590   served from VM cache, but there's still an overhead to that.
4592 chert backend:
4594 * When moving a cursor on a read-only table, check if the block we want is in
4595   the internal cursor.  We already do this for a writable table, as it is
4596   necessary for correctness, but it's a cheap check and may avoid asking the
4597   OS for a block we actually already have.
4599 * Correctly report the database as closed rather than 'Bad file descriptor'
4600   in certain cases.
4602 * Reuse a cursor for reading values from valuestreams rather than creating
4603   a new one each time.  This can dramatically reduce the number of blocks
4604   redundantly reread when sorting by value.  The rereads will generally get
4605   served from VM cache, but there's still an overhead to that.
4607 flint backend:
4609 * When moving a cursor on a read-only table, check if the block we want is in
4610   the internal cursor.  We already do this for a writable table, as it is
4611   necessary for correctness, but it's a cheap check and may avoid asking the
4612   OS for a block we actually already have.
4614 * Correctly report the database as closed rather than 'Bad file descriptor'
4615   in certain cases.
4617 build system:
4619 * Compress source tarballs with xz instead of gzip.
4621 * Split XAPIAN_LIBS out of XAPIAN_LDFLAGS so that -l flags for libraries
4622   configure detects are needed appear after -L flags specified by the user
4623   that may be needed to find such libraries.  (fixes#626)
4625 * XO_LIB_XAPIAN now handles the user specifying a relative path in
4626   XAPIAN_CONFIG, e.g.: "./configure XAPIAN_CONFIG=../xapian-core/xapian-config"
4628 * Adjust XO_LIB_XAPIAN to strip _gitNNN suffix from snapshot versions.
4630 * configure: Handle git snapshot naming when calculating REVISION.
4632 * configure: Enable -fshow-column for GCC - things like vim's quickfix mode
4633   will then jump to the appropriate column for a compiler error or warning, not
4634   just the appropriate line.
4636 * configure: Report GCC version in configure output.
4638 documentation:
4640 * The API documentation shipped with the release is now generated with
4641   doxygen 1.8.5 instead of 1.5.9, which is most evident in the different
4642   HTML styling newer doxygen uses.
4644 * Document how Utf8Iterator handles invalid UTF-8 in API documentation.
4646 * Improve how descriptions of deprecated features appear in the API
4647   documentation.
4649 * docs/remote_protocol.rst: Correct error in documentation of REPLY_DOCDATA
4650   message.
4652 * docs/overview.rst: Correct documentation for how to specify "prog" remote
4653   databases in stub files.
4655 * Direct users to git in preference to SVN - we'll be switching entirely in
4656   the near future.
4658 tools:
4660 * xapian-chert-update: Fix -b to work rather than always segfaulting (reported
4661   in https://bugs.debian.org/716484).
4663 * xapian-chert-update: The documented alias --blocksize for -b has never
4664   actually been supported, so just drop mentions of it from --help and the man
4665   page.
4667 * xapian-check:
4669   + Fix chert database check that first docid in each doclength chunk is more
4670     than the last docid in the previous chunk - previously this didn't actually
4671     work.
4673   + Fix database check not to falsely report "position table: Junk after
4674     position data" whenever there are 7 unused bits (7 is OK, *more* than 7
4675     isn't).
4677   + Fix to report block numbers correctly for links within the B-tree.
4679   + If the METAINFO key is missing, only report it once per table.
4681   + Fix database consistency checking to always open all the tables at the same
4682     revision - not doing this could lead to false errors being reported after a
4683     commit interrupted by the process being killed or the machine crashing.
4684     Reported by Joey Hess in https://bugs.debian.org/724610
4686 examples:
4688 * quest: Add --check-at-least option.
4690 portability:
4692 * configure: clang doesn't support -Wstrict-null-sentinel or -Wlogical-op, so
4693   don't pass it these options.
4695 * Fix build errors and warnings with mingw.
4697 * Suppress "unused local typedef" warnings from GCC 4.8.
4699 * If the compiler supports C++11, use static_assert to implement
4700   CompileTimeAssert.
4702 * tests/zlib-vg.c: Fix two warnings when compiled with clang.
4704 * Fix failure when built with -D_GLIBCXX_DEBUG - we were modifying the top()
4705   element of a heap before calling pop(), such that the heap comparison
4706   operation (which is called when -D_GLIBCXX_DEBUG is on to verify the heap is
4707   valid) would read off the end of the data.  In a normal build, this issue
4708   would likely never manifest.
4710 * configure: When generating ABI compatibility checks in xapian/version.h, pass
4711   $CXXFLAGS and $CPPFLAGS to $CXXCPP as they could contain options which affect
4712   the ABI (such as -fabi-version for GCC).  (Fixes #622)
4714 * Microsoft GUIDs in binary form have reversed byte order in the first three
4715   components compared to standard UUIDs, so the same database would report a
4716   different UUID on Windows to on other platforms.  We now swap the bytes to
4717   match the standard order.  With this fix, the UUIDs of existing databases
4718   will appear to change on Windows (except in rare "palindronic" cases).
4720 * Fix a couple of issues to get Xapian to build and work on AIX.
4722 * common/safeuuid.h: Remove bogus take-address-of from uuid handling code for
4723   NetBSD and OpenBSD.
4725 * Under cygwin, use cygwin_conv_path() if using a new enough cygwin version,
4726   rather than the now deprecated cygwin_conv_to_win32_path().  Reported by
4727   "Haroogan" on the xapian-devel mailing list.
4729 * common/safeuuid.h: Add missing '#include <cstdlib>' and qualify free with std.
4731 * Fix 'unused label' warning when chert backend is disabled.
4733 * xapian.h: Add check for Wt headers being included before us and defining
4734   'slots' as a macro - if they are, give a clear error advising how to work
4735   around this (previously compilation would fail with a confusing error).
4737 debug code:
4739 * Fix assertion failure for when an OrPostList decays to an AndPostList - the
4740   ordering of the subqueries by estimated termfreq may not be the same as it
4741   was when the OrPostList was constructed, as the subqueries may themselves
4742   have decayed.  Reported by Michel Pelletier.
4744 * Fix -Wcast-qual warning from GCC 4.7 when configured with --enable-log.
4746 Xapian-core 1.2.15 (2013-04-16):
4748 API:
4750 * QueryParser/TermGenerator: Don't include CJK codepoints which are
4751   punctuation in N-grams.
4753 * TermGenerator: Fix bug where we failed to generate the first bigram
4754   from the second sequence of N-grammable CJK characters in a piece of text.
4756 brass backend:
4758 * Call fdatasync()/fsync() when creating the "iambrass" file.
4760 chert backend:
4762 * Call fdatasync()/fsync() when creating the "iamchert" file.
4764 flint backend:
4766 * Call fdatasync()/fsync() when creating the "iamflint" file.
4768 build system:
4770 * XO_LIB_XAPIAN now handles the user specifying XAPIAN_CONFIG without a path,
4771   for example: ./configure XAPIAN_CONFIG=xapian-config-1.3
4773 tools:
4775 * delve: If -v is specified more than once, show even more info in some cases.
4777 portability:
4779 * Fix warning due to needlessly casting away const-ness in debug logging.
4781 * Fix pointer truncation bug in lemon parser generator, which probably affects
4782   regenerating the query parser on WIN64.
4784 debug code:
4786 * Fix to build when configured with --enable-log.
4788 Xapian-core 1.2.14 (2013-03-14):
4790 API:
4792 * MSet::get_document(): Don't cache retrieved Document objects unless they
4793   were requested with fetch().  This avoids using a lot of memory when many
4794   MSet entries are retrieved.  (Fixes #604)
4796 testsuite:
4798 * apitest: Improved test coverage.
4800 matcher:
4802 * Check if a candidate document has at least the minimum weight needed
4803   before checking positional information, which speeds up slow phrase
4804   searches (partly addresses #394).
4806 brass backend:
4808 * Fix multipass compaction not to damage document values, and to merge the
4809   database stats correctly.  (fixes #615)
4811 chert backend:
4813 * Fix multipass compaction not to damage document values, and to merge the
4814   database stats correctly.  (fixes #615)
4816 flint backend:
4818 * Fix multipass compaction bug.  (fixes #615)
4820 tools:
4822 * xapian-replicate:
4824   + Fix handling of delays between replication events - the subtraction of the
4825     target time and the current time was reversed, so we wouldn't sleep when
4826     before the deadline, but would sleep after it for the amount we'd missed it
4827     by.
4829   + On Microsoft Windows, we no longer sleep for more than 43 years if the
4830     target time for a replication event had already passed.  (Fixes #472)
4832 portability:
4834 * matcher/queryoptimiser.cc: Need <functional> for mem_fun().
4836 * tests/harness/testsuite.cc: Don't provide explicit template types to
4837   make_pair - it isn't useful, and breaks with C++11.  Fixes build error with
4838   MSVC2012.
4840 * examples/quest.cc: Fix to build with Sun Studio 12 compiler.  (ticket#611)
4842 Xapian-core 1.2.13 (2013-01-09):
4844 API:
4846 * TermGenerator: Add new method TermGenerator::set_max_word_length() to allow
4847   this limit to be adjusted by the user.
4849 * QueryParser: Implicitly close any unclosed brackets at the end of the query
4850   string.  Patch from Sehaj Singh Kalra.
4852 * DateValueRangeProcessor: Add extra constructor overloaded form so that in
4853   DateValueRangeProcessor(1, "date:"), the const char * gets interpreted as
4854   std::string rather than bool.
4856 testsuite:
4858 * apitest: Assorted test coverage improvements.
4860 * When reporting valgrind errors, skip any warnings before the error in the
4861   valgrind log.
4863 matcher:
4865 * Improved fix for #590 - count all matching LeafPostList objects with a Weight
4866   object rather than trying to prune at the MultiAndPostList level based on
4867   max_wt (if wdf is always zero for a term, BM25 gives max_wt of 0, which lead
4868   to us never counting that subquery.
4870 * Fix calculation of 0.0/0.0 in some cases.  This then got used as a minimum
4871   weight, but it seems this gives -nan (at least on x86-64 Linux) so it may
4872   have been harmless in practice.
4874 * We no longer use the highest weighted MSet entry to calculate percentages, so
4875   remove code which finds it.
4877 brass backend:
4879 * Close excess file handles before we get the fcntl lock, which avoids the
4880   lock being released again if one is open on the lock file.  Notably this
4881   avoids a situation where multiple threads in the same process could succeed
4882   in locking a database concurrently.
4884 chert backend:
4886 * Close excess file handles before we get the fcntl lock, which avoids the
4887   lock being released again if one is open on the lock file.  Notably this
4888   avoids a situation where multiple threads in the same process could succeed
4889   in locking a database concurrently.
4891 flint backend:
4893 * Close excess file handles before we get the fcntl lock, which avoids the
4894   lock being released again if one is open on the lock file.  Notably this
4895   avoids a situation where multiple threads in the same process could succeed
4896   in locking a database concurrently.
4898 remote backend:
4900 * Improve the UnimplementedError message for a MatchSpy subclass which doesn't
4901   implement name() so it's clearer that it is this particular subclass which
4902   can't be used remotely, rather than all MatchSpy objects.
4904 build system:
4906 * The build system is now generated with automake 1.11.6 rather than 1.11.1,
4907   which fixes a security issue in "make distcheck" (not something users will
4908   usually run, but it seems worth addressing).
4910 * Use user-specified LIBS for configure tests, which is what you'd expect to
4911   happen, and provides a way for the user to tell configure where to find
4912   library functions which configure can't find for itself.
4914 * INCLUDES is now deprecated in automake, so use AM_CPPFLAGS instead.
4916 * Test coverage rules now assume lcov 1.10 which allows them to be simpler
4917   and not to require a patched version of lcov.
4919 documentation:
4921 * valueranges.html: Update documentation to reflect change in Xapian 1.1.2 -
4922   DateValueRangeProcessor and StringValueRangeProcessor now support a prefix or
4923   suffix.
4925 * Clarify that the "reverse" parameter of set_sort_by_relevance_then_value()
4926   and set_sort_by_relevance_then_key() only affects the ordering of the
4927   value/key part of the sort.
4929 * docs/quickstart.html: Fix seriously outdated statement that Xapian doesn't
4930   create the database directory - that changed in 0.7.2 (released 2003-07-11).
4932 * HACKING: Try to make it clearer we're looking for a dual-licence on submitted
4933   patches.
4935 tools:
4937 * xapian-replicate:
4939   + Add a --full-copy option to force a full copy to be sent.  (ticket#436)
4941   + Add --quiet option, and be a little more verbose by default.
4943   + Allow files > 32G to be be copied by replication.
4945   + Fix "if (fd > 0)" tests in some replication code to be "if (fd >= 0)".
4946     In practice this is unlikely to actually have caused problems since
4947     stdin is typically still open and using fd 0.
4949   + Simplify how we open the .DB file on the replication slave to just call
4950     open() once with O_CREAT, rather than once without, than stat() if that
4951     fails, and then again with O_CREAT|O_TRUNC if stat() doesn't show an
4952     ordinary file exists.
4954 examples:
4956 * quest:
4958   + New --flags command line option to allow setting arbitrary QueryParser
4959     flags.
4961   + Align option descriptions in --help output, and make the initial letter of
4962     such descriptions consistently lowercase.
4964 portability:
4966 * Fix testsuite harness to compile with GCC 4.7.
4968 * On platforms with the F_MAXFD fcntl but without closefrom(), we were failing
4969   to close the highest numbered open fd in our closefrom() replacement.
4971 * Our closefrom() replacement on Linux now works around valgrind not hiding
4972   some extra fds it has open, but then complaining if we try to close them.
4974 + Pass O_BINARY when opening replication related files in some cases where we
4975   weren't before, which will probably help solve ticket #472.
4977 * configure: socketpair() needs -lnetwork on Haiku.
4979 * Micro-optimisation in Unicode handling - GCC doesn't currently optimise the
4980   arithmetic shift right idiom we use, but it documents that signed right shift
4981   does sign extension so we now just use a right shift for GCC.
4983 debug code:
4985 * Preserve errno over debug logging calls, so they can safely be added to code
4986   which expects errno not to change.
4988 Xapian-core 1.2.12 (2012-06-27):
4990 build system:
4992 * 1.2.11 had its library version information incorrectly set.  This resulted in
4993   the shared library having an incorrect SONAME - e.g. on Linux,
4994   libxapian.so.21 instead of libxapian.so.22.  This release has been made to
4995   fix this problem.
4997 documentation:
4999 * AUTHORS: Add the GSoC students.
5001 Xapian-core 1.2.11 (2012-06-26):
5003 API:
5005 * Add new QueryParser::STEM_ALL_Z stemming strategy, which stems all terms and
5006   adds a Z prefix.  (Patch from Sehaj Singh Kalra, fixes ticket#562)
5008 * Add TermGenerator::set_stemming_strategy() method, with strategies which
5009   correspond to those of QueryParser.  Based on patch from Sehaj Singh Kalra,
5010   with some tweaks for adding term positions in more cases.  (Fixes ticket#563)
5012 * Correct "BM25Weight" to "TradWeight" in exception message from TradWeight.
5014 * We were failing to call init() for user-defined Weight objects providing the
5015   term-independent weight.  These now get called with init(0.0).
5017 * Xapian::Auto::open_stub() now throws a Xapian::DatabaseOpeningError exception
5018   if the stub file can't be opened.  Previously we failed to check for this
5019   condition, which resulted in us treating the file as empty.
5021 testsuite:
5023 * When the testsuite is using valgrind, we used to run remote servers under
5024   valgrind too (but with --tool=none) to get consistent behaviour as valgrind's
5025   emulation of x87 excess precision isn't exact.  Now we only do this if x87 FP
5026   instructions are actually in use (which means x86 architecture and configure
5027   run with --disable-sse).
5029 * Make sure XAPIAN_MAX_CHANGESETS gets unset after replication testcases which
5030   set it, so further testcases don't waste time generating changesets.
5032 * Improved test coverage (including more tests for closed databases -
5033   ticket#337).
5035 brass backend:
5037 * After closing the database, methods which try to use the termlist would throw
5038   FeatureUnavailableError with message "Database has no termlist", assuming
5039   that the termlist table not being open meant it wasn't present.  Fix to check
5040   if the postlist_table is open to determine which case we're in.
5042 chert backend:
5044 * After closing the database, methods which try to use the termlist would throw
5045   FeatureUnavailableError with message "Database has no termlist", assuming
5046   that the termlist table not being open meant it wasn't present.  Fix to check
5047   if the postlist_table is open to determine which case we're in.
5049 inmemory backend:
5051 * Check if the database is closed in metadata_keys_begin() for InMemory
5052   Databases.
5054 build system:
5056 * xapian-config: Don't interpret a missing .la file as meaning that we only
5057   have static libraries.
5059 documentation:
5061 * Fix API documentation for Query constructors - both XOR and ELITE_SET can
5062   take any number of subqueries, not only exactly two.
5064 * Backport missing API documentation comments for operator++ and operator*
5065   methods or PositionIterator, PostingIterator and TermGenerator.
5067 * docs/replication.rst: Update documentation - since 1.2.5, the value of
5068   XAPIAN_MAX_CHANGESETS determines how many changesets we keep.
5070 * docs/admin_notes.rst: Correction - we don't "create a lock file", we "lock a
5071   file".
5073 * Fix API documentation for TradWeight constructor - "k1" should be "k".
5075 portability:
5077 * configure: Overhaul handling of compilers which pretend to be GCC.  Clang
5078   is now detected, and we only pass it warning flags it actually understands.
5079   And we now check for symbol visibility support with Intel's compiler.
5081 * configure: Solaris automatically pulls in library dependencies, so set
5082   link_all_deplibs_CXX=no there.
5084 * configure: We now check -Bsymbolic-functions for all compilers.
5086 * configure: Enable -Wdouble-promotion for GCC >= 4.6.
5088 * Pass -ldl last when compiling zlib-vg.so, as that seems to be needed on
5089   Ubuntu 12.04.
5091 * Fix incorrect use of "delete" which should be "delete []".  This is
5092   undefined behaviour in C++, though the type is POD, so in practice this
5093   probably worked OK on many platforms.
5095 * In BM25Weight when k1 or b is zero (not the default), we used to multiply
5096   an uninitialised double by zero, which is undefined behaviour, but in
5097   practice will often give zero, leading to the desired results.
5099 * xapian.h: Add check for Qt headers being included before us and defining
5100   'slots' as a macro - if they are, give a clear error advising how to work
5101   around this (previously compilation would fail with a confusing error).
5103 Xapian-core 1.2.10 (2012-05-09):
5105 testsuite:
5107 * apitest: Extend tradweight1 to test that TradWeight(0) means that wdf and
5108   document length don't affect the weight of a term.
5110 * termgentest: Check that TermGenerator discards words > 64 bytes.
5112 matcher:
5114 * Don't count unweighted subqueries of MultiAndPostList in percentage
5115   calculations, as OP_FILTER maps to MultiAndPostList now.  (ticket#590)
5117 brass backend:
5119 * When compacting, if the output database is empty, don't write out a metainfo
5120   tag.  Take care not to divide by zero when computing the percentage size
5121   change for a table.
5123 chert backend:
5125 * When compacting, if the output database is empty, don't write out a metainfo
5126   tag.  Take care not to divide by zero when computing the percentage size
5127   change for a table.
5129 documentation:
5131 * API documentation:
5133  + Note version when Database::close() was added.
5135  + Fix switched lower and upper in API documentation for Weight methods
5136    get_doclength_lower_bound() and get_doclength_upper_bound().  Correct
5137    maximum to minimum in get_doclength_lower_bound() comment and note that this
5138    excludes zero length documents.  Fix "An lower" to "A lower".
5140 * docs/admin_notes.html: Mention that postlist and termlist tables also hold
5141   value info for chert.  Mention that xapian-chert-update was removed in 1.3.0.
5142   Mention that you need to use copydatabase from 1.2.x to convert flint to
5143   chert.
5145 * HACKING: Update section on patches to mention git (git diff and git
5146   format-patch), and using "-r" with normal diff, and also that ptardiff offers
5147   a nice way to diff against an unpacked tarball.
5149 debug code:
5151 * Fix use of AssertEq() on NULL, which doesn't compile, at least with recent
5152   GCC.
5154 Xapian-core 1.2.9 (2012-03-08):
5156 API:
5158 * QueryParser: Fix FLAG_AUTO_SYNONYMS not to enable auto multi-word synonyms
5159   too (but in a different way to trunk so as to not break the ABI).
5161 matcher:
5163 * Fix issue with running AND, OR and XOR queries against a database with no
5164   documents in it - this was leading to a divide by zero, which led to
5165   MSet::get_matches_estimated() reporting 2147483648 on i386.
5167 build system:
5169 * Remove configure's --with-stlport and --with-stlport-compiler options, as
5170   they don't allow you to actually specify what you need to (at least to use
5171   the Debian STLport package), and instead document what to pass to configure
5172   to enable building with STLport (though it seems to no longer be actively
5173   maintained, and the debug mode (which is probably the most interesting
5174   feature now) doesn't seem to work on Debian stable).
5176 documentation:
5178 * Document that OP_ELITE_SET with non-term subqueries might pick subqueries
5179   which don't match anything.  Closes ticket#49.
5181 * Document that you can define a static operator delete method in your subclass
5182   if deallocation needs to be handled specially.  (Closes ticket#554)
5184 * Assorted minor documentation improvements.
5186 portability:
5188 * Address new warnings from GCC 4.6.
5190 * Fix argument order when linking xapian-check to fix mingw build.
5191   (ticket#567)
5193 * Add some missing explicit header includes to fix build with STLport.
5195 Xapian-core 1.2.8 (2011-12-13):
5197 API:
5199 * Add support to TermGenerator and QueryParser for indexing and searching CJK
5200   text using n-grams.  Currently this is only enabled when the environmental
5201   variable XAPIAN_CJK_NGRAM is set to a non-empty value.
5203 documentation:
5205 * Add link from index page to apidoc.pdf.
5207 * quickstart.html: Correct link which was to quickstartsearch.cc.html but
5208   should be to quickstartindex.cc.html.
5210 * overview.html,quickstart.html: Fix several factual errors.
5212 * API documentation:
5214   + Improve documentation comments for several methods.
5216   + Add documentation for function parameters which didn't have it.
5218   + Remove bogus paragraph in WritableDatabase::replace_document()
5219     documentation comment which had been cut and pasted from delete_document()
5220     documentation comment.  (Fixes ticket#579)
5222   + Explicitly document which value slot numbers are valid.  (Fixes ticket#555)
5224   + Escape < and > in doxygen comments so "<foo>" doesn't get eaten by doxygen.
5226 portability:
5228 + Some fixes for warnings when cross-compiling to mingw.
5230 * tests/soaktest/soaktest.cc: With Sun's compiler, random() and srandom()
5231   aren't in <cstdlib> so we need to use <stdlib.h> instead.
5233 Xapian-core 1.2.7 (2011-08-10):
5235 API:
5237 * Document objects now track whether any document positions have been modified
5238   so that replacing a modified document can completely skip considering
5239   updating positions if none have changed.  Currently the flint, chert, and
5240   brass backends implement this optimisation.  A common case this speeds up is
5241   adding and/or removing boolean filter terms to/from existing documents - for
5242   example this gives an 18% speedup for adding tags in notmuch.
5244 testsuite:
5246 * Make sure that perftest isn't run with libeatmydata preloaded, as making
5247   fsync() a no-op makes performance tests rather bogus.
5249 remote backend:
5251 * Remove unnecessary call to reopen() in the remote servers in a case where
5252   either we had just called it or we are using a writable database and so
5253   reopen() doesn't do anything.
5255 build system:
5257 * configure: -Wshadow gives bogus warnings with 4.0 (at least on Mac OS X), so
5258   disable it for GCC < 4.1 (like the comments already said we did!)
5260 documentation:
5262 * Improve the documentation comment for Database::close().  (ticket#504)
5264 * Fix typo in documentation comment for Enquire constructor which reversed the
5265   intended sense (though the text was fairly obviously wrong before).
5267 * Improve documentation of QueryParser::add_boolean_prefix()'s exclusive
5268   parameter to talk about terms and prefixes rather than values and fields
5269   (which was confusing since "document value" has a particular meaning in
5270   Xapian).
5272 * docs/facets.html: Expand descriptions for indexing and finding facets.
5273   Fix errors in example code.
5275 * docs/index.html: Add links to Omega and bindings documentation.
5277 * docs/remote_protocol.html: Fixed typo which reversed the intended sense.
5279 * xapian-check --help: Document that checking a whole database performs
5280   additional cross-checks between the tables.
5282 * docs/admin_notes.html: Add note about xapian-chert-update.
5284 * docs/deprecation.html: Note here that WritableDatabase::flush() is
5285   deprecated in favour of WritableDatabase::commit().
5287 portability:
5289 * Fix -Wshadow warnings from GCC 4.6.
5291 * Fix warning from GCC 3.3.
5293 debug code:
5295 * Fix some problems with the templates used to implement output of parameters
5296   and return values in debug logging.
5298 Xapian-core 1.2.6 (2011-06-12):
5300 API:
5302 * QueryParser:
5304   + Add new set_max_wildcard_expansion() method to allow limiting the number of
5305     terms a wildcard can expand to.  (ticket#350)
5307   + If default_op is OP_NEAR or OP_PHRASE then disable stemming of the terms,
5308     since we don't index positional information for stemmed terms by default.
5310 * Spelling correction was failing to correctly handle words which had the same
5311   trigram in an even number of times.
5313 testsuite:
5315 * We now actually include the soaktest code in the release tarballs.
5317 matcher:
5319 * Eliminate some vector copies when handling phrase subqueries in the query
5320   optimiser.
5322 brass backend:
5324 * Kill the child process which holds the lock with SIGKILL as that can't be
5325   ignored, whereas SIGHUP can be in some cases.
5327 chert backend:
5329 * Kill the child process which holds the lock with SIGKILL as that can't be
5330   ignored, whereas SIGHUP can be in some cases.
5332 flint backend:
5334 * Kill the child process which holds the lock with SIGKILL as that can't be
5335   ignored, whereas SIGHUP can be in some cases.
5337 documentation:
5339 * The HTML documentation is now maintained in reStructured Text format.
5341 * docs/queryparser.html: Document the precedence order of operators.
5343 * docs/scalability.html: Bring up-to-date.
5345 * docs/overview.html: Document "remote" in stub databases.
5347 * docs/postingsource.html: Add PostingSource example.  (ticket#503)
5349 * include/xapian/database.h: Add @exception InvalidArgumentError for
5350   Database::get_document() (ticket#542).
5352 * Ship ChangeLog.0 in the tarball.
5354 * Assorted minor improvements.
5356 examples:
5358 * examples/delve: Report has_positions().
5360 * examples/simpleindex: Add short description to usage message.
5362 portability:
5364 * Fix to build for mingw.
5366 Xapian-core 1.2.5 (2011-04-04):
5368 API:
5370 * Enquire::get_eset() now accepts a min_wt argument to allow the minimum wanted
5371   weight to be specified.  Default is 0, which gives the previous behaviour.
5373 * QueryParser: Handle NEAR/<offset> and ADJ/<offset> where offset isn't an
5374   integer the same way at the end of the query as in the middle.
5376 * Replication:
5378   + Only keep $XAPIAN_MAX_CHANGESETS changeset files when generating a new one
5379     (previously this variable only controlled if we generated changesets or
5380     not).  Closes ticket#278.
5382   + $XAPIAN_MAX_CHANGESETS is reread each time, rather than only when the
5383     database is opened.
5385   + If you build Xapian with DANGEROUS mode enabled, changeset files now
5386     actually have the appropriate flag set (the reader will currently throw an
5387     exception, but that's better than quietly handling them incorrectly).
5389 testsuite:
5391 * Compaction tests which generate stub files now close them before performing
5392   the actual compaction, to avoid issues on Microsoft Windows (ticket#525).
5394 * Improve test coverage.
5396 matcher:
5398 * Fix memory leak if an exception is thrown during the match.
5400 brass backend:
5402 * Bumped format version number (we now store the oldest revision for which we
5403   might have a replication changeset).
5405 * Optimise not to read the bitmaps from the base files when opening a database
5406   for reading (cross-port of equivalent change to chert).
5408 * Optimise not to update doclength when it hasn't changed (cross-port of
5409   equivalent change to chert).
5411 * If we try to delete an old base file and it isn't there, just continue rather
5412   than throwing an exception.  We wanted to get rid of it anyway, and it may be
5413   NFS issues telling us the wrong thing.  In particular, DatabaseCorruptError
5414   was rather a pessimistic assessment.
5416 chert backend:
5418 * Optimise not to read the bitmaps from the base files when opening a database
5419   for reading.
5421 * Optimise not to update doclength when it hasn't changed.
5423 * xapian-chert-update: Fix to handle larger databases, and databases which
5424   have values set.
5426 * If we try to delete an old base file and it isn't there, just continue rather
5427   than throwing an exception.  We wanted to get rid of it anyway, and it may be
5428   NFS issues telling us the wrong thing.  In particular, DatabaseCorruptError
5429   was rather a pessimistic assessment.
5431 flint backend:
5433 * Optimise not to read the bitmaps from the base files when opening a database
5434   for reading (cross-port of equivalent change to chert).
5436 * Optimise not to update doclength when it hasn't changed (cross-port of
5437   equivalent change to chert).
5439 * If we try to delete an old base file and it isn't there, just continue rather
5440   than throwing an exception.  We wanted to get rid of it anyway, and it may be
5441   NFS issues telling us the wrong thing.  In particular, DatabaseCorruptError
5442   was rather a pessimistic assessment.
5444 remote backend:
5446 * xapian-tcpsrv: If we can't bind to the specified port because it is a
5447   privileged one, exit with code 77 (EX_NOPERM) to make it easier to
5448   automatically handle failure when starting the server from a script.
5450 build system:
5452 * Snapshots and releases are now bootstrapped with autoconf 2.68 and libtool
5453   2.4.
5455 * configure: -Wstrict-null-sentinel was added in GCC 4.0.1 and so doesn't work
5456   with GCC 4.0.0.  For simplicity, only enable it for GCC >= 4.1.
5458 documentation:
5460 * INSTALL: Note how to build for a non-default arch on a multi-arch platform.
5462 * include/xapian/enquire.h: Fix doxygen markup so alternative overloaded forms
5463   of Enquire::get_mset() appear in the API documentation.
5465 * collapsing.html: Add missing document (written some time ago, but never
5466   actually added to builds).
5468 * replication.html: Update documentation to make it clear that users shouldn't
5469   create the destination directory for replication themselves.
5471 * docs/intro_ir.html: Update link to a paper.  Update text about book "to be
5472   published in 2008".
5474 * docs/deprecation.html:
5476   + PostingSource now offers a replacement for Enquire::set_bias().
5478   + OmegaScript: $set{spelling,true} is now deprecated.
5480   + Add note about botched removal of Enquire.get_matching_terms from Python
5481     bindings (now fully removed).
5483   + Note removal of "if idx in mset" from Python bindings.
5485   + Deprecate MSet.items and ESet.items from Python bindings (ticket#531).
5487 * docs/admin_notes.html: Update for 1.2.5.
5489 * Updates to documentation of internals.
5491 tools:
5493 * xapian-replicate-server: Fix race condition between checking if a file
5494   exists and opening it to replicate it.
5496 * xapian-replicate: Complain unless host name and port number are specified -
5497   previously these defaulted to an empty string and 0, which resulted in
5498   potentially confusing error messages.
5500 * xapian-replicate: If --master isn't specified, default to DATABASE.
5502 examples:
5504 * quest: Report any spelling correction (requires the database contains
5505   spelling data of course).
5507 * copydatabase: Add --no-renumber option.
5509 portability:
5511 * api/compactor.cc: Add missing header <ctime> for time() (ticket#530).
5513 * api/compactor.cc: Use msvc_posix_rename() under __WIN32__ to atomically
5514   update stub file after compaction (ticket#525).
5516 * Fix uninitialised variable warnings with gcc -O3.
5518 * Eliminate std::string member of global static object used when compiled with
5519   --enable-log which was causes problems on Mac OS X.
5521 * Fix some issues highlighted by clang++ warnings.
5523 Xapian-core 1.2.4 (2010-12-19):
5525 API:
5527 * QueryParser:
5529   + Avoid a double free if Query construction throws an exception in a
5530     particular case.  Fixes ticket#515.
5532   + Allow phrase generators between a probabilistic prefix and the term itself
5533     (e.g. path:/usr/local).
5535   + The correct window size wasn't being set in some cases when default_op was
5536     set to OP_PHRASE.
5538 * Enquire::get_mset():
5540   + Avoid pointlessly trying to allocate lots of memory if the first document
5541     requested is larger than the size of the database.
5543   + An empty query now returns an MSet with firstitem set correctly -
5544     previously firstitem was always 0 in this case.
5546 * Document: Initialise docid to 0 when creating a document from
5547   scratch, as documented.
5549 * Compactor:
5551   + Move the database compaction and merging functionality into this new class,
5552     and make xapian-compact a simple wrapper around this class.  (ticket#175)
5554   + Inputs can now be stub database directories or files, in which case the
5555     databases in the stub are used as inputs.
5557   + Add support for compacting to a stub database, which can be one of the
5558     inputs (for atomic update).
5560   + If spellings and/or synonyms were only present in some source databases,
5561     they weren't copied to the output database, but now they are.
5563 testsuite:
5565 * Improve test coverage (particularly for Xapian::Utf8Iterator and
5566   Xapian::Stem).
5568 * Add zlib-vg.c to distribution tarballs.
5570 * tests/runtest: Add XAPIAN_TESTSUITE_LD_PRELOAD hook to allow libeatmydata to
5571   easily be used to speed up testsuite runs.
5573 matcher:
5575 * The matcher wasn't recalculating the max possible weight after a subquery of
5576   XOR reached its end.  This caused an assertion failure in debug builds, and
5577   is a missed optimisation opportunity.
5579 * Implement SelectPostList::check() so that check() on OP_NEAR and OP_PHRASE
5580   subqueries will just check a single document, not a potentially huge numbers
5581   of documents.
5583 * BM25Weight: Fix calculation order to avoid inconsistent weights due to
5584   rounding when certain non-default parameter combinations are used.
5586 * TradWeight: Fix calculation order to avoid inconsistent weights due to
5587   rounding with TradWeight(0).
5589 * Fix regression in speed of OP_OR queries in certain cases due to optimisation
5590   added in 1.0.21/1.2.1.
5592 * In the query optimiser, use value range bounds to detect value ranges which
5593   must be empty.
5595 remote backend:
5597 * Add support for iterating metadata keys with the remote backend.  This change
5598   necessitated an increase in the minor version of the remote protocol.  If you
5599   are upgrading a live system which uses the remote backend, upgrade the
5600   servers before the clients.
5602 build system:
5604 * xapian-config: Add --static option which makes other options report values
5605   for static linking.
5607 * xapian-config is now removed by "make distclean" not "make clean".
5609 * configure: FreeBSD and OpenBSD don't need explicit dependency libraries, so
5610   set link_all_deplibs_CXX=no there.
5612 * This release uses autoconf 2.67 rather than 2.65.
5614 documentation:
5616 * INSTALL: Raise recommended GCC version from 3.3 to 4.1, since that's the
5617   oldest we regularly test with.
5619 * replication.html: Update and improve in various ways.
5621 * Remove lingering "experimental" marker from PostingSource and
5622   ValueCountMatchSpy API documentation.
5624 * index.html: Add links to replication and facets documents, and fix typo in
5625   serialisation document link.
5627 * internals.html: Add link to replication protocol.
5629 * Change the categorisation document to talk about facets, since that's the
5630   terminology that seems to be most widely used these days, and
5631   "categorisation" can also mean automatically assigning categories to
5632   documents.  Also update to reflect the final API.
5634 * deprecation.html: Add guidelines for supporting other software.
5636 * Document cases where QueryParser's FLAG_WILDCARD and FLAG_PARTIAL aren't
5637   currently supported.
5639 * PLATFORMS: Move PLATFORMS information to the wiki and replace with a pointer.
5641 tools:
5643 * xapian-compact: Fix access to empty priority_queue while merging synonyms.
5644   This could have caused problems, though we've had no reports of any (the
5645   bug was found with _GLIBCXX_DEBUG).
5647 * xapian-compact: Add --quiet/-q option to suppress progress output.
5648   (ticket#437)
5650 * xapian-replicate: If a full copy was attempted, but was not put live, display
5651   an explanatory message (in verbose mode).
5653 examples:
5655 * examples/quest: Add command line options to allow prefixes to be specified
5656   for the QueryParser.
5658 * examples/delve: Add '-z' option to count zero-length documents.
5660 * examples/simplesearch: Fix cut-and-paste errors in usage message and
5661   --version output.
5663 portability:
5665 * configure: Add support for --enable-sse=sse and --enable-sse=sse2 to allow
5666   control of which SSE instructions to use.
5668 * configure: Enable use of SSE maths on x86 by default with Sun's compiler.
5670 * configure: Beef up the test for whether -lm is required and add a special
5671   case to force it to be for Sun's C++ compiler - there's some interaction with
5672   libtool and/or shared objects which means that the previous configure test
5673   didn't think -lm is needed here when it is.
5675 * Fix to build on OpenBSD 4.5 with GCC 3.3.5.
5677 * Need to avoid excess precision on m68k when targeting models 68010, 68020,
5678   68030 as well as 68000.
5680 * Fix compilation with Sun's C++ compiler.
5682 * Fix testsuite to build on Solaris < 10.
5684 Xapian-core 1.2.3 (2010-08-24):
5686 API:
5688 * Database::get_spelling_suggestion() will now suggest a correction even if the
5689   passed word is in the dictionary, provided the correction has at least the
5690   same frequency.  Partly addresses #225.
5692 * QueryParser:
5694   + Fix handling of groups of terms which are all stopwords - in situations
5695     where this causes a problem we now disable stopword checks for such groups.
5696     (ticket#245)
5698   + Fix to be smarter about handling a boolean filter term containing ".." in
5699     the presence of valuerangeprocessors.
5701 testsuite:
5703 * New "unittest" program for testing low level functions directly.  Currently
5704   this has tests for the internal resolve_relative_path() function.
5705   (ticket#243)
5707 remote backend:
5709 * Retry select() if it fails with EINTR while waiting for connect(), and
5710   discriminate cases with same failure message to aid debugging.
5712 documentation:
5714 * Fix documentation comment for Xapian::timeout type - it holds a time interval
5715   in milliseconds not microseconds (the API docs for the methods which use it
5716   explicitly correctly document that the timeouts are in milliseconds).
5718 * libuuid moved from e2fsprogs to util-linux-ng about a year ago, so update
5719   documentation, comments, and configure error messages to reflect this.
5721 portability:
5723 * configure: Don't pass -mtune=generic unless GCC >= 4.2 is in use
5724   (ticket#492).
5726 * Fix handling of some obscure cases of resolving relative paths on Microsoft
5727   Windows.  (ticket#243).
5729 * Optimise closing of all unwanted file descriptors after forking by using
5730   closefrom() if available, and otherwise providing our own implementation
5731   (optimised to some extent for many platforms).
5733 * Fix test harness to build under Microsoft Windows (ticket#495).
5735 packaging:
5737 * xapian-core.spec: Add xapian-metadata and cmake related files to RPM
5738   packaging.
5740 * xapian-core.spec: Update BuildRequires to specify libuuid-devel instead of
5741   e2fsprogs-devel.
5743 debug code:
5745 * Improve logging of function parameter placeholder strings.
5747 Xapian-core 1.2.2 (2010-06-27):
5749 brass backend:
5751 * Sync changes from each Btree table to disk right after syncing changes to
5752   its base file, which allows more time for the table changes to be written
5753   and may also be more efficient with some Linux kernel versions.
5755 chert backend:
5757 * Sync changes from each Btree table to disk right after syncing changes to
5758   its base file, which allows more time for the table changes to be written
5759   and may also be more efficient with some Linux kernel versions.
5761 tools:
5763 * xapian-check: Don't try to check document lengths are consistent between the
5764   postlist and termlist tables if it would use more than 1GB of memory, and
5765   handle std::bad_alloc or std::length_error when trying to allocate space
5766   for this.  This issue affected sup users, as sup allocates docids such that
5767   they are sparse and large docids can easily occur.
5769 examples:
5771 * delve: Show the database's UUID.
5773 portability:
5775 * Revert 1.2.1 change to visibility of Xapian::Weight's copy constructor as
5776   it making it private broke compilation with GCC 4.1 (which seems to be a
5777   bug in this compiler version).
5779 * tests/harness/testsuite.cc: Need <cstdio> for sprintf().  Fixes compilation
5780   error which was masked if valgrind was installed.  (ticket#489)
5782 packaging:
5784 * xapian-core.spec: Update for 1.2.x - add e2fsprogs-devel to BuildRequires and
5785   add new files to install.
5787 Xapian-core 1.2.1 (2010-06-22):
5789 This release includes all changes from 1.0.21 which are relevant.
5791 API:
5793 * QueryParser: Add support for open-ended ranges (ticket#480).
5795 * Add new optional parameter to QueryParser::add_boolean_prefix() to allow the
5796   user to indicate a prefix isn't "exclusive" and that multiple instances
5797   should be combined with OP_AND rather than OP_OR.  Fixes ticket#402.  This
5798   change should also improve efficiency as it avoids copying the lists of
5799   prefixes and compares them more efficiently.
5801 * You can now specify a custom stemming algorithm by subclassing
5802   Xapian::StemImplementation, mostly based on patch from Evgeny Sizikov in
5803   ticket#448.
5805 * Fix replication bug: when multiple commits were made to the master database
5806   while a client was performing a full copy, the client would only apply the
5807   first changeset and then try to make the database live, but fail due to
5808   trying to set the wrong revision number.
5810 * Replication no longer sleeps between applying changesets to an offline
5811   database.  It's only necessary to sleep for a live database (to allow readers
5812   to complete a search without getting DatabaseModifiedErrror.
5814 * xapian-replicate: Add new "-r" command line option to specify how long
5815   replication sleeps for between applying changesets to a live database.
5817 * If a Btree table doesn't exist when applying a replication changeset, create
5818   it.  This fixes replicating a revision where a lazy table is created.
5819   (ticket#468)
5821 testsuite:
5823 * zlib can produce "uninitialised" output from "initialised" input - the
5824   output does decode to the input, so this is presumably just some unused bits
5825   in the output, so we use an LD_PRELOAD hack to get valgrind to check the
5826   input is initialised and then tell it that the output is initialised.
5828 * Don't pass NULL to closedir(), which fixes test harness failures on platforms
5829   without /proc/self/fd.
5831 * Use safesyswait.h, fixing build failure on "make check" on FreeBSD.
5833 * Check is SA_SIGINFO is defined before using it as it isn't available
5834   everywhere.  Fixes testsuite build failure on GNU Hurd.
5836 * Add a "soaktest" testsuite, intended to contain long-running tests with
5837   random data.  Currently contains a single test which builds and runs random
5838   queries, checking that the results returned are consistent when asking for
5839   different result ranges.
5841 * Test UUID returned by Database::get_uuid() is 36 characters long.
5843 matcher:
5845 * Xapian no longer forces the wdf_max value to be at least one in
5846   BM25Weight::get_maxpart().  We used to do this so that a non-existent term in
5847   the query would cause it not to achieve 100%, but now we calculate
5848   percentages based on the number of matching subqueries, and it is more
5849   natural for a non-existent term to get zero weight (ditto for a term which
5850   always has wdf 0).
5852 * OP_VALUE_RANGE and OP_VALUE_GE now use value streams directly which is much
5853   more efficient for chert (the default backend in 2.2.x).  As an example, a
5854   range query testcase which previously took 29 seconds now takes 0.4 seconds
5855   (70 times faster).  (ticket#432)
5857 * The term statistics from multiple databases are now gathered in a simpler
5858   way which is a bit faster and uses less memory.
5860 build system:
5862 * Install headers under PREFIX/include not PREFIX/include/xapian.  If you used
5863   XO_LIB_XAPIAN or xapian-config in your build system, the headers would still
5864   have been found.
5866 * Releases and snapshots are now generated with libtool 2.2.10 instead of
5867   2.2.6.
5869 * Fix build failures with some combinations of backends disabled (partially
5870   addresses ticket#361 - some combinations still fail).
5872 * Add check to configure that GCC actually supports visibility for the platform
5873   being built for, which fixes compiler warnings with platforms which don't
5874   (such as Mac OS X and mingw).
5876 documentation:
5878 * Update documentation - replication and PostingSource aren't experimental in
5879   1.2.x.
5881 portability:
5883 * Make use of built-in UUID API on FreeBSD and NetBSD.  (ticket#470)
5885 * Fix mingw build.
5887 debug code:
5889 * Add new pretty printer for values reported by calls and returns in debug
5890   logging - in particular, strings are now reported with non-printable
5891   characters escaped.
5893 * Debug logging should have less runtime overhead when built in but not in use.
5895 * Drop support for --enable-log=profile - dedicated profiling tools are likely
5896   to return more useful results.
5898 Xapian-core 1.2.0 (2010-04-28):
5900 This release includes all changes from 1.0.20 which are relevant.
5902 testsuite:
5904 * Fix --abort-on-error to actually work.
5906 * Exit with status 1 not 0 if we caught an exception from the harness itself.
5908 Xapian-core 1.1.5 (2010-04-16):
5910 This release includes all changes from 1.0.19 which are relevant.
5912 API:
5914 * Database replication now handles an exception while applying a changeset
5915   better.
5917 * If environment variable XAPIAN_MAX_CHANGESETS is set on a replication client
5918   then any changesets read are saved so the replicated copy can itself be
5919   replicated.
5921 testsuite:
5923 * Use sigsetjmp() and siglongjmp() where available so that the set of blocked
5924   signals get restored and the test harness can catch a second incidence of a
5925   particular signal in a run.  Use sigaction() instead of signal() where
5926   available, which allows us to report the address associated with SIGSEGV,
5927   SIGFPE, SIGILL, and SIGBUS.
5929 * Add machinery to check for leaked file descriptors.  Currently this requires
5930   /proc/self/fd to work (which is present on Linux and some other platforms).
5931   Remove the crude ulimit in runtest which has caused problems on some Debian
5932   buildds.
5934 * The test harness now explicitly catches const char * exceptions and reports
5935   their contents.
5937 brass backend:
5939 * Ensure that the wdf upper bound is correctly updated when replacing
5940   documents.
5942 * xapian-compact: Now sets lastdocid correctly when using --no-renumber.
5944 chert backend:
5946 * Ensure that the wdf upper bound is correctly updated when replacing
5947   documents.
5949 * xapian-compact: Now sets lastdocid correctly when using --no-renumber.
5951 * xapian-check: Check that the initial doclen chunk exists.
5953 flint backend:
5955 * xapian-compact: Now sets lastdocid correctly when using --no-renumber.
5957 remote backend:
5959 * Add remote backend support for WritableDatabase::add_spelling() and
5960   WritableDatabase::remove_spelling().  This bumps the remote protocol to
5961   version 35.0 (so both client and servers will need updating).  Suggesting
5962   spelling corrections isn't yet supported.  (ticket#178)
5964 build system:
5966 * XO_LIB_XAPIAN: Give a more specific error message for the cases where
5967   XAPIAN_CONFIG isn't found, is a directory, or isn't executable.
5969 examples:
5971 * delve:
5973   + If any documents are specified with "-d<docid>", "-V<slot>" now only show
5974     values for those documents.
5976   + Remove undocumented -k option, which has been a compatibility alias for -V
5977     since 0.9.10.  Just use -V instead.
5979 * xapian-metadata: Add new example program which allows you to get and set
5980   individual user metadata entries.
5982 Xapian-core 1.1.4 (2010-02-15):
5984 This release includes all changes from 1.0.18 which are relevant.
5986 API:
5988 * Xapian::TermGenerator,Xapian::QueryParser,Xapian::Unicode::is_wordchar():
5989   Add ENCLOSING_MARK and COMBINING_SPACING_MARK categories to is_wordchar(),
5990   which is used by TermGenerator and QueryParser.  Also make TermGenerator and
5991   QueryParser ignore several zero-width space characters.  This is a better
5992   but less compatible version of a fix in 1.0.18.
5994 * Implement support for iterating valuestreams for multidatabases.
5996 * Xapian::Stem: Update the german and german2 stemming algorithms to the latest
5997   versions from Snowball.  These add an extra rule for the "-nisse" ending.
5999 * Xapian::ValueCountMatchSpy: Replace get_values() with values_begin() and
6000   values_end().
6002 * Xapian::MatchSpy: Provide an iterator for accessing the top values found
6003   instead of taking a vector by reference to return them in.
6005 * Xapian::NumericRanges: Remove experimental API we aren't happy with yet.
6007 * Xapian::DatabaseReplica, Xapian::DatabaseMaster: Remove experimental
6008   API we aren't happy with.  Replication is still supported via the
6009   command line programs.  (ticket#347)
6011 * Xapian::score_evenness(): Remove as it turns out not to be useful in practice.
6012   (ticket#435)
6014 * Xapian::ValueWeightPostingSource: A ValueWeightPostingSource with no entries
6015   would report -infinity as its upper bound, which could cause no results to be
6016   incorrectly returned for some queries involving such an object.
6018 * Xapian::WritableDatabase::close() fixed to commit() changes (unless a
6019   transaction is in progress).
6021 testsuite:
6023 * apitest: Improve test coverage in various places.
6025 matcher:
6027 * Uses of values during the match (sorting by value or Sorter, MatchSpy,
6028   MatchDecider, and collapsing) now use value stream iteration which is
6029   a lot more efficient for chert and brass (but may be slower for flint).
6031 brass backend:
6033 * New development backend.  Changes over chert:
6035   + Batched posting list changes during indexing use significantly less memory.
6037   + Instead of using complex code to iterate modified posting lists and
6038     documents length lists, brass can flush individual such lists to disk
6039     and then iterates them from there.
6041   + To iterate all terms, chert flushes all pending postlist changes.  In the
6042     case where a prefix is specified, brass only flushes postlist changes for
6043     terms starting with the specified prefix, and doesn't flush document length
6044     changes.
6046 chert backend:
6048 * Promote chert to being the stable backend.
6050 * Change the packing of integers and strings into sortable keys, which reduces
6051   database size by 2.5% in tests.  This means an incompatible change in the
6052   chert format.  You can use the new xapian-chert-update utility to update a
6053   chert database from the old format to the new format.  It works much like
6054   xapian-compact so should take a similar amount of time (and results in a
6055   compact database).
6057 * xapian-compact:
6059   + Prune unused docids off the end of each database when merging multiple
6060     databases with renumbering.
6062   + Extend --no-renumber to support merging databases, but only if they have
6063     disjoint ranges of used document ids.
6065   + Ensure that the resultant database has a fresh UUID (previously chert
6066     copied the UUID from the first input).
6068 * xapian-check:
6070   + Fix checking of the METAINFO key in chert.  For small databases, the
6071     statistics fit in few enough bytes that incorrect check appeared to
6072     succeed and no errors were reported, but for larger databases an
6073     error was incorrectly reported.
6075   + Rework the checking of postlist chunks to use a cleaner approach which
6076     should report errors better.
6078   + Use a type wider than 32 bits to keep count of items in a table.
6079     Previously xapian-check would report the number of entries modulo
6080     4294967296.
6082 * When iterating a value stream, skip_to() now only assigns the value to a
6083   std::string when it reaches its target.  This saves a lot of unnecessary
6084   string copying - in a real-world test it improved the time for 100 queries
6085   from 3.66s to 3.10s.
6087 * When skipping through a chunk of postings to find the one we want, don't
6088   bother to unpack the wdf values we're skipping over.  This should save a
6089   significant amount of time in certain cases where the profile data shows
6090   about a third of the time is spent in the function where this happens.
6092 * Report locking failure due to running out of file descriptors better.
6094 flint backend:
6096 * xapian-compact:
6098   + Prune unused docids off the end of each database when merging multiple
6099     databases with renumbering.
6101   + Ensure that the resultant database has a fresh UUID (previously flint
6102     didn't set a UUID so one would be generated on demand when next requested,
6103     but only if the database was writable).
6105 * Report locking failure due to running out of file descriptors better.
6107 remote backend:
6109 * Add support for WritableDatabase::set_metadata() and Database::get_metadata()
6110   to the remote backend (based largely on patch in #178).
6112 inmemory backend:
6114 * Read the document data and values lazily for the inmemory backend like we do
6115   for other backends.  They're much less costly to fetch than if a disk or
6116   network access is involved, but it avoids copying potentially large data
6117   which may not be needed.  Consistency here also makes things easier to
6118   understand for both users and developers.
6120 build system:
6122 * This release uses autoconf 2.65 rather than 2.64.
6124 documentation:
6126 * docs/replication.html: Add note about not using reopen() with databases being
6127   updated by the replication client.
6129 * docs/admin_notes.html: Update for chert and other recent changes.
6131 * Remove out-of-date reference in the API documentation comment to an
6132   add_slot() method.  This no longer exists - you need to use multiple
6133   ValueCountMatchSpy objects to monitor more than one slot.
6135 examples:
6137 * simpleexpand,simpleindex,simplesearch: Handle --help and --version.
6139 debug code:
6141 * The debug log now reports boolean values as "true" and "false" (instead of
6142   "1" and "0").
6144 Xapian-core 1.1.3 (2009-09-18):
6146 This release includes all changes from 1.0.15-1.0.17 which are relevant.
6148 API:
6150 * Update Unicode character database to Unicode 5.2.  (ticket#351)
6152 * Rename Xapian::Sorter to Xapian::KeyMaker, paving the way for using it to
6153   build collapse keys too.  Xapian::Sorter remains for compatibility (and is
6154   now a subclass of Xapian::KeyMaker) but is deprecated.
6156 * Resolve the inconsistency in MultiValueSorter::add()'s "forward" parameter
6157   versus the "reverse" parameters which the Enquire sorting functions now take
6158   by replacing the class with MultiKeyMaker with a renamed method add_value()
6159   with a "reverse" parameter.  MultiValueSorter remains with the old semantics
6160   for compatibility but is deprecated.  (ticket#359)
6162 * QueryParser: Don't apply spelling correction to wildcarded terms, or to terms
6163   at the end of the query which we expand under FLAG_PARTIAL.
6165 * Add new Error subclass SerialisationError which we throw for serialisation
6166   related errors (which previously mostly threw NetworkError.
6168 * Rename Xapian::SerialisationContext to Xapian::Registry.
6170 * Add DecreasingValueWeightPostingSource class, which reads weights from a
6171   value slot in which a significant range of the values are in decreasing
6172   order.  This functions similarly to ValueWeightPostingSource, but can be much
6173   more efficient.
6175 * Add new Xapian::MatchSpy class:
6177   + This replaces the use of Xapian::MatchDecider as a "matchspy", which is now
6178     deprecated.  The new class only inspects, and can't reject.  It can work
6179     with remote databases, with the results being serialised to return them
6180     across the link.
6182   + Add subclass ValueCountMatchSpy, which counts the occurrences of each value
6183     in a slot in the search results seen (useful for faceted or categorisation
6184     systems).  The results can be grouped into ranges using the NumericRange
6185     and NumericRanges classes, and the score_evenness() function.  This API is
6186     currently experimental.
6188 * Remove default implementation of Weight::clone() which returns NULL.  We
6189   always need clone() to be implemented because it's called for every term
6190   in the query, not just used for the remote backend.
6192 chert backend:
6194 * Rewrite the low level packing and unpacking functions more efficiently.  As
6195   well as being generally faster, the pack functions now take a reference to a
6196   string to append to, which avoids creating a lot of temporary string objects.
6197   Indexing HTML files with omindex is 5-10% faster.  Searching for "The" on
6198   gmane (which results in a lot of unpacking of postings and document lengths)
6199   is about 35% faster.  (ticket#326)
6201 * xapian-compact: Don't report an absent lazy input table as 0 size.
6203 * Fix ChertModifiedPostList to skip added-but-then-deleted-before-flush
6204   documents.  (ticket#392)
6206 * Fix WritableDatabase::get_doclength() to work properly after a call to commit
6207   for the chert backend (ticket#397).
6209 * Fix to work with the metainfo key stored in the latest format of chert
6210   databases.
6212 * Avoid doing pointless work by trying to delete non-existent lists of values
6213   when we're just adding documents.
6215 * Fix code to find the first docid in the next chunk (ticket#399).
6217 * Add support for chert databases without a termlist table (ticket#181).
6218   Currently the only way to create such a database is to create a chert
6219   database and do "rm termlist.*".
6221 flint backend:
6223 * xapian-compact: Don't report an absent lazy input table as 0 size.
6225 remote backend:
6227 * Remote protocol major version has changed to support serialising MatchSpy
6228   objects.
6230 * Fixed not to sometimes read off the end of the returned matches when
6231   searching multiple databases, some of which are remote, and when the primary
6232   ordering is by relevance.
6234 build system:
6236 * This release uses autoconf 2.64 rather than 2.63.  This means configure now
6237   makes use of shell functions, which makes it ~13% smaller, and should also
6238   make it execute faster.
6240 * configure: Send stderr output from ldconfig to config.log.
6242 * Add optional third parameter to XO_LIB_XAPIAN autoconf macro which specifies
6243   the basename for the "xapian-config" script (defaults to "xapian-config" to
6244   give the current behaviour).
6246 * This release uses doxygen 1.5.9 to generate the API documentation.
6248 documentation:
6250 * Minor improvements to the formatting of the collated API documentation.
6252 portability:
6254 * Fix code to compile with Sun's C++ compiler.
6256 * Fix our uuid_unparse_lower() replacement for older libuuid to actually
6257   compile (really fixes ticket#368).
6259 * Fix xapian-config to work with Solaris 10 /bin/sh.  (ticket#405)
6261 debug code:
6263 * Use C++ syntax for NULL with a type in log output.
6265 Xapian-core 1.1.2 (2009-07-23):
6267 This release includes all changes from 1.0.14 which are relevant.
6269 API:
6271 * Move support for a prefix/suffix from NumberValueRangeProcessor to
6272   StringValueRangeProcessor, and change NumberValueRangeProcessor and
6273   DateValueRangeProcessor to inherit from StringValueRangeProcessor so all
6274   three now support a prefix/suffix.  (ticket#220)
6276 * Query: Trim 4 bytes off the internals.  (ticket#280)
6278 * QueryParser: If default_op is OP_NEAR or OP_PHRASE then make the window size
6279   (9 + no_of_terms) to match the default for an explicit NEAR or PHRASE.
6280   (ticket#254)
6282 testsuite:
6284 * Sort out the clash between two different patches to fix leaking file
6285   descriptors when running tests with the remotetcp backend (broken by
6286   changes in 1.1.1).
6288 matcher:
6290 * If the highest weighted document doesn't match all the terms in the query,
6291   its percentage weight is now calculated by simply counting how many weighted
6292   leaf subqueries match it instead of scaling by the proportion of the weight
6293   which matches (which required accessing the termlist for that document).
6294   (ticket#363).
6296 * XOR with a SYNONYM subquery could previously achieve 100% - this has been
6297   fixed.
6299 flint backend:
6301 * Backport the lazy update changes from chert to flint:
6303   WritableDatabase::replace_document() now updates the database lazily in
6304   simple cases - for example, if you just change a document's values and
6305   replace it with the same docid, then the terms and document data aren't
6306   needlessly rewritten.  Caveats: currently we only check if you've looked at
6307   the values/terms/data, not if they've actually been modified, and only keep
6308   track of the last document read.
6310 build system:
6312 * Update to always use C++ forms for ISO C standard headers (ticket#330).
6314 * Fix several places where Xapian::doccount is used instead of
6315   Xapian::termcount, and similar issues.  It's still not possible to make
6316   these types different sizes, but we're now closer to this goal.
6317   (ticket#385).
6319 documentation:
6321 * Note that PostingSource and Weight objects returned by clone() and
6322   unserialise() methods will be deallocated with "delete".
6324 debug code:
6326 * Fix debug logging not to segfault on NULL Query::Internal pointers.
6328 Xapian-core 1.1.1 (2009-06-09):
6330 This release includes all changes from 1.0.13 which are relevant.
6332 API:
6334 * New Query::OP_SYNONYM operator, which matches the same documents as OP_OR,
6335   but attempts to weight as if the all the subqueries were a single term with
6336   their combined wdf, which should give better relevance weights.
6338 * QueryParser's synonym, wildcard, and partial query features now use
6339   the new OP_SYNONYM operator.
6341 * PostingSource: Add new set_maxweight() method to allow subclasses to tell
6342   the matcher that their maximum weight has decreased.  Make get_maxweight()
6343   a non-virtual method of the baseclass which returns the last set maxweight
6344   (which will require updates to most user subclasses. (ticket#340)
6346 * DatabaseReplica: Fix SEGV when calling get_description() on a default
6347   constructed DatabaseReplica.
6349 * Make Query::MatchAll and Query::MatchNothing const since they're immutable.
6350   All the public methods of Query are const, so this should be completely API
6351   compatible.
6353 * Methods returning an end iterator for a ValueIterator now actually return a
6354   proxy object which silently converts to ValueIterator if required.  This
6355   proxy object allows a comparison with an "_end()" method to be optimised
6356   better so that it just ends up comparing the internal member of the iterator
6357   class with NULL (previously a call to ValueIterator's destructor remained).
6358   This should be API compatible, but note that it is definitely now more
6359   efficient just to compare against the return value of the relevant _end()
6360   method than to store the end iterator explicitly.
6362 testsuite:
6364 * Testcase valuestats4 requires transactions, so indicate that and remove the
6365   explicit SKIP for inmemory.
6367 * Testcase changemaxweightsource1 uses ChangeMaxweightPostingSource, which
6368   doesn't work with multi or remote, so mark the test accordingly.
6370 * We've decided that "going back" with skip_to() or check() should have
6371   unspecified behaviour, so stop testing how this case behaves!
6373 matcher:
6375 * Subclass MultiPostList directly from PostList instead of from LeafPostList.
6376   This gets rid of two unused data members per MultiPostList in exchange for
6377   having to define 5 extra "never called" methods, but 4 of these just
6378   tailcall.
6380 * Store termfreqs and reltermfreqs for query terms in a single map rather than
6381   one map for each, which saves is more compact and likely to be faster.
6383 chert backend:
6385 * xapian-check: For chert, check value stats are the correct format and that
6386   the streamed values are consistent with their stats (ticket#277).
6388 * xapian-check: Chert doesn't store termlist entries for documents without
6389   terms, which resulted in us reporting an error when we found document ids in
6390   the doclength "postlist" which were greater than any with an entry in the
6391   termlist.  Instead compare these entries against db.get_last_docid() if we
6392   are checking a whole db and the db can be opened.  If not, suppress this
6393   check.
6395 remote backend:
6397 * When serialising stats, serialise the termfreq and reltermfreq together,
6398   rather than in separate lists.  This gives a smaller serialised form, and
6399   matches these both being stored in the same map now.  This is an incompatible
6400   remote protocol change, so bump the major version to 32.  (ticket#362)
6402 build system:
6404 * Some build failures with --disable-backend-XXX options have been fixed, but
6405   we haven't exhaustively tested all combinations.
6407 * Ship common/win32_uuid.cc and common/win32_uuid.h (ticket#367).
6409 documentation:
6411 * Update PostingSource documentation to describe how init() is called again if
6412   a PostingSource is reused.  Fixes #352.
6414 portability:
6416 * Fixed to build with GCC 4.4.
6418 * Drop support for GCC 2.95.3 and 3.0.x - we now require at least 3.1 as doing
6419   so eliminates some preprocessor conditionals which we aren't able to test
6420   regularly as we don't have easy access to such old GCC versions.  GCC 3.1 is
6421   nearly 7 years old now, and GCC3 didn't get widespread use until later
6422   versions anyway.  If you still need to use GCC < 3.1, Xapian 1.0.x should
6423   build with 2.95.3 or newer.
6425 * Older versions of libuuid don't have uuid_unparse_lower() so probe for it in
6426   configure, and if it isn't present provide an inline version in safeuuid.h
6427   (ticket#368).
6429 * Fixed to build with MSVC (ticket#379).
6431 * Add static_cast<char>() to str(bool) overload to suppress bogus MSVC warning
6432   (ticket#377).
6434 debug code:
6436 * common/debuglog.h: Add missing initialisation of uncaught_exception variable
6437   in a couple of places.
6439 Xapian-core 1.1.0 (2009-04-22):
6441 API:
6443 * All deprecated xapian-core features listed for removal in 1.1.0 have been
6444   removed.  See deprecation.html for details, and suggested updates.
6446 * The Unicode character categorisation functions have been updated from
6447   Unicode 5.0 to 5.1.
6449 * Add NON_SPACING_MARK to is_wordchar() for better tokenisation of languages
6450   which use such marks - for example, Arabic.  This is better than the stop-gap
6451   fix in 1.0 of treating NON_SPACING_MARK as a phrase-generator character
6452   when parsing queries, but it does mean that databases built from data
6453   containing such characters will need to be rebuilt.  (ticket#355)
6455 * The details of how to subclass Xapian::Weight to implement your own
6456   weighting scheme have changed incompatibly to allow user weighting schemes
6457   to have access to the same statistics as built-in schemes (ticket#213)
6458   If you have a existing subclass of Xapian::Weight you'll need to update it.
6460 * New Database methods get_doclength_upper_bound(), get_doclength_lower_bound()
6461   and get_wdf_upper_bound(), primarily intended for allowing weighting schemes
6462   to calculate tighter upper bounds on weights (which BM25Weight and TradWeight
6463   now do) which allows matcher weight-based optimisations to be more effective.
6464   Chert actually tracks doclength bounds and a global (rather than per term)
6465   upper bound on wdf; other backends return much less tight bounds, but these
6466   still lead to better upper bounds on weights.
6468 * Enquire::get_eset() now uses an unmodified of probabilistic formula, and
6469   doesn't return terms which would get a negative weight from it (since that
6470   means they are expected to be harmful not helpful).
6472 * Add Database::close() method, which will release system resources (in
6473   particular, close filehandles) held by a database.  This is particularly
6474   useful when wrapping the API for languages with garbage collection.
6476 * Change Database::positionlist_begin() not to throw exceptions if the term or
6477   document doesn't exist.
6479 * Xapian databases now have a UUID, readable with Database::get_uuid().
6481 * A new Database replication API has been added (currently experimental).
6483 * MSet::get_termfreq() will now fall back to looking up the term frequency in
6484   the database rather than raising an exception if a term wasn't present in
6485   the query.
6487 * Calling RSet:add_document() with argument 0 now throws InvalidArgumentError.
6489 * QueryParser sped up (new version of lemon); queryparsertest runs 2.2% faster.
6491 * Add ValueSetMatchDecider, which is a matchdecider which is intended to be
6492   passed a set of values to look for in documents, and selects documents based
6493   on the presence of those values.
6495 * Add new Xapian::PostingSource class to allow passing custom sources of
6496   postings and weights to the matcher.  Built-in PostingSource subclasses:
6497   FixedWeightPostingSource, ValueMapPostingSource, ValuePostingSource, and
6498   ValueWeightPostingSource.  (Currently experimental).
6500 * Database: Add get_value_freq(), get_value_lower_bound() and
6501   get_value_upper_bound() methods to get statistics about the values stored in
6502   a slot.  Add support for the value statistics methods to chert, inmemory,
6503   multi and remote databases.
6505 * Enquire::get_eset() now faster for large ESet size.
6507 * Xapian::Document objects now have a reduced memory footprint.
6509 * Enquire::set_collapse_key() now allows you to specify a maximum number of
6510   matches with each collapse key to keep (which defaults to 1, giving the
6511   previous behaviour).  Enquire can now report bounds and an estimate of what
6512   the total number of matches would have been if collapsing wasn't in use.
6514 * WritableDatabase::commit() is a new, preferred alias for
6515   WritableDatabase::flush().  (ticket#266)
6517 * Add methods for serialising documents and queries to strings, and
6518   unserialising back from strings.  (ticket#206)
6520 testsuite:
6522 * stemtest: No longer checks environment variables OM_STEMTEST_SKIP_RANDOM,
6523   OM_STEMTEST_LANGUAGES, and OM_STEMTEST_SEED.
6525 * perftest: New performance testsuite.  This is intended to contain intended to
6526   contain potentially time-consuming performance tests, which log output to
6527   an XML file for later analysis.  It's not run by "make check" - use "make
6528   check-perf" to run it.
6530 * apitest: Now runs tests over both flint and chert for multi, remotetcp, and
6531   remoteprog.
6533 * Wait for subprocesses to finish at end of tests with remotetcp backend, to
6534   avoid test failures when the same database is used for the next testcase.
6536 matcher:
6538 * Internally, pass around non-normalised document lengths as Xapian::termcount
6539   (unsigned integer) not Xapian::doclength (double).  This gives a 3% speedup
6540   for 10 term OR queries!
6542 chert backend:
6544 * New development backend.  Use Chert::open() to explicitly create a chert
6545   format database, or set XAPIAN_PREFER_CHERT=1 in the environment to
6546   prefer chert when creating a new database without an explicit type.
6548 * Quartz and Flint stored the document length alongside every posting list
6549   entry.  Chert instead stores a chunked list of all the document lengths
6550   which saves a lot of space, and is a big win for large queries or those
6551   which don't need the document lengths.  This structure is used to
6552   implement much faster iteration (six times faster in a test) over all
6553   document ids (which speeds up queries using unary NOT, e.g. `NOT apples'),
6554   and to test for the existence of documents (instead of checking the record
6555   table for an entry).
6557 * Document values are now stored in a chunked stream for each slot for
6558   efficient access to the same slot in lots of documents.  This makes
6559   operations like sort by value much more efficient.
6561 * WritableDatabase::replace_document() now updates the database lazily in
6562   simple cases - for example, if you just change a document's values and
6563   replace it with the same docid, then the terms and document data aren't
6564   needlessly rewritten.  Caveats: currently we only check if you've looked at
6565   the values/terms/data, not if they've actually been modified, and only keep
6566   track of the last document read.
6568 flint backend:
6570 * If we can't obtain a write lock while trying to create a new database
6571   we now report the lock failure with DatabaseLockError, not
6572   DatabaseOpeningError - it's more useful to know that the lock attempt failed
6573   in this situation.
6575 * Improve reporting of failures to obtain lock due to unexpected errors.
6577 * xapian-check: Don't stop checking a table after an error in certain cases -
6578   instead increment the error counter and try to continue checking from the
6579   next item.
6581 remote backend:
6583 * The remote database protocol major version has been increased, allowing
6584   a significant amount of compatibility code to be removed.  This change means
6585   that new clients won't work with old servers, and old clients won't work
6586   with new servers.  If upgrading a live system, you will need to take this
6587   into account.
6589 * The remote servers now always default to opening a Database and the client
6590   has to send a protocol message to explicitly request write access.  This
6591   allows a single server to support multiple readers and one writer
6592   simultaneously.  (ticket#145)
6594 * Database::get_document() no longer does an unnecessary copy of the document's
6595   values.
6597 * Change serialisation of queries to be more compact and easier to parse.
6599 stub databases:
6601 * Stub databases used to assume that any relative paths were relative to the
6602   current working directory.  They now assume that relative paths are
6603   relative to the directory holding the stub database file.
6605 * Stub database lines which begin with a '#' character are now ignored,
6606   allowing comments in stub database files.
6608 * New "stub directory" database type - this is a directory containing a stub
6609   database file named "XAPIANDB".
6611 * Don't just ignore lines with no spaces in a stub database file.
6613 * Bad lines in a stub file were being ignored after we'd seen a good entry.
6615 * Add new Auto::open_stub() overload which opens a stub database file
6616   containing a single entry as a WritableDatabase.
6618 * Add support for "inmemory" to stub database (which is useful now that stub
6619   databases can be opened for writing).
6621 * A stub database file is now allowed to contain no database entries, which
6622   results in an empty Database object (this avoids user code having to special
6623   case to handle "0 or more" databases).
6625 build system:
6627 * To allow installations of Xapian 1.0 and 1.1 to easily coexist, the library
6628   is now libxapian-1.1; xapian.m4 is now xapian-1.1.m4; headers are now
6629   installed in $prefix/include/xapian-1.1.  If you use XO_LIB_XAPIAN or
6630   xapian-config as we recommend, this should all be transparent.  Also
6631   programs and scripts have a default program suffix to -1.1 unless overridden
6632   using the --program-suffix argument to configure (if you really want no
6633   suffix, "./configure --program-suffix=" will achieve this).
6635 * On Linux and k*bsd-gnu, override libtool's link_all_deplibs_CXX to "no".
6637 * On Linux, override libtool's sys_lib_dlsearch_path_spec to a list generated
6638   in a more reliable way which includes all the default directories.
6640 * configure: --enable-debug and --enable-debug-verbose have been deprecated
6641   since 1.0.0, so remove specific errors pointing to the replacements.
6643 documentation:
6645 * Disable "JAVADOC_AUTOBRIEF" in doxygen configuration since we always try to
6646   write a brief description explicitly, and JAVADOC_AUTOBRIEF causes problems
6647   in some cases.
6649 * docs/deprecation.html: Describe what "experimental" features are, and why
6650   replication and posting sources are currently experimental.
6652 * docs/deprecation.html: Deprecate Stem_get_available_languages() from the
6653   python bindings.
6655 examples:
6657 * Use C++ forms of C headers in examples (ticket#330).
6659 packaging:
6661 * xapian-core.spec: We no longer need to run autoreconf to work around
6662   libtool's incomplete sys_lib_dlsearch_path_spec or to pick up distro-specific
6663   patches for link_all_deplibs.
6665 debug code:
6667 * Report get_description() rather than the pointer value for
6668   Xapian::Query::Internal* parameters to internal functions.
6670 * The debug logging framework has been overhauled.  See HACKING for details
6671   of how it now works.
6673 * Faster integer to string functions inside the library (this is a general
6674   improvement, but will particularly speed up debug logging as that converts a
6675   lot of integers to strings).
6677 Xapian-core 1.0.23 (2011-01-14):
6679 API:
6681 * QueryParser: Avoid a double free if Query construction throws an exception
6682   in a particular case.  Fixes ticket#515.
6684 * QueryParser: Handle NEAR/<offset> and ADJ/<offset> where offset isn't an
6685   integer the same way at the end of the query as in the middle.
6687 * Enquire::get_mset(): Avoid pointlessly trying to allocate lots of memory
6688   if the first document requested is larger than the size of the database.
6690 * Enquire::get_mset(): An empty query now returns an MSet with firstitem set
6691   correctly - previously firstitem was always 0 in this case.
6693 matcher:
6695 * The matcher wasn't recalculating the max possible weight after a subquery of
6696   XOR reached its end.  This caused an assertion failure in debug builds, and
6697   is a missed optimisation opportunity.
6699 tools:
6701 * xapian-compact: Fix access to empty priority_queue while merging synonyms.
6702   This could have caused problems, though we've had no reports of any (the
6703   bug was found with _GLIBCXX_DEBUG).
6705 Xapian-core 1.0.22 (2010-10-03):
6707 API:
6709 * Xapian::Document: Initialise docid to 0 when creating a document from
6710   scratch, as documented.
6712 * Xapian::QueryParser: Allow phrase generators between a probabilistic prefix
6713   and the term itself (e.g. path:/usr/local).
6715 matcher:
6717 * Back out the OP_OR efficiency improvement made in 1.0.21 since this change
6718   slows down some other common cases.  We'll address this fully in 1.2.4, but
6719   that fix is more invasive than we are comfortable with for 1.0.x at this
6720   point.
6722 build system:
6724 * xapian-config: Add --static option which makes other options report values
6725   for static linking.
6727 documentation:
6729 * deprecation.html: Add guidelines for supporting other software.
6731 * Document cases where QueryParser's FLAG_WILDCARD and FLAG_PARTIAL aren't
6732   currently supported.
6734 * Fix documentation for Xapian::timeout type - it holds a time interval in
6735   milliseconds not microseconds (the API docs for the methods which use it
6736   explicitly correctly document that the timeouts are in milliseconds).
6738 portability:
6740 * configure: Don't pass -mtune=generic unless GCC >= 4.2 is in use
6741   (ticket#492).
6743 * configure: Add support for --enable-sse=sse and --enable-sse=sse2 to allow
6744   control of which SSE instructions to use.
6746 * configure: Enable use of SSE maths on x86 by default with Sun's compiler.
6748 * configure: Beef up the test for whether -lm is required and add a special
6749   case to force it to be for Sun's C++ compiler - there's some interaction with
6750   libtool and/or shared objects which means that the previous configure test
6751   didn't think -lm is needed here when it is.
6753 * Fix test harness to build under Microsoft Windows (ticket#495).
6755 * Fix to build on OpenBSD 4.5 with GCC 3.3.5.
6757 * Need to avoid excess precision on m68k when targeting models 68010, 68020,
6758   68030 as well as 68000.
6760 packaging:
6762 * xapian-core.spec: Add cmake related files to RPM packaging.
6764 Xapian-core 1.0.21 (2010-06-18):
6766 API:
6768 * Xapian::Stem now recognises "nb" and "nn" as additional codes for the
6769   Norwegian stemmer.
6771 * Xapian::QueryParser now correctly parses a wildcarded term in between two
6772   other terms (ticket#484).
6774 testsuite:
6776 * Improve test coverage of OP_VALUE_RANGE and MSet::get_percent().
6778 matcher:
6780 * OP_OR could skip a matching document if it decayed to OP_AND or OP_AND_MAYBE
6781   during the match in some cases.  Fixes ticket#476.
6783 * OP_XOR with non-leaf subqueries could skip matching documents in some cases,
6784   and OP_XOR of three or more sub-queries could return incorrect weights.
6785   Fixes ticket#475.
6787 * OP_OR is now more efficient if a subquery is potentially expensive (e.g.
6788   ValueRangePostList, OP_NEAR, OP_PHRASE).  A 10-fold speed-up with
6789   ValueRangePostList has been observed.
6791 flint backend:
6793 * When iterating a table, if the table changes underneath we could end up
6794   returning the same entry twice.  (Debian#579951)
6796 * A cancelled transaction (or a failing operation implicitly cancelling
6797   pending changes) now marks the tables as unmodified, which fixes an exception
6798   trying to read block 0 if one of the tables is empty on disk.
6800 quartz backend:
6802 * When iterating a table, if the table changes underneath we could end up
6803   returning the same entry twice.  (Debian#579951)
6805 remote backend:
6807 * When daemonising, read the max fd to close with sysconf() instead of using
6808   a hardcoded value of 256, and work even if stdin and stdout have been closed.
6810 build system:
6812 * Install files to make Xapian easier to use with cmake.
6814 documentation:
6816 * Update the list of languages that the Xapian::Stem constructor recognises.
6818 * Assorted minor improvements to the collated API documentation.
6820 portability:
6822 * On x86 processors, Xapian now defaults to using SSE2 FP instructions.  This
6823   avoids issues with excess precision and it a bit faster too.  If you need
6824   to support processors without SSE2 (this means pre-Pentium4 for Intel) then
6825   configure with --disable-sse.  (ticket#387)
6827 * Fix warning when compiling for mingw with GCC 4.2.1.
6829 * Remove mutable from a couple of reference class members - mutable doesn't
6830   make sense for a reference and some compilers warn about it.
6832 Xapian-core 1.0.20 (2010-04-27):
6834 API:
6836 * MSet: Fix incorrect values reported by get_matches_estimated(),
6837   get_matches_lower_bound(), and get_matches_upper_bound() in certain cases
6838   when sorting and collapsing (ticket#464).
6840 documentation:
6842 * deprecation.html: Note how to disable deprecation warnings. (ticket#393)
6844 examples:
6846 * delve: Add -a option to list all terms in a database.
6848 * delve: -d and -V command line options now report out of range and invalid
6849   numbers.
6851 portability:
6853 * The getopt warning fix for Cygwin in 1.0.19 caused build failures on Mac OS X
6854   (and probably some other platforms with non-GNU getopt implementations), so
6855   replace with a fix which is only enabled for Cygwin. (ticket#469)
6857 Xapian-core 1.0.19 (2010-04-15):
6859 API:
6861 * QueryParser: Fix leak if Xapian::Database throws an exception during parsing
6862   (ticket#462).
6864 testsuite:
6866 * Explicitly flush after indexing for quartz and flint, so we see any
6867   exceptions from the flush (the implicit flush from the destructor swallows
6868   any exceptions).
6870 * apitest: Add databasemodified1 testcase to provide some test coverage for
6871   DatabaseModifiedError.
6873 flint backend:
6875 * When updating a document, rather than decoding the old positions, comparing
6876   with the new, and then encoding the new if different, we now just encode the
6877   new and then compare the encoded forms.  (ticket#428)
6879 * Avoid trying to delete the document positions when we know there aren't any.
6881 * Fix memory leak if Database::allterms_begin() throws an exception
6882   (ticket#462).
6884 * xapian-check: Report document id for document length mismatch.
6886 * Fix potential issues with iterators over a WritableDatabase which is modified
6887   during iteration.  No problems have actually been observed with flint, only
6888   in 1.1.4 with chert in cases which don't occur in flint, but it seems likely
6889   the issue can manifest for flint in other situations.  Fixes ticket#455.
6891 * Initialise zlib z_stream structure members zalloc, zfree, and opaque with
6892   Z_NULL rather than 0 cast to the appropriate type, as that's what the zlib
6893   documentation says to do.  Add missing initialisation of opaque for the
6894   inflate z_stream which the zlib docs say is needed (reading the zlib code,
6895   this isn't true for current versions, so this improves robustness rather
6896   than fixing an observable bug).
6898 * Don't memcpy() a block to itself - it's a waste of effort, and (probably)
6899   undefined behaviour (as a block overlaps itself).
6901 quartz backend:
6903 * Fix potential issues with iterators over a WritableDatabase which is modified
6904   during iteration.  No problems have actually been observed with quartz, only
6905   in 1.1.4 with chert in cases which don't occur in quartz, but it seems likely
6906   the issue can manifest for quartz in other situations.  Fixes ticket#455.
6908 * Don't memcpy() a block to itself - it's a waste of effort, and (probably)
6909   undefined behaviour (as a block overlaps itself).
6911 build system:
6913 * Force -fno-strict-aliasing for GCC 4.2 to avoid bad code being generated due
6914   to a bug in that compiler version.  Fixes ticket#449.  This issue hasn't been
6915   observed to affect Xapian 1.0.x, but it seems prudent to backport the fix.
6917 documentation:
6919 * INSTALL: Correct description of --enable-assertions.  It does NOT enable
6920   debugging symbols, and shouldn't control checks on bad data passed to API
6921   calls (if it does anywhere, that's a bug).  Note that Xapian will run more
6922   slowly with assertions on.
6924 * spelling.html:
6926   + Add section on indexing.
6928   + Add a note about removing automatically added spelling dictionary entries.
6930   + Move the "algorithm" section to the end, as it is really just background
6931     information for the curious.
6933 * include/xapian/queryparser.h: Document the possible exception messages from
6934   QueryParser::parse_query().
6936 * include/xapian/termgenerator.h: Note how TermGenerator handles stopwords.
6938 examples:
6940 * delve: Display the lastdocid value when displaying general database
6941   statistics.
6943 * simpleindex: Explicitly call flush() on the database, as that is good
6944   practice (since you see any exceptions).
6946 portability:
6948 * Fix compilation failure in testsuite on OpenBSD, introduced by new regression
6949   test in 1.0.18.  Fixes ticket#458.
6951 * Fix getopt-related warning on Cygwin.
6953 Xapian-core 1.0.18 (2009-02-14):
6955 API:
6957 * Document: Add new add_boolean_term() method, which is an alias for add_term()
6958   with wdfinc=0.
6960 * QueryParser:
6962   + Add support for quoting boolean terms so they can contain arbitrary
6963     characters (partly addresses ticket#128).
6965   + Add ENCLOSING_MARK and COMBINING_SPACING_MARK categories, plus several
6966     zero-width space characters, as phrase generators.  This mirrors a better
6967     fix in 1.1.4, but without losing compatibility with existing databases.
6969   + Fix handling of an explicit AND before a hated term (foo AND -bar).
6970     (ticket#447)
6972 * TermIterator: Only include trailing '+' or '#' on a term if it isn't followed
6973   by a word character (makes more sense and matches QueryParser's behaviour).
6974   (ticket#446)
6976 * Database: Fix many methods to behave better on a database with no
6977   subdatabases, such as is constructed by Database().  Fixes ticket#415.
6979 testsuite:
6981 * Add test coverage for xapian-compact, and improve coverage for
6982   WritableDatabase::replace_document().
6984 * apitest: Rename matchfunctor<n> to matchdecider<n> to match current
6985   terminology.
6987 flint backend:
6989 * When updating documents, don't update posting entries which haven't changed.
6990   Largely fixes ticket #250.
6992 * If the number of entries in the position table happened to be 4294967296 or
6993   an exact multiple, Xapian would ignore positional data for that table when
6994   running queries, and xapian-compact wouldn't copy its contents.
6996 * Iterating all the terms in the database with a prefix is now slightly more
6997   efficient.
6999 * Fix locking code to work if stdin and/or stdout have been closed.
7001 * If a document is replaced with itself unmodified, we no longer increase the
7002   automatic flush counter.
7004 * When iterating a posting list modified since the last flush(), the reported
7005   wdf is now correct (previously it was too high by its old value).
7007 * Replacing a document deleted since the last flush failed to update the
7008   collection frequency and wdf, and caused an assertion failure when assertions
7009   were enabled.
7011 * WritableDatabase::replace_document() didn't always remove old positional
7012   data (the only effect is that the position table was bloated by unwanted
7013   entries).
7015 * xapian-inspect:
7017   + New "until" command which shows entries until a specified key is reached.
7019   + New "open" command which allows easy switching between tables.
7021 * xapian-compact: Fix typos in --help output.
7023 quartz backend:
7025 * Replacing a document deleted since the last flush failed to update the
7026   collection frequency and wdf, and caused an assertion failure when assertions
7027   were enabled.
7029 * WritableDatabase::replace_document() didn't always remove old positional
7030   data (the only effect is that the position table was bloated by unwanted
7031   entries).
7033 remote backend:
7035 * Throw UnimplementedError if a MatchDecider is used with the remote backend.
7036   Previously Xapian returned incorrect results in this case.
7038 build system:
7040 * configure: With --enable-maintainer-mode, enable -Werror for GCC >= 4.1
7041   rather than >= 4.0 as Apple's GCC 4.0 gives bogus uninitialised variable
7042   warnings.
7044 documentation:
7046 * The API documentation now includes Xapian::Error and subclasses, and doesn't
7047   mention Xapian::Query::Internal.
7049 * Make clear in the Xapian::Document API documentation that this class is a
7050   lazy handle and discuss the issues this can cause.
7052 * INSTALL: Improve text about zlib dependency.
7054 * HACKING: Add details of our licensing policy for accepting patches.
7056 examples:
7058 * quest: If no database is specified, still parse the query and report
7059   Query::get_description() to provide an easy way to check how a query parses.
7061 portability:
7063 * Fix GCC 4.2 warning.
7065 xapian-core 1.0.17 (2009-11-18):
7067 API:
7069 * QueryParser:
7071   + Fix handling of a group of two or more terms which are all stopwords which
7072     notably caused issues when default_op was OP_AND, but could probably
7073     manifest in other cases too.  Fixes ticket#406.
7075   + Fix interaction of FLAG_PARTIAL and FLAG_SYNONYM.  (ticket#407)
7077 * Database: A database created via the default constructor no longer causes a
7078   segfault when the methods get_metadata() or metadata_keys_begin() are called.
7080 flint backend:
7082 * Don't try to close the fd one more than the maximum allowable when locking
7083   the database.  Harmless, except it causes a warning when running under
7084   valgrind.  (ticket#408)
7086 remote backend:
7088 * Xapian::Sorter isn't supported with the remote backend so throw
7089   UnimplementedError rather than giving incorrect results.  (ticket#384)
7091 * Fix potential reading off the end of the MSet which is returned internally
7092   by the remote server.
7094 documentation:
7096 * Various documentation comment improvements for the Database class.
7098 examples:
7100 * examples/quest.cc: Tighten up the type of the error we catch to detect an
7101   unknown stemming language.
7103 portability:
7105 * xapian-config: Need to quote ^ for Solaris /bin/sh.
7107 * configure: Actually use any flags we determine are needed to switch the
7108   compiler to proper ANSI C++ mode, when building xapian-core - this stopped
7109   working in 1.0.12, breaking support for HP's aCC, Compaq's cxx, Sun's CC, and
7110   SGI's CC.
7112 Xapian-core 1.0.16 (2009-09-10):
7114 flint backend:
7116 * Fix a typo which stopped this fix in 1.0.12 from working (ticket #398):
7118   If we fail to get the lock after we spawn the child lock process (the common
7119   case is because the database is already open for writing) then we now clean
7120   up the child process properly.
7122 documentation:
7124 * Improve API documentation of QueryParser::set_default_op() and
7125   QueryParser::get_default_op().
7127 portability:
7129 * Fix build failure on Mac OS X 10.6.
7131 Xapian-core 1.0.15 (2009-08-26):
7133 testsuite:
7135 * Fix the test harness not to report heaps of bogus errors when using valgrind
7136   3.5.0.
7138 flint backend:
7140 * Backport the lazy update changes from 1.1.2:
7142   WritableDatabase::replace_document() now updates the database lazily in
7143   simple cases - for example, if you just change a document's values and
7144   replace it with the same docid, then the terms and document data aren't
7145   needlessly rewritten.  Caveats: currently we only check if you've looked at
7146   the values/terms/data, not if they've actually been modified, and only keep
7147   track of the last document read.
7149 * Fix PostingIterator::skip_to() on an unflushed WritableDatabase to skip
7150   documents which were added and deleted since the last flush.  (ticket#392)
7152 documentation:
7154 * Overhaul the doxygen options we use and tweak various documentation comments
7155   to improve the generated API documentation.
7157 * Explicitly document that an empty prefix argument to
7158   QueryParser::add_prefix() means "no prefix".
7160 * Update the documentation comments for Enable::set_sort_by_value(),
7161   set_sort_by_value_then_relevance(), and set_sort_by_relevance_then_value() to
7162   mention sortable_serialise() as a good way to store numeric values for
7163   sorting.
7165 Xapian-core 1.0.14 (2009-07-21):
7167 API:
7169 * When using more than one ValueRangeProcessor, QueryParser didn't reset the
7170   begin and end strings to ignore any changes made by a ValueRangeProcessor
7171   which returned false, so further ValueRangeProcessors would see any changes
7172   it had made.  This is now fixed, and test coverage improved.
7174 testsuite:
7176 * The test harness code which launches xapian-tcpsrv child processes was
7177   failing to close a file descriptor for each one launched due to a bug in
7178   the code which is meant to track them.  This was causing apitest to fail
7179   on OpenBSD (ticket#382).  Also wait between testcases for any spawned
7180   xapian-tcpsrv processes to exit to avoid spurious failures when a database is
7181   reused by the next testcase.
7183 * tests/runtest.in: Use "ulimit -n" where available to limit the number of
7184   available file descriptors to 64 so we catch file descriptor leaks sooner.
7186 * When measuring CPU time used for scalability tests, we no longer try to
7187   include the CPU time used by child processes, as we can only get that for
7188   child processes which have exited and it's hard to ensure that they have
7189   with the current framework.  Although this means we only tests the
7190   client-side scaling for remote tests, the local backend tests cover most of
7191   the work done by the server part of the remote backend.
7193 * apitest: In testcase topercent2, don't expect max_attained or max_possible to
7194   be exact as rounding errors in different ways of calculating can cause small
7195   variations.  On trunk we already have similar code because the new weighting
7196   scheme stuff gives different bounds in the different cases.  This should fix
7197   testsuite failures seen on some of the Debian and Ubuntu buildds.
7199 * The test harness now always reports the full exception message (was
7200   conditional on --verbose), and output for different exception types and
7201   other causes of failure is now more consistent.
7203 * For scalability tests, the test harness now increases the number of
7204   repetitions until the first run takes more than 0.001 seconds, to avoid
7205   trying to base calculations on a length of time we probably can't reliably
7206   measure to start with.
7208 * Add test coverage for Stem::get_description() for each supported language.
7210 * queryparsertest: Reenable tests which require the inmemory backend to be
7211   enabled by fixing typo XAPIAN_HAS_BACKEND_INMEMORY ->
7212   XAPIAN_HAS_INMEMORY_BACKEND.
7214 flint backend:
7216 * Use F_FULLFSYNC where available (Mac OS X currently) to ensure that changes
7217   have been committed to disk.  (ticket#288)
7219 remote backend:
7221 * Fix handling of percentage weights in various cases when we're searching
7222   multiple remote databases or a mix of local and remote databases.
7224 build system:
7226 * configure: -Wshadow produces false positives with GCC 4.0, so only enable it
7227   for >= 4.1 since we enable -Werror for maintainer-mode builds for GCC >= 4.0.
7229 * configure: Check that we can find the valgrind/memcheck.h header as well as
7230   the valgrind binary.
7232 * Change how snowball generates the data used by its among operation - instead
7233   of using pointers to the strings in struct among, store an offset into a
7234   constant pool, as this reduces the number of relocations by about 2300, which
7235   should decrease the time taken by the dynamic linker when loading the
7236   library.  This also reduces the size of the shared library significantly
7237   (on x86-64 Linux, the stripped shared library is 4% smaller).
7239 Xapian-core 1.0.13 (2009-05-23):
7241 API:
7243 * Xapian::Document no longer ever stores empty values explicitly.  This
7244   wasn't intentional behaviour, and how this case was handled wasn't
7245   documented.  The amended behaviour is consistent with how user metadata
7246   is handled.  This change isn't observable using Document::get_value(),
7247   but can be noticed when iterating with Document::values_begin(), using
7248   Document::values_count(), or trying to delete the value with
7249   Document::remove_value().
7251 testsuite:
7253 * Fix testcase scaleweight4 not to fail on x86 when compiled with -O0.  The
7254   problem was in the testcase code, and was caused by excess precision in
7255   intermediate FP values.
7257 * Testcases which check that operations have the expected O(...) behaviour now
7258   check CPU time instead of wallclock time on most platforms, which should
7259   eliminate occasional failures due to load spikes from other processes.
7260   (ticket#308)
7262 * Fix test failures due to SKIP_TEST_FOR_BACKEND("inmemory") not skipping when
7263   it should due to comparing char * strings with == (on trunk the return value
7264   being tested is std::string rather than const char *).
7266 * Improve test coverage in several corner cases.
7268 * Fix testcase consistency2 to actually be run (fortunately it passes).
7270 * In the generated testcases, call get_description() on the default
7271   constructed object of each class to make sure that works (and doesn't try to
7272   dereference NULL, or fail some assertion, etc).  All currently checked
7273   classes are fine - this is to avoid future regressions or such problems with
7274   new classes.
7276 * In the test coverage build, use "--coverage" instead of "-fprofile-arcs
7277   -ftest-coverage".
7279 * The test harness now has the inmemory backend flagged as supporting
7280   user-specified metadata (apart from iteration over metadata keys).
7282 matcher:
7284 * If a query contains a MatchAll subquery, check for it before checking the
7285   other terms so that the loop which checks how many terms match can exit
7286   early if they all match.
7288 * When an OR or ANY_MAYBE decayed to an AND, we were carefully swapping the
7289   children for maximum efficiency, but the condition was reversed so we were
7290   in fact making things worse.  This was noticed because it was resulting in
7291   the same query running faster when more results were asked for!
7293 * Only build the termname to termfreq and weight map for the first subdatabase
7294   instead of rebuilding it for each one.  Also don't copy this map to return
7295   it.  This should speed up searches a little, especially those over multiple
7296   databases.
7298 * If a submatcher fails but ErrorHandler tells us to continue without it, we
7299   just use a NULL pointer to stand in rather than allocating a special dummy
7300   place-holder object.
7302 * Remove AndPostList, in favour of MultiAndPostList.  AndPostList was only used
7303   as a decay product (by AndMaybePostList and OrPostList), and doesn't appear
7304   to be any faster.  Removing it reduces CPU cache pressure, and is less code
7305   to maintain.
7307 * Call check() instead of skip_to() on the optional branch of AND_MAYBE.
7309 flint backend:
7311 * Fix a bug in TermIterator::skip_to() over metadata keys.
7313 remote backend:
7315 * Fix xapian-tcpsrv --interface option to work on MacOS X (ticket#373).
7317 * Fix typo which caused us to return the docid instead of the maximum weight
7318   a document from a remote match could return!  This could have led to wrong
7319   results when searching multiple databases with the remote backend, but
7320   probably usually didn't matter as with BM25 the weights are generally small
7321   (often all < 1) while docids are inevitably >= 1.
7323 inmemory backend:
7325 * The inmemory backend doesn't support iterating over metadata keys.  Trying
7326   to do so used to give an empty iteration, but has now been fixed to throw
7327   UnimplementedError (and this limitation has now been documented).
7329 build system:
7331 * Remove a lot of unused header inclusions and some unused code which should
7332   make the build faster and slightly smaller.
7334 * Fix to compile under --disable-backend-flint, --disable-backend-remote, and
7335   --disable-backend-inmemory.
7337 * Don't remove any built sources in "make clean" even under
7338   --make-maintainer-mode as that breaks switching a tree away from
7339   maintainer-mode with: make distclean;./configure
7341 * configure: Enable more GCC warnings - "-Woverloaded-virtual" for all
7342   versions, "-Wstrict-null-sentinel" for 4.0+, "-Wlogical-op
7343   -Wmissing-declarations" for 4.3+.  Notably "-Wmissing-declarations" caught
7344   that consistency2 wasn't being run.
7346 * Internally, fix the few places where we pass std::string by value to pass
7347   by const reference instead (except where we need a modifiable copy anyway) as
7348   benchmarking shows that const reference is slightly faster and generates
7349   less code with GCC's reference counted std::string implementation - with a
7350   non-reference counted implementation, const reference should be much faster.
7351   (ticket#140)
7353 documentation:
7355 * INSTALL: We no longer regularly test build with GCC 2.95.4 and we're raising
7356   the minimum GCC version required to 3.1 for Xapian 1.1.x.
7358 * Document what passing maxitems=0 to Enquire::get_mset() does.
7360 * docs/queryparser.html: Add examples of using a prefix on a phrase or
7361   subexpression.
7363 * Correct doxygen comments for user metadata functions:
7364   Database::get_metadata() can't throw UnimplementedError but
7365   WritableDatabase::set_metadata() can.
7367 * Document that Database::metadata_keys_begin() returns an end iterator if the
7368   backend doesn't support metadata.
7370 * HACKING: Update the list of Debian/Ubuntu packages needed for a development
7371   environment.
7373 debug code:
7375 * Fix build with --enable-debug.
7377 * Added some more assertions.
7379 Xapian-core 1.0.12 (2009-04-19):
7381 API:
7383 * WritableDatabase::remove_spelling() now works properly.
7385 * The QueryParser now treats NON_SPACING_MARK Unicode characters as phrase
7386   generators, which improves handling of Arabic.  This is a stop-gap solution
7387   for 1.0.x which will work with existing databases without requiring
7388   reindexing - in 1.1.0, NON_SPACING_MARK will be regarded as part of a word.
7389   (ticket#355)
7391 * Fix undefined behaviour in distribution of OP_NEAR and OP_PHRASE over a
7392   non-leaf subquery (indentified by valgrind on testcase nearsubqueries1).
7393   (ticket#349)
7395 * Enhance distribution of OP_NEAR/OP_PHRASE over non-leaf subqueries to work
7396   when there are multiple non-leaf subqueries (ticket#201).
7398 * Enquire::get_mset() no longer needlessly checks if the documents exist.
7400 * PostingIterator::get_description() output improved visually in some cases.
7402 testsuite:
7404 * Add make targets to assist generating a testsuite code coverage report with
7405   lcov.  See HACKING for details.
7407 * Improved test coverage in a number of places and removed some used code as
7408   shown by lcov's coverage report.
7410 flint backend:
7412 * xapian-compact:
7414   + Now handles databases which contains no documents but have user metadata
7415     (ticket#356).
7417   + Fix test for the total document length overflowing.
7419 * Release the database lock if the database is closed due to an unrecoverable
7420   error during modifications. (ticket#354)
7422 * If we fail to get the lock after we spawn the child lock process (the common
7423   case is because the database is already open for writing) then we now clean
7424   up the child process properly.
7426 build system:
7428 * Overriding CXXFLAGS at make-time (e.g. "make CXXFLAGS=-Os") no longer
7429   overrides any flags configure detected to be required to make the compiler
7430   accept ISO C++ (for GCC, no such flags are required, so this doesn't
7431   change anything).
7433 documentation:
7435 * Update documentation and code comments to reflect that 1.1 will be a
7436   development series, and 1.2 the next release series.
7438 * docs/admin_notes.html: Document the child process used for locking which
7439   exec-s "cat" (ticket #258).
7441 * include/xapian/unicode.h: Fix documentation comment typos.
7443 * include/xapian/matchspy.h: Removed currently unused header to stop doxygen
7444   from generating documentation for it.
7446 Xapian-core 1.0.11 (2009-03-15):
7448 API:
7450 * Enquire::get_mset():
7452   + Now throws UnimplementedError if there's a percentage cutoff and sorting is
7453     primarily by value - this has never been correctly supported and it's
7454     better to warn people than give incorrect results.
7456   + No longer needlessly copies the results internally.
7458   + When searching multiple databases, now recalculates the maximum attainable
7459     weight after each database which may allow it to terminate earlier.
7460     (ticket#336).
7462   + Fix inconsistent percentage scores when sorting primarily by value, except
7463     when a MatchDecider is also being used; document this remaining problem
7464     case.  (ticket#216)
7466 * Enquire::set_sort_by_value() (and similar methods): Rename the wrongly named
7467   "ascending" parameter to "reverse", and note that its value should always be
7468   explicitly given since defaulting to "reverse=true" is confusing and the
7469   default will be deprecated in 1.1.0.  (ticket#311)
7471 * Database::allterms_begin(): Fix memory leak when iterating all terms from
7472   more than one database.
7474 * Query::get_terms_begin(): Don't return "" from the TermIterator (happened
7475   when the query contained or was Query::MatchAll).
7477 * Add QueryParser::FLAG_DEFAULT to make it easier to add flags to those set by
7478   default.
7480 testsuite:
7482 * The testsuite now reports problems detected by valgrind with newer valgrind
7483   versions.  Drop support for running the testsuite under valgrind < 3.3.0
7484   (well over a year old) as this greatly simplifies the configure tests.
7486 * Fix usage message for options which take arguments in --help output from test
7487   programs - "-x=foo" doesn't work, the correct syntax is "-x foo".
7489 * If comparing MSet percentages fails, report the differing percentages if in
7490   verbose mode.
7492 * Add test that backends don't truncate total document length to 32 bits.
7494 * Disable lockfileumask1 (regression testcase added in 1.0.10) on Cygwin and on
7495   OS/2.
7497 flint backend:
7499 * The configure test for pread() and pwrite() got accidentally disabled in
7500   0.8.4 and we've always been using llseek() followed by read() or write()
7501   since then.  The configure test is now fixed, and gives a slight speedup
7502   (3% measured for searching).
7504 * The child process used to implement WritableDatabase locking now changes
7505   directory to / so that it doesn't block unmounting of any partitions and
7506   closes any open file descriptors which aren't relating to locking so that
7507   if those files are closed by our parent and deleted the disk space gets
7508   released right away.
7510 * We now reuse the same zlib zstream structures rather than using a fresh
7511   one for each operation.  This doesn't make a measurable difference in
7512   our own tests on Linux but reportedly is measurably faster on some
7513   systems.  (ticket #325)
7515 quartz backend:
7517 * The pread()/pwrite() fix also speeds up quartz.
7519 remote backend:
7521 * Avoid copying Query::Internal objects needlessly when unserialising Query
7522   objects.
7524 inmemory backend:
7526 * Store the (non-normalised) document lengths as Xapian::termcount (unsigned
7527   int) rather than Xapian::doclength (double) which saves 4 bytes per document.
7529 build system:
7531 * configure: The output of g++ --version changed format (again) with GCC 4.3
7532   which meant configure got "g++" for the version.  Instead use the (hopefully)
7533   more robust technique of using g++ -E to pull out __GNUC__ and
7534   __GNUC_MINOR__.
7536 documentation:
7538 * API documentation:
7540   + WritableDatabase::flush() can't throw DatabaseLockError.
7542   + WritableDatabase's constructor can throw at least DatabaseCorruptError or
7543     DatabaseLockError.
7545   + Document how to get all matches from Enquire::get_mset().
7547   + Other minor improvements.
7549 * docs/sorting.html: Clarify meaning.
7551 portability:
7553 * Fix "#line" directives in generated file queryparser/queryparser_internal.cc
7554   to give a relative path - previously they had a full path when generated by a
7555   VPATH build (as release tarballs are), and this confused GCC 2.95 and
7556   depcomp.
7558 * Fix for compiling with Sun's compiler (untested as we no longer have access
7559   to it).
7561 Xapian-core 1.0.10 (2008-12-23):
7563 API:
7565 * Composing an OP_NEAR query with two non-term subqueries now throws
7566   UnimplementedError instead of AssertionError (in a --enable-assertions build)
7567   or leading to unexpected results (otherwise).  This partly addresses bug#201.
7569 * Using a MultiValueSorter with no values set no longer causes a hang or
7570   segmentation fault (but it is still rather pointless!)
7572 matcher:
7574 * If we're using values for sorting and for another purpose, cache the
7575   Document::Internal object created to get the value for sorting, like we do
7576   between other uses.
7578 flint backend:
7580 * If the disk became full while flushing database changes to disk, the
7581   WritableDatabase object would throw a DatabaseError exception but be left in
7582   an inconsistent state such that further use could lead to the database on
7583   disk ending up in a "corrupt" state (theoretically fixable, but no tool
7584   to fix such a database exists).  Now we try to ensure that the object is
7585   left in a consistent state, but if doing so throws a further exception, we
7586   put the WritableDatabase object in a "closed" state such that further
7587   attempts to use it throw an exception.
7589 * Create the lockfile "flintlock" with permissions 0666 so that the umask is
7590   honoured just like we do for the other files (previously we used 0600).
7591   Previously it wasn't possible to lock a database for update if it was
7592   owned by another user, even if you otherwise had sufficient permissions via
7593   "group" or "other".
7595 * Fix garbled exception message when a base file can't be reread.
7597 quartz backend:
7599 * Fix garbled exception message when a base file can't be reread.
7601 remote backend:
7603 * xapian-tcpsrv and xapian-progsrv now accept -w as a short form of --writable,
7604   as was always intended.
7606 build system:
7608 * This release now uses newer versions of the autotools (autoconf 2.62 ->
7609   2.63; automake 1.10.1 -> 1.10.2).
7611 documentation:
7613 * INSTALL: Add new paragraphs about HP's aCC and IRIX (adapted from footnotes
7614   in PLATFORMS).
7616 * PLATFORMS: HP testdrive has been shut down, so all mark all those machines as
7617   "no longer available".  Update atreus' build report to 1.0.10.
7619 * docs/queryparser.html: Add link to valueranges.html.
7621 examples:
7623 * delve: Add missing "and" to --help output.  Report termfreq and collection
7624   freq for each term we're asked about.
7626 portability:
7628 * Fix to build with GCC 4.4 snapshot.
7630 Xapian-core 1.0.9 (2008-10-31):
7632 API:
7634 * Database::get_spelling_suggestion() is now faster (15% speed up for parsing
7635   queries with FLAG_SPELLING_CORRECTION set in a test on real world data).
7637 * Fix OP_ELITE_SET segmentation fault due to excess floating point precision
7638   on x86 Linux (and possibly other platforms).
7640 * Database::allterms_begin() over multiple databases now gives a TermIterator
7641   with operations O(log(n)) rather than potentially O(n) in the number of
7642   databases.
7644 * Add new Database methods metadata_keys_begin() and metadata_keys_end() to
7645   allow the complete list of metadata in a database to be retrieved (this
7646   API addition is needed so that copydatabase can copy database metadata).
7648 testsuite:
7650 * Remove the cached test databases before running the testsuite.
7652 * apitest: Fix cursordelbug1 to work on Microsoft Windows (bug#301).
7654 * apitest,queryparsertest: Skip tests which fail because the timer granularity
7655   is too coarse to measure how long the test took.  In practice, this is only
7656   an issue on Microsoft Windows (bug#300 and bug#308).
7658 matcher:
7660 * Adjust percent cutoff calculations in the matcher in a way which corresponds
7661   to the change to percentage calculations made in 1.0.7 to allow for excess
7662   precision.
7664 * Query::MatchAll no longer gives match results ranked by increasing document
7665   length.
7667 flint backend:
7669 * xapian-compact: Fix crash while compacting spelling table for a single
7670   database when built with MSVC, and probably other platforms, though Linux
7671   got lucky and happened to work (bug#305).
7673 build system:
7675 * configure: Disable -Wconversion for now - it's not useful for older GCC and
7676   is buggy in GCC 4.3.
7678 * configure: Set -Wstrict-overflow to 1 instead of 5, to avoid unreasonable
7679   warnings under GCC 4.3.
7681 documentation:
7683 * Minor improvements to API documentation, including documenting the
7684   XAPIAN_FLUSH_THRESHOLD environmental variable in WriteableDatabase::flush()
7685   (bug#306).
7687 * valueranges.html: Fix typos in example code, and drop superfluous empty
7688   destructor from ValueRangeProcessor subclass.
7690 * HACKING: Several improvements.
7692 examples:
7694 * copydatabase: Also copy user metadata.
7696 Xapian-core 1.0.8 (2008-09-04):
7698 API:
7700 * Fix output of RSet::get_description
7702 testsuite:
7704 * Report subtotals per backend, rather than per testgroup per backend to make
7705   the output easier to read.
7707 flint backend:
7709 * Fix WritableDatabase::add_document() and replace_document() not to be O(n*n)
7710   in the number of values in the new document.
7712 * Fix handling of a table created lazily after the database has had commits,
7713   and which is then cursored while still in sequential mode.
7715 * Fix failure to remove all the Btree entries in some cases when all the
7716   postings for a term are removed.  (bug#287)
7718 * xapian-inspect: Show the help message on start-up.  Correct the documented
7719   alias for next from ' ' to ''.  Avoid reading outside of input string when it
7720   is empty.  (bug#286)
7722 quartz backend:
7724 * Backport fix from flint for WritableDatabase::add_document() and
7725   replace_document() not to be O(n*n) in the number of values in the new
7726   document.
7728 build system:
7730 * configure: Report bug report URL in --help output.
7732 * xapian-config: Report bug report URL in --help output.
7734 * configure: Fix deprecation error for --enable-debug=full to say to instead
7735   use '--enable-assertions --enable-log' not '--enable-debug --enable-log'.
7737 documentation:
7739 * valueranges.html: Expand on some sections.
7741 examples:
7743 * quest: Fix to catch QueryParserError instead of const char * which
7744   QueryParser threw in Xapian < 1.0.0.
7746 * copydatabase: Use C++ forms of C headers.  Only treat '\' as a directory
7747   separator on platforms where it is.  Update counter every 13 counting up to
7748   the end so that the digits all "rotate" and the counter ends up on the exact
7749   total.
7751 portability:
7753 * Eliminate literal top-bit-set characters in testsuite source code.
7755 Xapian-core 1.0.7 (2008-07-15):
7757 API:
7759 * OP_VALUE_RANGE, OP_VALUE_GE, and OP_VALUE_LE:
7761   + If there were gaps in the document id numbering, these operators could
7762     return document ids which weren't present in the database.  This has been
7763     fixed.
7765   + These operators are now more efficient when there are a lot of "missing"
7766     document ids (bug#270).
7768   + Optimise Query(OP_VALUE_GE, <n>, "") to Query::MatchAll.
7770 * Xapian::QueryParser:
7772   + QueryParser now stops parsing immediately when it hits a syntax error.
7773     This doesn't change behaviour, but does mean failing to parse queries is
7774     now more efficient.
7776   + Cases of O(N*N) behaviour have been fixed.
7778 * Xapian::Stem now recognises "nl" as an alias for "dutch" (debian bug 484458).
7780 * Setting sort by value was being ignored by a Xapian::Enquire object which had
7781   previously had a Xapian::Sorter set (bug#256).
7783 testsuite:
7785 * Improved test coverage in a few places.
7787 matcher:
7789 * When using a MatchDecider, we weren't reducing matches_lower_bound unless
7790   all the potential results were retrieved, which led to the lower bound
7791   being too high in some such cases.
7793 * We now track how many documents were tested by a MatchDecider and how many
7794   of those it rejected, and set matches_estimated based on this rate.  Also,
7795   matches_upper_bound is reduced by the number of rejected documents.
7797 * Fixed matches_upper_bound in some cases when collapsing and using a
7798   MatchDecider.
7800 * Fixed matches_lower_bound when collapsing and using a percentage cutoff.
7802 * When using two or more of a MatchDecider, collapsing, or a percentage
7803   cutoff, we now only round the scaled estimate once, and we also round it to
7804   the nearest rather than always rounding down.  Hopefully this should
7805   improve the estimate a little in such cases.
7807 * Fix problem on x86 with the top match getting 99% rather than 100% (caused
7808   by excess precision in an intermediate value).
7810 flint backend:
7812 * If Database::reopen() is called and the database revision on disk hasn't
7813   changed, then do as little work as possible.  Even if it has changed, don't
7814   bother to recheck the version file (bug#261).
7816 * xapian-compact:
7818   + Fix check for user metadata key to not match other key types we may add in
7819     the future.  When compacting, we can't assume how we should handle them.
7821   + If the same user metadata key is present in more than one source database
7822     with different tag values, issue a warning and copy an arbitrary tag value.
7824   + Fix potential SEGV when compacting database(s) with user metadata but no
7825     postings.
7827   + In error message, refer to "iamflint" as the "version file", not the
7828     "meta file".
7830 * xapian-inspect:
7832   + Print top-bit-set characters as escaped hex forms as they often won't be
7833     valid UTF-8 sequences.
7835   + If we're passed a database directory rather than a single table, issue a
7836     special error message since this is an obvious mistake for users to make.
7838 * Fix cursor handling for a modified table which has previously only had
7839   sequential updates which usually manifested as zlib errors (bug#259).
7841 quartz backend:
7843 * Fix cursor handling for a modified table which has previously only had
7844   sequential updates which usually manifested as incorrect data being returned
7845   (bug#259).
7847 * Calling skip_to() as the first operation on an all-documents PostingIterator
7848   now works correctly.
7850 remote backend:
7852 * Improve performance of matches with multiple databases at least one of which
7853   is remote, and when the top hit is from a remote database (bug#279).
7855 * When remote protocol version doesn't match, the error message displayed
7856   now shows the minor version number supplied by the server correctly.
7858 * We now wait for the connection to close after sending MSG_SHUTDOWN for a
7859   WritableDatabase, which ensures that changes have been written to disk
7860   and the lock released before the WritableDatabase destructor returns
7861   (as is the case with a local database).
7863 * We no longer ever send MSG_SHUTDOWN for a read-only Database - just closing
7864   the connection is enough (and is protocol compatible).
7866 inmemory backend:
7868 * Fix bug which resulted in the values not being stored correctly when
7869   replacing an existing document, or if there are gaps in the document id
7870   numbering.
7872 build system:
7874 * This release now uses newer versions of the autotools (autoconf 2.61 ->
7875   2.62; automake 1.10 -> 1.10.1; libtool 1.5.24 -> 1.5.26).  The newer
7876   autoconf reportedly results in a faster configure script, and warns about
7877   use of unrecognised configure options.
7879 * Fix configure to recognise --enable-log=profile and fix build problems when
7880   this is enabled.
7882 * "make up" in the "tests" subdirectory now does "make" in the top-level.
7884 * Fix "make distcheck" by using dist-hook to install generated files from
7885   either srcdir or builddir, with the appropriate dependency to generate them
7886   automatically in maintainer mode builds.
7888 documentation:
7890 * intro_ir.html: Improve wording a bit.
7892 * The documentation now links to trac instead of bugzilla.  For links to the
7893   main website, we now prefer xapian.org to www.xapian.org.
7895 * Doxygen-generated API documentation:
7897   + Improved documentation in several places.
7899   + The helper macro XAPIAN_VISIBILITY_DEFAULT no longer appears in the output.
7901   + Header and directory relationship graphs are no longer generated as they
7902     aren't actually informative here.
7904 * HACKING: Numerous updates and improvements.
7906 examples:
7908 * quest: Output get_description() of the parsed query.
7910 portability:
7912 * Fix build with GCC 2.95.3.
7914 * Fix build with GCC 4.3.
7916 * Newer libtool features improved support for Mac OS X Leopard and added
7917   support for AIX 6.1.
7919 debug code:
7921 * Database::get_spelling_suggestion() now debug logs with category APICALL
7922   rather than SPELLING, for consistency with all other API methods.
7924 * Added APICALL logging to a few Database methods which didn't have it.
7926 * Remove debug log tracing from get_description() methods since logging for
7927   other methods calls get_description() methods on parameters, so logging these
7928   calls just makes for more confusing debug logs.  A get_description() method
7929   should have no side-effects so it's not very interesting even when explicitly
7930   called by the user.
7932 Xapian-core 1.0.6 (2008-03-17):
7934 API:
7936 * Add new query operators OP_VALUE_LE and OP_VALUE_GE which perform "single
7937   ended" range checks, and a corresponding new Query constructor.
7939 * Add Unicode::toupper() to complement Unicode::tolower().
7941 * Xapian::Stem has been further optimised - stemtest now runs ~2.5% faster.
7943 testsuite:
7945 * tests/runtest: Fixed to handle test programs with a ".exe" extension.
7947 * tests/queryparsertest: Add a couple more testcases which already work to
7948   improve test coverage.
7950 * tests/apitest: Add caseconvert1 testcase to test Unicode::tolower() and
7951   Unicode::toupper().
7953 flint backend:
7955 * xapian-check: Fix not to report an error for a database containing no
7956   postings but some user metadata.
7958 * Update the base files atomically to avoid problems with reading processes
7959   finding partially written ones.
7961 * Create lazy tables with the correct revision to avoid producing a database
7962   which we later report as "corrupt" (bug#232).
7964 * xapian-compact: Fix compaction for databases which contain user metadata
7965   keys.
7967 quartz backend:
7969 * Update the base files atomically to avoid problems with reading processes
7970   finding partially written ones.
7972 remote backend:
7974 * The addition of OP_VALUE_LE and OP_VALUE_GE required an update to the Query
7975   serialisation, which required a minor remote protocol version bump.
7977 * Fix to actually set the writing half as the connection as non-blocking when
7978   a timeout is specified.  This would have prevented timeouts from operating
7979   correctly in some situations.
7981 build system:
7983 * configure: GCC warning flag overhaul:  Stop passing "-Wno-multichar" since
7984   any multi-character character literal is bound to be a typo (I believe we
7985   were only passing it after misinterpreting its sense!)  Pass
7986   "-Wformat-security", and "-Wconversion" for all GCC versions.  Add
7987   "-Winit-self" and "-Wstrict-overflow=5" for GCC >= 4.2.  The latter might
7988   prove too aggressive, but seems reasonable so far.  Fix some minor niggles
7989   revealed by "-Wconversion" and "-Wstrict-overflow=5".
7991 * Add XAPIAN_NORETURN() annotations to functions and non-virtual methods which
7992   don't return.
7994 documentation:
7996 * docs/intro_ir.html: Briefly mention how pure boolean retrieval is supported.
7998 * docs/valueranges.html: Fix example of using multiple VRPs to come out as a
7999   "program listing".
8001 * include/xapian/queryparser.h: Fix incorrect example in doccomment.
8003 * docs/quickstart.html: Remove information covered by INSTALL since
8004   there's no good reason to repeat it and two copies just risks one
8005   getting out of date (as has happened here!)
8007 * docs/quickstart.html: Fix very out of date reference to MSet::items
8008   (bug#237).
8010 * PLATFORMS: Remove reports for 0.8.x as they're too old to be interesting.
8011   Separate out 0.9.x reports.  Add Solaris 9 and 10 success reports from James
8012   Aylett.  Update from Debian buildd logs.
8014 portability:
8016 * Now builds on OS/2, thanks to a patch by Yuri Dario.
8018 * Fix testsuite to build on mingw (broken by changes in 1.0.5).
8020 debug code:
8022 * Fix --enable-assertions build, broken by changes in 1.0.5.
8024 Xapian-core 1.0.5 (2007-12-21):
8026 API:
8028 * More sophisticated sorting of results is now possible by defining a
8029   functor subclassing Xapian::Sorter (bug#100).
8031 * Xapian::Enquire now provides a public copy constructor and assignment
8032   operator (bug#219).
8034 * Xapian::Document::values_begin() didn't ensure that values had been read
8035   when working on a Document read from a database.  However, values_end() did
8036   (and so did values_count()) so this wasn't generally a problem in practice.
8038 * Xapian::PostingIterator::skip_to() now works correctly when running over
8039   multiple databases.
8041 * Xapian::Database::postlist_begin() no longer adds a "MultiPostList" wrapper
8042   for the common case when there's only one subdatabase.
8044 * Xapian::TradWeight now avoids division by zero in the (rare) situation of the
8045   average document length being zero (which can only happen if all documents
8046   are empty or only have terms with wdf 0).
8048 * Calling Xapian::WritableDatabase methods when we don't have exactly one
8049   subdatabase now throws InvalidOperationError.
8051 testsuite:
8053 * apitest:
8055   + Testcases now describe the conditions they need to run, and are
8056     automatically collated by a Perl script.  This makes it significantly
8057     easier to add a new testcase.
8059   + The test harness's "BackendManager" has been overhauled to allow
8060     cleaner implementations of testcases which are currently hard to
8061     write cleanly, and to make it easier to add new backend settings.
8063   + Add a "multi" backend setting which runs suitable tests over two
8064     subdatabases combined.  There's a corresponding new make target
8065     "check-multi".
8067   + Add more feature tests of document values.
8069   + sortrel1 now runs for inmemory too.
8071   + Add simple feature test for TradWeight being used to run a query.
8073   + Fix spell3 to work on Microsoft Windows (bug#177).
8075   + API classes are now tested to check they have copy constructors and
8076     assignment operators, and also that most have a default constructor.
8078   + quartztest testcases adddoc2 and adddoc3 have been reworked as apitest
8079     testcases adddoc5 and adddoc6, which run for other backends.
8081   + stubdb1 now explicitly creates the database it needs - generally this
8082     bug didn't manifest because an earlier test has already created it.
8084 * queryparsertest: Add feature tests to check that ':' is being inserted
8085   between prefix and term when it should be.
8087 * Fix extracting of valgrind error messages in the test harness.
8089 * tests/valgrind.supp: Add more variants of the zlib suppressions.
8091 matcher:
8093 * Xapian::Enquire: When the "first" parameter to get_mset() is non-zero, avoid
8094   copying all the wanted items after performing the match.
8096 * Fix bug in handling a pure boolean match over more than one database under
8097   set_docid_order(ASCENDING) - we used to exit early which isn't correct.
8099 * When collapsing on a value, give a better lower bound on the number of
8100   matches by keeping track of the number of empty collapse values seen.
8102 * Xapian::BM25Weight: Fix bug when k2 is non-zero: a non-initialised value
8103   influenced the weight calculations.  By default k2 is zero, so this bug
8104   probably won't have affected most users.
8106 * The mechanism used to collate term statistics across multiple databases has
8107   been greatly simplified (bug#45).
8109 flint backend:
8111 * xapian-check:
8113   + Update to handle flint databases produced by Xapian 1.0.3 and later.
8115   + Fix not to go into an infinite loop if certain checks fail.
8117 quartz backend:
8119 * quartzcompact: Fix equality testing of C strings to use strcmp() rather than
8120   '=='!  In practice, using '==' often gives the desired effect due to pooling
8121   of constant strings, but this may have resulted in a bug on some platforms.
8123 remote backend:
8125 * If we're doing a match with only one database which is remote then just
8126   return the unserialised MSet from the remote match.  This requires an
8127   update to the MSet serialisation, which requires a minor remote protocol
8128   version bump.
8130 build system:
8132 * XO_LIB_XAPIAN now hooks LT_INIT as well as AC_PROG_LIBTOOL and
8133   AM_PROG_LIBTOOL.
8135 * Distribute preautoreconf, dir_contents, docs/dir_contents and
8136   tests/dir_contents.
8138 * Fix preautoreconf to correctly handle all the sources passed to doxygen to
8139   create the collated internal source documentation, and to work in a VPATH
8140   build.
8142 documentation:
8144 * sorting.html: New document on the topic of sorting match results.
8146 * HACKING,admin_notes.html,bm25.html,glossary.html,intro_ir.html,overview.html,
8147   quickstart.html,scalability.html,termgenerator,html,synonyms.html: Assorted
8148   minor improvements.
8150 * valueranges.html: State explicitly that Xapian::sortable_serialise() is used
8151   to encode values at index time, and give an example of how it is called.
8153 * API documentation:
8155  + Clarify get_wdf() versus get_termfreq().
8157  + We now use pngcrush to reduce the size of PNG files in the HTML version.
8159  + The HTML version no longer includes various intermediate files which doxygen
8160    generates.
8162  + Hide the v102 namespace from Doxygen as it isn't user visible.
8164  + Stop describing get_description() as an "Introspection method", as this
8165    doesn't help to explain what it does, and get_description() doesn't really
8166    fall under common formal definitions of "introspection".
8168 * index.html: Add a list of documents on particular topics and include links to
8169   previously unlinked-to documents.  Weed down the top navigation bar which had
8170   grown to unwieldy length.
8172 * PLATFORMS: Update for Debian buildds.
8174 * Improve documentation comment for Document::termlist_count().
8176 * admin_notes.html: Note that this document is up-to-date for 1.0.5.
8178 * INSTALL: zlib 1.2.0 apparently fixes a memory leak in deflateInit2(), which
8179   we use, so that's another reason to prefer 1.2.x.
8181 portability:
8183 * Add explicit includes of C headers needed to build with the latest snapshots
8184   of GCC 4.3.  Fix new warnings.
8186 * xapian-config: On platforms which we know don't need explicit dependencies,
8187   --ltlibs now gives the same output as --libs.
8189 * The minimum supported GCC version is now 2.95.3 (rather than 2.95) as 2.95.3
8190   added support for '#include <sstream>' which means we no longer need to
8191   maintain our own version.
8193 * Fix build with SGI's compiler on IRIX.
8195 * Fix or suppress some MSVC warnings.
8197 debug code:
8199 * Remove incorrect assertion in MultiAndPostList (bug#209).
8201 * Fix build when configured with "--enable-log --disable-assertions".
8203 Xapian-core 1.0.4 (2007-10-30):
8205 API:
8207 * Query:
8209   + Add OP_SCALE_WEIGHT operator (and a corresponding constructor which
8210     takes a single subquery and a parameter of type "double").  This
8211     multiplies the weights from the subquery by the parameter, allowing
8212     adjustment of the importance of parts of the query tree.
8214   + Deprecate the essentially useless constructor Query(Query::op, Query).
8216 * QueryParser:
8218   + A field prefix can now be set to expand to more than one term prefix.
8219     Similarly, multiple term prefixes can now be applied by default.  This is
8220     done by calling QueryParser::add_boolean_prefix() or
8221     QueryParser::add_prefix() more than once with the same field name but a
8222     different term prefix (previously subsequent calls with the same field name
8223     had no effect).
8225   + Trying to set the same field as probabilistic and boolean now throws
8226     InvalidOperationError.
8228   + Fix parsing of `term1 site:example.org term2', broken by changes in 1.0.2.
8230   + Drop special treatment for unmatched ')' at the start of the query, as it
8231     seems rather arbitrary and not particularly useful and was causing us to
8232     parse `(site:example.org) -term' incorrectly.
8234   + The QueryParser now generates pure boolean Query objects for strings such
8235     as `site:example.org' by applying OP_SCALE_WEIGHT with a factor of 0.0.
8237   + Fix handling of `"quoted phrase" +term' and `"quoted phrase" -term'.
8239   + Fix handling of `site:example.org -term'.
8241   + Fix problem with spelling correction of hyphenated terms (or other terms
8242     joined with phrase generators): the position of the start of the term
8243     wasn't being reset for the second term in the generated phrase, resulting
8244     in out of bounds errors when substituting the new value in the corrected
8245     query string.
8247   + The parser stack is now a std::vector<> rather than a fixed size, so it
8248     will typically use less memory, and can't hit the fixed limit.
8250   + Fix handling of STEM_ALL and update the documentation comment for
8251     QueryParser::set_stemming_strategy() to explain how it works clearly.
8253 * PostingIterator: positionlist_begin() and get_wdf() should now always
8254   throw InvalidOperationError where they aren't meaningful (before in some
8255   cases UnimplementedError was thrown).
8257 testsuite:
8259 * Add tests for new features.
8261 * Add another valgrind suppression for a slightly different error from zlib
8262   in Ubuntu gutsy.
8264 * Remove quartztest's test_postlist1 and test_postlist2, replacing the coverage
8265   lost by extending and adding tests which work with other backends as well.
8267 * If a test throws a subclass of std::exception, the test harness now
8268   reports the class name and the extra information returned by std::exception's
8269   what() method.
8271 matcher:
8273 * Several performance improvements have been made, mainly to the handling
8274   of OP_AND and related operations (OP_FILTER, OP_NEAR, and OP_PHRASE).
8275   In combination, these are likely to speed up searching significantly
8276   for most users - in tests on real world data we've seen savings of 15-55%
8277   in search times).  These improvements are:
8279   + OP_AND of 3 or more sub-queries is now processed more efficiently.
8281   + Sub-queries from adjacent OP_AND, OP_FILTER, OP_NEAR, and OP_PHRASE are now
8282     combined into a single multi-way OP_AND operation, and the filters which
8283     implement the near/phrase restrictions are hoisted above this so they need
8284     to check fewer documents (bug#23).
8286   + If an OP_OR or OP_AND_MAYBE decays to OP_AND, we now ensure that the less
8287     frequent sub-query is on the left, which OP_AND is optimised to expect.
8289 * When the Enquire::get_mset() parameter checkatleast is set, and we're sorting
8290   by relevance with forward ordering by docid, and the query is pure boolean,
8291   the matcher was deciding it was done before the checkatleast requirement was
8292   satisfied.  Then the adjustments made to the estimated and max statistics
8293   based on checkatleast meant the results claimed there were exactly msize
8294   results.  This bug has now been fixed.
8296 * Queries involving an OP_VALUE_RANGE filter now run around 3.5 times faster
8297   (bug#164).
8299 * The calculations behind MSet::get_matches_estimated() were always rounding
8300   down fractions, but now round to the nearest integer.  Due to cumulative
8301   rounding, this could mean that the estimate is now a few documents higher in
8302   some cases (and hopefully a better estimate).
8304 * Implement explicit swap() methods for internal classes MSetItem and ESetItem
8305   which should make the final sort of the MSet and ESet a little more
8306   efficient.
8308 flint backend:
8310 * Fixed a bug introduced in 1.0.3 - trying to open a flint database for reading
8311   no longer fails if it isn't writable.
8313 * We no longer use member function pointers in the Btree implementation which
8314   seems to speed up searching a little.
8316 remote backend:
8318 * The remote protocol minor version has been increased (to accommodate
8319   OP_SCALE_WEIGHT).  If you are upgrading a live system which uses the
8320   remote backend, upgrade the servers before the clients.
8322 build system:
8324 * Added macro machinery to allow branch prediction hints to be specified and
8325   used by compilers which support this (current GCC and Intel C++).
8327 * In a developer build, look for rst2html.py if rst2html isn't found as some
8328   Linux distros have it installed under with an extension.
8330 documentation:
8332 * In the API documentation, explicitly note that Database::get_metadata()
8333   returns an empty string when the backend doesn't support user-specified
8334   metadata, and that WritableDatabase::set_metadata() throws UnimplementedError
8335   in this case.  Also describe the current behaviour with multidatabases.
8337 * README: Remove the ancient history lesson - this material is better left to
8338   the history page on the website.
8340 * deprecation.html:
8342   + Deprecate the non-pythonic iterators in favour of the pythonic ones.
8344   + Move "Stem::stem_word(word)" in the bindings to the right section (it was
8345     done in 1.0.0, as already indicated).
8347   + Improve formatting.
8349 * When running rst2html, using "--verbose" was causing "info" messages to be
8350   included in the HTML output, so drop this option and really fix this issue
8351   (which was thought to have been fixed by changes in 1.0.3).
8353 * install.html: Reworked - this document now concentrates on giving
8354   a brief overview of building which should be suitable for most common cases,
8355   and defers to the INSTALL document in each tarball for more details.
8357 * PLATFORMS: Update from tinderbox and buildbot.
8359 * remote.html: xapian-tcpsrv has been able to handle concurrent read
8360   access since 0.3.1 (7 years ago) so update the very out-of-date information
8361   here.  Also, note that some newer features aren't supported by the remote
8362   backend yet.
8364 * HACKING: Note specifically that std::list::size() is O(n) for GCC.
8366 * intro_ir.html: Add link to the forthcoming book "Introduction to
8367   Information Retrieval", which can be read online.
8369 * scalability.html: Update size of gmane.
8371 * quartzdesign.html: Note that Quartz is now deprecated.
8373 debug code:
8375 * The debug assertion code has been rewritten from scratch to be cleaner and
8376   pull in fewer other headers.
8378 Xapian-core 1.0.3 (2007-09-28):
8380 API:
8382 * Add support for user specified metadata (bug#143).  Currently supported by
8383   the flint and inmemory backends.
8385 * Deprecate Enquire::register_match_decider() which has always been a no-op.
8387 * Improve the lower bound on the number of matching documents for an AND query
8388   - if the sum of the lower bounds for the two sides is greater than the
8389   number of documents in the database, then some of them must have both terms.
8391 * Spelling correction: Fix off-by-one error in loop bounds when initialising
8392   (bug#194).
8394 * If the check_at_least parameter to Enquire::get_mset() is used, but there
8395   aren't that many results, then MSet::get_matches_lower_bound() and
8396   MSet::get_matches_upper_bound() weren't always reported as equal - this
8397   bug is now fixed.
8399 * When sorting by value, and using the check_at_least parameter to
8400   Enquire::get_mset(), some potential matches weren't being counted.
8402 * Failing to create a flint or quartz database because we couldn't create the
8403   directory for it now throws DatabaseCreateError not DatabaseOpeningError.
8405 testsuite:
8407 * Fix display of valgrind output when a test fails because valgrind detected
8408   a problem.
8410 * Add another version of valgrind suppression for the zlib end condition check
8411   as this gives a different backtrace for zlib in Ubuntu gutsy.
8413 flint backend:
8415 * The Flint database format has been extended to support user metadata, and
8416   each termlist entry is now a byte shorter (before compression).  As a
8417   result, Xapian 1.0.2 and earlier won't be able to read Xapian 1.0.3
8418   databases.  However, Xapian 1.0.3 can read older databases.  If you open an
8419   older flint database for writing with Xapian 1.0.3, it will be upgraded
8420   such that it cannot then be read by Xapian 1.0.2 and earlier.
8422 * Zlib compression wasn't being used for the spelling or synonym tables (due
8423   to a typo - Z_DEFAULT_COMPRESSION where it should be Z_DEFAULT_STRATEGY).
8425 * xapian-check: Allow "db/record." and "db/record.DB" as arguments.
8427 * Fix "key too long" exception message by substituting FLINT_BTREE_MAX_KEY_LEN
8428   with its numeric value.
8430 * Assorted minor efficiency improvements.
8432 * If we reach the flush threshold during a transaction, we now write out the
8433   postlist changes, but don't actually commit them.
8435 * Check length of new terms is at most 245 bytes for flint in add_document()
8436   and replace_document() so that the API user gets an error there rather
8437   than when flush() is called (explicitly or implicitly).  Fixes bug#44.
8439 * Flint used to read the value of the environmental variable
8440   XAPIAN_FLUSH_THRESHOLD when the first WritableDatabase was opened and would
8441   then cache this value.  However the program using Xapian may have changed
8442   it, so we now reread it each time a WritableDatabase is opened.
8444 * Implement TermIterator::positionlist_count() for the flint backend.
8446 remote backend:
8448 * Fix the result of MSet::get_matches_lower_bound() when using the
8449   check_at_least parameter to get_mset().
8451 inmemory backend:
8453 * Implement TermIterator::positionlist_count() for the inmemory backend.
8455 build system:
8457 * xapian-config: We always need to include dependency_libs in the output of
8458   `xapian-config --libs` if shared libraries are disabled.
8460 * Distribution tarballs are now in the POSIX "ustar" format.  This supports
8461   pathnames longer than 99 characters (which we now have a few instances of
8462   in the doxygen generated documentation) and also results in a distribution
8463   tarball that is about half the size!  This format should be readable by any
8464   tar program in current use - if your tar program doesn't support it, we'd
8465   like to know (but note that the GNU tar tarball is smaller than the size
8466   reduction in the xapian-core tarball...)
8468 * configure no longer generates msvc/version.h - this is now entirely handled
8469   by the MSVC-specific makefiles.
8471 documentation:
8473 * Add a glossary.
8475 * docs/stemming.html: Reorder the initial paragraphs so we actually answer the
8476   question "What is a stemming algorithm?" up front.
8478 * When running rst2html, use "--exit-status=warning" rather than "--strict".
8479   The former actually gives a non-zero exit status for a warning or worse,
8480   while the former doesn't, but does include any "info" messages in the output
8481   HTML.
8483 * docs/deprecation.rst: Add "Database::positionlist_begin() throwing
8484   RangeError and DocNotFoundError".
8486 * valueranges.rst: Correct out-of-date reference to float_to_string.
8488 * HACKING: Document a few more "coding standards".
8490 * PLATFORMS: Updated.
8492 * docs/overview.html: Restore HTML header accidentally deleted in November
8493   2006.
8495 * Fix several typos.
8497 portability:
8499 * Add missing instances of "#include <string.h>" to fix compilation with recent
8500   GCC 4.3 snapshots.
8502 * Fix some warnings for various compilers and platforms.
8504 Xapian-core 1.0.2 (2007-07-05):
8506 API:
8508 * Xapian now offers spelling correction, based on a dynamically maintained
8509   list of spelling "target" words.  This is currently supported by the
8510   flint backend, and works when searching multiple databases.
8512 * Xapian now offers search-time synonym expansion, based on an externally
8513   provided synonym dictionary.  This is currently supported by the flint
8514   backend, and works when searching multiple databases.
8516 * TermGenerator: now offers support for generating spelling correction
8517   data.
8519 * QueryParser:
8521   + New flag FLAG_SPELLING_CORRECTION to enable spelling correction, and a new
8522     method, "get_corrected_query_string()" to get the spelling corrected
8523     query string.
8525   + New flags have been added to allow the new synonym expansion feature to be
8526     enabled and controlled.  Synonym expansion can either be automatic, or only
8527     for terms explicitly indicated in the query string by the new "~" operator.
8529   + The precedence of the boolean operators has been adjusted to match their
8530     usual precedence in mathematics and programming languages.  "NOT" now binds
8531     as tightly as "AND" (previously "AND NOT" would bind like "AND", but just
8532     "NOT" would bind like "OR"!)  Also "XOR" now binds more tightly than "OR",
8533     but less tightly than "AND" (previously it bound just like "OR").
8535   + '+' and '-' have been fixed to work on bracketed subexpressions as
8536     documented.
8538   + If the stemmer is "none", no longer put a Z prefix on terms; this now
8539     matches the output of TermGenerator.
8541 * Add new Xapian::sortable_serialise() and Xapian::sortable_unserialise()
8542   functions which serialise and unserialise numbers (currently only
8543   doubles) to a string representation which sorts in numeric order.  Small
8544   integers have a short representation.
8546 * NumberValueRangeProcessor has been changed to work usefully.  Previously
8547   the numbers had to be the same length; now numbers are serialised to
8548   strings such that a string sort on the string orders the numbers correctly.
8549   Negative and floating point numbers are also supported now.  The old
8550   NumberValueRangeProcessor is still present in the library to preserve
8551   ABI compatibility, but code linking against 1.0.2 or later will pick
8552   up the new implementation, which really lives in a sub-namespace.
8554 * Documents now have a get_docid() method, to get the document ID from the
8555   database they came from.
8557 * Add support for a new type of match decider, called a "matchspy".  Unlike
8558   the old deciders, this will reliably be tested on every candidate
8559   document, so can be used to tally statistics on them.
8561 * Fixed a segfault when getting a description for a MatchNothing query
8562   joined with AND_NOT (bug #176).
8564 * Header files have been tidied up to remove some unnecessary includes.
8565   Applications using "#include <xapian.h>" will not be affected.  We don't
8566   intend to support direct inclusion of individual header files from the xapian
8567   directory, but if you do that, you may have to update you code.
8569 testsuite:
8571 * Feature tests added for all new features.
8573 * Improved test coverage in queryparsertest.  Some tests in queryparsertest
8574   now use flint databases, so the test now ensures that the .flint
8575   subdirectory exists.
8577 * The test harness no longer creates <dbdir>/log for flint (flint doesn't
8578   create a log like quartz does).
8580 * apitest: "-bremote" must now be "-bremoteprog" (to better match
8581   "-bremotetcp"); "-bvoid" must now be "-bnone" (to better describe not
8582   using a database backend).
8584 * To complement "make check-flint", "make check-quartz", and "make
8585   check-remote", you can now run tests for the remotetcp backend with
8586   "make check-remotetcp", for the remoteprog backend with "make
8587   check-remoteprog", for the inmemory backend with "make check-inmemory", and
8588   tests not requiring a backend with "make check-none".
8590 * Several extra tests of the check_at_least parameter supplied to
8591   get_mset() were added.
8593 * Fix memory leak and fd leak in remotetcp handling, so apitest now passes
8594   under valgrind.
8596 * quartztest: no longer test QuartzPostList::get_collection_freq(), which
8597   has been removed.
8599 * Add regression test emptyquery2 for bug #176.
8601 * Add regression test matchall1 for bug with MatchAll queries.
8603 * Enhanced test coverage of match functor, to check that it returns all
8604   matching documents.
8606 matcher:
8608 * Fix bug when check_at_least was supplied - the matches after the
8609   requested MSet size were being returned to the user.  The parameter is
8610   also now handled in a more efficient way - no extra memory is required
8611   (previously, extra memory proportional to the value of check_at_least was
8612   required).
8614 * Fix bug which used incorrect statistics, and caused assertion failures,
8615   when performing a search using a MatchAll query.
8617 * Optimisation for single term queries: we don't need to look at the top
8618   document's termlist to determine that it matches all the query terms.
8620 flint backend:
8622 * The value and position tables are now only created if there is anything to
8623   add to them.  So if you never use document values, there's no value.DB,
8624   value.baseA, or value.baseB.  This means the table doesn't need to be opened
8625   for searching (saving a file handle and a number of syscalls) and when
8626   flushing changes, we don't need to update baseA/baseB just to keep the
8627   revisions in step.  The flint database version has been increased, but the
8628   new code will happily open and read/update flint databases from Xapian 1.0.0
8629   and 1.0.1.  Xapian 1.0.2 flint databases can't be read by Xapian 1.0.1 or
8630   earlier though.
8632 * Two new optional tables are now supported: "spelling", which is used to
8633   store information for spelling correction, and "synonym", which is used
8634   to store synonym information.
8636 * xapian-compact: Now compacts and merges spelling and synonym tables.
8637   Also has a new option "--no-renumber" to preserve document ids from
8638   source databases.
8640 * xapian-check: Now checks the spelling and synonym tables (only the Btree
8641   structure is currently checked, not the information inside).
8643 * Database::term_exists(), Database::get_termfreq(), and
8644   Database::get_collection_freq() are now slightly more efficient for flint
8645   databases.
8647 * New utility 'xapian-inspect' which allowing interactive inspection of key/tag
8648   pairs in a flint Btree.  Useful for development and debugging, and an
8649   approximate equivalent to quartzdump.
8651 * WritableDatabase::delete_document() no longer cancels pending changes if the
8652   document doesn't exist.
8654 * Fix handling of exceptions during commit - previously, this could result
8655   in tables getting out-of-sync, perhaps even resulting in a corrupt database.
8657 * Optimise iteration of all documents in the case where all the document
8658   IDs up to lastdocid are used; in this case, we no longer need to access disk
8659   to get the document IDs.
8661 quartz backend:
8663 * WritableDatabase::delete_document() no longer cancels pending changes if the
8664   document doesn't exist.
8666 * We no longer create a postlist just to find the termfreq or collection
8667   frequency.
8669 remote backend:
8671 * Calling WritableDatabase::delete_document() on a non-existent document now
8672   correctly propagates DocNotFoundError.
8674 * The minor remote protocol version has increased (to fix the previous issue).
8675   You should be able to cleanly upgrade a live system by upgrading servers
8676   first and then clients.
8678 * progclient: Reopen stderr on the child process to /dev/null rather than
8679   closing it.  This fixes apitest with the remoteprog backend to pass when run
8680   under valgrind (it failed in this case in 1.0.0 and 1.0.1).  It probably
8681   has no effect otherwise.
8683 * check_at_least is now passed to the remote server to reduce the work
8684   needed to produce the match, and the serialised size of the returned MSet.
8686 inmemory backend:
8688 * Bug fix: using replace_document() to add a document with a specific
8689   document id above the highest currently used would create empty documents
8690   for all document ids in between.
8692 build system:
8694 * Work around an apparent bug in automake which causes the entries in .libs
8695   subdirectories generated for targets of bin_PROGRAMS not to be removed on
8696   make clean.  This was causing make distcheck to fail.
8698 * Snapshots and releases are now bootstrapped with automake 1.10, and
8699   libtool 1.5.24.
8701 * HTML documentation generated from RST files is now installed.
8703 documentation:
8705 * The API documentation is now generated with Doxygen 1.5.2, which fixes the
8706   missing docs for Xapian::Query.
8708 * Ship and install internals.html.
8710 * Generating the doxygen-collated documentation of the library internals (with
8711   "make doxygen_source_docs") now only tries to generate an HTML version.  The
8712   PDF version kept exceeding TeX limits, and HTML is a more useful format for
8713   this anyway.
8715 * API docs for Xapian::QueryParser now make it clear that the default value for
8716   the stemming strategy is STEM_NONE.
8718 * API docs now describe the NumberValueRangeProcessor more clearly.
8720 * Several typo fixes and assorted wording improvements.
8722 * queryparser.html: Mention "AND NOT" as an alternative way to write "NOT",
8723   and document synonym expansion.
8725 * admin_notes.html: Updated for changes in this release, and corrected a
8726   few minor errors.
8728 * spelling.rst: New file, documenting the spelling correction feature.
8730 * synonyms.rst: New file, documenting the synonyms expansion feature.
8732 * valueranges.rst: The NumberValueRangeProcessor is now documented.
8734 * HACKING: Mention new libtool, and more details about preferring
8735   pre-increment.  Also add a note about 2 space indentation of protection
8736   level declarations in classes.
8738 * INSTALL: note that zlib must be installed before you can build.
8740 examples:
8742 * copydatabase: Now copies synonym and spelling data.  Also, fix a cosmetic
8743   bug with progress output when a specified database directory has a trailing
8744   slash.
8746 portability:
8748 * Fix to build on with OpenBSD's zlib (xapian-core 1.0.0 and 1.0.1 didn't).
8750 * Fixed to build with older zlib such as zlib 1.1.5 which Solaris apparently
8751   uses (xapian-core 1.0.0 and 1.0.1 didn't).  However, we recommend using zlib
8752   1.2.x as decompressing is apparently about 20% faster.
8754 * msvc/version.h.in: Generated version.h for MSVC build no longer has the
8755   remote backend marked as disabled.
8757 * Fix warnings from Intel's C++ compiler.
8759 * Fixes for compilation with gcc-2.95 and GCC 4.3 snapshots.
8761 packaging:
8763 * RPMs:
8765   + Rename xapian.spec to xapian-core.spec to match tarball name.
8767   + Append the user name to BuildRoot.
8769 debug code:
8771 * Better debug logging from the queryparser internals.
8773 Xapian-core 1.0.1 (2007-06-11):
8775 API:
8777 * Xapian::Error:
8779   + Make Error::error_string member std::string rather than char * to avoid
8780     problems with double free() with copied Error objects.  Unfortunately
8781     this mean an incompatible ABI change which we had hoped to avoid until
8782     1.1.0, but in this case there didn't seem to be a sane way to fix the
8783     problem without an ABI change.
8785   + Error::get_description() now converts my_errno to error_string if it hasn't
8786     been already rather than not including any error description in this case.
8788   + Add new method "get_description()" to get a string describing the error
8789     object.  This is used in various examples and scripts, improving their
8790     error reporting.
8792 * Xapian::Database: Add new form of allterms_begin() and allterms_end()
8793   which allow iterating of all terms with a particular prefix.  This
8794   is easier to use than checking the end condition yourself, and is
8795   more efficiently implemented for the remote backend (fixes bug#153).
8797 * Xapian::Enquire: Passing an uninitialised Database object to Enquire will
8798   now cause InvalidArgumentError to be thrown, rather than causing a segfault
8799   when you call Enquire::get_mset().  If you really want an empty database,
8800   you can use Xapian::InMemory::open() to create one.
8802 * Xapian::QueryParser: Multiple boolean prefixed terms with the same term
8803   prefix are now combined with OR before such groups are combined with AND
8804   (bug#157).  Multiple value ranges on the same value are handled similarly.
8806 * Xapian::Query OP_VALUE_RANGE: Avoid calling db->get_lastdocid() repeatedly
8807   as we know the answer won't change - this reduces the run time of a
8808   particular test case by 25%.
8810 testsuite:
8812 * Add test for serialisation of error strings.
8814 * Improved output in various situations:
8816   + Quote strings in TEST_STRINGS_EQUAL().
8818   + queryparsertest: Use TEST_STRINGS_EQUAL when comparing query descriptions
8819     against their expected output, since this makes it much easier to see the
8820     differences.
8822   + Report whole message for exceptions, rather than a truncated version, in
8823     verbose mode.
8825   + Make use of Xapian::Error::get_description(), giving better error
8826     reports.
8828 * queryparsertest: New test of custom ValueRangeProcessor subclass
8829   (qp_value_customrange1).
8831 * apitest: flintdatabaseformaterror1 and flintdatabaseformaterror2 now use a
8832   genuine Xapian 0.9.9 flint database for their tests, and more cases are
8833   tested.  The two tests have also been split into 3 now.
8835 * Fix test harness not to invoke undefined behaviour in cases where a paragraph
8836   of test data contains two or fewer characters.
8838 * Implement a better fix for the MSVC ifstream issue which was fixed in 1.0.0.
8839   This fixes an unintentional side-effect of the previous fix which meant that
8840   apitest's consistency1 wasn't working as intended (it now has a regression
8841   test to make sure it is testing what we intend).
8843 flint backend:
8845 * xapian-compact: Don't uncompress and recompress tags when compacting a
8846   database.  This speeds up xapian-compact rather a lot (by more than 50% in a
8847   quick test).
8849 * If the docid counter wraps, Flint now throws DatabaseError (fixes bug#152).
8851 * Remove the special case error message for pre-0.6 databases since they'll
8852   be quartz format (the check is only in flint because this code was taken from
8853   quartz).
8855 quartz backend:
8857 * If the docid counter wraps, Quartz now throws DatabaseError (fixes bug#152).
8859 remote backend:
8861 * The remote protocol now has a minor version number.  If the major
8862   version number is the same, a client can work with any server with
8863   the same or higher minor version number, which makes upgrading live
8864   systems easier for most remote protocol changes - just upgrade the servers
8865   first.
8867 * When a read-only remote database is closed, the client no longer sends a
8868   (totally bogus) MSG_FLUSH to the server, and the reply is also eliminated.
8869   This reduces the time taken to close a remote database a little (fixes
8870   bug#149).
8872 inmemory backend:
8874 * skip_to() on an allterms TermIterator from an InMemory Database can no longer
8875   move backwards.
8877 * An allterms TermIterator now initialises lazily, which can save some work if
8878   the first operation is a skip_to() (as it often will be).
8880 build system:
8882 * Fix VPATH compilation in maintainer mode with gcc-2.95.
8884 * Fix multiple target rule for generating the queryparser source files in
8885   parallel builds.
8887 * Distribute missing stub Makefiles for "bin", "examples", and
8888   "include/xapian".
8890 documentation:
8892 * Document the design flaw with NumberValueRangeProcessor and why it shouldn't
8893   be used.
8895 * ValueRangeProcessor and subclasses now have API documentation and an overview
8896   document.
8898 * Expand documentation of value range Query constructor.
8900 * Improved API documentation for the TermGenerator class.
8902 * docs/deprecation.rst:
8904   + Fix copy and paste error - set_sort_forward() should be changed to
8905     set_docid_order().
8907   + Improve entry for QueryParserError.
8909 * PLATFORMS: Updated from tinderbox.
8911 examples:
8913 * copydatabase: Rewritten to use the ability to iterate over all the documents
8914   in a database.  Should be much more efficient for databases with sparsely
8915   distributed document IDs.
8917 * simpleindex: Rewritten to use the TermGenerator class, which eliminates a
8918   lot of non-Xapian related code and is more typical of what a user is likely
8919   to want to do.
8921 * simplesearch,simpleexpand: Rewritten to use the QueryParser class, which
8922   is more typical of what a user is likely to want to do.
8924 portability:
8926 * xapian-config: Add special case check for host_os matching linux* or
8927   k*bsd-gnu since vanilla libtool doesn't correctly probe link_all_deplibs=no
8928   for them.
8930 packaging:
8932 * RPMs: Add "# norootforbuild" comment which SuSE's build scripts look for.
8933   Rename "Source0:" to "Source:" as there's only one tarball now.  Add gcc-c++
8934   and zlib-devel to "Build-Requires:".
8936 * The required automake version has been lowered to 1.8.3, so RPMs can now be
8937   built on RHEL 4 and SLES 9.
8939 Xapian-core 1.0.0 (2007-05-17):
8941 API:
8943 * Xapian::Database:
8945   + The Database(const std::string &) constructor has been marked as "explicit".
8946     Hopefully this won't affect real code, but it's possible.  Instead of
8947     passing a std::string where a Xapian::Database is expected, you'll now
8948     have to explicitly write `Xapian::Database(path)' instead of `path'.
8950   + Fixed problem when calling skip_to() on an allterms iterator over multiple
8951     databases which could cause a debug assertion in debug builds, and possible
8952     misbehaviour in normal builds.
8954 * Xapian::Error:
8956   + The constructors of Error subclasses which take a `const std::string &'
8957     parameter are now explicit.  This is very unlikely to affect any real code
8958     but if it does, just write `Xapian::Error(msg)' instead of `msg'.
8960   + Xapian::Error::get_type() now returns const char* rather than std::string.
8961     Generally existing code will just work (only one change was required in
8962     Xapian itself) - the simplest change is to write `std::string(e.get_type())'
8963     instead of `e.get_type()'.
8965   + Previously, the errno value was lost when an error was propagated from
8966     a remote server to the client, because errno values aren't portable
8967     between platforms.  To fix this, Error::get_errno() is now deprecated and
8968     you should use Error::get_error_string() instead, which returns a string
8969     expanded from the errno value (or other system error code).
8971 * Xapian::QueryParser:
8973   + Now assumes input text is encoded as UTF-8.
8975   + We've made several changes to term generation strategy.  Most notably:
8976     Unicode support has been added; '_' now counts as a word character; numbers
8977     and version numbers are now parsed as a single term; single apostrophes are
8978     now included in a term; we now store unstemmed forms of all terms; and we
8979     no longer try to "normalise" accents.
8981   + parse_query() now throws the new Xapian::Error subclass QueryParserError
8982     instead of throwing const char * (bug#101).
8984   + Pure NOT queries are now supported (for example, `NOT apples' will match
8985     all documents not indexed by the stemmed form of `apples').  You need
8986     to enable this feature by passing QueryParser::FLAG_PURE_NOT in flags
8987     to QueryParser::parse_query().
8989   + We now clear the stoplist when we parse a new query.
8991   + Queries such as `+foo* bar', where no terms in the database match the
8992     wildcard `foo*', now match no documents, even if `bar' exists.  Handling
8993     of `-foo*' has also been fixed.
8995   + Now supports wildcarding the last term of a query to provide better support
8996     for incremental searching.  Enabled by QueryParser::FLAG_PARTIAL.
8998   + The default prefix can now be specified to parse_query() to allow parsing
8999     of text entry boxes for particular fields.
9001   + QueryParser::set_stemming_options() has been deprecated since 0.9.0 and
9002     has now been removed.
9004 * Xapian::Stem:
9006   + Now assumes input text is encoded as UTF-8.
9008   + We've updated to the latest version of the Snowball stemmers.  This means
9009     that a small number of words produce different (and generally better)
9010     stems and that some new stemmers are supported: german2 (like german but
9011     normalises umlauts), hungarian, kraaij_pohlmann (a different Dutch
9012     stemmer), romanian, and turkish.
9014 * Xapian::TermGenerator:
9016   + New class which generates terms from a piece of text.
9018 * Xapian::Enquire:
9020   + The Enquire(const Database &) constructor has been marked as "explicit".
9021     This probably won't affect real code - certainly no Xapian API methods
9022     or functions take an Enquire object as a parameter - but calls to user
9023     methods or functions taking an Enquire object could be affected.  In
9024     such cases, you'll now have to explicitly write `Xapian::Enquire(db)'
9025     instead of `db'.
9027   + Enquire::get_eset() now produces better results when used with multiple
9028     databases - without USE_EXACT_TERMFREQ they should be much more similar to
9029     results from an equivalent single database; with USE_EXACT_TERMFREQ they
9030     should be identical.
9032   + Track the minimum weight required to be considered for the MSet separately
9033     from the minimum item which could be considered.  Trying to combine the two
9034     caused several subtle bugs (bug#86).
9036   + Enquire::get_query() is now `const'.  Should have no effect on user code.
9038   + Enquire::get_mset() now handles the common case of an "exact" phrase search
9039     (where the window size is equal to the number of terms) specially.
9041   + Enquire::include_query_terms and Enquire::use_exact_termfreq are now
9042     deprecated in favour of capitalised versions Enquire::INCLUDE_QUERY_TERMS
9043     and Enquire::USE_EXACT_TERMFREQ (for consistency with our other manifest
9044     constants, and general C/C++ conventions).
9046 * Xapian::RSet:
9048   + RSet::contains(MSetIterator) is now `const'.  Should have no effect on user
9049     code.
9051 * Xapian::SimpleStopper::add() now takes `const std::string &' not `const
9052   std::string'.  Should have no effect on user code.
9054 * Xapian::Query:
9056   + We now only perform internal validation on a Query object when it's either
9057     constructed or changed, to avoid O(n^2) behaviour in some cases.
9059   + Xapian::Query::MatchAll (an alias for Query("")) matches all terms in the
9060     document (useful for "pure NOT" queries) and Xapian::Query:MatchNothing
9061     is now a more memorable alias for Query().
9063 * Instead of explicitly checking that a term exists before opening its
9064   postlist, we now do both in one operation, which is more efficient.
9066 * MatchDecider::operator() now returns `bool' not `int'.
9068 * ExpandDecider::operator() now returns `bool' not `int'.
9070 * Xapian::TermIterator::get_termfreq() now throws InvalidOperationError
9071   if called on a TermIterator from a freshly created Document (since
9072   there's no meaningful term frequency as there's no Database for
9073   context).
9075 * <xapian/output.h> is no longer available as an externally visible header.
9076   It's not been included by <xapian.h> since 0.7.0.  Instead of using
9077   `cout << obj;' use `cout << obj.get_description();'.
9079 * New constant Xapian::BAD_VALUENO which is -1 cast to Xapian::valueno.
9081 * New Xapian::ValueRangeProcessor hierarchy: DateValueRangeProcessor,
9082   NumberValueRangeProcessor, and StringValueRangeProcessor.  In
9083   conjunction with the new QueryParser::add_valuerangeprocessor()
9084   method and the new Query::OP_VALUE_RANGE op these allow you to
9085   implement ranges in the query parser, such as `$50..100',
9086   `10..20kg', `01/02/2007..03/04/2007'.
9088 testsuite:
9090 * Many new and improved testcases in various areas.
9092 * If a test throws an unknown exception, say so in the test failure message.
9093   If it throws std::string, report the first 40 characters (or first line if
9094   less than 40 characters) of the string even in non-verbose mode.
9096 * Use of valgrind improved:
9098   + The test harness now only hooks into valgrind if environment variable
9099     XAPIAN_TESTSUITE_VALGRIND is set, which makes it easy to run test programs
9100     under valgrind in the normal way.  The runtest script sets this
9101     automatically.
9103   + runtest now passes "--leak-resolution=high" to valgrind to prevent
9104     unrelated leak reports related to STL classes from being combined.
9106   + configure tests for valgrind improved and streamlined.
9108   + New runsrv script to run xapian-tcpsrv and xapian-progsrv.  We need to
9109     run these under valgrind to avoid issues with excess numerical precision
9110     in valgrind's FP handling, but we can use "--tool=none" which is a lot
9111     faster than running them under valgrind's default memcheck tool.
9113 * The test harness now starts xapian-tcpsrv in a more reliable way - it will
9114   try sequentially higher port numbers, rather than failing because a
9115   xapian-tcpsrv (or something else) is already using the default port.
9116   It also no longer leaks file descriptors (which was causing later tests
9117   to fail on some platforms), and if xapian-tcpsrv fails to start, the error
9118   message is now reported.
9120 * remotetest has been removed and its testcases have either been added to
9121   apitest or just removed if redundant with tests already in apitest.
9123 * termgentest is a new test program which tests the Xapian::TermGenerator
9124   class.
9126 * TEST_EQUAL_DOUBLE() now uses a slightly less stringent threshold -
9127   DBL_EPSILON is too strict for calculations which include multiple
9128   steps.  Also, we now use it instead of doubles_are_equal_enough() and
9129   weights_are_equal_enough() which try to perform the same job.
9131 * New macro TEST_STRINGS_EQUAL() which displays the strings on separate lines
9132   so the differences can be clearly seen.
9134 * Test programs are now linked with '-no-install' which means that libtool
9135   doesn't need to generate shell script wrappers for them on most platforms.
9137 * runtest: Now turns on MALLOC_CHECK_ and MALLOC_PERTURB_ for glibc if
9138   valgrind isn't being used.
9140 * Better support for Microsoft Windows:
9142   + test_emptyterm2 no longer tries to delete a database from disk while a
9143     WritableDatabase object still exists for it, since this isn't supported
9144     under Microsoft Windows.
9146   + Fallback handling when srcdir isn't specified how takes into account .exe
9147     extensions and different path separators.
9149 flint backend:
9151 * Flint is now the default backend.
9153 * xapian-check: New program which performs consistency checks on a flint
9154   database or table.
9156 * xapian-compact: Now prunes unused docids off the start of each source
9157   database's range of docids.
9159 * Positional information is now encoded using a highly optimised fls()
9160   implementation, which is much faster than the FP code 0.9.x used.
9161   Unfortunately the old encoding could occasionally add extra bits
9162   on some architectures, which was harmless except the databases
9163   wouldn't be portable.  Because of this, the flint format has had to
9164   be changed incompatibly.
9166 * The lock file is now called "flintlock" rather than "flicklock" (which
9167   was a typo!)
9169 * Flint now releases its lock correctly if there's an error in
9170   WritableDatabase's constructor.  Previously the lock would remain until
9171   the process exited.
9173 * Flint now throws new Xapian::Error subclass DatabaseVersionError instead of
9174   DatabaseOpeningError when it fails to open a database because it has an
9175   unsupported version.  DatabaseVersionError is a subclass of
9176   DatabaseOpeningError so existing code should continue to work, but it's
9177   now much easier to determine if the problem is that a database needs
9178   rebuilding.
9180 * If you try to open a flint database with an older or newer version than
9181   flint understands, the exception message now gives the version understood,
9182   rather than "I only understand FLINT_VERSION" (literally).
9184 * If we fail to obtain the lock, report why in the exception message.
9186 * Flint now compresses tags in the record and termlist tables using zlib.
9188 * More robust code to handle the flint locking child process, in case of
9189   unexpected errors.
9191 * If a document was replaced more than once between flushes, the document
9192   length wouldn't be updated after the first change.
9194 quartz backend:
9196 * Quartz is still supported, but use in new projects is deprecated (use Flint
9197   instead).  Quartz will be removed eventually.
9199 * quartzcheck: Test if this is a quartz database by looking at "meta" not
9200   "record_DB".  If "record_DB" is >= 2GB and we don't have a LFS aware stat
9201   function then stat can fail even though the file is there.  Also open the
9202   database explicitly as a Quartz database for extra robustness.
9204 * If a document was replaced more than once between flushes, the document
9205   length wouldn't be updated after the first change.
9207 remote backend:
9209 * The remote backend is now supported under Microsoft Windows.
9211 * Open a fresh copy of the database(s) on each connection to a xapian-tcpsrv
9212   rather than relying on being able to share a database across fork() or
9213   between threads (which we don't promise will work).
9215 * xapian-tcpsrv: New "--interface" option allows the hostname or address of the
9216   interface to listen on to be specified (the default is the previous behaviour
9217   of listening on all interfaces).
9219 * If name lookup fails, report the h_errno code from gethostbyname() rather
9220   than whatever value errno happens to currently have!
9222 * Fix bugs in query unserialisation.
9224 * The remote backend now supports all operations (get_lastdocid(), and
9225   postlist_begin() have now been implemented).
9227 * Currently a read-only server can be opened as a WritableDatabase (which is
9228   a minor bug we plan to fix).  In this case, operations which write will fail
9229   and the exception is now InvalidOperationError not NetworkError.
9231 * If a remote server catches NetworkTimeoutError then it will now only
9232   propagate it if we can send it right away (since the connection is
9233   probably unhappy).  After that (and for any other NetworkError) we now
9234   just rethrow it locally to close the connection and let it be logged if
9235   required.
9237 * The timeout parameter to RemoteDatabase wasn't being used, instead the
9238   client would wait indefinitely for the server to respond.
9240 * A timeout of zero to the remote backend now means "never timeout".  This
9241   is now the default idle timeout for WritableDatabase (the connection
9242   timeout default is now 10 seconds, rather than defaulting to the idle
9243   timeout).
9245 * Fix handling of the document length in remote termlists.
9247 * The remote backend now checks when decoding serialised string that the
9248   length isn't more than the amount of data available (bug#117).
9250 * The remote backend now handles the unique term variants of delete_document
9251   and replace_document on the server side.
9253 * The RSet serialisation now encodes deltas between docids (rather than the
9254   docids themselves) which greatly reduces the size of the encoding of a
9255   sparse RSet for a large database.
9257 * We now encode deltas between term positions when sending data after calling
9258   positionlist_begin() on a remote database.
9260 * When using a MatchDecider with remote database(s), don't rerun the
9261   MatchDecider on documents which a remote server has already checked.
9263 * Apply the "decreasing weights with remote database" optimisation which we use
9264   in the sort_by_relevance case in the sort_by_relevance_then_value case too.
9266 * We now throw NetworkError rather than InternalError for invalid data received
9267   over the remote protocol.
9269 * We now close stderr of the spawned backend program when using the "prog" form
9270   of the remote backend.  Previously stderr output would go to the client
9271   application's stderr.
9273 muscat36 backend:
9275 * Support for the old Muscat 3.6 backends has been completely removed.  It's
9276   still possible to convert Muscat 3.6 databases to Xapian databases by
9277   building 0.9.10 and using copydatabase to create a quartz database, which can
9278   then be read by 1.0.0 (and converted to a flint database using copydatabase
9279   again).
9281 build system:
9283 * We've added GCC visibility annotations to the library, which when using GCC
9284   version 4.0 or later reduce the size and load time of the library and
9285   increase the runtime speed a little.  Under x86_64, the stripped library is
9286   6.4% smaller (1.5% smaller with debug information).
9288 * configure: If using GCC, use -Bsymbolic-functions if it is supported
9289   (it requires a very recent version of ld currently).  This option reduces the
9290   size and load time of the shared library by resolving references within the
9291   library when it's created.
9293 * We automatically define _FORTIFY_SOURCE in config.h if GCC is in use
9294   and it's not already set (you can override this as documented in INSTALL).
9295   This adds some checking (mostly at compile time) that important return
9296   values aren't ignored and that array bounds aren't exceeded.
9298 * `./configure --enable-quiet' already allows you to specify at configure time
9299   to pass `--quiet' to libtool.  Now you can override this at make-time by
9300   using `make QUIET=' (to turn off `--quiet') or `make QUIET=y' (to turn on
9301   `--quiet').
9303 * In non-maintainer mode, we don't need the tools required to rebuild some of
9304   the documentation, so speed up configure by not even probing for them in
9305   this common case.
9307 * The makefiles now use non-recursive make in all directories except "docs" and
9308   "tests".  For users, this means that the build is faster and requires less
9309   disk space (bug#97).
9311 * configure: Add proper detection for SGI's C++ (check stderr output of
9312   "CC -v") and automatically pass -ptused in CXXFLAGS for xapian-core and any
9313   applications using xapian-config --cxxflags since it seems to be required to
9314   avoid template linking errors.
9316 * XO_LIB_XAPIAN now checks for the case where XAPIAN_CONFIG wasn't specified
9317   and xapian-config wasn't found, but the library appears to be installed -
9318   this almost certainly means that the user has installed xapian-core from
9319   a package, but hasn't installed the -dev or -devel package, so include
9320   that advice in the error message.
9322 * `./configure --with-stlport-compiler' now requires a compiler name as an
9323   argument.
9325 * configure: Disable probes for f77, gcj, and rc completely by preventing
9326   the probe code from even appearing in configure - this reduces the size of
9327   configure by 209KB (~25%) and should speed it up significantly.
9329 * configure: Suppress more unhelpful warnings and "remarks" for HP's aCC, and
9330   turn on "+wlint", which seems useful.
9332 * A number of cases of unnecessary header inclusions have been addressed,
9333   which should speed up compilation (fewer headers to parse when compiling
9334   many source files).  This also reduces dependencies within the source code,
9335   and thus the number of files which need to be rebuilt when a header is
9336   changed.
9338 * configure: Cache the results of some of our custom tests.
9340 documentation:
9342 * The documentation has all been updated for changes in Xapian 1.0.0.
9344 * Many of the documentation comments in the API headers (which are collated
9345   using doxygen to generated the API reference) have been improved, and some
9346   missing ones added.  Also, internal classes, members, and methods are now all
9347   marked as such so that none should appear in the generated documentation.  In
9348   particular, the class inheritance graphs should be a lot clearer.  A few other
9349   problems have also been addressed.
9351 * docs/internals.html: New separate index page for the "internal"
9352   documentation.
9354 * docs/deprecated.html: New document describing deprecation policy.  This
9355   includes lists of features which have been removed, or which are deprecated
9356   and scheduled for removal, along with suggested replacements.
9358 * docs/admin_notes.html: New document introducing Xapian for sysadmins.
9360 * docs/termgenerator.html: New document describing the new term generation
9361   strategy implemented by the Term::Generator class.
9363 * docs/bm25.html,docs/intro_ir.html: These have been overhauled to make them
9364   fit better with the rest of the documentation, and with Xapian itself.
9366 * docs/overview.html: Fixed links to error classes in generated API
9367   documentation.
9369 * HACKING,INSTALL: Many updates and improvements.
9371 * xapian-config: Improve --version output so that help2man produces a better
9372   man page.
9374 * PLATFORMS: Remove reports for 0.7.* and demote reports for 0.8.* to "older
9375   reports" status.  All SF compilefarm machines are now "no longer available",
9376   so update the symbols and key to reflect this.  Update with recent success
9377   reports from the tinderbox and other sources.
9379 * AUTHORS: Thanks several bug reporters I missed before, as well as recent
9380   contributors.
9382 * docs/code_structure.html now looks nicer and includes links to
9383   svn.xapian.org.
9385 * docs/remote_protocol.html: Fixed several typos and other errors, and document
9386   all the new messages.
9388 * We no longer include docs/apidoc/latex/* in the xapian-core tarballs since
9389   it's just useless bloat.
9391 examples:
9393 * delve:
9395   + Report the exception error string if open a database fails.
9397   + Rename "-k" to "-V" since "keys" were renamed to "values" long ago.  Keep
9398     "-k" as an alias for now, but don't advertise it.  Add handling so "-V3"
9399     shows value #3 for every document in the database.
9401   + No longer stems terms by default.  Add "-s/--stemmer" option to allow a
9402     stemmer to be specified.
9404 * quest: Add "--stemmer" option to allow stemming language to be set, or
9405   stemming to be disabled.
9407 portability:
9409 * Fix compilation with GCC 4.3 snapshot.
9411 * Always use pid_t not int for holding a process id, and use AC_TYPE_PID_T to
9412   `#define pid_t int' if <sys/types.h> doesn't provide pid_t.
9414 * Pass the 4th parameter of setsockopt() as char* which works whether the
9415   function actually takes char* or void* (since C++ allows implicit conversion
9416   from char* to void*).
9418 * Most warnings in the MSVC build have been fixed.
9420 * Refactored most portability workarounds into safeXXXX.h headers.
9422 * Building for mingw in a cygwin environment should work better now.
9424 packaging:
9426 * RPM spec file:
9428   + Updated for the changes in this release.
9430   + ChangeLog.examples is now packaged.
9432 debug code:
9434 * Rename --enable-debug* configure options - conflating the options to "turn on
9435   assertions" and "turn on logging" is confusing. `--enable-debug[=partial]'
9436   becomes `--enable-assertions'; `--enable-debug-verbose' becomes
9437   `--enable-log' and `--enable-debug=full' becomes `--enable-assertions
9438   --enable-log'.  For now the old options give an error telling you the new
9439   equivalent.
9441 * Debug logging from expand is now all of type EXPAND (some was of types
9442   MATCHER and WTCALC before).
9444 * Hook the debug tracing in the lemon generated parser into Xapian's debug
9445   logging framework.
9447 * New assertion types: AssertEqParanoid() and AssertNeParanoid().
9449 * Retry write() if it fails when writing a debug log entry to ensure to avoid
9450   the risk of a partial write.
9452 Xapian-core 0.9.10 (2007-03-04):
9454 API:
9456 * Fix WritableDatabase::replace_document() not to lose positional information
9457   for a document if it is replaced with itself with unmodified postings.
9459 * QueryParser: Add entries to the "unstem" map for prefixed boolean filters
9460   (e.g. type:html).
9462 * Fix inconsistent ordering of documents between pages with
9463   Enquire::set_sort_by_value_then_relevance (fixes bug#110).
9465 testsuite:
9467 * Workaround apparent bug in MSVC's ifstream class.
9469 flint and quartz backends:
9471 * Fix possible double-free after a transaction fails.
9473 * Fix code for recovering from failing to open a table for reading
9474   mid-modification.  If modifications are so frequent that opening for reading
9475   fails 100 times in a row, throw DatabaseModifiedError not
9476   DatabaseOpeningError.
9478 * Don't call std::string::append(ptr, 0) when ptr may be uninitialised
9479   or NULL (rather suspect, and reported to cause SEGV-like behaviour with
9480   MSVC).
9482 * Ensure both_bases is set to false if we don't have both bases when
9483   opening a table using an existing object.
9485 * Use MS Windows API calls to delete files and open files we might want to
9486   delete while they are still open (i.e. the flint and quartz btree base
9487   files).  This fixes a problem when a writer can't discard an old revision at
9488   the exact moment a reader is opening it (bug #108).
9490 remote backend:
9492 * Fix WritableDatabase::has_positions() to refetch the cached value if it
9493   might be out of date.
9495 * Fix incorrect serialisation of a query with non-default termpositions.
9497 inmemory backend:
9499 * If replace_document is used to set the docid of a newly added document which
9500   has previously existed, ensure we mark that document as valid.
9502 documentation:
9504 * Assorted improvements to API documentation.
9506 * docs/Makefile.am: The larger pool_size we set in 0.9.9 for building
9507   sourcedoc.pdf was a bit marginal, so increase it further.
9509 * docs/stemming.html,docs/install.html: Correct 2 references to "CVS" to say
9510   "SVN" instead.
9512 * HACKING: Update the release checklist.
9514 portability:
9516 * Fix flint and quartz to allow 2GB+ B-tree tables when compiling with MSVC.
9518 packaging:
9520 * RPMs: Remove "." from end of "Summary:".  Package the new man page for
9521   xapian-progsrv.
9523 Xapian-core 0.9.9 (2006-11-09):
9525 testsuite:
9527 * Use popen() to run xapian-tcpsrv and wait for "Listening..." before returning
9528   rather than just sleeping for 1 second and hoping that's enough.
9530 * If we can't start xapian-tcpsrv because the port is in use, try higher
9531   numbered ports.
9533 remote backend:
9535 * xapian-tcpsrv: If the port requested is in use, exit with code 69
9536   (EX_UNAVAILABLE) which is useful if you're trying to automate launching of
9537   xapian-tcpsrv instances.
9539 * xapian-tcpsrv: Output "Listening..." once the socket is open and read for
9540   connections (this allows the testsuite to wait until xapian-tcpsrv is ready
9541   before connecting to it).
9543 * xapian-progsrv: Now supports --help, --version, and has a man page.  Fixes
9544   Bug #98.
9546 * Turn on TCP_NODELAY for the TCP variant of the remote backend which
9547   dramatically improves the latency of operations on the database.
9549 build system:
9551 * internaltest: Disable serialiselength1 and serialisedoc1 when the remote
9552   backend is disabled to fix build error in this case.
9554 * Move libbtreecheck.la from testsuite/ to backends/quartz/.
9556 * Move the testsuite harness from testsuite/ to tests/harness/.
9558 documentation:
9560 * Ship our custom INSTALL file rather than the generic one from autoconf which
9561   we've accidentally been shipping instead since 0.9.5.
9563 * docs/Makefile.am: Building sourcedoc.pdf needs a larger pool_size now we're
9564   using pdflatex.
9566 * HACKING: Update debian packaging checklist.
9568 * PLATFORMS: Updated with results from tinderbox.
9570 portability:
9572 * Create "safefcntl.h" as a replacement for <fcntl.h> instead of using
9573   "utils.h" for this purpose, since "utils.h" pulls in many other things we
9574   often don't need.
9576 packaging:
9578 * RPMs: Prevent binaries getting an rpath for /usr/lib64 on FC6.
9580 Xapian-core 0.9.8 (2006-11-02):
9582 API:
9584 * QueryParser: Don't require a prefixed boolean term to start with an
9585   alphanumeric - allow the same set of characters as we do for the second
9586   and subsequent characters.
9588 flint backend:
9590 * Only force a flush on WritableDatabase::allterms_begin() if there are
9591   actually pending changes.
9593 quartz backend:
9595 * Only force a flush on WritableDatabase::allterms_begin() if there are
9596   actually pending changes.
9598 * quartzcheck: Avoid dying because of an unhandled exception if the Btree
9599   checking code finds an error in the low-level Btree structure.  Add a
9600   catch for any other unknown exceptions.
9602 build system:
9604 * When building with GCC, turn on warning flag -Wshadow even when not in
9605   maintainer mode (provided it is supported by the GCC version being used).
9607 * testsuite/backendmanager.cc: Fix compilation when valgrind is detected by
9608   configure.
9610 * If generating apidoc.pdf fails, display the logfile pdflatex generates since
9611   that is likely to show what failed.
9613 documentation:
9615 * Produce a PDF for apidoc rather than PostScript, since the PDF is smaller,
9616   plus at least as easy to print and easier to view for most users.  Use
9617   pdflatex to generate the PDF directly rather than going via a DVI file which
9618   apparently produces a better result and also avoids problems on some Linux
9619   distros where latex is a symlink to pdfelatex (bug#81, bug#95).
9621 * HACKING: Mention automake 1.10 is out but we've not tested it yet.
9623 * HACKING: Add entries to release checklist: make sure new API methods
9624   are wrapped by the bindings, and that bug submitters are thanked.
9626 * HACKING: Note that on Debian, tetex-extra is needed for
9627   fancyhdr.sty.
9629 * HACKING: Note that dch can be used to update debian/changelog.
9631 * docs/code_structure.html: Document backends/remote.
9633 * PLATFORMS: Update from tinderbox.
9635 portability:
9637 * configure: When checking if we need -lm, don't use a constant argument to
9638   log() as the compiler might simply evaluate the whole expression at compile
9639   time.
9641 * configure: Redhat's GCC 2.96 doesn't support -Wundef even though real GCC
9642   version before and after it do!
9644 * configure: Avoid use of double quotes in double-quoted backticks since
9645   it causes problems on some platforms.
9647 * backends/flint/flint_io.cc: Fix compilation on windows (needs to
9648   #include "safewindows.h" to get definition of SSIZE_T).
9650 * Fix our implementation of om_ostringstream to compile so that the build
9651   works once more on older compilers without <sstream> (regression probably
9652   introduced in 0.9.7).
9654 packaging:
9656 * xapian.spec: Package xapian-progsrv.
9658 Xapian-core 0.9.7 (2006-10-10):
9660 API:
9662 * QueryParser:
9664   + Allow a distance to be optionally specified for NEAR - e.g.
9665     "cats NEAR/3 dogs" (bug#92).
9667   + Implement "ADJ" operator - like "NEAR" except the terms must
9668     appear in matching documents in the same order as in the query.
9670   + Fix bug in how we handle prefixed quoted phrases and prefixed brackets.
9672   + Fix parsing of loved and hated prefixed phrases and bracketted expressions.
9674   + Fix handling of stopwords in boolean expressions.
9676   + Don't ignore a stopword if it's the only query term.
9678 * Document::add_value() failed to replace an existing value with the same
9679   number, contrary to what the documentation says (bug #82).
9681 * Enquire::set_sort_by_value(): Don't fetch the document data when fetching
9682   the value to sort on.  Simple benchmarking showed this to speed up sort by
9683   value by a factor of between 3 and 9!
9685 * Implement transactions for flint and quartz.  Also supported are "unflushed"
9686   transactions, which provided an efficient way to atomically group a number
9687   of database modifications.
9689 * The Xapian::Error and Xapian::ErrorHandler classes have been reimplemented.
9690   The new versions have better, clearer documentation comments and are cleaner
9691   internally.
9693 * Change how doubles are serialised by TradWeight, BM25Weight, and in the
9694   remote backend protocol.  The new encoding allows us to transfer any double
9695   value which can be represented by both machines precisely and compactly.
9697 testsuite:
9699 * Add targets "check-flint", "check-quartz", and "check-remote" in tests and at
9700   the top level which run the subset of tests which test the respective backend.
9702 * apitest: Run tests on flint if flint is enabled, rather than if quartz is
9703   enabled!
9705 * apitest: Speed up deldoc4 when run in verbose mode - some stringstream
9706   implementations are very inefficient when the string grows long.
9708 * Turn on GLIBCXX_FORCE_NEW when running tests under valgrind to stop the GNU
9709   C++ STL from using a pooling allocator.  This helps make velgrind's leak
9710   tracking more reliable.
9712 * Probe for required valgrind logging options at configure time rather than
9713   when running the test program.  This saves about 2 seconds per test program
9714   invocation.
9716 * Fix testsuite harness to show valgrind output when a test fails (when running
9717   under valgrind in verbose mode).  This had stopped working, probably due to
9718   changes in valgrind 3.
9720 * internaltest: Check that the destructor on a temporary object gets called
9721   at the correct time (Sun C++ deliberately gets this wrong by default, and it
9722   would be good to catch any other compilers which do the same).
9724 * apitest: When running tests on the remote backend and running under valgrind,
9725   run xapian-tcpsrv and xapian-progsrv under valgrind too to avoid issues
9726   with the precision of doubles (bug#94).
9728 flint backend:
9730 * Retry on EINTR from fcntl or waitpid when creating or releasing the flint
9731   lock file.
9733 * xapian-compact: Add --blocksize option to allow the blocksize to be set
9734   (default is 8K as before.)
9736 * WritableDatabase::replace_document(did, doc) was double-incrementing the
9737   "changes" counter when document did didn't exist so it would flush twice
9738   as often - fixed.
9740 * WritableDatabase::postlist_begin(): Remove forced flush when iterating the
9741   posting list of a term which has modified postings pending.
9743 quartz backend:
9745 * quartzcompact: Add --blocksize option to allow the blocksize to be set
9746   (default is 8K as before.)
9748 * WritableDatabase::replace_document(did, doc) was double-incrementing the
9749   "changes" counter when document did didn't exist so it would flush twice
9750   as often - fixed.
9752 remote backend:
9754 * Most of the remote backend has been rewritten.  It now supports most
9755   operations which a local database does (including writing!), the protocol
9756   used is more compact, and a number of layers of classes have been eliminated
9757   and the sequences of method calls simplified, so the code should be easier to
9758   understand and maintain despite doing more.  A number of bugs have been fixed
9759   in the process.
9761 * xapian-tcpsrv: Report errno if we catch a Xapian::Error which has it set.
9763 * xapian-tcpsrv: Fix memory leak in query unserialisation.
9765 build system:
9767 * Now using autoconf 2.60 for snapshots and releases.  Also now using a
9768   libtool patch which improves support for Sun C++'s -library=stlport4 option.
9770 * configure: Fix generation of version.h to work with Solaris sed.
9772 * automake adds suitable rules for rebuilding doxygen_api_conf and
9773   doxygen_source_conf, so remove our less accurate versions.  Also fix
9774   dependencies for regenerating the doxygen documentation, and make the
9775   documentation build work with parallel make.
9777 * Make use of the dist_ prefix to avoid having to list files in EXTRA_DIST as
9778   well as in *_DATA and man_MANS.
9780 * Removed a few unused #include-s.
9782 * include/xapian/error.h: Add hook to allow SWIG bindings to be built using
9783   GCC's visibility support.
9785 * configure: Turn on automake's -Wportability to help ensure our Makefile.am's
9786   are written in a portable way.
9788 * configure: Disable probing and short-cut tests for a FORTRAN compiler.  We
9789   don't use one, but current libtool versions always check for it regardless.
9791 * xapian-config: Prune -L/usr/lib from output of `xapian-config --libs'.
9793 documentation:
9795 * docs/scalability.html: quartzcompact and xapian-compact now allow you to set
9796   the blocksize, so there's no need to use copydatabase if you want to migrate
9797   a database to a larger blocksize.  Mention gmane.  Other minor tweaks.
9799 * Eliminate "XAPIAN_DEPRECATED" from generated documentation.
9801 * PLATFORMS: Added success report for Nexenta (alpha 5), MSVC, and sparc linux.
9802   Updated other results from tinderbox.
9804 * Add links to the wiki from README and the documentation index.
9806 * docs/overview.html: Add discussion of uses of terms vs values.
9808 * docs/overview.html: Rewrite the section on Xapian::Document to remove some
9809   very out-of-date information and make it clearer.
9811 * include/xapian/database.h: Note that automatically allocated document IDs
9812   don't reuse IDs from deleted documents.
9814 * include/xapian/enquire.h: Note that "set_sort_by_relevance" is the default
9815   setting.
9817 * docs/queryparser.html,include/xapian/queryparser.h: Add note that
9818   FLAG_WILDCARD requires you to call set_database.
9820 * HACKING: Add some advice regarding debugging using -D_GLIBCXX_DEBUG,
9821   valgrind, and gdb.
9823 * HACKING: Give URL to Alexandre Duret-Lutz's autotools tutorial, which is much
9824   more up-to-date than the "goat book".
9826 * HACKING: Update and expand the information about the debian packaging.
9828 * Add missing dir_contents files.
9830 portability:
9832 * xapian/version.h: Add a check that _GLIBCXX_DEBUG is set compatibly if we're
9833   compiling with GNU C++ 3.4 or newer.
9835 * Add configure check to see if "-lm" is needed to get maths functions since
9836   newer versions of Sun's C++ compiler seem to require this.
9838 * Automatically put Sun's C++ compiler into "ANSI C++ compliant library" mode
9839   (using -library=stlport4).  This allows us to remove most of the special
9840   case bits of code we've accumulated for just this compiler, which improves
9841   maintainability.
9843 * Sun's C++ compiler implements non-standards-conforming lifetimes for
9844   temporary objects by default.  This means database locks don't get released
9845   when they should, so we now always pass "-features=tmplife" for Sun C++
9846   which selects the behaviour specified by the C++ standard.
9848 Xapian-core 0.9.6 (2006-05-15):
9850 API:
9852 * Rename Xapian::xapian_version_string() and companions to
9853   Xapian::version_string(), etc.  Keep the old functions as aliases which are
9854   marked as deprecated.
9856 * QueryParser: Add rules to handle a boolean filter with a "+" in front (such
9857   as +site:xapian.org).
9859 testsuite:
9861 * queryparsertest: Add another prefix testcase to improve coverage.
9863 build system:
9865 * configure: Simpler check for VALGRIND being set to empty value.
9867 * include/Makefile.am: Add xapian/version.h.timestamp as a dependency on
9868   all-local so that xapian/version.h actually gets regenerated when required.
9870 * Eliminate XAPIAN_BUILD_BACKEND_* from config.h and just use
9871   XAPIAN_HAS_*_BACKEND from xapian/version.h instead.
9873 documentation:
9875 * remote_protocol.html: Document keep-alive messages.
9877 * xapian/enquire.h: Remove bogus documentation for a parameter which doesn't
9878   exist.
9880 * PLATFORMS: Added a summary.  Updated and pruned old entries for which we
9881   have a newer close match.
9883 * HACKING: Expand on details of what's required when changing Xapian (discuss
9884   documentation requirements, and more on why feature tests are vital).
9886 * HACKING: Update section on building debian packages.
9888 portability:
9890 * The tarball is generated with a patched version of libtool 1.5.22 which
9891   fixes libtool bugs on HP-UX and some BSD platforms.
9893 * configure: Fix problems with test for snprintf which affected cygwin, and
9894   possibly some other platforms.
9896 * configure: Tweak version.h generation to cope with CXXCPP putting carriage
9897   returns into its output as can happen on cygwin.
9899 * Fix renaming of "iamflint.tmp" for MS Windows where you can't rename an open
9900   file.
9902 * Fixed MSVC7 warnings.
9904 * Added workaround for newlib header bug.
9906 Xapian-core 0.9.5 (2006-04-08):
9908 API:
9910 * QueryParser:
9912   + Fix FLAG_BOOLEAN_ANY_CASE to really allow any case combination - previously
9913     it only allowed all uppercase or all lowercase.
9915   + Fix QueryParser's handling of terms with trailing "#", "+", or "-" when
9916     set_database has been called and the term doesn't exist in the database
9917     with the suffix.
9919 * Add mechanism to allow xapian-bindings to override deprecation warnings so
9920   we can continue to wrap deprecated methods without lots of warnings.
9922 * Move Enquire::get_matching_terms_end() and Document::termlist_end() inline in
9923   header.
9925 * Database::termlist_begin(): Eliminate the MultiTermList wrapper in the common
9926   case where we're only dealing with a single database.
9928 * Fix TermIterator::positionlist_begin() to work on TermIterator from
9929   Database::termlist_begin().  Make TermList::positionlist_begin() pure
9930   virtual and put dummy implementations in BranchTermList and other
9931   subclasses which can't (or don't) implement it.  This makes it hard to
9932   accidentally fail to implement it in a backend's TermList subclass.
9934 * TermIterator::positionlist_begin() with the remote backend now throws
9935   UnimplementedError instead of InvalidOperationError.
9937 * Implement Enquire::set_sort_by_relevance_then_value().
9939 testsuite:
9941 * Added missing feature test for QueryParser::FLAG_BOOLEAN_ANY_CASE.
9943 * remotetest: Check mset size in tcpmatch1.
9945 flint backend:
9947 * xapian-compact: Fixed segfault from passing an unknown option (e.g.
9948   "xapian-compact --foo").
9950 quartz backend:
9952 * quartzdump,quartzcompact: Fixed segfault from passing an unknown option
9953   (e.g.  "quartzdump --foo").
9955 remote backend:
9957 * xapian-tcpsrv: Don't perform a name lookup on the IP address which an
9958   incoming connection is from as that could easily slow down the search
9959   response - instead just print the IP address itself if output is verbose.
9961 * xapian-tcpsrv: Allow up to 5 connections in the listen queue instead of just
9962   one.
9964 build system:
9966 * Removed unused code from the matcher and the remote, quartz, and flint
9967   backends.
9969 documentation:
9971 * All installed binaries now support --help and --version and have a man page
9972   (which is generated using help2man).
9974 * docs/overview.html: Bring up to date.
9976 * docs/remote_protocol.html: Document messages for requesting and sending a
9977   termlist and a document.
9979 * PLATFORMS, AUTHORS: Updated.
9981 * INSTALL: Improve wording.
9983 * HACKING: Note that we now use a lightly patched version of libtool 1.5.22.
9985 * HACKING: aclocal is part of automake, not autoconf.
9987 portability:
9989 * Added some tweaks to help support compilation with MSVC.
9991 packaging:
9993 * RPMs: package the new man pages.
9995 debug code:
9997 * Add missing spaces in some debug output.
9999 Xapian-core 0.9.4 (2006-02-21):
10001 API:
10003 * Flag deprecated methods such that the compiler gives a warning, for compilers
10004   which support such a feature (most notably GCC >= 3.1).
10006 * Correct typo in name of definition of function xapian_revision().
10008 testsuite:
10010 * Updated uses of deprecated methods in the testsuite.
10012 build system:
10014 * xapian-config: Set exec_prefix and prefix at top of script so that
10015   xapian-config works after xapian-core is installed.
10017 documentation:
10019 * Add documentation comment for Enquire::set_sort_by_value_then_relevance().
10021 * README: Add pointer to HACKING.  Change "CVS access" to "SVN access".
10023 * PLATFORMS: Updated from tinderbox.
10025 * COPYING: Update second occurrence of old FSF address.
10027 Xapian-core 0.9.3 (2006-02-16):
10029 API:
10031 * Added 4 functions to report version information for the library version being
10032   used (which may not be the same as that compiled against if shared libraries
10033   are in use):  xapian_version_string(), xapian_major_version(),
10034   xapian_minor_version(), xapian_revision().
10036 * Xapian::QueryParser:
10038   + Fix handling of "+" terms in a query when the default query operator is
10039     AND.  Added regression test for this.
10041   + Added "AND NOT" as a synonym for "NOT".  Added feature tests for this.
10043 * Fix prototype for ESet::operator[] to take parameter of type termcount
10044   instead of doccount (doccount and termcount are both typedefs to the same
10045   type so this really just makes the prototype more consistent).
10047 * Xapian::Stem: Check for malloc and calloc failing to allocate memory and
10048   throw an exception.  Richard has fixed this upstream in snowball, so this is
10049   a temporary fix until we import a new version of snowball.
10051 * Xapian::Database: Trying to open a database for reading which doesn't exist
10052   now fails with DatabaseOpeningError instead of FeatureUnavailableError.
10053   Added regression test for this.
10055 * Add Stopper::get_description() and SimpleStopper::get_description().
10057 testsuite:
10059 * Fixed testsuite harness to work with valgrind on 64 bit platforms.
10061 * Merged the "running tests" section of docs/tests.html into the similar
10062   section in HACKING, and make docs/tests.html refer the reader to HACKING for
10063   more information.
10065 * Tidied and enhanced environmental variables which the test suite harness
10066   recongnises:
10068   + OM_TEST_BACKEND: Removed support since the "-b" switch to apitest allows
10069     you control which backend is used, making OM_TEST_BACKEND pretty much
10070     redundant.
10072   + XAPIAN_SIG_DFL: Renamed to XAPIAN_TESTSUITE_SIG_DFL.
10074   + XAPIAN_TESTSUITE_OUTPUT: New environmental variable to control use of
10075     ANSI colour escape sequences in test output (set to "plain" to disable
10076     them, unset, empty, or "auto" to check if stdout is a tty, or anything
10077     else to force colour).
10079 flint backend:
10081 * xapian-compact: Added "--multipass" option to merge postlists in pairs or
10082   triples until all are merged.  Generally this is faster than an N-way merge,
10083   but it does require more disk space for temporary files so it's not the
10084   default.
10086 quartz backend:
10088 * quartzcheck: If the database is too broken to open, emit a warning message
10089   and bump the error count.
10091 build system:
10093 * Now generate snapshots and releases with automake 1.9.6 (was 1.9.5) and
10094   libtool 1.5.22 (was 1.5.18).
10096 * configure: If not cross-compiling, try to actually run a test program built
10097   with the C++ compiler, not just link one.
10099 * configure: Fix to actually skip the check for valgrind if VALGRIND is set to
10100   an empty value.
10102 * configure: Add sanity check for MS Windows that "find" is Unix-like find, not
10103   MSDOS-like.
10105 * Fix conditional compilation of flint backend - it was being disabled when
10106   quartz was, not when flint was supposed to be.
10108 documentation:
10110 * INSTALL,README: Updated.
10112 * Give pointer to replacements for the deprecated Enquire sorting methods
10113   in the doxygen collated documentation.
10115 * PLATFORMS: Added success reports for ppc64 linux and Fedora Core 4.  Updated
10116   from the tinderbox.
10118 * HACKING: Note platforms valgrind now has solid support for; Improve
10119   phrasing in a few places.
10121 * Upgrade to using doxygen 1.4.6 for generating API documentation.
10123 * Change title of the "full source" documentation to "Internal Source
10124   Documentation" rather than "Full source documentation" to make it
10125   clearer it's only useful if you want to modify Xapian itself.
10127 * Fix documentation comments for the values of QueryParser::feature_flag so
10128   doxygen actually pulls out the documentation for them.  Add documentation for
10129   the parameters of QueryParser::parse_query().
10131 * queryparser.html: Document wildcards.
10133 portability:
10135 * Fix compilation with GCC 4.0.1 and later (need to forward declare class
10136   InMemoryDatabase) (bug #69).
10138 * Fix compilation under cygwin (broken in 0.9.2).
10140 * Don't pass NULL for the second parameter of execl() - the Linux man page
10141   says execl takes "one or more pointers to null-terminated strings".  Also
10142   cast the NULL to (void*) to avoid "missing sentinel" warning from GCC4.
10144 * Use snprintf instead of sprintf where available (we were attempting to
10145   do this in some places before, but the configure test was broken so
10146   sprintf was always being used).
10148 * Enable more warnings under aCC and fix minor issues highlighted.  Suppress
10149   "Entire translation unit was empty" warning which isn't useful to us.
10151 * Write top-bit set characters in the source using \xXX notation to avoid
10152   warnings from Intel's C++ compiler.
10154 * configure: TYPE_SOCKLEN_T fails hard, so only run it if we've successfully
10155   run other socket tests.
10157 * queryparser/accentnormalisingitor.h: #include <limits.h> for CHAR_BIT.
10159 * bin/xapian-compact.cc: Fix printf type mismatch on 64 bit platforms.
10161 * Replace pair<bool, string> with a simple class BoolAndString - the pair
10162   results in a 4328 byte symbol on HP-UX which gets truncated (to 4000 bytes).
10163   Most likely this is harmless, but it causes a warning.
10165 * configure: Disable flint backend by default if building for djgpp or msdos.
10167 * xapian-config: Previously when linking without libtool we've always thrown
10168   in dependency_libs, even though only some platforms need it (because it's
10169   generally pretty harmless).  However some Linux distros have an unhelpful
10170   policy of not packaging .la files, so libxapian.la isn't available to
10171   extract dependency_libs from.  Linux is a platform which doesn't require
10172   dependency_libs to be explicitly linked, so extend xapian-config to not
10173   pull in dependency_libs if libtool's link_all_deplibs_CXX=no.
10175 * xapian-config: If the current platform needs dependency_libs and
10176   libxapian.la's dependency_libs contains another .la file, transform it into a
10177   pair of -L and -l options, and recursively expand its dependency_libs (if
10178   any).
10180 * Don't pass functions with C++ linkage to places wanting pointers to functions
10181   with C linkage.  So far this has worked for us, but it causes warnings with
10182   some compilers, and may not be portable.
10184 * Compaq C++ 7.1 doesn't suffer from the problem which previously prevented
10185   it from building Xapian.  This release includes workarounds for some
10186   oddities with errno.h support in this compiler, but currently the build
10187   fails when trying to link a binary with the library.
10189 packaging:
10191 * RPM: Invoke %setup correctly in xapian.spec.
10193 debug code:
10195 * Add missing '#include <iostream>' when TIMING_PATCH is defined.
10197 Xapian-core 0.9.2 (2005-07-15):
10199 API:
10201 * QueryParser:
10203   + Added optional "flags" argument to parse_query method.
10205   + Add flag FLAG_BOOLEAN_ANY_CASE which tells the QueryParser that boolean
10206     operators such as "AND", "OR", and "NEAR" should be recognised even if
10207     they aren't fully capitalised (so "and", "And", "aNd", etc will work too).
10209   + Add flag FLAG_WILDCARD which tells the QueryParser to allow right
10210     truncation e.g. "xap*".
10212   + Fixed to handle "-site:microsoft.com" where site is a boolean prefix.
10213     Added testcases for this.
10215 testsuite:
10217 * The test harness was incorrectly creating a quartz database when a flint one
10218   was requested, which meant tests weren't being run against flint and so it
10219   had bugs rendering it pretty much unusable.
10221 * Added regression test longpositionlist1 (to check encoding/decoding a long
10222   position list, which flint had problems with).
10224 flint backend:
10226 * Bumped format version number.
10228 * Added new "xapian-compact" program which can compact and merge flint
10229   databases in a similar way to how quartzcompact does for quartz databases.
10231 * Fixed to auto-detect database type when opening an existing Flint database
10232   as a WritableDatabase.
10234 * The code to encode the position list size, first entry, and last entry
10235   didn't match the code to decode them!  Reworked both to match, using a
10236   slightly more compact encoding.
10238 * We were failing to append "DB" to the path when opening a table for reading.
10240 * Rewrite of FlintAllTermsList with several fewer member variables.  The
10241   rewrite fixes a bug too - the old version wasn't ignoring the metainfo
10242   entry which is now in the postlist table.
10244 * It seems we need to explicitly kill the child process used for locking.
10245   Otherwise when we have two databases locked just closing the connection
10246   doesn't cause the child to die.  I don't understand why it's needed, but this
10247   fix is at least clean.
10249 quartz backend:
10251 * quartzcompact: Fix mis-repacking of keys in positionlist table when merging
10252   several databases.
10254 * Disable assertion in allterms iteration which is incorrect in a corner case.
10255   This is only a problem if a termname contains zero bytes and you're using a
10256   debug build.  Add regression test test_specialterms2.
10258 remote backend:
10260 * Implement sorting on a value with the remote backend.
10262 build system:
10264 * Pass automake options to AM_INIT_AUTOMAKE rather than specifying them in
10265   Makefile.am.  This way, the version requirements for autoconf and automake
10266   are stated close together.
10268 * configure: -Wshadow causes false positives with GCC 3.0.4, so only enable it
10269   for 3.1 and up.
10271 * configure: Eliminate use of "ln -s" when generating include/xapian/version.h
10272   since it seems to cause problems on Solaris in some setups and isn't really
10273   necessary.
10275 * Add dependency mechanism so version.h gets regenerated when the template is
10276   changed.
10278 * configure: Check for spaces in build directory, source directory, or install
10279   prefix and die with a helpful message.
10281 * Add dependency to generate queryparser_token.h.
10283 * Eliminated TOP_SRCDIR and TOP_BUILDDIR - it's better to just use top_srcdir
10284   and top_builddir directly.
10286 * configure: Generate the list of source files to feed to doxygen by inspecting
10287   all the Makefile.am files prior to running autoreconf rather than by using
10288   "find" when the user runs ./configure.  This speeds up configure, avoids
10289   generating docs for random .cc and .h files which aren't part of xapian-core,
10290   and avoids problems with picking up FIND.EXE on MS Windows.
10292 documentation:
10294 * Expanded explanation of the "descending docid with boolean weighting" trick
10295   for fast date ordered searching in Enquire::set_docid_order() API docs.
10297 * docs/intro_ir.html: Citeseer has moved, so update link.
10299 * testsuite/testsuite.cc: Update URL for valgrind FAQ in comment.
10301 * COPYING: Update FSF address.
10303 * HACKING: Minor updates to release checklist.
10305 portability:
10307 * Assorted tweaks towards allowing compilation with MSVC.
10309 packaging:
10311 * xapian.spec.in: Package xapian-compact.
10313 Xapian-core 0.9.1 (2005-06-06):
10315 API:
10317 * Fix SEGV on get_terms_begin() on an empty Query object.  This was causing
10318   a SEGV in Omega with an empty query.
10320 * Put Query::get_terms_end() inline in header.
10322 flint backend:
10324 * Added the new "flint" backend, which starts out as a copy of the quartz
10325   backend plus some modifications and replacements.  When creating a database
10326   without a specified backend, quartz is still used unless the environmental
10327   variable XAPIAN_PREFER_FLINT is set to a non-empty value.
10329 * apitest now runs tests on flint as well as the other backends.
10331 * Removed undocumented (and hence the little used) quartz "log" feature.
10333 * Implement new fork+fcntl+exec based locking (for Unix) and CreateFile based
10334   locking (for Windows - currently untested).
10336 * Move the special key/tag pair holding the total document length and doc id
10337   high water mark from the record table to the postlist table.  This means that
10338   when appending documents, the insertion point will now always be at the end
10339   of the record table which is more efficient.  We need to jump around the
10340   postlist table to merge postings in anyway.
10342 * Changed metafile magic to be different from quartz, and make the metafile
10343   version a datestamp which we'll change each time the format changes.
10345 * Check the return value of close() when writing the metafile.
10347 * Flint position list table now stores entries using interpolative coding
10348   (which is significantly more compact).
10350 quartz backend:
10352 * quartzcheck: Fixed corner case where you couldn't check a single Btree table
10353   which was just the DB and baseA/baseB files in a directory (Xapian doesn't
10354   produce anything like this, but btreetest does while unit testing the
10355   Btree code).
10357 build system:
10359 * Releases are now created using libtool 1.5.18 and automake 1.9.5.
10361 * configure: Pass more -W flags to g++ (including -Wundef which caught the
10362   getopt problem fixed in this release).  Fixed new GCC warnings from these new
10363   flags.
10365 * Fixed a lingering DOXYGEN_HAVE_DOT reference.
10367 * Fixed accidentally pruned #define which meant that getopt code was being
10368   included even on systems which use glibc (on such systems, we should use
10369   the glibc copy of the code instead).
10371 * queryparser/queryparser.lemony: Add missing '#include <config.h>'.
10373 documentation:
10375 * Added missing documentation comments for a QueryParser methods added in
10376   0.9.0.
10378 * docs/quartzdesign.html: Removed warning that quartz is still in development.
10380 * PLATFORMS: Updated from tinderbox.
10382 * configure: Describe CC_FOR_BUILD in configure --help output.
10384 * HACKING: Updated release instructions to refer to SVN, and note that release
10385   tarballs are now built specially rather than being copies of snapshots.
10386   Update information about the SVN tag name to use for debian files.
10388 * HACKING: Add "email Fabrice" to the release checklist so that RPM
10389   spec files don't lag behind.
10391 * Fixed a few spelling mistakes.
10393 packaging:
10395 * xapian.spec: Remove bogus %setup line left over from when we packaged
10396   xapian-core and xapian-examples together from separate tarballs.
10398 debug code:
10400 * api/omqueryinternal.cc: Fixed compilation with --enable-debug.
10402 * common/omdebug.h: Replace C style cast with static_cast<> which reveals that
10403   we were discarding const (harmlessly though).
10405 Xapian-core 0.9.0 (2005-05-13):
10407 API:
10409 * Query objects really need to be immutable after construction (otherwise we
10410   need a copy-on-write mechanism).  To achieve this the following API changes
10411   were required:
10413   + Remove Query::set_length() in favour of an optional length
10414     parameter to Enquire::set_query().
10416   + Eliminated Query::set_elite_set_size() in favour of optional parameter
10417     to constructor.
10419   + Eliminated Query::set_window() in favour of an optional parameter to the
10420     constructor.
10422 * Removed OP_WEIGHT_CUTOFF, since it doesn't actually seem to add useful
10423   functionality over using Enquire::set_cutoff().
10425 * MSet::max_size() (which only exists so that MSet is an STL container) now
10426   returns MSet::size() and is inlined from the header.
10428 * Added ESet::max_size() (for STL compatibility).
10430 * Fixed Xapian::RSet to have the same "it's a handle" copy semantics as most of
10431   the other classes.
10433 * Rewritten QueryParser class:
10435   + Uses Lemon instead of Bison to generate the parser, which enables us to
10436     stop using static data, so this class is at last reentrant.
10438   + QueryParser now uses a PIMPL style with reference counted internals like
10439     most of the other Xapian classes.
10441   + Direct access to member variables has gone, which unfortunately forces an
10442     API change (but this fixes bug #39).  Instead of accessing
10443     QueryParser::termlist member variable, iterate over terms using
10444     Query::get_terms_begin() and get_terms_end() on the returned Query object.
10445     Direct access to stoplist is replaced by QueryParser::get_stoplist_begin()
10446     and get_stoplist_end(); and to unstem by get_unstem_begin() and
10447     get_unstem_end().
10449   + The rewrite parses many real world examples better than the old version.
10451   + Now allow searches for C#, etc.  If a database has been set, for this and +
10452     and - suffixes, check if the term actually exists, and if not, ignore the
10453     suffix if the unsuffixed term exists.
10455   + Added QueryParser::get_description() method (not very descriptive yet!)
10457   + Added backward compatibility wrapper for old version of
10458     QueryParser::set_stemming_options().
10460   + xapian.h now automatically includes xapian/queryparser.h.  Directly
10461     including xapian/queryparser.h will continue to work for now, but is
10462     deprecated.
10464   + QueryParser::parse_query() was failing to clear termlist and unstem
10465     - the rewrite fixes this.
10467   + New QueryParser parses "term prefix:(term2 term3)" correctly.
10469 * Added Xapian::SimpleStopper which just stops terms specified by a pair of
10470   iterators.  This should be sufficient for the majority of uses.
10472 * Tidied up the Enquire sorting API and added ability to reverse sort on a
10473   value.  Removed sort_bands support.
10475 * Enquire::get_description() improved.
10477 * Methods which return an end iterator where the internals are just NULL are
10478   now inline in the header for efficiency.  Should we ever need to change an
10479   implementation, we can easily move methods back into the library and bump the
10480   library version suitably.
10482 * Added Stem::operator() as preferred alternative to Stem::stem_word().
10484 * Simplified Stem internal design by restructuring to eliminate a few internal
10485   methods.
10487 * BM25Weight: Avoid fetching document length if we're simply going to multiply
10488   it by zero!
10490 testsuite:
10492 * Fixed TEST_EQUAL_DOUBLE to use DBL_EPSILON correctly.
10494 * Rewrite of index_utils test harness code, removing unused and unusual
10495   features.  Data files for tests are now easier to write.  These changes
10496   also fix the bug that ^x didn't actually decode hex values correctly.
10498 * tests/testdata/etext.txt: Stripped carriage returns.
10500 * apitest: Extended stemlang1 to check that trying to create
10501   a stemmer for a non-existent language throws InvalidArgumentError.
10503 * queryparsertest:
10505   + Moved into tests/ subdirectory.
10507   + Reworked to use the standard testsuite harness.
10509   + Added tests for new features in the rewritten QueryParser.
10511 quartz backend:
10513 * quartzcheck: Now checks the structure of all the tables, not
10514   just the postlist table, and cross-checks doclen values between
10515   termlist and postlist tables.  Recognises "--help" option.  Should
10516   now continue after an error (typically it would crash before), and
10517   counts the number of errors found.  Now exits with non-zero status
10518   if any errors were found.  More readable output.
10520 * quartzcompact: Extended to allow merging several quartz
10521   databases to produce a single compact quartz database.  This
10522   allows for faster building - simple index in chunks, then merge
10523   the chunks.
10525 * quartzcompact: Made full compaction a tiny bit more compact.
10527 * quartzcompact: Added "fuller compaction" mode, which ignores the usual "at
10528   least 4 items per block" rule.  This achieves slightly tighter compaction,
10529   though it's probably not advisable to use this option if you plan to update
10530   the compacted database.
10532 * Improved compaction by a few % in non-full case.  Tighter bound on amount of
10533   memory to reserve to read the tag into.
10535 * Fix skip_to on an allterms TermIterator to set the current term when the
10536   skip_to-ed term is in the database.  Add regression test for this
10537   (allterms5).
10539 * Values are stored in sorted order so we can stop unpacking the list once we
10540   get to one after the one we're looking for (in the case where the one we're
10541   looking for doesn't exist).
10543 build system:
10545 * configure: Check that the C++ compiler can actually link a program.
10546   AC_LANG_CXX doesn't, and if it can't find a C++ compiler it'll just return
10547   "g++" which just leads to a later configure test failing in a confusing way.
10549 * configure: corrected configure output of "none known for yes" or "none known
10550   for no" to "none known for g++-3.2" or similar.
10552 * include/xapian/version.h: Define XAPIAN_HAS_xxx_BACKEND for each backend
10553   which is enabled.  The bindings need this, and user code might find it useful
10554   too.
10556 * include/xapian/database.h: Don't declare the backend factory functions if the
10557   corresponding backend has been disabled.  This means that trying to use a
10558   disabled backend will be caught at compile time rather than link time.
10560 * configure: Enhanced valgrind test to (a) see if --tool=memcheck
10561   is needed and (b) see if valgrind actually works (we don't want to
10562   try to use an x86 valgrind on an x86_64 box).
10564 * configure: Suppress 2 Intel C++ warnings which we can't easily code around,
10565   and enable -Werror automatically with --enable-maintainer-mode.
10567 * Clearer make rules for building Postscript doxygen docs.
10569 * Removed some no longer used code.
10571 * Moved a number of method definitions out of headers because they are virtual,
10572   or too large to be sensible candidates for inlining.
10574 * Eliminated the extra library for the queryparser - it's tiny compared to the
10575   main library and having it around just complicates things.
10577 * configure: We no longer need Bison, but we do need CC_FOR_BUILD to compile
10578   Lemon with.
10580 * Snapshot generator now appends _svn6789 or similar to the version string.
10581   Adjusted configure and XO_LIB_XAPIAN macro to take this into account.
10583 * configure: If any tools needed for documentation are missing
10584   and we're in maintainer mode, die with a suitable error in
10585   configure rather than with strange errors when building the
10586   documentation.
10588 * docs/Makefile.am: Explicitly set the pool_size for latex, because we
10589   now seem to overflow the default setting on some systems.
10591 * docs/Makefile.am: Use $(MAKE) instead of make.
10593 documentation:
10595 * Numerous improvements to documentation comments.  Added documentation
10596   comments for QueryParser class.
10598 * HACKING: Added better description of how reference-counted API
10599   classes are structured.
10601 * HACKING: Note that '#include <limits>' isn't supported by GCC 2.95,
10602   and other assorted minor tweaks.
10604 * HACKING: Note how to disable use of VALGRIND on the make check
10605   command line, or when using runtest directly.
10607 * Updated all documentation mentions of CVS to talk about Subversion
10608   instead.
10610 * PLATFORMS: Updated from tinderbox and other sources.
10612 * PLATFORMS: Added minimal testcase which fails to compile with
10613   Compaq's C++ compiler (cxx).
10615 * INSTALL,README: Updated.
10617 * docs/queryparser.html: Note that + and - work on phrases and
10618   bracketed expressions.
10620 * docs/intro_ir.html: Corrected two errors.
10622 * docs/stemming.html: Stemming appears to be applicable to Japanese
10623   so don't say it isn't!
10625 examples:
10627 * Moved xapian-examples module to examples subdirectory of xapian-core.
10629 * quest: Added stopword handling.
10631 portability:
10633 * configure: autoconf identifies Intel's C++ compiler as GCC, so probe for
10634   which we actually have.
10636 * Xapian will now compile cleanly with Intel C++ 8.1 on ia64 Linux and
10637   on x86 Linux.
10639 * backends/quartz/btree.cc: Fixed GCC compilation warning.
10641 * tests/api_db.cc: Fixed warning from Sun's C++ compiler.
10643 * configure: Automatically enable ANSI C++ mode for SGI's compiler
10644   with '-LANG:std'; check that any automatically determined flags
10645   for ANSI C++ mode actually allow us to compile a trivial program
10646   - if they don't it probably means the compiler isn't the one we
10647   were expecting, but one installed with the same name, so we now
10648   drop the flags in this case.
10650 * The compile on IRIX with SGI compiler is now warning free, apart from two
10651   "unused variable" warnings in Snowball generated code.
10653 * On WIN32, don't define NOMINMAX if it is already defined.
10655 packaging:
10657 * xapian.spec: Don't say "%makeinstall" in a comment since rpm
10658   tries to expand it and explodes.
10660 * xapian.spec: '/usr/share' -> '%{_datadir}'.
10662 * xapian.spec: Put the .so in the -devel package (it's only useful
10663   for linking to - the .so.* files are all that's needed at runtime).
10665 debug code:
10667 * net/socketserver.cc: Fixed typo in debug code.
10669 Xapian-core 0.8.5 (2004-12-23):
10671 quartz backend:
10673 * quartzcompact: When full_compaction is enabled, don't fill the last few bytes
10674   of a block if that would mean we needed an extra item and the overhead for
10675   that item would use up more of the next block than we save.  This reduces the
10676   table size after full compaction by up to 0.2% in my tests!
10678 * quartzcompact: Tables sizes will always be a whole number of Kbytes, since
10679   the blocksize is, so report the size in K.  Also report the change in size as
10680   well as the before and after sizes.
10682 * quartzcompact: Added missing '#include <config.h>' so that largefile support
10683   is enabled when we call stat() and we report compression statistics for
10684   tables > 2G.
10686 * quartzcompact: Added --no-full / -n option to disable full compaction.  This
10687   may be useful if you want to update the database after compacting it (need to
10688   test to see if this option is actually useful).
10690 * Renamed Btree::compress() to Btree::compact() for consistency with
10691   "full_compaction" and "quartzcompact".  Also, "compress" is confusing since
10692   we use that term in the zlib patch.
10694 build system:
10696 * xapian-config: Fixed --libs output to not include libxapian.la.
10698 * Added missing '#include <config.h>' to various .cc files (the omissions were
10699   probably harmless, but config.h should be included as the first thing any
10700   source file does).
10702 documentation:
10704 * Minor updates.
10706 packaging:
10708 * RPM spec file: %makeinstall puts the wrong paths in the .la files so use
10709   "make DESTDIR=... install" instead.
10711 debug code:
10713 * Fixed to build with AssertParanoid enabled.
10715 Xapian-core 0.8.4 (2004-12-08):
10717 API:
10719 * Added constructors to Database and WritableDatabase which fulfil the role
10720   that the Auto::open() factory functions currently do.  Auto::open() is
10721   now deprecated.
10723 * Removed the ability to write a Xapian object to an ostream directly, as
10724   it's little used and potentially dangerous ('cout << mset[i];' will
10725   compile, but you almost certainly meant 'cout << *mset[i];').  You can
10726   get the old effect by writing 'cout << obj->get_description();' instead
10727   of 'cout << obj;'.  Note that including xapian.h no longer pulls in
10728   fstream, which code may have been implicitly relying on - if this is
10729   a problem add '#include <fstream>' after '#include <xapian.h>'.
10731 * QueryParser: Be smarter about when to add a ':' when adding a term prefix.
10733 * BoolWeight::unserialise() now returns BoolWeight*, and similarly for
10734   TradWeight and BM25Weight.  BoolWeight::clone() now returns BoolWeight *.
10736 * If a database contains no positional information, change NEAR and PHRASE
10737   queries into AND queries (as otherwise they'd return no matches at all)
10738   (bug #56).  Added feature test phraseorneartoand1.
10740 * Renamed BM25 parameters to match standard naming in papers and elsewhere
10741   (A->k3, B->k1, C->k2, D->b), eliminated the extra factor of 2 which our C
10742   had, and reordered the parameters to k1, k2, k3.  This is an incompatible API
10743   change for BM25Weight(), so if you are using custom parameters for BM25
10744   you'll need to update your code.
10746 * During query expansion, if we estimate the term frequency, ensure it has a
10747   sane value (>= r and <= N - R + r) rather than bodging around the problem
10748   later on.
10750 * TradWeight, BM25Weight: termfreq is always exact for matching (we only
10751   approximate it for query expansion) so replace code to work around bad
10752   approximations with Assert() to make sure this never happens.
10754 testsuite:
10756 * runtest: Enhanced to allow it to run test programs under valgrind and other
10757   tools (gdb was already supported).
10759 * runtest: now works with valgrind 2.1.2 and later (valgrind's --logfile-fd
10760   option was renamed to --log-fd).
10762 * runtest: Allow VALGRIND environmental variable to override the value we got
10763   from configure.
10765 * Added a dependency so "make check" regenerates runtest if necessary.
10767 * The test programs now point the user to the runtest script if srcdir can't
10768   be guessed.  And they no longer look for the test program in the tests
10769   subdirectory of the current directory.
10771 * btreetest: Fixed memory leaks in test_cursor1 (the testcase itself was
10772   causing the leak, not the library).
10774 * apitest: Fixed mset_range_is_same() and mset_range_is_same_weights() helper
10775   functions which were only comparing the first item in the range.  Thankfully
10776   the tests still all pass so this wasn't hiding any bugs.
10778 * apitest: A modified version of changequery1 fails - the bug is obscure and
10779   subtle, and the fix is tricky so set the modified test to SKIP for now.
10781 * apitest: Added test_weight1 which tests the built-in Xapian::Weight
10782   subclasses and test_userweight1 which tests user defined weighting schemes
10783   (bug#8).
10785 * quartztest: Test with DB_CREATE_OR_OPEN in writelock1.
10787 quartz backend:
10789 * An interrupted update could cause any further updates to fail with "New
10790   revision too low" because the new revision was being calculated incorrectly -
10791   fixed (bug#55).
10793 * Fixed Bcursor::del() which didn't always leave the cursor on the next item
10794   like it should.  This may have been causing problems when trying to remove
10795   the last references to a particular term.
10797 * Fixed ultra-obscure bug in the code which finds a key suitable to
10798   discriminating between two blocks in a B-tree branch (discovered by reading
10799   the code).  Comparing the keys didn't consider the length of the second, so
10800   it is possible the code would miscompare.  But in reality this is extremely
10801   unlikely to happen, and even then would probably just mean that the
10802   discriminating key wouldn't be as short as it could be (wasting a few bytes
10803   but otherwise harmless).
10805 * If we're removing a posting list entirely, often there will only be one
10806   chunk, so avoid creating a Bcursor in this case.
10808 * Simplified Btree::compare_keys() by removing the last case which was dead
10809   code as it was covered by an earlier case.
10811 * Check that any user specified block size is a power of 2.  If the block
10812   size passed is invalid, use the default of 8192 rather than throwing an
10813   exception.
10815 * Started to refactor the Btree manager by introducing Item and Key classes
10816   which take care of handling the on-disk format, and eliminated duplicated
10817   tag reading code in Btree and Bcursor.  These changes will pave the way for
10818   improvements to the on disk format.
10820 * Applied the Quartz "DANGEROUS" patch, but disabled for now.  This way it
10821   won't keep being broken by changes to the code.
10823 * quartzcompact: Added --help and --version; Check that the source path and
10824   desitination path aren't the same; Report each table name when we start
10825   compacting it, and some simple stats on the compaction achieved when we
10826   finish.
10828 muscat36 backend:
10830 * Removed a default parameter value from one variant of
10831   Xapian::Muscat36::open_db() so that there's only one candidate for
10832   open_db(string).
10834 build system:
10836 * xapian-config: If flags are needed to select ANSI mode with the current
10837   compiler, then make xapian-config --cxxflags include them so that Xapian
10838   users don't have to jump through the same hoops we do.
10840 * xapian-config: Added --swigflags option for use with SWIG.
10842 * XO_LIB_XAPIAN now passes ac_top_srcdir to xapian-config which uses it
10843   (if provided) to say "configure.ac" or "configure.in" rather than
10844   "configure.in (or configure.ac)" in the "Add AC_PROG_LIBTOOL"
10845   error message.
10847 * Cleaned up the build system in a few places.
10849 * Removed a few totally unneeded header includes.
10851 * Moved a number of functions and methods out of headers because they're not
10852   good inlining candidates (too big or virtual methods).
10854 * Changed C style casts to C++ style.  The syntax is ugly, but they do make the
10855   intent clearer which is a good thing.  Note this as a coding style guideline
10856   in HACKING.
10858 * configure.ac: Automatically add -Werror to CFLAGS and CXXFLAGS if
10859   maintainer mode is enabled and we're using GCC3 or newer.  Don't do
10860   this for older GCCs as GCC 2.95 issues spurious warnings.
10862 * Reworked how include/xapian/version.h is generated so that it works
10863   better with compilers other than GCC, and with HP-UX sed.
10865 * XAPIAN_VERSION is now a string (e.g. "0.8.4").
10867 * Added new #define XAPIAN_REVISION (which is 4 for version 0.8.4).
10869 documentation:
10871 * docs/bm25.html,docs/intro_ir.html: Reworked to talk about Xapian
10872   rather than Muscat.  Also improved the appearance of the formulae.
10874 * HACKING: Valgrind now supports x86 FreeBSD and PowerPC Linux.
10876 * Documented parameters of Enquire::register_match_decider().
10878 * We now use doxygen 1.3.8 to build documentation for snapshots and releases.
10880 * PLATFORMS: Updated from the tinderbox (which now runs builds on machines
10881   available in HP's testdrive scheme) and other assorted reports.
10883 * PLATFORMS: Removed reports from versions prior to 0.7.0.  So much
10884   has changed that these are of little value.
10886 * docs/scalability.html: Added note warning about benchmarking from cold.
10888 * Assorted other minor documentation improvements.
10890 portability:
10892 * configure.ac: Improved snprintf configure test to actually
10893   check that it works (older implementations may have different
10894   semantics for the return value, and at least one ignores the length
10895   restriction entirely!)
10897 * Reworked the GNU getopt source we use so that the header is clean and
10898   suitable for use from a reasonably ISO-conforming C++ compiler instead of
10899   being full of cruft for working around quirky C compilers which C++ compilers
10900   tend to stumble over.
10902 * Use SOCKLEN_T for the type we need to pass to various socket calls, since
10903   HPUX defines socklen_t yet wants int in those calls.  Reworked the
10904   TYPE_SOCKLEN_T test we use.
10906 * On Windows, we want winsock2.h instead of sys/socket.h.  Mingw doesn't seem
10907   to even have the latter, so I think previously we've been compiling by
10908   picking one up from somewhere random!
10910 * Change the small number of C sources we have to be C++ so we can compile
10911   everything with the C++ compiler.  This way we don't need to worry about
10912   configure choosing a mismatching pair of compilers, or about whether
10913   configure tests with the C compiler don't apply to the C++ compiler, or vice
10914   versa.
10916 * Compiles and passes testsuite with HP's aCC (we have to compile in
10917   ANSI mode, so we automatically add -AA to CXXFLAGS).
10919 * If the link test detects pread and pwrite are present, get configure to try
10920   out prototypes for pread and pwrite.  This is much cleaner than trying to
10921   find the right combination of preprocessor defines to get each platform's
10922   system headers to provide prototypes.
10924 * configure: Disable probing for pread/pwrite on HP-UX as they're present but
10925   don't work when LFS (Large File Support) is enabled, and we definitely want
10926   LFS.
10928 * Fixed some warnings from Sun's C++ compiler.
10930 * Provide our own C_isalpha(), etc replacements for isalpha(), etc
10931   which always work in the C locale and avoid signed char problems.
10933 * For mingw/cygwin, pass -no-undefined when linking libxapianqueryparser.la
10934   so libtool builds a shared library.  Also pass the magic linker flag
10935   -Wl,--enable-runtime-pseudo-reloc if configure has determined it is needed.
10937 * For cygwin, use the underlying MoveFile API call for locking, as link()
10938   doesn't work on FAT partitions.  And don't rely on HAVE_LINK to control
10939   whether we use link() otherwise - if the configure test somehow misfires, a
10940   compilation error is better than using rename() on Unix as that would cause a
10941   second writer to smash the lock of the first.
10943 * Closer to building with Compaq C++ - add "-std strict_ansi" to CXXFLAGS, and
10944   tweaked the code in several places.  It currently dies trying to compile
10945   the PIMPL smart pointer template code which looks hard to fix.
10947 debug code:
10949 * HACKING: Document that %% in XAPIAN_DEBUG_LOG is substituted with
10950   the process-id, and that setting XAPIAN_DEBUG_FLAGS to -1 enables
10951   all debug messages.
10953 * Removed compatibility code for checking environment variables OM_DEBUG_FILE
10954   and OM_DEBUG_TYPES.
10956 Xapian-core 0.8.3 (2004-09-20):
10958 API:
10960 * Fixed bug which caused a segmentation fault or odd "Document not found"
10961   exceptions when new check_at_least parameter to Enquire::get_mset() was used
10962   and there weren't many matches (regression test checkatleast1).
10964 remote backend:
10966 * Renamed omtcpsrv to xapian-tcpsrv and omprogsrv to xapian-progsrv.
10968 packaging:
10970 * RPM packaging now has a separate package for the runtime libraries to
10971   allow 32 and 64 bit versions to be installed concurrently.
10973 * RPM for xapian-core now includes binaries from xapian-examples.
10975 debug code:
10977 * Fixed to compile with debug tracing enabled.
10979 Xapian-core 0.8.2 (2004-09-13):
10981 API:
10983 * Removed the compatibility layer which allowed programs written against the
10984   pre-0.7.0 API to be compiled.
10986 * Added new ESet methods swap(), back() and operator[].
10988 * Xapian::WritableDatabase::replace_document can now be used
10989   to add a document with a specific docid (to allow keeping docids
10990   in sync with numeric UIDs from another system).
10992 * Added Xapian::WritableDatabase::replace_document and
10993   delete_document variants which take a unique id term name rather
10994   than a document id.
10996 * Enquire::get_mset(): If a matchdecider is specified and no matches
10997   are requested, the lower bound on the number of matches must be 0
10998   (since the matchdecider could reject all the matches).
11000 * Renamed Query::is_empty() to Query::empty() for consistency.  Keep
11001   Query::is_empty() for now as a deprecated alias.
11003 * Enquire::set_sorting() now takes an optional third parameter which allows
11004   you to specify a sort by value, then relevance, then docid instead of
11005   by value then docid.
11007 * Enquire::get_mset() now takes an optional "check_at_least" parameter
11008   which allows Omega's MIN_HITS functionality to be implemented in the matcher
11009   (where it can be done a bit more efficiently).
11011 testsuite:
11013 * Reworked quartztest's positionlist1 into a generic api test as apitest's
11014   poslist3.
11016 * apitest: Reenabled allterms2, but with the iterator copying parts removed -
11017   TermIterator is an input_iterator so that part was invalid.
11019 * Overhauled btreetest and quartztest - tests at the Btree level are now all
11020   in btreetest.  Those at the QuartzDatabase level are in quartztest.
11022 * Split api_db.cc into 3 files as it has grown rather large.
11024 * tests/runtest: Added support for easily running gdb on a test program,
11025   automatically sorting out srcdir and libtool.
11027 quartz backend:
11029 * Refactored the quartz backend code to reduce the number of layered classes
11030   and eliminate unnecessary buffering, reducing memory usage so that more
11031   posting list changes can be batched together (see next change) and database
11032   building can be done several times faster.
11034 * Added tunable flush threshold - set XAPIAN_FLUSH_THRESHOLD=50000 to flush
11035   every 50000 documents.  The default is now every 10000 documents (was
11036   every 1000 documents previously).  The optimum value will most likely
11037   depend on your data and hardware.
11039 * WritableDatabase::get_document() no longer forces pending changes to be
11040   flushed.  The document will read things lazily from the database, and that
11041   reading may trigger a forced flush).
11043 * WritableDatabase::get_avlength() no longer forces pending changes to be
11044   flushed.  This means you can now search a modified WritableDatabase without
11045   causing a flush unless the search includes a term whose postlist has pending
11046   modifications.
11048 * Reduced quartz postlist chunk threshold from "2048 or a few bytes more" to
11049   "2000 or a few bytes more" so that full size chunks won't get split by the
11050   Btree.
11052 * Improved the "Db block overwritten" message.  The DatabaseCorruptError
11053   version now suggests multiple writers may be the cause, while the
11054   DatabaseModifiedError version uses less alarming wording and says to call
11055   Database::reopen().
11057 * QuartzWritableDatabase now stores the total document length and the last
11058   docid itself rather than tallying added and removed document length and
11059   writing the last docid back every time a document is added.  This gives
11060   cleaner code and a small performance win.
11062 * Make the first key null for blocks more than 1 away from the leaves.
11063   It saves disk space for a tiny CPU and RAM cost so is bound to be
11064   a win overall.
11066 * matcher/localmatch.cc: Fixed problems handling termweights in queries with
11067   the same term repeated (bug #37) and added regression test (qterminfo2).
11069 * Sped up iteration over all the terms in a database (QuartzCursor now only
11070   reads the tag from the Btree if asked to).
11072 * Cancelling an operation is now implemented more efficiently.
11074 inmemory backend:
11076 * Fixed bugs with deleting a document while a PostingIterator over it is
11077   active.
11079 muscat36 backend:
11081 * Fixed to compile now that internal_end_session() has gone (broken in 0.8.1).
11083 build system:
11085 * Fixed to compile when configured with --disable-inmemory (bug #33).
11087 * XO_LIB_XAPIAN now AC_SUBSTs XAPIAN_VERSION so your application's build
11088   system can easily check for a particular version of Xapian.
11090 * When compiling with GCC, we check that the compiler used to compile the
11091   library and the compiler used to compile the application have compatible
11092   C++ ABI versions.  Unfortunately GCC 3.1 incorrectly reports the same
11093   ABI version as GCC 3.0, so we now special case that test.
11095 * Bumped the versions of the autotools we require for bootstrapping, and
11096   updated the documentation of these in the HACKING document.
11098 * Quote macro names to fix warnings from newer aclocal.
11100 documentation:
11102 * Improved API documentation for Xapian::WritableDatabase::replace_document and
11103   delete_document.
11105 * Added documentation comments for MSet methods size(), empty(), swap(),
11106   begin(), end(), back().
11108 * Removed bogus documentation comments saying that some Enquire methods can
11109   throw DatabaseOpeningError.
11111 * Updated quartz design docs to reflect recent changes.  Also pulled
11112   out the Btree and Bcursor API docs and slotted them in as doxygen
11113   documentation comments - this way they're much more likely to
11114   be kept up-to-date.
11116 * Corrected multiple occurrences of "an Xapian::XXX" to "a Xapian::XXX"
11117   (presumably these all resulted from replacing "Om" with "Xapian::").
11119 * Various minor updates and improvements.
11121 portability:
11123 * Reworked how we cope with fcntl.h #define-ing open on Solaris.  This change
11124   finally allows Sun's C++ compiler to produce a working Xapian build on
11125   sparc Solaris!
11127 * configure.ac: Don't define DATADIR - we no longer use it and clashes
11128   with more recent mingw headers.
11130 * matcher/andpostlist.cc: Initialise lmax and rmax to 0.  This cures
11131   the SIGFPE on apitest's qterminfo2 on alpha linux.
11133 Xapian-core 0.8.1 (2004-06-30):
11135 API:
11137 * New method Xapian::Database::get_lastdocid which returns the highest used
11138   document id for a database (useful for re-synchronizing an indexer which
11139   was interrupted).  Implemented for quartz and inmemory.
11141 * Xapian::MSet::get_matches_*() methods now take collapsing into account, and
11142   the documentation has been clarified to state explicitly that collapsing and
11143   cutoffs are taken into account (bug#31).
11145 * Xapian::MSet: Need to adjust index by firstitem when indexing into items
11146   (bug#28).
11148 * MSetIterator and ESetIterator are now bidirectional iterators (rather than
11149   just input iterators)
11151 * Fixed post-increment forms of PostingIterator, TermIterator,
11152   PositionIterator, and ValueIterator so that *i++ works (as it must for them
11153   to be true input iterators).
11155 * Xapian::QueryParser: If we fail to parse a query, try stripping out
11156   non-alphanumerics (except '.') and reparsing.
11158 * Fixed memory leaked upon Xapian::QueryParser destruction.
11160 * Removed several unused Xapian::Error subclasses (these were used by the
11161   indexer framework which we decided was a failed experiment).
11163 testsuite:
11165 * queryparsertest: Pruned near-duplicate queryparsertest testcases.
11167 * queryparsertest: Added test case for `term NOT "a phrase'.
11169 * remotetest: Use 127.0.0.1 instead of localhost so that tcpmatch1 doesn't fail
11170   just because the network setup is broken.
11172 * apitest: Make emptyquery1 check that Query("") causes an InvalidArgumentError
11173   exception.
11175 quartz backend:
11177 * Fixed bug which meant we sometimes failed to remove a posting when deleting
11178   or replacing a document.
11180 * Fixed PostlistChunkReader to take a copy of the postlist data being read to
11181   avoid problems with reading data from a string that's been deleted.
11183 * Fixed bug in postlist merging which could occasionally extend a postlist
11184   chunk to overlap the docid range of the next chunk.
11186 * Eliminated the split cursor in each Btree object - we only actually need a
11187   single block buffer to handle splitting blocks.  This reduces the memory
11188   overhead of each Bcursor (and hence each QuartzPostList).
11190 * Changed 2 calls to abort() to throw Xapian::DatabaseCorruptError instead,
11192 * If Btree is writable, throw DatabaseCorruptError if we detect overwritten.
11194 * Check the return value of fdatasync()/fsync()/_commit() and raise an error.
11195   If they fail, we really want to know as it could cause data corruption.
11197 * Assorted clean ups, improved comments, debug tracing, assertions.
11199 * When merging in postlist changes, removed an unneeded call to
11200   QuartzBufferedTable::get_or_make_tag() in a case when we're using a cursor
11201   which has already fetched the tag.
11203 * Added SON_OF_QUARTZ define to disable incompatible changes to database
11204   formats by default, and use it to control the docid encoding for keys such
11205   that we're always inserting at the end of the table when added new documents.
11207 * Reopening the readonly version of a writable Btree is now more efficient
11208   (we used to close and reopen all the files and destroy and recreate a lot
11209   of objects and buffers).
11211 * Share file descriptors between the read and write Btree objects so that a
11212   quartz WritableDatabase now uses 5 fds rather than 10.
11214 * Added configure test for glibc, because otherwise we need to include a header
11215   before we can check for glibc in order to define something we should be
11216   defining before we include any headers!  Defining _XOPEN_SOURCE on OpenBSD
11217   seems to do the opposite to Linux and *disable* pread and pwrite!
11219 backends:
11221 * Stripped out the session machinery - all that is actually required is to
11222   ensure that any unflushed changes are flushed when the destructor runs.
11224 * A few other backend interface cleanups.
11226 build system:
11228 * Unified the shlib version numbers (the small benefit of tracking them
11229   individually makes it hard to justify the extra work required, and having one
11230   version simplifies debian packaging too).
11232 * configure.in: Fix typo (STLPORT_CXXLAGS -> STLPORT_CXXFLAGS)
11234 * Removed trivial m4/Makefile.am and autoconf/Makefile.am and do the work
11235   from the top level Makefile.am instead.  It's easier to see the structure
11236   this way, and it also removes a couple of recursive make invocations which
11237   will speed up builds a little.
11239 documentation:
11241 * HACKING: Added a list of subtasks when doing a release.
11242   Currently it's always me that does this, but it may not always be
11243   and anyhow it'll help me to have a list to run through.
11245 * include/xapian/database.h: Remove references to sessions in doxygen
11246   comments.
11248 * docs/quickstart.html: Corrected lingering reference to "om.h" and
11249   note that we need <iostream>.
11251 * docs/quickstartindex.cc.html,docs/quickstartexpand.cc.html,
11252   docs/quickstartsearch.cc.html: Add <iostream>.
11254 * PLATFORMS,AUTHORS: Updated.
11256 * docs/quartzdesign.html: Corrected various pieces of out of date
11257   information, and improved wording in a couple of places.
11259 * docs/scalability.html: Removed the reference to the Quartz update bottleneck
11260   "currently being addressed for Xapian 0.8" as it's now been addressed!  Also
11261   reworded to remove use of first person (it was originally a message sent to
11262   the mailing list).
11264 Xapian-core 0.8.0 (2004-04-19):
11266 * Omega, xapian-examples and xapian-bindings now have their own NEWS files.
11268 API:
11270 * Throw an exception when an empty query is used to build in the binary
11271   operator Query constructor (previously this caused a segfault.  Added
11272   regression test.
11274 * Made the TradWeight constructor explicit.  This is technically an API change
11275   as before you could pass a double where a Xapian::Weight was required - now
11276   you must pass Xapian::TradWeight(2.0) instead of 2.0.  That seems desirable,
11277   and it's unlikely any existing code will be affected.
11279 * Added "explicit" qualifier to constructors for internal use which take a
11280   single parameter.
11282 * Renamed Xapian::Document::add_term_nopos to Xapian::Document::add_term
11283   (with forwarding wrapper method for compatibility with existing code).
11285 * The reference counting mechanism used by most API classes now handles
11286   creating a new object slightly more efficiently.
11288 * Xapian::QueryParser: Don't use a raw term for a term which starts with a
11289   digit.
11291 testsuite:
11293 * apitest, quartztest: Added a couple of tests, and commented out some test
11294   lines which fail in debug builds.
11296 * quartztest: cause a test to fail if there's still a directory after a call
11297   to rmdir(), or if there isn't a directory after calling mkdir().
11299 * apitest: Check returned docids are the expected values in a couple more
11300   cases.  Improved wording of a comment.
11302 quartz backend:
11304 * We now merge a batch of changes into a posting list in a single pass which
11305   relieves an update bottleneck in previous versions.
11307 * When storing the termlist, pack the wdf into the same byte as the reuse
11308   length when possible - doing so typically makes the termlist 14% smaller!
11309   This change is backward compatible (0.7 database will work with 0.8, but
11310   databases built or updated with 0.8 won't work with 0.7).
11312 * quartzcheck: Check the structure within the postlist Btree as well as
11313   the Btree structures themselves.
11315 * Reduced code duplication in the btree manager and btreechecking code.
11317 * quartzdump: Backslash escape space and backslash in output rather than hex
11318   encoding them; renamed start-term and end-term to start-key and end-key;
11319   removed rather pointless "Calling next" message; if there's an error, write
11320   it to stderr not stdout, and exit with return code 1.
11322 * Corrected a number of comments in the source.
11324 * Removed several needless inclusions of quartz_table_entries.h.
11326 * Removed OLD_TERMLIST_FORMAT code - it has been disabled for since 0.6.0.
11328 * Removed all the quartz lexicon code and docs.  It's been disabled for ages,
11329   and we've not missed it.
11331 build system:
11333 * XO_LIB_XAPIAN autoconf macro can now be called without arguments in the
11334   common case where you want the test to fail if Xapian isn't found.
11336 * Fixed the configure test for valgrind - it wasn't working correctly when
11337   valgrind was installed but was too a version to support VALGRIND_COUNT_ERRORS
11338   and VALGRIND_COUNT_LEAKS.
11340 * GCC 2.95 supported -Wno-long-long and is our minimum recommended version, so
11341   unconditionally use -Wno-long-long with GCC, and don't test for it on other
11342   compilers (the old test incorrectly decided to use it with SGI's compiler
11343   resulting in a warning for every file compiled).
11345 documentation:
11347 * Updated the quickstart tutorial and removed the warning that "this
11348   document isn't up to date".
11350 * docs/intro_ir.html: Added a link to "Information Retrieval" by Keith van
11351   Rijsbergen which can be downloaded from his website!
11353 * docs/quartzdesign.html: Some minor improvements.
11355 * docs/matcherdesign.html: Merged in more details from a message sent to the
11356   mailing list.
11358 * docs/queryparser.html: Grammar fixes.
11360 * Doxygen wasn't picking up the documentation for PostingIterator and
11361   PositionListIterator - fixed.  Added doxygen comments for Xapian::Stopper
11362   and Xapian::QueryParser.
11364 * PLATFORMS: Updated with many results from tinderbox and from users.
11366 * AUTHORS: Updated the list of contributors.
11368 * HACKING: XAPIAN_DEBUG_TYPES should be XAPIAN_DEBUG_FLAGS.
11370 * HACKING: Updated to mention that building from CVS requires
11371   `./configure --enable-maintainer-mode' (or use bootstrap).
11373 * HACKING: Added notes about using "using", and pointers to a couple of useful
11374   C++ web resources.
11376 portability:
11378 * Solaris: Code tweaks for compiling with Sun's C++ compiler.
11380 * IRIX: Code tweaks for compiling with SGI's C++ compiler.
11382 * NetBSD mkdir() doesn't cope with a trailing / on the path - fixed our code to
11383   cope with this.
11385 * mingw/cygwin: Only use O_SYNC (on the debug log) if the headers define it.
11387 * backends/quartz/quartz_table_manager.cc: Fix for building on mingw.
11389 * mingw: Added configure test for link() to avoid infinite loop in our C++
11390   wrapper for link.
11392 * mingw and cygwin both need -Wl,--enable-runtime-pseudo-reloc passing when
11393   linking.  Arrange for xapian-config to include this, and check that the ld
11394   installed is a new enough version (or at least that it was at configure
11395   time).  Also pass to programs linked as part of the xapian-core build.
11397 * cygwin: Close a QuartzDatabase or QuartzWritableDatabase before trying to
11398   overwrite it - cygwin doesn't allow use to delete open/locked files...
11400 * backends/quartz/quartz_termlist.cc: Use Xapian::doccount instead of
11401   unsigned int in set_entries().
11403 * Database::Internal::Internal::keep_alive() should be
11404   Database::Internal::keep_alive().
11406 * Make Xapian::Weight::Weight() protected rather than private as we want to be
11407   able to call it from derived classes (GCC 3.4 flags this, other compilers
11408   seem to miss it).
11410 debug code:
11412 * Open debug log with flag O_WRONLY so that we can actually write to it!
11414 * backends/quartz/quartz_values.cc: Fixed problem with dereferencing
11415   a pointer to the end of a string in debug output.
11417 Xapian 0.7.5 (2003-11-26):
11419 API:
11421 * Xapian::QueryParser now supports prefixes on phrases and expressions (e.g.
11422   author:(twain OR poe) subject:"space flight").
11424 * Added missing default constructors for TermIterator, PostingIterator, and
11425   PositionIterator classes.
11427 * Fixed PositionIterator assignment operator.
11429 testsuite:
11431 * queryparsertest: Added testcase for new phrase and expression prefix support.
11433 * apitest: Added regression tests for API fixes.
11435 backends:
11437 * quartzcompact: Fix the name that the meta file gets copied to (was
11438   /path/to/dbdirmeta rather than /path/to/dbdir/meta).
11440 build system:
11442 * Changed to using AM_MAINTAINER_MODE.  If you're doing development work on
11443   Xapian itself, you should configure with "--enable-maintainer-mode" and
11444   ideally use GNU make.
11446 * Fixed configure test for fdatasync to work (I suspect a change in a recent
11447   autoconf broke it as it relied on autoconf internal naming).
11449 * Fully updated to reflect move of libbtreecheck.la from backends/quartz
11450   to testsuite.  btreetest and quartzcheck should build correctly now.
11452 documentation:
11454 * Added first cut of documentation for Xapian::QueryParser query syntax.
11456 * Fixed incorrectly formatted doxygen documentation comments which resulted in
11457   some missing text in the collated API and internal classes documentation.
11459 * Documented --enable-maintainer-mode and problems with BSD make in HACKING.
11461 * Fixed typo in docs/scalability.html.
11463 * PLATFORMS: Updated from the tinderbox.
11465 omega:
11467 * omega: Parsing of the probabilistic query is now delayed until we need some
11468   information from it.  This means that we can now use options set by the
11469   omegascript template to control the behaviour of the query parser.
11470   $set{stemmer,...} now controls the stemming language (e.g. $set{stemmer,fr})
11471   and $setmap{prefix,...} now sets the QueryParser prefix map (e.g.
11472   $setmap{prefix,subject,XT,abstract,XA}).
11474 * omega: Fixed $setmap not to add bogus entries.
11476 * docs/omegascript.txt: Expanded documentation of $set and $setmap to list
11477   values which Omega itself makes use of.
11479 * omega: Cleaned up the start up code quite a bit.
11481 * omega: Removed the unfinished code for caching omegascript command
11482   expansions.  Added code to cache $dbsize.  The only other value correctly
11483   marked for caching is already being cached!
11485 Xapian 0.7.4 (2003-10-02):
11487 API:
11489 * Fixed small memory leak if Xapian::Enquire::set_query() is called more than
11490   once.
11492 * Xapian::ESet now has reference counted internals (library interface version
11493   bumped because of this).
11495 * Removed unused OmDocumentTerm::termfreq member variable.
11497 * OmDocumentTerm ctor now takes wdf, and replaced set_wdf() with inc_wdf() and
11498   dec_wdf().
11500 * Removed unused open_document() method from SubMatch and derived classes.
11502 * Calls made by the matcher to Document::Internal::open_document() now use the
11503   lazy flag provided for precisely this purpose, but apparently never used -
11504   this should give quite a speed boost to any matcher options which use values
11505   (e.g. sort, collapse).
11507 testsuite:
11509 * Finished off support for running tests under valgrind to check for memory
11510   leaks and access to uninitialised variables.
11512 * apitest: Sped up deldoc4.
11514 * btreetest: Removed superfluous `/'s from constructed paths.
11516 * quartztest: adddoc2 now checks that there weren't any extra values created.
11518 backends:
11520 * quartz: don't start the document's TermIterator from scratch on every
11521   iteration in replace_document().  Should be a small performance win.
11523 * quartz: Pass 0 for the lexicon/postlist table when creating a termlist just
11524   to find the doc length.
11526 * quartz: quartz_table_entries.cc: Removed rather unnecessary use of
11527   const_cast.
11529 * quartz: quartz_table.cc: Removed unused variable.
11531 * quartz: Improved encapsulation of class Btree.
11533 build system:
11535 * libbtreecheck.la now has an explicit dependency on libxapian.la.
11537 * We now set the dependencies for libxapian correctly so that linking
11538   applications will pull in other required libraries.
11540 * matcher/Makefile.am: Ship networkmatch.cc even if "make dist" is run from a
11541   tree with the remote backend disabled.
11543 * configure.in: Sorted out tests for gethostbyname and gethostbyaddr using
11544   standard autoconf macros.
11546 * configure.in: If fork is found, but socketpair isn't, automatically disable
11547   the remote backend rather than configure dying with an error.
11549 * autoconf/: Removed various unused autoconf macros.
11551 portability:
11553 * xapian-config.in: Link with libxapianqueryparser before libxapian, since
11554   that's the dependency order.
11556 * Removed or replaced uses of <iostream> and <iosfwd> in the library sources
11557   - we don't need or want the library to pull in cin and friends.
11559 * extra/queryparser.yy: Fixed to build with Sun's C++ compiler.
11561 * Make the dummy source file C++ rather than C so that automake tells libtool
11562   that this is a C++ library - vital for correct linking on some platforms.
11564 * Makefile.am: Pass -no-undefined to libtool so that we can build build a DLL
11565   on MS Windows.
11567 * configure.in: Fixed check for socketpair - we were automatically disabling
11568   the remote backend on platforms where socketpair is in libsocket
11569   (such as Solaris).
11571 * Use O_BINARY for binary I/O if it exists.
11573 * common/utils.h: mkdir() only takes one argument on mingw.
11575 * common/utils.h,testsuite/backendmanager.cc: Touch file using open() rather
11576   than system().
11578 * common/utils.cc: Fixed to compile if snprintf isn't available.
11580 documentation:
11582 * docs/scalability.html: Fixed slip (32GB should be 32TB);  Added note about
11583   Linux 2.4 and ext2 filesize limits.
11585 * PLATFORMS: Updated.
11587 * NEWS: Fixed a few typos.
11589 bindings:
11591 * xapian.i: using namespace std in SWIG parsed segment to sort out typemaps.
11593 packaging:
11595 * Updated RPM packaging.
11597 omega:
11599 * omega: $topdoc now ensures the match has been run; $date no longer ensures
11600   the match has been run.
11602 * omega: Fixed to build with Sun's C++ compiler.
11604 Xapian 0.7.3 (2003-08-08):
11606 API:
11608 * MSetIterator: Fixed MSetIterator::get_document() to work when get_mset() was
11609   called with first != 0 (regression test msetiterator3).
11611 testsuite:
11613 * internaltest: Changed test exception1 to actually test something (hopefully
11614   what was originally intended!)
11616 * Added long option support to the testsuite programs (and quartzdump).
11618 * Testsuite now builds on platforms for which we use our own stringstream
11619   implementation.
11621 * Only use \r in test output if the output is a tty.
11623 * Increased default timeout used by tests running on the remote backend from 10
11624   seconds to 5 minutes to avoid tests failing just because the machine running
11625   them is slow and/or busy.
11627 * Fixed check for broken exception handling - we were getting "Xapian::"
11628   prefixed to one version and not on the other.
11630 * tests/runtest: Set srcdir if it isn't already to make it easy to manually run
11631   test programs from a VPATH build.
11633 * apitest: Check termfreq in allterms4.
11635 backends:
11637 * quartz: Fixed allterms TermIterator to not give duplicate terms when a
11638   posting list is chunked; added regression test (allterms4).
11640 * quartz: Check for EINTR when reading or writing blocks and retry the
11641   operation.  This should mean quartz won't fail falsely if a signal is
11642   received (e.g. if alarm() is used).
11644 build system:
11646 * Renamed libomqueryparser to libxapianqueryparser - for backward compatibility
11647   we still provide a library with the old name for now.
11649 * xapian.m4: Added XO_LIB_XAPIAN to replace OM_PATH_XAPIAN.  XO_LIB_XAPIAN will
11650   automagically enable use of "xapian-config --ltlibs" if A[CM]_PROG_LIBTOOL is
11651   used in configure.in.
11653 * xapian-config: Now supports linking with libtool - using libtool means that
11654   the run-time library path is set and that you can now link with an
11655   uninstalled libxapian.  Also xapian-config will now work once xapian-core's
11656   configure has been run, rather than only after "make all".
11658 * xapian-config: Now automatically tries to link libxapianqueryparser too.
11660 * bootstrap: Removed bootstrap scripts in favour of top-level bootstrap which
11661   creates a top-level configure you can optionally use to configure all checked
11662   out Xapian modules with one command, and which creates a top level Makefile
11663   to build all checked out Xapian modules with one command.
11665 * Added versioning information to libxapian and libxapianqueryparser.
11667 * xapian-example/omega: Use libtool and XO_LIB_XAPIAN so we can link with an
11668   uninstalled Xapian, and so the run time load path gets built into the
11669   binaries (no need to set LD_LIBRARY_PATH just because you install Xapian with
11670   a non-standard prefix).
11672 * configure: Stop the API documentation from being regenerated when
11673   include/xapian/version.h changes (since it's generated by configure).
11675 * Fixed "make dist" in VPATH builds.
11677 portability:
11679 * common/getopt.h: #include <stdlib.h>, <stdio.h>, and <unistd.h> before
11680   defining getopt as a macro - this avoids problems with clobbering prototypes
11681   of getopt() in system headers.
11683 * bin/quartzcompact.cc: Need stdio.h for rename().
11685 * languages/Makefile.am: Fixed compilation for compilers other than GCC.
11687 * Moved rset serialisation into a method of RSet::Internal, so
11688   omrset_to_string() is now just glue code.  This eliminates the need for it to
11689   be a friend of RSet::Internal which Sun's C++ compiler didn't seem to be able
11690   to cope with.
11692 documentation:
11694 * Fix incorrect documentation comment for Enquire::set_set_forward().  (Looked
11695   like a cut&paste error)
11697 * COPYING: Updated FSF address, and reinstated missing section: "How to Apply
11698   These Terms to Your New Programs"
11700 * PLATFORMS: Updated some linux results: RH7.3 on x86, and Debian on alpha and
11701   arm; Updated FreeBSD success report; Updated with results from the tinderbox.
11703 * docs/mkdoc.pl: Don't choke on a comment at the end of the DIST_SUBDIRS line
11704   in a Makefile.am.
11706 * HACKING: Improved note about why libtool 1.5 is needed.
11708 * HACKING: Added note about additional tools needed for building a
11709   distribution.
11711 bindings:
11713 * Fixed VPATH builds.
11715 * python: Fixed to link with libomqueryparser.
11717 * guile,tcl8: Updated typemaps to SWIG 1.3 style.
11719 omega:
11721 * omindex.cc: Added missing `#include <errno.h>'.
11723 * omindex/scriptindex: Fixed signed character issue in accent normalisation.
11725 * omindex: fixed memory and file descriptor leak on indexing a zero-sized file.
11727 * omindex: Fixed sense of test for unreadable files.
11729 * omindex: Improved log messages to distinguish re-indexed/added.
11731 * omindex,omega,scriptindex: Fixed to compile with mingw.
11733 * omindex: Fixed to compile with GNU getopt so we can build on non-glibc
11734   platforms.
11736 examples:
11738 * msearch: Quick fix to get mingw building going.
11740 * getopt: Copied over our fixes for better C++ compatibility.
11742 * simplesearch: Stem search terms.
11744 * simpleindex: Fixed not to run words together between lines.
11746 * simpleindex: Create database if it doesn't exist.
11748 Xapian 0.7.2 (2003-07-11):
11750 testsuite:
11752 * Fixed NULL pointer dereference when a test threw an unexpected exception.
11754 backends:
11756 * Quartz: When asked to create a quartz database, try to create the directory
11757   if it doesn't already exist.  Then we don't have to do it in every single
11758   Xapian program which wants to create a database...
11760 portability:
11762 * common/getopt.h: Fixed to work better with C++ compilers on non-glibc
11763   platforms.
11765 * common/utils.h: missing #include <ctype.h>
11767 * Quartz: Defined _XOPEN_SOURCE=500 for GLIBC so we get pread() and pwrite().
11769 * common/utils.h: Improved mingw implementation of rmdir().
11771 documentation:
11773 * PLATFORMS: Added MacOS X 10.2 success report.
11775 * Improvements to doxygen-generated documentation.
11777 bindings:
11779 * Moved to separate xapian-bindings module.
11781 * Added configure check for SWIG version (require at least 1.3.14).
11783 * bindings/swig/xapian.i: Fixed over-enthusiastic automatic conversion of
11784   termname to std::string.
11786 * PHP4 bindings much closer to working once again; updated guile and tcl8
11787   somewhat.
11789 omega:
11791 * omega: If the same database is listed more than once, only search the first
11792   occurrence.
11794 * omega: use snprintf to help guard against buffer overflows.
11796 Xapian 0.7.1 (2003-07-08):
11798 testsuite:
11800 * Fixed testsuite programs to not try to use "rm -rf" under mingw.
11802 backends:
11804 * Quartz: Use pread() and pwrite() on platforms which support them.  Doing so
11805   avoids one syscall per block read/write.
11807 * Quartz block count is now unsigned, which should nearly double the size of
11808   database for a given block size.  Not tested this yet.
11810 omega:
11812 * omindex: Fixed compilation problem in 0.7.0.
11814 documentation:
11816 * Added new document discussing scalability issues.
11818 * PLATFORMS: Updated.
11820 Xapian 0.7.0 (2003-07-03):
11822 API:
11824 * Moved everything into a Xapian namespace, which the main header now being
11825   xapian.h (rather than om/om.h).
11827 * Three classes have been renamed for better naming consistency:
11828   OmOpeningError is now Xapian::DatabaseOpeningError, OmPostListIterator is
11829   now Xapian::PostingIterator, and OmPositionListIterator is now
11830   Xapian::PositionIterator.
11832 * xapian.h includes <iosfwd> rather than <iostream> - if you were relying on
11833   the implicit inclusion, you'll need to add an explicit "#include <iostream>".
11835 * Replaced om_termname with explicit use of std::string - om_termname was just
11836   a typedef for std::string and the typedef doesn't really buy us anything.
11838 * Older code can be compiled by continuing to use om/om.h which uses #define
11839   and other tricks to map the old names onto the new ones.
11841 * Define XAPIAN_VERSION (e.g. 0.7.0), XAPIAN_MAJOR_VERSION (e.g. 0), and
11842   XAPIAN_MINOR_VERSION (e.g. 7).
11844 * Updated omega and xapian-examples to use Xapian namespace.
11846 queryparser:
11848 * Xapian::QueryParser: Accent normalisation added; Improved error reporting;
11849   Fixed to handle the most common examples found in the wild which used to give
11850   "parse error".
11852 bindings:
11854 * Python bindings brought up to date - use ./configure --enable-bindings to
11855   build them.  Requires Python >= 2.0 - may require Python >= 2.1.
11857 * Enabled optional building of bindings as part of normal build process.  Old
11858   Perl and Java bindings dropped; for Perl, use Search::Xapian from CPAN; Java
11859   JNI bindings will be replaced with a SWIG-based implmentation.
11861 internal implementation changes:
11863 * Removed one wrapper layer from the internal implementation of most API
11864   classes.
11866 * Xapian::Stem now uses reference counted internals.
11868 * Internally a lot of cases of unnecessary header inclusion have been removed
11869   or replaced with forward declarations of classes.  This should speed up
11870   compilation and recompilation of the Xapian library.
11872 * Suppress warnings in Snowball generated C code.
11874 * Reworked query serialisation in the remote backend so that the code is now
11875   all in one place.  The serialisation is now rather more compact and no longer
11876   relies on flex for parsing.
11878 testsuite:
11880 * Moved all the core library tests to tests subdirectory.
11882 * apitest now allows backend to be specified with "-b" rather than having to
11883   mess with environmental variables.
11885 * Testsuite programs can now hook into valgrind for leak checking, undefined
11886   variable checking, etc.
11888 backends:
11890 * Fixed parsing of port number in remote stub databases.
11892 * Quartz: Improved error message when asked to open a pre-0.6 Quartz database.
11894 * Quartz backend: Workaround for shared_level problem turns out to
11895   be arguably the better approach, so made it permanent and tidied up
11896   code.
11898 build system:
11900 * Build system fixed to never leave partial files in place of the expected
11901   output if a build is interrupted.
11903 * quartzcheck, quartzdump, and quartzcompact are now built by "make" rather
11904   than only by "make check".
11906 * xapian-config: Removed --prefix and --exec-prefix - you can't reliably
11907   install Xapian with a different prefix to the one it was configured with,
11908   yet these options give the impression you can.
11910 miscellaneous:
11912 * Fixed sending debug output to a file with XAPIAN_DEBUG_LOG with a value which
11913   didn't contain "%%" (%% expands to the current PID).
11915 * Fixed Xapian::MSetIterator::get_collapse_count() to work as intended.
11917 omega:
11919 * omindex,scriptindex: Normalise accents in probabilistic terms.
11921 * omindex: Read output from pstotext and pdftotext via pipes rather
11922   than temporary files to side-step the whole problem of secure temporary file
11923   creation; Use pdfinfo to get the title and keywords from when indexing a PDF;
11924   Safe filename escaping tweaked to not escape common safe punctuation.
11926 * omindex: Implement an upper limit on the length of URL terms - this is a
11927   slightly conservative 240 characters.  If the URL term would be longer than
11928   this, its last few bytes are replaced by a hash of the tail of the URL.  This
11929   means that (apart from hopefully very rare collisions) urlterms should still
11930   be unique ids for documents.  This is forward and backward compatible for
11931   URLs less than 240 characters.
11933 * omindex: Clean up processing of HTML documents:
11934   - Ignore the contents of <script> and <style> tags in HTML.
11935   - Strip initial whitespace in each tag in an HTML document.
11936   - Try not to split words in half when truncating title and summary.
11938 * query.cc: Set STEM_LANGUAGE near the start of the file so it's easy
11939   for users to change until we get better configurability.
11941 * omega: Replaced half-hearted logging support with flexible OmegaScript-based
11942   approach with new $log command.  Also added $now to allow the current
11943   date/time to be logged.
11945 * templates/xml: added collapse info to xml template.
11947 documentation:
11949 * Assorted minor documentation improvements.
11951 * PLATFORMS: Updated.
11953 rpms:
11955 * Improved RPM packaging of xapian-core and omega.
11957 Xapian 0.6.5 (2003-04-10):
11959 * OmEnquire: optimised the handling when sort_bands == 1 and fixed incorrect
11960   results in this and some other sorting cases; added some sorting testcases.
11962 * OmMSetIterator: added get_collapse_count() which returns a lower bound on
11963   the number of items which were removed by collapsing onto the current item.
11965 * OmStem: added default OmStem constructor and "none" language.  Both of these
11966   give a stemmer object which leaves terms unchanged which should allow for
11967   simpler logic in programs using Xapian.  The default constructor also removes
11968   the need to mess with pointers in some cases.
11970 * Automatically disable the remote backend if we don't have fork() since the
11971   remote backend requires it in several places.
11973 * Fixed to build with debug enabled.
11975 * testsuite: fixed to still build when some backends are disabled.
11977 * extra/parsequerytest.cc: Fixed to build with GCC 2.95.
11979 * Testsuite: Added regression test for Quartz bug which caused problems with
11980   long terms on machines with signed chars.
11982 * testsuite/index_utils.cc: Handling of ^x was just downright wrong due to a
11983   typo.
11985 * Improved portability: Fix for 64 bit machines.  Fixed btreetest to build with
11986   older compilers lacking <sstream>.  Xapian is now much closer to building
11987   with Sun's CFront-based Sun Pro C++ compiler, and with a Linux to mingw
11988   cross-compiler.
11990 * PLATFORMS: Updated with the results of many test builds.
11992 * Improved RPM packaging of xapian-core and omega.
11994 * Documentation: Use http://www.doxygen.org/ as URL for doxygen; Fixed bad link
11995   to our own website in overview.html; code_structure.html now only includes
11996   directories in the build system.
11998 * HACKING: updated.
12000 * Removed bugs/todo.xml, TODO, TODO.release, docs/todo.html, and
12001   docs/todo-release.html from the distribution.  Bugs and todo items will be
12002   tracked in Bugzilla instead.
12004 * Install docs in /usr/share/doc/xapian-core instead of /usr/share/xapian-core.
12006 * omega: If xP and P are both empty, there may be a boolean query, so don't
12007   force first page of hits.
12009 * omega: Fixed off-by-one error in rounding down topdoc - it was possible to
12010   get to an empty page of hits if there were exactly a multiple of HITSPERPAGE
12011   matches and the matcher over-estimated the number of matches and Omega
12012   displayed page links.
12014 * omega: Fixed handling of multiple DB parameters to be as documented.
12016 * omega: Added $collapsed to report get_collapse_count() for the current hit.
12018 * omega: Added $transform{} which does regexp manipulation (currently disabled
12019   until configure tests for regexp library are added)
12021 * omega: Added $uniq{} to eliminate duplicates from a sorted list.
12023 * omega: Don't force page 1 for a query with repeated terms!
12025 * omega: removed duplicates from terms listed in term frequencies.
12027 * omega: Added cgi parameter COLLAPSE to collapse on key values
12029 * omega: Added $value{key[,docid]} support to omegascript
12031 * omega: Renamed DATE1, DATE2, and DAYSMINUS to the more meaningful START, END,
12032   and SPAN (NB SPAN is days before END, or after START, or before today -
12033   whereas SPAN was before *DATE1* or before today).  The old parameters names
12034   are supported (with the original semantics) for now.
12036 * omega: Actually install documentation!
12038 * templates/query: propagate B boolean filters
12040 * templates/godmode: removed link to EuroFerret image
12042 * templates/godmode: added value dumping, for values from 0-255
12044 * omindex: Report correct version number (was hard-wired to 1.0!)
12046 * scriptindex: Allow '_' in fieldnames.  Diagnose bad characters in fieldnames
12047   better.
12049 * dbi2omega: Added DBUSER and DBPASSWD environmental variable support so that
12050   password protected DBs can easily be used
12052 * scriptindex.cc: added missing "#include <stdio.h>" which caused builds
12053   to fail for some platforms.
12055 Xapian 0.6.4 (2002-12-24):
12057 * Quartz backend: Fixed double setting of position list when updating a
12058   document with term position information (overall result was correct, just
12059   inefficient); when deleting a position_list, don't check if it's empty,
12060   just ask the layer below to delete it and let it handle the case when
12061   there's nothing to delete; Fixed unpacking of termlist on platforms where
12062   char is signed.
12064 * OmQueryParser: Added support for searching probabilistic fields (using
12065   <field>:<term>); the unstem multimap now includes "." on the end of a
12066   term if it was there in the query.
12068 * Don't include "om.h" as a dependency for the api docs since it's generated
12069   a configure time and the dependency was forcing users to regenerate the
12070   documentation, which requires doxygen to be installed.
12072 * Bindings: Python bindings updated to work with the updated API (still
12073   disabled by default).
12075 * Muscat 3.6 backend: Fixed to build with the new database factory functions;
12076   fixed compilation warnings; Muscat 3.6 DA and DB databases don't support
12077   positional information.  Instead of throwing an exception when we try to
12078   access it, return an empty position list (like a quartz database with no
12079   position information would).  This allows copydatabase to be used to convert
12080   a Muscat 3.6 database to a quartz one.
12082 * Documentation: quartzdesign and todo list updated.
12084 * quartzcheck: default mode changed to "v" rather than "+", since "+" is too
12085   verbose for a btree of any size; if you pass a quartz database directory,
12086   quartzcheck will now check all the tables which make up a quartz database.
12088 * quartzcompact: new tool which makes a copy of a quartz database with full
12089   compaction turned on - this results in a smaller database which is faster
12090   to search.  The next update will result in a lot of block splitting though
12091   (since all blocks are as full as possible).
12093 * omega: Added $unstem to map a stemmed term to the form(s) used in the query;
12094   $queryterms now only includes the first occurrence of each stemmed form;
12095   $prettyterm makes use of the unstem map; prefer MINHITS to MIN_HITS and
12096   RAWSEARCH to RAW_SEARCH since none of the other CGI parameter names have
12097   _ separating words (continue to support old names for now); fixed default
12098   template to not generate topterms twice, and fixed topterms to not stick
12099   outside the green box; corrected omegascript docs - it's $setrelevant
12100   not $set_relevant.
12102 * scriptindex: index=nopos with new indexnopos action; index and indexnopos now
12103   take an optional prefix argument; index=nopos is handled specially for
12104   backwards compatibility; added new data action to generate terms for date
12105   range searching.
12107 Xapian 0.6.3 (2002-12-14):
12109 * Updated PLATFORMS and todo list.  Noted in HACKING that Bison 1.50 seems to
12110   work with Xapian.
12112 * OmQueryParser now creates an "unstem" multimap to allow probabilistic
12113   query terms to be converted back to the form the user originally typed.
12115 * Updated documentation for remote protocol description and the quickstart
12116   tutorial which were both very out of date.
12118 * No longer use OmSettings to pass matcher parameters.  This completes the
12119   removal of OmSettings.
12121 * Added workaround for problem with cursors sharing levels in the btree.
12122   This should fix sporadic problems with large databases (small databases
12123   have fewer btree levels so aren't affected).
12125 * Stub databases now work again, though with a different format.  The new
12126   format allows multiple databases to be specified in the stub file.
12128 * OmEnquire::get_eset() now takes a flags argument of bit constants |-ed
12129   together instead of 2 bools.
12131 * Applied Martin Porter's better fix for the btree sequential addition bug
12132   which Richard fixed a few months ago.  Richard's fix resulted in a correct
12133   btree, but didn't always utilise space as efficiently as possible.
12135 * Fixed the remote backend to handle weighting schemes after the OmSettings
12136   changes.  You can now even implement your own weighting scheme and use it
12137   with the remote backend provided you register it with SocketServer at
12138   runtime (this feature has been on the todo list for ages).
12140 Xapian 0.6.2 (2002-12-07):
12142 * Set env var XAPIAN_SIG_DFL to stop the testsuite installing its
12143   signal handler (may be useful with some debugging tools).
12145 * backends/quartz/btree.cc: max_item_size wasn't being set due to
12146   some over-zealous code pruning.  It was defaulting to 0, and
12147   was causing the code to write off the end of allocated memory
12148   blocks.
12150 * matcher/localmatch.cc: fixed handling of wtscheme() - we were
12151   trying to use it for the extra weights, and then double
12152   deleting it!
12154 * common/omdebug.cc,common/omdebug.h: Fixed permissions on newly
12155   created log file (was getting 000!); Simplified class internals;
12156   Renamed env vars: OM_DEBUG_FILE is now XAPIAN_DEBUG_LOG,
12157   OM_DEBUG_TYPES is now XAPIAN_DEBUG_FLAGS (old versions still work
12158   for now).
12160 * testsuite/testsuite.cc: Fixed so running "gdb .libs/apitest"
12161   finds srcdir (for an in-tree build at least).
12163 * Fixed to compile with --enable-debug=full.
12165 * docs/remote.html: Updated from OmSettings to factory functions.
12167 * PLATFORMS: ixion is actually Linux 2.2.
12169 * OmWritableDatabase now has a default constructor.
12171 * Weighting scheme now specified by passing OmWeight object to OmEnquire.
12172   This also allows user weighting schemes (just subclass OmWeight and
12173   pass in an instance of this new class).  [This doesn't currently work
12174   with the remote backend.]
12176 * No longer use OmSettings to specify parameters for constructing databases.
12177   Instead there's a factory function for each database type - temporary naming
12178   scheme is OmXxx__open(), mostly because it's easy to grep for later.
12179   Instead of create and overwrite flags, we pass in a value - a new possible
12180   opening mode is "create or open".  [At present stub databases and the
12181   machinery in InMemory to allow the multierrhandler1 test aren't working.
12182   Everything else should be.]
12184 * OmEnquire::get_eset() takes parameters instead of an OmSettings object.
12186 * Fixed reversed sense of use_query_terms (and fixed reversed sense test in
12187   apitest which meant this wasn't spotted).
12189 * Documentation: Link to annotated class lists in doxygen generated
12190   documentation instead of the rather empty index pages; added doxygen
12191   markup so that apidoc now documents header files; updated todo list.
12193 * Documentation: intro doc thing was very out of date in places - fixed.
12195 * Omega: index .php files as HTML, with the PHP code stripped out; omindex
12196   return non-zero return code if an unexpected exception is caught; fixed
12197   HTML parser to not read one character past the end of the document in
12198   some cases; updated in line with OmSettings related changes to the API;
12199   Fixed $dbname to return "default" for the default database instead of "";
12200   templates/query: Removed now unused xDEFAULTOP hidden field, and superfluous
12201   "}"; dbi2omega now more efficient and can be restricted to listed fields.
12203 Xapian 0.6.1 (2002-11-28):
12205 * Fixed to compile with GCC 3.0.
12207 * PLATFORMS: Updated.
12209 Xapian 0.6.0 (2002-11-27):
12211 * Quartz database backend: lexicon disabled (./configure CXXFLAGS=-DUSE_LEXICON
12212   to reenable it), and encoding schemes simplified and made more compact;
12213   extended and added test cases; minimum block size is now 2048 bytes (as
12214   documented before, but now we actually enforce this); btree checking code
12215   split off and only linked in when required; tidied up btreetest's output.
12217 * Replaced our stemmers with those from Snowball.  These give better results,
12218   and are actively maintained by Martin Porter (who wrote the original Xapian
12219   stemmers too).  It also means that Xapian now has stemmers for Finnish,
12220   and Russian, and an implementation of Lovins' English stemmer.
12222 * Assorted improvements to the documentation, especially the documentation
12223   of the internals of the Quartz backend.
12225 * Removed the three uses of RTTI (typeid() and dynamic_cast<>) - one was
12226   totally superfluous, and the other two easily avoided.
12228 * Omega and simpleindex example: limit probabilistic term length to 64
12229   characters to stop the index filling up with junk terms which nobody will
12230   ever search for.
12232 * Omega: Added dbi2omega perl script to dump any database which perl DBI can
12233   access into the dump format expected by scriptindex.
12235 Xapian 0.5.5 (2002-12-04):
12237 * Fixed compilation with --enable-debug.
12239 * Minor documentation updates.
12241 * Omega: Fixed paging on default database; removed xDEFAULTOP from the query
12242   template as it's no longer used; removed bogus unmatched '}' from query
12243   template; added dbi2omega perl script to dump any database which perl DBI
12244   can access into the dump format expected by scriptindex; limit length of
12245   probabilistic terms generated to 64 characters.
12247 Xapian 0.5.4 (2002-10-16):
12249 * Fixed a compilation error with "make check" when using GCC 3.2.
12251 * PLATFORMS: checked 0.5.3 works on OpenBSD and Solaris 7.
12253 Xapian 0.5.3 (2002-10-12):
12255 Notable changes: Improvements to the test suite, and internal code cleanups:
12257 * Internal code cleanups on Quartz Btree implementation.
12259 * Minor documentation updates (TODO and PLATFORMS updated; Martin Porter's
12260   stemming paper removed - see the Snowball site for background stemmer
12261   info).
12263 * Implemented QuartzAllTermsList::get_approx_size().
12265 * Removed a couple of occurrences of "using std::XXX;" from externally
12266   visible headers.
12268 * With GCC, add warning flags "-Wall -W" rather than "-Wall -Wunused" (-Wall
12269   implies -Wunused anyway).  Fixed all the warnings this throws up, except in
12270   languages/ (that code is to be replaced with Snowball soon).
12272 * Test suite: Disable colour test output if stdout isn't a terminal and
12273   reworked check for broken exception handling as the previous  version never
12274   seemed to fire.  Other assorted minor improvements.
12276 * include/om/om.h is now removed on "make distclean" rather than "make clean".
12278 Xapian 0.5.2 (2002-10-06):
12280 Further improvements to documentation and portability:
12282 * docs/: converted all text docs to HTML (except omsettings which will
12283   has odd markup (LaTeX?) and will probably soon be obsolete anyway).
12285 * remote backend: Fixed handling of timeouts which are now in the past - fixes
12286   test failures with redhat/x86.
12288 * quartz backend: now works on 64 bit platforms.
12290 * test suite: try to spot mishandled exceptions and stop them causing bogus
12291   OMEXCEPT failures.
12293 Xapian 0.5.1 (2002-10-02):
12295 This release fixes features improved documentation and some build system
12296 portability fixes.
12298 * PLATFORMS: updated with more test results.
12300 * docs/: tidied up layout of HTML documentation; converted the notes about
12301   BM25 into HTML; updated stemmer docs to reflect intention to use Snowball
12302   instead; included HTML versions of quickstart*.cc.
12304 * automake 1.6.3 and autoconf 2.54 are now required for those working
12305   from CVS to fix a problem with the generated Makefiles and Solaris
12306   make.
12308 * net/Makefile.am: Fixed building of readquery.cc from readquery.ll.
12310 * buildall script is now deprecated - use the new streamlined bootstrap script
12311   in preference.
12313 Xapian 0.5.0 (2002-09-20):
12315 The last release of the software that is now known as Xapian was Open Muscat
12316 0.4.1 on November 24th 2000, not far from 2 years ago.
12318 There's been a significant amount of development in this time, so we've
12319 summarised the most notable changes and improvements:
12321   * The project is now called "Xapian". We've renamed the modules in the light
12322     of this change:
12324       + "om" is now "xapian-core"
12325       + "om-examples" is now "xapian-examples", and now contains small,
12326         instructive examples which demonstrate how to use Xapian to implement
12327         particularly features.
12328       + Added "xapian-applications" which contains larger sample applications
12330   * Much improved build system - should now build "out of the box" on many Unix
12331     platforms. Can now VPATH build with vendor tools on most platforms. Builds
12332     as cleanly as we can achieve with GCC 2.95.* (some bogus warnings due to
12333     compiler bugs). Should build without warnings on GCC 3.0, 3.1, and 3.2.
12335   * If using GCC, om/om.h now contains a check that the compiler used to build
12336     Xapian and the compiler used to build the application have compatible C++
12337     ABIs. So you get a clear error message early from the first attempt to
12338     compile a file rather than a confusing error from the linker near the end
12339     of the build.
12341   * RPM packages are now available. We intend to prepare Debian packages in the
12342     near future too.
12344   * xapian-config no longer support "--uninst". It's hard to make this work
12345     reliably and portably, and the effort is better expended elsewhere.
12346     Configure with a prefix and install to a temporary directory instead.
12348   * Xapian can now work with files > 2Gb on OSes which support them.
12350   * Restructured and reworked documentation.
12352   * Removed thread locks. We intend to be "thread-friendly" so different
12353     threads can access different objects without problems. In the rare event
12354     that you want to concurrently call methods on the same object from
12355     different threads you need to create a mutex and lock it. Thus the thread
12356     lock overhead is only incurred when it's necessary.
12358   * Indexgraph removed from core library. It will reappear as an add-on library
12359     at some point.
12361   * Omega's query parser has now been reworked as a separate library.
12363   * Terminology change - "keys" are now known as "values" to avoid confusion,
12364     since they're not like keys in a relational database. The exception is when
12365     a value is used as a key in some operation, e.g. "match_collapse_key".
12367   * Database backends:
12369       + Auto backend: can now be used to create a new database.
12370       + Auto backend: added support for "stub" databases - a text file
12371         specifying the settings for the database to be opened (particularly
12372         useful for allowing easy access to specific remote databases).
12373       + Quartz backend: many fixes and improvements, and the code has been
12374         cleaned up a lot. Implemented deleting of items from postlists.
12375       + Remote backend: implemented term_exists() and get_termfreq();
12376       + Multi-backend: the document length is now fetched from the sub-postlist
12377         rather than the database, which provides a huge speed-up in some cases.
12378       + Sleepycat backend: this experimental backend has been removed.
12379       + Muscat 3.6 backends: now disabled by default.
12381   * Tests:
12383       + Test cases added for most bug fixes and new features.
12384       + stemtest: rewritten in C++ rather than part C++, part perl. Now 15%
12385         faster.
12386       + includetest: removed - it's no longer useful now the code has matured.
12387       + Removed problematic leak checking from testsuite. We plan to use
12388         valgrind instead soon.
12390   * Matcher:
12392       + Fixed several matcher bugs which could cause incorrect results in some
12393         situations.
12394       + Fix bug in expander due to nth_element being called on the wrong
12395         element.
12396       + Added sorting within relevance bands to the matcher.
12397       + Matcher now calculates percentages differently, such that 100%
12398         relevance is actually achievable.
12399       + Matcher now uses a min-heap rather than nth-element to maintain the
12400         proto-mset. This is cleaner and more efficient.
12401       + New operator OP_ELITE_SET replaces match_max_or_terms option.
12402       + Implemented multiple XOR queries.
12403       + Add a new query operator, OP_WEIGHT_CUTOFF, which returns only those
12404         documents from a query which have a weight greater than a specified
12405         cutoff value.
12406       + Removed OmBatchEnquire from system: it may return at a later date, but
12407         for now it is simply out of date and a maintenance liability, and
12408         gives no significant advantage.
12409       + Added experimental match bias functors.
12411   * The API has been cleaned up in various places:
12413       + OmDocumentContents and OmIndexDoc merged to become OmDocument
12414       + OmQuery interface cleaned up
12415       + OmData and OmKey removed - methods which used them now just pass a
12416         string instead
12417       + OmESetItem replaced by OmESetIterator; OmMSetItem by OmMSetIterator;
12418         om_termname_list by OmTermIterator
12419       + OmDocumentTerm and OmDocumentParams removed
12420       + OmMSet::mbound replaced by OmMSet::matches_
12421         {lower_bound,estimated,upper_bound}, giving more information
12422       + Xapian iterators now have default constructors
12423       + Most API classes now have reference counted internals, so assignment
12424         and copying are cheap
12425       + OmStem now has copy constructor and assignment operator
12426       + and more...