Fix Xapian::Internal::intrusive_ptr<const T> logging
[xapian.git] / xapian-core / NEWS
blob4db0e1a104a30a3cd2849f9850a8192ff1c7f385
1 up to: f775613d8aab7794bed4d57d7cf9d1caace6c76f
3 Xapian-core 1.4.21 (2022-08-31):
5 API:
7     Fix integer typedef used by ESet API.
8     This should be Xapian::termcount, not Xapian::doccount.  In a standard
9     build both are the same underlying type, so this won't usually matter.
11 testsuite:
14 matcher:
17 glass backend:
19 Author: Robert Stepanek <rsto@paranoia.at>
20     No-op GlassTable::readahead_key for overlong keys
21     Currently, a query may abort with an InvalidArgument error if one of
22     the terms exceeds the maximum allowed length for glass btree keys.
23     However, this error is thrown only if the query triggers a readahead_key
24     call on the glass table.
25     This patch updates readahead_key to report overlong keys as not found,
26     rather than aborting the whole query.
27     Closes https://github.com/xapian/xapian/pull/313
29 chert backend:
32 remote backend:
35 inmemory backend:
38 build system:
40     Clean up cygwin and mingw configure checks
41     When we check $host_os, always anchor at the start (e.g. cygwin* not
42     *cygwin*), and check for msys* as well since that's a derivative of
43     cygwin and behaves similarly for the things we're checking here.
45     Update to use AX_CXX_COMPILE_STDCXX
46     This is a replacement for AX_CXX_COMPILE_STDCXX_11 (which we were using)
47     which also supports newer C++ standards versions which will be useful.
48     For C++11 the only difference seems to be that the macro now checks for
49     attribute support - we use C++11 attributes so that seems a good thing.
51 documentation:
53 * INSTALL: Restructure MSVC section for clarity.
55 tools:
58 examples:
60     Stop using std::endl in examples
61     It causes a flush of the stream, which is rarely actually wanted
62     and often the replacement \n can be combined with a string literal.
64 portability:
66     Refactor to avoid warning with GCC 12.2
67     GCC 12.2 warns about use of an object after it has been destroyed.
68     I'm not entirely convinced the warning is valid, but it's easy to
69     refactor to avoid it without making the code worse.
71     Avoid undefined value use checking bad glass docdata
72     If unpacking the docid from the key fails, we now skip further
73     checks on the entry after reporting so we don't report an invalid docid
74     if a check on the entry's value also fails.
76     Merge allocations in MSVC dirent compat code
77     Make dir->name a one element array member and over-allocate the struct
78     so there's enough room for its actual size, which means we only need one
79     malloc() call.
81     Add accept() wrapper
82     Check an assumption that Microsoft's SOCKET type only actually holds
83     32 bit values even in 64 bit platforms and throw an exception if
84     violated.
86     Eliminate a use of sprintf
87     Seems cleaner not to have to use a temporary buffer.
89     Squash some unhelpful MSVC deprecation warnings
91     Declare dummy invalid parameter handler noexcept
92     Avoids a warning with MSVC.
94     Include <stdlib.h> in check for sys_errlist
95     That's where it is with mingw and MSVC.
97 packaging:
100 debug code:
103 Xapian-core 1.4.20 (2022-07-04):
105 API:
107 * Throw DatabaseNotFoundError when the database directory doesn't exist or
108   when it doesn't contain a Xapian database.  Patch from Germán Méndez Bravo
109   in https://github.com/xapian/xapian/pull/258
111 * Improve exception message for attempting to remove an empty term (the
112   exception type is still InvalidArgumentError).  Reported by David Bremner.
114 testsuite:
116 * Enable queryparser testcase for OR under NEAR, which has been supported since
117   1.4.3.
119 * Expand some query-related testcases.
121 matcher:
123 * Optimise when a value range is a superset of the slot bounds but the value
124   slot frequency is not equal to the document count by replacing the lower
125   bound with an empty string to make the bounds check very cheap.
127 * Avoid creating a PostList tree for an empty shard.  This avoids pointless
128   work in an uncommon case, but also by handling this up front the code in
129   PostList subclasses for query operators can assume the shard isn't empty
130   which simplifies the code in several places.
132 * Remove lingering handling for database backends without slot bounds since
133   all backends have been required to support these since 1.4.11.
135 * Fix collection frequency estimates for positional operators.  This affects
136   the weighting of positional operators in subqueries of OP_SYNONYM with
137   weighting schemes which use the collection frequency.
139 glass backend:
141 * xapian-check: Test decompress data in the spelling and synonym tables.
142   We don't have structure checking for these tables, but we can at least fetch
143   each entry and check for decompression problems.
145 * Improve error if a block is detected as overwritten in WritableDatabase.
146   Drop "are there multiple writers?" as it's rarely a useful question to ask
147   since we started using fcntl() locking as it's now very hard to get multiple
148   concurrent writers on a database.  Instead suggest running xapian-check,
149   which is probably the best next step for a user who hits this problem.
151 documentation:
153 * Document precedence of NEAR and ADJ.
155 * INSTALL: Note that MSVS 2022 works.
157 tools:
159 * quest: Add --freqs option to show term frequencies.
161 * xapian-delve -v: Show value slot bounds and freq
163 portability:
165 * Fix to build with a C++20 compiler.
167 * configure now probes for a declaration of strerror_r() before using it, since
168   a declaration is required in C++ code.
170 * MSVC: Use intrinsics to implement addition with overflow check.
172 Xapian-core 1.4.19 (2021-12-31):
174 API:
176 * New QueryParser::FLAG_NO_POSITIONS flag.  With this flag enabled, any query
177   operations which would use positional information are replaced by the nearest
178   equivalent which doesn't (so phrase searches, NEAR and ADJ will result in
179   OP_AND).  This is intended to replace the automatic conversion of OP_PHRASE,
180   etc to OP_AND when a database has no positional information, which will no
181   longer happen in the release series after 1.4.
183 * Give a compile error for code which adds a Database to WritableDatabase.
185   Prior to 1.4.19, this compiled and effectively created a "black-hole" shard
186   which quietly discarded any changes made to it.
188   In 1.4.19 it's still possible to perform this operation by assigning the
189   WritableDatabase to a Database first, which is harder to fix.  This case
190   throws an exception on git master where it's easier to address.
192   Reported by David Bremner on #xapian.
194 * Fix TermIterator::skip_to() with sharded databases which sometimes was
195   failing to advance all the way to the requested term.  Uncovered while
196   addressing warning from GCC's -Wduplicated-cond, reported by dcb in #816.
198 * Clamp edit distance to one less than the length of the word we've been asked
199   to correct, which makes the algorithm we use more efficient.  We already
200   require suggestion to have at least one character in common, so the only
201   change to suggestions is we'll no longer suggest corrections which are
202   twice as long or longer even if the edit distance would allow it, which
203   seems like an improvement in itself.
205 * Minor optimisation expanding wildcards.
207 * PostingIterator::get_description(): For an all-docs iterator on a glass
208   database, get_description() would call get_docid() which isn't valid to
209   do once the iterator has reached the end.
211 testsuite:
213 * Expand allterms test coverage.
215 matcher:
217 * Fetch wdf upper bound from postlist which avoids an extra postlist table
218   cursor seek per weighted query term, and also means we now use a per-shard
219   wdf upper bound for local shards which will in typically give a tighter
220   weight upper bound which will tend to make various other matcher
221   optimisations more effective.  Eric Wong reported this speeds up a
222   particularly slow case from ~2 minutes to ~3 seconds.
224   With this change, OP_ELITE_SET can now select a different subset of terms for
225   each shard regardless of shard type (previously this only happened for remote
226   shards).
228 * Avoid triggering a pointless maximum weight recalculation if an unweighted
229   child of a MultiAndPostList prunes.
231 * Only check if the database has positional information when the query
232   uses positional information.  This should help improve notmuch delete
233   performance.  Thanks to andreas on #notmuch for analysis of the problem.
235 glass backend:
237 * Optimise Glass::Inverter::has_positions().  Use const auto& instead of just
238   auto for the loop variables.  Reported to be faster by andreas on #notmuch.
240 * Cache result of Glass::Inverter::has_positions() since calculating it is
241   potentially very expensive, while maintaining a cached answer is very cheap.
243 remote backend:
245 * Add missing closing parenthesis to reported remote prog context, which has
246   been missing since this code was first added over 20 years ago!  Spotted by
247   Gaurav Arora.
249 build system:
251 * Enable compiler option -fno-semantic-interposition if supported.
253   This GCC option allows the compiler to optimise essentially assuming
254   that functions/variables aren't replaced at dynamic link time.
256   Such replacement is not something that it's useful to do for Xapian
257   symbols, and we already turn on -Bsymbolic-functions by default which
258   prevents such replacement anyway by resolving references within the
259   library at build time.
261   Reduces the size of the stripped library on x86-64 Debian unstable by
262   ~1%, and likely makes it faster too.
264 * Avoid bogus deprecation warning when compiling with GCC without optimisation.
265   In this situation, GCC emits a deprecation warning for code in the definition
266   of QueryParser::add_valuerangeprocessor() which is provided for backwards
267   API compatibility even if this method is never used anywhere.
269   This isn't helpful, especially if the user is using -Werror, so disable the
270   -Wdeprecated-deprecations warning for this code.
272   Reported by starmad on #xapian.
274 * Fix GCC -Wmaybe-uninitialized warning.  The warning seems bogus as it's about
275   the this pointer being passed to a method which doesn't reference the object,
276   but we can just make the method static to avoid the warning, and that's
277   arguably cleaner for a method called from the object initialiser list.
279 * Automatically enable GCC warnings -Wduplicated-cond and -Wduplicated-branches
280   if using a GCC version new enough to support them.  The usefulness of
281   -Wduplicated-cond was highlighted by dcb in #816.
283 * Replace uses of obsolete autoconf macros, fixing warnings if configure is
284   regenerated with a recent release of autoconf.
286 * Simplify configure probe for sigsetjmp and siglongjmp.  Just probe
287   individually with AC_CHECK_DECLS and then check that both exist with a
288   preprocessor check.
290 * Update XO_LIB_XAPIAN to fix warning that AC_ERROR is obsolete with modern
291   autoconf.
293 * Support linking against static libxapian with cmake. Patch from Anonymous
294   Maarten in https://github.com/xapian/xapian/pull/317
296 * Clean up handling of libs we link libxapian with - previously any libraries
297   explicitly specified to configure by the user via LIBS=... as well as -lm
298   (if configure determined it was needed) could get added to XAPIAN_LIBS
299   multiple times, as well as also getting added to the libxapian link command
300   anyway by automake/libtool standard handling.
302   Specifying a library more than once on the link line is not a problem on
303   common platforms, but may be an issue somewhere (and it's on less common
304   platforms where the user is more likely to have to specify LIBS to configure
305   and/or where -lm may be needed).
307 documentation:
309 * configure: Add missing AC_ARG_VAR for all programs so that they are
310   documented in --help output, and so that autoconf knows they are "precious"
311   and preserves them if configure is rerun even when they're specified via an
312   environment variable.
314 * Don't use x^2 to mean x squared in API docs.  This is potentially confusing
315   since in C/C++ (and some other languages), ^ means exclusive-or.  Write x²
316   instead, which should be clear to all readers.
318 * Improve docs for Xapian::Stopper and SimpleStopper.
320 * docs/intro_ir.rst: Fixed an incorrect term index.  Patch from Jaak Ristioja
321   in https://github.com/xapian/xapian/pull/321.
323 * Update for the IRC channel move from freenode to libera.chat.
325 examples:
327 * quest: Don't enable spelling correction by default.  It was really only on by
328   default because the spelling correction support in quest was added before
329   --flags.  It seems more helpful for the default to match the
330   Xapian::QueryParser API, and also this fixes the weird situation that
331   `--flags default` isn't the default you get without any `--flags` option.
333 * quest: Multiple `--flags` options now get combined - previously only the last
334   was used.
336 portability:
338 * Don't automatically use _FORTIFY_SOURCE on mingw-w64.  Recent mingw-w64
339   versions require -lssp to be linked when _FORTIFY_SOURCE is enabled, so just
340   skip the automatic enabling.  Users who want to enable it can specify it
341   explicitly.
343   Fixes #808, reported by xpbxf4.
345 * Workaround NFS issue in test harness function for deleting test databases.
346   On NFS, rmdir() can fail with EEXIST or ENOTEMPTY (POSIX allows either)
347   due to .nfs* files which are used by NFS clients to implement the Unix
348   semantics of a deleted but open file continuing to exist.  We now sleep
349   and retry a few times in this situation to give the NFS client a chance
350   to process the closing of the open handle.  Problem mentioned in #631.
352 * configure: Drop -lm special case for Sun C++ as this no longer seems to
353   be required.  Tested with Sun C++ 5.13, which is the oldest version we
354   now support due to us now requiring C++11.
356 * Use strerrordesc_np() if available. This is a GNU-specific replacement for
357   sys_errlist and sys_nerr.  It was added in glibc 2.32 since which sys_errlist
358   and sys_nerr are no longer declared in the headers.
360 * Update debug logging to use std::uncaught_exceptions() under C++17 and later
361   since this allows the debug logging to detect a function without RETURN()
362   annotation which exits normally while there's an uncaught exception
363   (previously the debug logging would think the stack was being unwound through
364   the function).  This also avoids deprecation warnings - the old
365   std::uncaught_exception() (note: singular) function was deprecated by
366   C++17 and removed in C++20.
368 * Increase size of buffer passed to strerror_r() from 128 to 1024 bytes, which
369   is the size recommended by the man page on Linux.
371 * Fix -Wdeprecated-copy warning from clang 13.
373 Xapian-core 1.4.18 (2021-01-14):
375 API:
377 * QueryParser::FLAG_ACCUMULATE: New flag.  Previously the unstem and stoplist
378   data was always reset by a call to QueryParser::parse_query(), which makes
379   sense if you use the same QueryParser object to parse a series of independent
380   queries.  If you're using the same QueryParser object to parse several fields
381   on the same query form, you may want to have the unstem and stoplist data
382   combined for all of them, in which case you can use this flag to prevent this
383   data from being reset.
385 * QueryParser::unstem_begin(): Eliminate unnecessary copying of the data.
387 * Fix typo in Swedish stopword list, syncing change made to Snowball by Daniel
388   Gómez Villanueva.
390 * Remove some French stop words with other meanings, syncing change made to
391   Snowball by PhilippeOuellet.
393 testsuite:
395 * Run testcase testlock4 using backend chert, not just using glass
397 * Skip testcase testlock4 on platforms that don't allow us to implement
398   Database::locked() (which notably include GNU Hurd and Microsoft Windows).
400 documentation:
402 * List DB_NO_TERMLIST in the WritableDatabase constructor API documentation
403   where we already list the other DB_* constants.
405 portability:
407 * Eliminate single use of std::mem_fun() which was deprecated in C++11 and
408   removed in C++17.  Reported by Mateusz Pusz in #806.
410 * Add missing includes for std::numeric_limits<>.  Reported by stac47 in #805.
412 * Work around mingw.org header issue.  MSVC seems to implicitly include
413   <winerror.h> but mingw.org's headers don't, leading to ERROR_PIPE_CONNECTED
414   not being defined.  Fixes https://github.com/xapian/xapian/pull/318, reported
415   by Alex Sandro.
417 * Suppress MSVC warnings about possible loss of data.  The values involved are
418   the number of set bits in a value of integer type, so these warnings are
419   bogus.
421 * Include <sys/types.h> for size_t and off_t, which is the appropriate header,
422   and needed with Android's bionic libc.  Patch from Matthieu Gautier.
424 * Use a temporary file for the Doxygen configuration to work around Doxygen
425   1.8.19 bug which truncates a config file read from stdin to 4096 bytes
426   (https://github.com/doxygen/doxygen/issues/7975).
428 Xapian-core 1.4.17 (2020-08-21):
430 API:
432 * Database::get_average_length(): Add this as an alias for
433   Database::get_avlen().  In git master we've added this as a preferred new
434   name - adding it to 1.4.x too will make it easier for users to update to
435   using this.
437 * Database::get_spelling_suggestion(): Optimise edit distance initialisation
438   loop to significantly reduce the cost of a typical edit distance calculation.
440 * Fix query expansion on sharded databases.  The mechanism for passing in which
441   shard a TermList is from wasn't hooked up and as a result we'd always think
442   it's from the first shard, meaning the statistics would be wrong and that our
443   suggested terms may not have been as good as they should be in this
444   situation.
446 * Enquire::get_eset(): Use string::compare() to avoid 1/3 of the string compares
447   on average.
449 documentation:
451 * Update doxygen HTML headers and footers to resolve issues with some
452   interactive features of the API docs not working.  Reported by Enrico Zini.
454 * Stop specifying obsolete doxygen settings PERL_PATH and MSCGEN_PATH.
456 * Clarify API docs for MSet::get_termfreq() to make it clear that this
457   considers all documents in the database, not only those that matched the
458   searched (it would sometimes be useful to be able to report the number of
459   occurrences of a term in the matched documents, but it's not something we
460   currently keep track of).  Reported by Tadeusz Sośnierz and Peter Salomonsen.
462 Xapian-core 1.4.16 (2020-06-08):
464 API:
466 * MSet::snippet(): The snippet now includes trailing punctuation which carries
467   meaning or gives useful context.  See
468   https://github.com/xapian/xapian/pull/180, reported by Robert Stepanek.
470 * MSet::snippet(): Fix segfault generating snippet from default-constructed
471   MSet.  This probably isn't something you'd typically do, but it shouldn't
472   crash.  Found during extended testing of #803 (which only affected git
473   master) which was reported by Robert Stepanek.
475 * Remove trailing full stop from exception messages.  We conventionally don't
476   include one, but a few cases didn't follow that convention.
478 testsuite:
480 * Replace direct use of ftime() which gives deprecation warnings with recent
481   mingw.  Reported by srinivasyadav22.
483 matcher:
485 * Fix segfault in rare cases in the query optimiser.  We keep a pointer to the
486   most recent posting list to use as a hint for opening the next posting list,
487   but the existing mechanism to take ownership of this hint had a flaw.  We now
488   invalidate the hint in situations where it might be indirectly deleted which
489   is safe, but somewhat conservative.
491 * Improve the optimisation of an always-matching OP_VALUE_GE to also take
492   effect when the value slot's lower bound is equal to the limit of the
493   OP_VALUE_GE.  Patch from boda sadalla.
495 glass backend:
497 * Report the correct errno value if commit() fails.  We were potentially
498   reporting ENOENT from an unlink() call cleaning up a temporary file prior to
499   throwing the exception instead.
501 documentation:
503 * Fix missing menus in API documentation.  Newer doxygen generates .js files
504   which we also need to distribute and install.  Reported by sec^nd on #xapian.
506 * Note OP_FILTER ignored subquery bug fixed in 1.4.15 as present in 1.4.14 and
507   older.
509 portability:
511 * Use our own autoconf cache variable namespace (xo_cv_ prefix instead of
512   ac_cv_) to avoid colliding with standard autoconf macro use if config.site or
513   a shared config.cache is used.  The former case caused a build failure for
514   the OpenBSD port with 1.4.15, reported by Lucas R.
516 * Use clock_gettime() and nanosleep() under modern mingw as these allow higher
517   precision than what we previously used.
519 Xapian-core 1.4.15 (2020-02-24):
521 API:
523 * Database::check(): Fix checking of replication changesets.  This reverts a
524   change incorrectly made in 1.3.7.
526 * Database::locked(): Return false instead of true for a closed inmemory DB.
528 * Database::commit(): If commit() failed with an exception while trying to add
529   pending changes (e.g. InvalidArgumentError due to a long term containing zero
530   bytes) then a subsequent commit() on the same object would throw the same
531   exception.  Now we clear the pending changes in this situation (like we
532   already did for failure at other stages in the commit).  This bug remains
533   unfixed for the chert backend as it's harder to fix there and the effort to
534   fix it and extra risk of breakage don't seem justified for a backend we
535   recommend people migrate away from.
537 * QueryParser::parse_query(): Optimise parsing of multi-word synonyms.
539 testsuite:
541 * Use 50-word synonym for qp_scale1 "large" case.  50 divides exactly into the
542   number of repetitions we do for the "small" case, which 60 (as used before)
543   doesn't.  This makes the two cases a little more comparable and should help
544   make this testcase less flaky (see #764).
546 * Adjust testcase matches1 to work with remote shards where the matcher can
547   return slightly better bounds on the number of matches in some cases.
548   Resolves 2 XFAILs.
550 * The testharness get_remote_database() method is now supported for sharded
551   databases.  This is needed for keepalive1 to run successfully under multi
552   test backends.  Resolves 2 XFAILs of keepalive1.
554 * Improved test coverage:
556   + Test locked() on a closed WritableDatabase, which already returns false (as
557     expected) in 1.4.x (but was broken on master).
559   + Check multi databases in testsuite - this has been supported by
560     Database::check() since 1.4.12.
562   + Also test OP_SYNONYM and OP_MAX in emptydb1.
564   + Backport testcases boolorbug1, emptynot1, emptymaybe1 and
565     phraseweightcheckbug1 from git master - these are regression tests for
566     fixed bugs which only affected git master, but it's useful to confirm that
567     these bugs don't currently affect 1.4, and ensure they don't get introduced.
569 * perftest: Store memory sizes as long long since on Microsoft Windows long is
570   only 32 bits, which is less than common memory sizes.
572 matcher:
574 * Hoist positional check above OP_FILTER.
576 * Handle OP_FILTER with more than two subqueries correctly.  Previously we'd
577   only check the first two subqueries in some situations.
579 remote backend:
581 * For a remote WritableDatabase, the client now keeps track of whether there
582   are pending changes, and if there aren't then we now do nothing for commit()
583   or cancel() calls.  In particular this saves a message exchange when the
584   WritableDatabase destructor is called when changes have already been
585   committed with an explicit call to commit() (which is what we recommend
586   doing, since with an explicit call to commit() you get to see any exception
587   which gets thrown).
589 * When closing a remote prog WritableDatabase, previously an exception could
590   leave the remote connection open with the remote server running, and we'd
591   then wait for the specified timeout before closing the connection.  Now we
592   close the connection before letting the exception propagate.
594 * Don't swallow exceptions from Database::close() on a remote database.  If
595   we aren't in a transaction and so try to commit() and that fails then
596   previously the caller would have no indication of the failure.
598 * Fix handling the reported term weight when remote shards are searched.
599   Fixes 5 XFAILs in the testsuite.
601 * Add missing space to mismatching protocol versions error message.
603 build system:
605 * Fix to build when configured with --disable-backend-remote, broken by changes
606   in 1.4.14.  Fixes #797, reported by Дилян Палаузов.
608 * The clang and icc compilers both define __GNUC__, which led our ABI mismatch
609   message to report them as "g++" with a bogus version (the version of GCC that
610   these compilers advertise themselves as, which for clang is always 4.2.0) -
611   now we report clang++ or icc along with the actual version of that compiler.
613 documentation:
615 * AUTHORS: Apply missed update to the thankyou list for 1.4.14.
617 * INSTALL: Note that MSVC 2019 works.
619 * INSTALL: Note that Xapian can use the system uuid.h on AIX and OpenBSD.
621 portability:
623 * Simplify probes for snprintf.  The broken snprintf in libbsd in Linux libc4
624   is from ~25 years ago so way too ancient to matter now, and all callers
625   already handle the pre-ISO semantics of returning -1 for an undersize buffer
626   so we don't need to run a test program to probe for this at configure time,
627   which is more cross-compile friendly.
629 * Don't quote messages in #error - the quotes aren't required and appear in the
630   compiler output (at least with GCC and clang) making it less readable.
632 * Use a different approach for getting a 64-bit capable stat() for mingw32.
633   This means we now use the same stat variant for mingw32 and MSVC, which
634   seems a better plan.
636 * Work around unhelpful config.status behaviour.  It comments out any #undef
637   lines in config.h, even those added via AH_TOP and AH_BOTTOM.  Splitting
638   these lines means they don't match the regex hammer config.status uses.
640 * Avoid -Wdeprecated-copy warnings from clang 10.
642 * Avoid deprecation warning on recent Linux.  We were including sys/sysctl.h if
643   it existed, which it does on Linux but we don't actually use it there.
644   Including it now warns that it is deprecated, so skip including it under
645   Linux.  Reported on IRC by kumaran.
647 * Suppress GCC -Wduplicated-branches warning from our API headers in a
648   different way which avoids needing a compiler-specific #pragma.
650 * Workaround closefrom1 failure on macOS.  It seems under macOS our fd tracking
651   can end up using fd 10 so start from 13 when testing closefrom() so we don't
652   close the fd which our fd tracking is using internally.
654 debug code:
656 * Log RemoteConnection::read_at_least() return value.
658 Xapian-core 1.4.14 (2019-11-23):
660 API:
662 * Xapian::QueryParser: Handle "" inside a quoted phrase better.  In a quoted
663   boolean term, "" is treated as an escaped ", so handle it in a compatible way
664   for quoted phrases.  Previously we'd drop out of the phrase and start a new
665   phrase.  Fixes #630, reported by Austin Clements.
667 * Xapian::Stem: The constructor which takes a stemmer name now takes an
668   optional second bool parameter - if this is true, then an unknown stemmer
669   name falls back to using the "none" stemmer instead of throwing an exception.
670   This allows simply constructing a stemmer from an ISO language code without
671   having to worry about whether there's a stemmer for that language, and
672   without having to handle an exception if there isn't.
674 * Xapian::Stem: Fix a bug with handling 4-byte UTF-8 sequences which
675   potentially affects most of the stemmers.  None of the stemmers work in
676   languages where 4-byte UTF-8 sequences are part of the alphabet, but this
677   bug could result in invalid UTF-8 sequences in terms generated from text
678   containing high Unicode codepoints such as emoji, which can cause issues (for
679   example, in some language bindings).  Fix synced from Snowball git post
680   2.0.0.  Reported by Ilari Nieminen in
681   https://github.com/snowballstem/snowball/issues/89.
683 * Xapian::Stem: Add a new is_none() method which tests if this is a "none"
684   stemmer.
686 * Xapian::Weight: The total length of all documents is now made available to
687   Xapian::Weight subclasses, and this is now used by DLHWeight, DPHWeight and
688   LMWeight.  To maintain ABI compatibility, internally this still fetches the
689   average length and the number of documents, multiplies them, then rounds the
690   result, but in the next release series this will be handled directly.
692 * Xapian::Database::locked() on an inmemory database used to always return
693   false, but an inmemory Database is always actually a WritableDatabase
694   underneath, so now we always report true in this case because it's really
695   always report being locked for writing.
697 testsuite:
699 * Fix failing multi_glass_remoteprog_glass tests on x86.  When the tests are
700   run under valgrind, remote servers should be run using the runsrv wrapper
701   script, but this wasn't happening for remote servers in multi-databases - now
702   it is.  Also, previously runsrv only used valgrind for the remote for an x86
703   build that didn't use SSE, but it seems there are x87 instructions in libc
704   that are affected by valgrind not providing excess precision, so do this for
705   x86 builds which use SSE too.  Together these changes fix failures of
706   topercent2, xor2, tradweight1 under backend multi_glass_remoteprog_glass on
707   x86.
709 * Fix C++ One-Definition Rule (ODR) violation in testsuite code.  Two different
710   source files linked into apitest were each defining a different `struct
711   test`.  Wrap each in an anonymous namespace to localise it to the file it is
712   defined and used in.  This was probably harmless in practice, unless trying
713   to build with Link-Time Optimisation or similar (which is how it was
714   detected).
716 * Test all language codes in stemlangs1.  The testsuite hardcodes a list of
717   supported language codes which hadn't been updated since 2008.
719 * Improve DateRangeProcessor test coverage.
721 matcher:
723 * Handle pruning under a positional check.  This used to be impossible, but
724   since 1.4.13 it can happen as we now hoist AND_NOT to just below where we
725   hoist the positional checks.  The code on master already handles pruning here
726   so this bug is specific to the RELEASE/1.4 branch.  Fixes #796, reported by
727   Oliver Runge.
729 * When searching with collapsing over multiple shards, at least some of which
730   are remote, uncollapsed_upper_bound could be too low and
731   uncollapsed_lower_bound too high.  This was causing assertion failures in
732   testcases msize1 and msize2 under test harness backends
733   multi_glass_remoteprog_glass and multi_remoteprog_glass.
735 * Internally we no longer calculate a bogus total_term_count as the sum of
736   total_length * doc_count for all shards.  Instead we just use the sum of
737   total_length, which gives the total number of term occurrences.  This change
738   should improve the estimated collection_freq values for synonyms.
740 * Several places where we might divide zero by zero in a database where wdf was
741   always zero have been fixed.
743 build system:
745 * configure: Stop using AC_FUNC_MEMCMP.  The autoconf manual marks it as
746   "obsolescent", and it seems clear that nobody's relying on it as we're
747   missing the "'AC_LIBOBJ' replacement for 'memcmp'" which it would try to
748   use if needed.
750 documentation:
752 * HACKING: Replace release docs with pointer to the developer guide where they
753   are now maintained.
755 portability:
757 * Eliminate 2 uses of atoi().  These are potentially problematic in a
758   multithreaded application if setlocale() is called by another thread at the
759   same time.  See #665.
761 * Don't check __GNUC__ in visibility.h as the configure probe before defining
762   XAPIAN_ENABLE_VISIBILITY checks that the visibility attributes work.  This
763   probably makes no difference in practice, as all compilers we're aware of
764   which support symbol visibility also define __GNUC__.
766 * Document Sun C++ requires --disable-shared.  Closes #631.
768 Xapian-core 1.4.13 (2019-10-14):
770 API:
772 * Fix write one past end of std::vector on certain QueryParser parser errors.
773   This is undefined behaviour, but the write was always into reserved space, so
774   in practice we'd actually get away with it (it was noticed because it
775   triggers an error when running under ubsan and using libc++).  Reported by
776   Germán M. Bravo.
778 * MSet::get_matches_estimated(): Improve rounding of result - a bug meant we
779   would almost always round down.
781 * Optimise test for UTF-8 continuation character.  Performing a signed char
782   comparison shaves an instruction or two on most architectures.
784 * Database::get_revision(): Return revision 0 for a Database with no shards
785   rather that throwing InvalidOperationError.
787 * DPHWeight: Avoid dividing by 0 when searching a sharded database when one
788   shard is empty.  The result wasn't used in this case, but it's still
789   undefined behaviour.  Detected by UBSan.
791 testsuite:
793 * The "singlefile" test harness backend manager now creates databases by
794   compacting the corresponding underlying backend database (creating it first
795   if need be) rather than always creating a temporary database to compact.
797 * Enable compaction testcases for multi and singlefile test harness backends.
799 * Add generated database support for remoteprog and remotetcp test harness
800   backends.  Implemented by Tanmay Sachan.
802 * Add test harness support for running testcases using a multi database
803   comprised of one local and one remote shard, or two remote shards.
804   Implemented by Tanmay Sachan.
806 * Check if removing existing multi stub failed.  Previously if removing an
807   existing stub failed, the test harness would create a temporary new stub and
808   then try to rename it over the old one, which will always fail on Microsoft
809   Windows.
811 * Wait for xapian-tcpsrv processes to finish before moving on to the next
812   testcase under __WIN32__ like we already do on POSIX platforms.
814 matcher:
816 * Optimise OP_AND_NOT better.  We now combine its left argument with other
817   connected and-like subqueries, and gather up and hoist the negated subqueries
818   and apply them together above the combined and-like subqueries, just below
819   any positional filters.
821 * Optimise OP_AND_MAYBE better.  We now combine its left argument with other
822   connected and-like subqueries, and gather up and hoist the optional
823   subqueries and apply them together above the combined and-like subqueries and
824   any hoisted positional filters.
826 * Treat all BoolWeight queries as scaled by 0 - we can optimise better if we
827   know the query is unweighted.
829 glass backend:
831 * Allow zlib compression to reduce size by one byte.  We were specifying an
832   output buffer size one byte smaller than the input, but it appears zlib won't
833   use the final byte in the buffer, so we actually need to pass the input size
834   as the output buffer size.
836 * Only try to compress Btree item values > 18 bytes, which saves CPU time
837   without sacrificing any significant size savings.
839 remote backend:
841 * Fix match stats when searching with collapsing over multiple shards and at
842   least some shards are remote.  Bug discovered by Tanmay Sachan's test harness
843   improvements.
845 * Ignore orphaned remote protocol replies which can happen when searching with
846   a remote shard if an exception is thrown by another shard.  Bug discovered
847   by Tanmay Sachan's test harness improvements.
849 * Wait for xapian-progsrv child to exit when a remote Database or
850   WritableDatabase object is closed under __WIN32__ like we already do for
851   POSIX platforms.
853 documentation:
855 * Correct documentation of initial messages in replication protocol.
857 tools:
859 * quest: Report bounds and estimate of number of matches.
861 * xapian-delve: Improve output when database revision information is not
862   available.  We now specially handle the cases of a DB with multiple shards
863   and a backend which doesn't support get_revision().
865 portability:
867 * Fix warning from GCC 9 with -Wdeprecated-copy (which is enabled by -Wextra)
868   if a reference to an Error object is thrown.
870 * Suppress GCC warning in our API headers when compiling code using Xapian with
871   GCC and -Wduplicated-branches.
873 * Mark some internal classes as final (following GCC -Wsuggest-final-types
874   suggestions to allow some method calls to be devirtualised).
876 * Fix to build with --enable-maintainer-mode and Perl < 5.10, which doesn't
877   have the `//=` operator.  It's unlikely developers will have such an old
878   Perl, but the mingw environment on appveyor CI does.  The use of `//=` was
879   introduced by changes in 1.4.10.
881 Xapian-core 1.4.12 (2019-07-23):
883 API:
885 * Xapian::PostingSource: When a PostingSource without a clone() method is used
886   with a Database containing multiple shards, the documented behaviour has
887   always been that Xapian::InvalidOperationError is thrown.  However, since at
888   least 1.4.0, this exception hasn't been thrown, but instead a single
889   PostingSource object would get used for all the shards, typically leading to
890   incorrect results.  The actual behaviour now matches what was documented.
892 * Xapian::Database: Add size() method which reports the number of shards.
894 * Xapian::Database::check(): You can now pass a stub database which will check
895   all the databases listed in it (or throw Xapian::UnimplementedError for
896   backends which don't support checking).
898 * Xapian::Document: When updating a document use a emplace_hint() to make the
899   bulk insertion O(n) instead of O(n·log(n)), and use std::move() to avoid
900   copying OmDocumentTerm objects.
902 * Xapian::Query: Add missing get_unique_terms_end() method.
904 * Xapian::iterator_valid(): Implement for Utf8Iterator
906 testsuite:
908 * Fix keepalive1 failures on some platforms.  On some platforms a timeout
909   gives NetworkTimeoutError and on others NetworkError - since 1.4.10 changed
910   to checking the exact exception type, keepalive1 has been failing on the
911   former set of platforms.  We now just check for NetworkError or a subclass
912   here (since NetworkTimeoutError is a subclass of NetworkError).
914 * Run cursordelbug1 testcase with multi databases too.
916 matcher:
918 * Ownership of PostingSource objects during the match now makes use of the
919   optional reference-counting mechanism rather than a separate flag.
921 remote backend:
923 * Fix remote protocol design bug.  Previously some messages didn't send a reply
924   but could result in an exception being sent over the link.  That exception
925   would then get read as a response to the next message instead of its actual
926   response so we'd be out of step.  Fixes #783, reported by Germán M. Bravo.
927   This fix necessitated a minor version bump in the remote protocol (to 39.1).
928   If you are upgrading a live system which uses the remote backend, upgrade the
929   servers before the clients.
931 * Fix socket leaks on errors during opening a database.  Fixes
932   https://github.com/xapian/xapian/pull/237 and #781, reported by Germán M.
933   Bravo.
935 * Don't close remote DB socket on receiving EOF as the levels above won't
936   know it's been closed and may try to perform operations on it, which would be
937   problematic if that fd gets reused in the meantime.  Leaving it open means
938   any further operations will also get EOF.  Reported by Germán M. Bravo.
940 * We add a wrapper around the libc socket() function which deals with the
941   corner case where SOCK_CLOEXEC is defined but socket() fails if it is
942   specified (which can happen with a newer libc and older kernel).
943   Unfortunately, this wrapper wasn't checking the returned value from socket()
944   correctly, so when SOCK_CLOEXEC was specified and non-zero it would create
945   the socket() with SOCK_CLOEXEC, then leak that one and create it again
946   without SOCK_CLOEXEC.  We now check the return value properly.
948 * Fix potential infinite loop in ValueCountMatchSpy::merge_results() if passed
949   serialised results with extra data appended (which shouldn't happen in normal
950   use).
952 build system:
954 * Current versions of valgrind result in false positives on current versions of
955   macOS, so on this platform configure now only enables use of valgrind if it's
956   specified explicitly.  Fixes #713, reported by Germán M. Bravo.
958 * Refactor macros to probe for compiler flags so they automatically cache
959   their results and consistently report success/failure.
961 * Rename our custom TYPE_SOCKLEN_T macro to XAPIAN_TYPE_SOCKLEN_T.  The
962   AX_TYPE_SOCKLEN_T macro defines an alias of TYPE_SOCKLEN_T for itself which
963   means it can get used instead in some situations, but it isn't compatible
964   with our macro.  We can't just switch to AX_TYPE_SOCKLEN_T as it doesn't
965   handle cases we need, so just rename our macro to avoid potential problems.
967 documentation:
969 * Improve API documentation for Xapian::Query class.  Add missing doc
970   comments and improve some of the existing ones.  Problems highlighted by
971   Дилян Палаузов in #790.
973 * Add Unicode consortium names and codes for categories from Chapter 4, Version
974   11 of the Unicode standard.  Patch from David Bremner.
976 * Improve configure --help output - drop "[default=no]" for --enable-*
977   options which default off.  Fixes #791, reported by and patch from Дилян
978   Палаузов.
980 * Fix API documentation typo - Query::op (the type) not op_ (a parameter name).
982 * Note which version Document::remove_postings() was added in.
984 * In the remote protocol documentation, MSG_REPLACEDOCUMENTTERM was documented
985   as not having a reply, but actually REPLY_ADDDOCUMENT is sent.
987 * Update list of <xapian/iterator.h> users.
989 tools:
991 * copydatabase: A change in 1.4.6 which added support for \ as directory
992   separator on platforms where that's the norm broke the code in copydatabase
993   which removes a trailing slash from input databases.  Bug reported and
994   culprit commit identified by Eric Wong.
996 portability:
998 * Resolve crash on Windows when using clang-cl and MSVC.  Reported by Christian
999   Mollekopf in https://github.com/xapian/xapian/pull/256.
1001 * Add missing '#include <cstring>'.  Patch from Tanmay Sachan.
1003 * Fix str() helper function when converting the most negative value
1004   of a signed integer type.
1006 * Avoid calling close() on fd we know must actually be a WIN32 SOCKET.
1008 * Include <ios> not <iomanip> for std::boolalpha.
1010 * Rework setenv() compatibility handling.  Now that Solaris 9 is dead we can
1011   assume setenv() is provided by Unix-like platforms (POSIX requires it).  For
1012   other platforms, provide a compatibility implementation of setenv() which
1013   so the compatibility code is encapsulated in one place rather than replicated
1014   at every use.
1016 * Fix maintainer-mode builds on Solaris where /bin/tr is not POSIX compliant.
1017   We now use the simple workaround suggested by the autoconf manual.
1019 * Improve support for Sun C++ (see #631):
1021   + Suppress unhelpful warning for lambda with multiple return statements.
1023   + Enable reporting the tags corresponding to warnings, which we need
1024     to know in order to suppress any new unhelpful warnings.
1026   + Adjust our workaround for bug with this compiler's <cmath> header to avoid
1027     a compiler warning.
1029   + Use -xldscope=symbolic for Sun C++.  This flag is roughly equivalent to
1030     -Bsymbolic-functions which we've probed for with GNU ld since Xapian 1.0.0.
1032 Xapian-core 1.4.11 (2019-03-02):
1034 API:
1036 * MSet::SNIPPET_CJK_NGRAM - new flag for use with MSet::snippet() to enable
1037   support for selecting and highlighting snippets which works with the
1038   QueryParser and TermGenerator FLAG_CJK_NGRAM flags.  This mode can also be
1039   enabled by setting environment variable XAPIAN_CJK_NGRAM to a non-empty
1040   value.  (There was nominally already support for XAPIAN_CJK_NGRAM in
1041   MSet::snippet(), but it didn't work usefully - the highlighting added was all
1042   empty start/end pairs at the end of the span of CJK characters containing the
1043   CJK ngram terms, which to the user would typically look like it was selecting
1044   the end of the text and not highlighting anything).
1046 * Deprecate XAPIAN_CJK_NGRAM environment variable.  There are now flags which
1047   can be used instead in all cases, and there's sadly no portable thread-safe
1048   way to read an environment variable so checking environment variables is
1049   problematic in library code that may be used in multithreaded programs.
1051 * Query::OP_ELITE_SET currently incorrectly recursively flattens any OP_OR (or
1052   OP_OR-like) subqueries into the list of subqueries it selects from - until
1053   that's fixed, we now select from the full exploded list rather than the last
1054   n (where n is the number of direct subqueries of the OP_ELITE_SET).
1056 testsuite:
1058 * Testcases which need a generated database now get run with a sharded
1059   database.
1061 * Avoid using strerror() in the testsuite which removes an obstacle to running
1062   tests in parallel in separate threads.
1064 matcher:
1066 * Extend detection of cases of OP_SYNONYM with disjoint subqueries (which means
1067   we don't need document length) which was added in 1.4.8 - we now detect when
1068   all subqueries are different terms, or when all subqueries are
1069   non-overlapping wildcards.  The second case is what QueryParser produces for
1070   a wildcard or partial query with a query prefix which maps to more than one
1071   term prefix.
1073 glass backend:
1075 * Handle an empty value slot lower bound gracefully.  This shouldn't happen for
1076   a non-empty slot, but has been reported by a notmuch user so it seems there
1077   is (or perhaps was as the database was several years old) a way it can come
1078   about.  We now check for this situation and set the smallest possible valid
1079   lower bound instead, so other code assuming a valid lower bound will work
1080   correctly.  Reported by jb55.
1082 chert backend:
1084 * Handle an empty value slot lower bound gracefully, equivalent to the change
1085   made for glass.
1087 documentation:
1089 * HACKING: We no longer use auto_ptr<>.
1091 * NEWS: Correct factual error in old entry - the 0.4.1 release was Open Muscat
1092   not OmSee (the OmSee name was only applied after that final release was made,
1093   and only used internally to BrightStation).
1095 portability:
1097 * Suppress more clang -Wself-assign-overloaded warnings in testcases which are
1098   deliberately testing handling of self-assignment.
1100 * Add missing includes of <cerrno>.  Fixes #776, reported by Matthieu Gautier.
1102 debug code:
1104 * When configured with --enable-log, the O_SYNC flag was always specified when
1105   opening the logfile, with the intention that the most recent log entries
1106   wouldn't get lost if there was a crash, but O_SYNC can incur a significant
1107   performance overhead and most debugging is not of such crashes.  So we no
1108   longer specify O_SYNC by default, but you can now request synchronous logging
1109   by including %! anywhere in the filename specified with XAPIAN_DEBUG_LOG
1110   (the %! is replaced with the empty string).  We also now use O_DSYNC if
1111   available in preference to O_SYNC, since the mtime of the log file isn't
1112   important.
1114 Xapian-core 1.4.10 (2019-02-12):
1116 API:
1118 * DatabaseClosedError: New exception class thrown instead of DatabaseError when
1119   an operation is attempted which can't be completed because it involves a
1120   database which close() was previously called on.  DatabaseClosedError is a
1121   subclass of DatabaseError so existing code catching DatabaseError will still
1122   work as before.  Fixes #772, reported by Germán M. Bravo.  Patch from
1123   Vaibhav Kansagara.
1125 * DatabaseNotFoundError: New exception class thrown instead of
1126   DatabaseOpeningError when the problem is the problem is "file not found" or
1127   similar.  DatabaseNotFoundError is a subclass of DatabaseOpeningError so
1128   existing code catching DatabaseOpeningError will still work as before.  Fixes
1129   #773, reported by Germán M. Bravo.  Patch from Vaibhav Kansagara.
1131 * Query: Make &=, |= and ^= on Query objects opportunistically append to
1132   an existing query with a matching query operator which has a reference
1133   count of 1.  This provides an easy way to incrementally build flatter query
1134   trees.
1136 * Query: Support `query &= ~query2` better - this now is handled exactly
1137   equivalent to `query = query & ~query2` and gives `query AND_NOT query2`
1138   instead of `query AND (<alldocuments> AND_NOT query2)`.
1140 * QueryParser: Now uses &=, |= and ^= to produce flatter query trees.  This
1141   fixes problems with running out of stack space when handling Query object
1142   trees built by abusing QueryParser to parse very large machine-generated
1143   queries.
1145 * Stopper: Fix incorrect accents in Hungarian stopword list.  Patch from David
1146   Corbett.
1148 testsuite:
1150 * Test MSet::snippet() with small and zero lengths.  Fixes #759.  Patch from
1151   Vaibhav Kansagara.
1153 * Fix testcase stubdb4 annotations - this testcase doesn't need a backend.
1155 * Add PATH annotation for testcases needing get_database_path() to avoid having
1156   to repeatedly list the backends where this is supported in testcase
1157   annotations.
1159 * TEST_EXCEPTION helper macro now checks that the exact specified exception
1160   type is thrown.  Previously it would allow a subclass of the specified
1161   exception type, but in testcases we really want to be able to test for an
1162   exact type.  Issue noted by Vaibhav Kansagara on IRC.
1164 matcher:
1166 * Map OP_VALUE_GE/OP_VALUE_LE on an empty slot to EmptyPostList.  We already do
1167   this for OP_VALUE_RANGE, and it's a little more efficient than creating a
1168   postlist object which checks the empty value slot.
1170 glass backend:
1172 * We no longer flush all pending positional changes when a postlist, termlist
1173   or all-terms is opened on a modified WritableDatabase.  Doing so was
1174   incurring a significant performance cost, and the first of these happens
1175   internally when `replace_document(term, doc)` is used, which is the usual way
1176   to support non-numeric unique ids.  We now only flush pending positional
1177   changes when committing.  Reported and diagnosed by Germán M. Bravo.
1179 remote backend:
1181 * Use poll() where available instead of select().  poll() is specified by
1182   POSIX.1-2001 so should be widely available by now, and it allows watching any
1183   fd (select() is limited to watching fds < FD_SETSIZE).  For any platforms
1184   which still lack poll() we now workaround this select() limitation when a
1185   high numbered fd needs to be watched (for example, by trying a non-blocking
1186   read or write and on EAGAIN sleeping for a bit before retrying).
1188 * Stop watching fds for "exceptional conditions" - none of these are relevant
1189   to our usage.
1191 * Remove 0.1s timeout in ready_to_read().  The comment says this is to avoid a
1192   busy loop, but that's out of date - the matcher first checks which remotes
1193   are ready to read and then does a second pass to handle those which weren't
1194   with a blocking read.
1196 build system:
1198 * Stop probing for header sys/errno.h which is no longer used - it was only
1199   needed for Compaq C++, support for which was dropped in 1.4.8.
1201 documentation:
1203 * docs/valueranges.html: Update to document RangeProcessor instead of
1204   ValueRangeProcessor - the latter is deprecated and will be gone in the next
1205   release series.
1207 * Document RangeProcessor::operator()() returns OP_INVALID to signal it doesn't
1208   recognise a range.
1210 * Update some URLs for pages which have moved.
1212 * Use https for URLs where available.
1214 * HACKING: Update "empty()" section for changes in C++11.
1216 portability:
1218 * Suppress clang warnings for self-assignment tests.  Some testcases trigger
1219   this new-ish clang warning while testing that self-assignment works, which
1220   seems a useful thing to be testing - at least one of these is a regression
1221   test.
1223 * Add std::move to fix clang -Wreturn-std-move warning (which is enabled by
1224   -Wall).
1226 * Add casts to fix ubsan warnings.  These cases aren't undefined behaviour, but
1227   are reported by ubsan extra checks implicit-integer-truncation and/or
1228   implicit-conversion which it is useful to be able to enable to catch
1229   potential bugs.
1231 * Fix check for when to use _byteswap_ulong() - in practice this would only
1232   have caused a problem if a platform provided _byteswap_ushort() but not
1233   _byteswap_ulong(), but we're not aware of any which do.
1235 * Fix return values of do_bswap() helpers to match parameter types (previously
1236   we always returned int and only supported swapping types up to 32 bits, so
1237   this probably doesn't result in any behavioural changes).
1239 * Only include <intrin.h> if we'll use it instead of always including it when
1240   it exists.  Including <intrin.h> can result in warnings about duplicate
1241   declarations of builtin functions under mingw.
1243 * Remove call to close()/closesocket() when the argument is always -1 (since
1244   the change to use getaddrinfo() in 1.3.3).
1246 Xapian-core 1.4.9 (2018-11-02):
1248 API:
1250 * Document::add_posting(): Fix bugs with the change in 1.4.8 to more
1251   efficiently handle insertion of a batch of extra positions in ascending
1252   order.  These could lead to missing positions and corrupted encoded
1253   positional data.
1255 remote backend:
1257 * Avoid hang if remote connection shutdown fails by not waiting for the
1258   connection to close in this situation.  Seems to fix occasional hangs seen on
1259   macOS.  Patch from Germán M. Bravo.
1261 Xapian-core 1.4.8 (2018-10-25):
1263 API:
1265 * QueryParser,TermGenerator: Add new stemming mode STEM_SOME_FULL_POS.
1266   This stores positional information for both stemmed and unstemmed terms,
1267   allowing NEAR and ADJ to work with stemmed terms.  The extra positional
1268   information is likely to take up a significant amount of extra disk space so
1269   the default STEM_SOME is likely to be a better choice for most users.
1271 * Database::check(): Fetch and decompress the document data to catch problems
1272   with the splitting of large data into multiple entries, corruption of the
1273   compressed data, etc.  Also check that empty document data isn't explicitly
1274   stored for glass.
1276 * Fix an incorrect type being used for term positions in the TermGenerator API.
1277   These were Xapian::termcount but should be Xapian::termpos.  Both are
1278   typedefs for the same 32-bit unsigned integer type by default (almost always
1279   "unsigned int") so this change is entirely compatible, except that if you
1280   were configuring 1.4.7 or earlier with --enable-64bit-termcount you need to
1281   also use the new --enable-64bit-termpos configure option with 1.4.8 and up or
1282   rebuild your applications.  This change was necessary to make
1283   --enable-64bit-termpos actually useful.
1285 * Add Document::remove_postings() method which removes all postings in a
1286   specified term position range much more efficiently than by calling
1287   remove_posting() repeatedly.  It returns the number of postings removed.
1289 * Fix bugs with handling term positions >= 0x80000000.  Reported by Gaurav
1290   Arora.
1292 * Document::add_posting(): More efficiently handle insertion of a batch of
1293   extra positions in ascending order.
1295 * Query: Simplify OP_SYNONYM with single OP_WILDCARD subquery by converting to
1296   OP_WILDCARD with combiner OP_SYNONYM, which means such cases can take
1297   advantage of the new matcher optimisation in this release to avoid needing
1298   document length for OP_WILDCARD with combiner OP_SYNONYM.
1300 testsuite:
1302 * Catch and report std::exception from the test harness itself.
1304 * apitest: Drop special case for not storing doc length in testcase postlist5 -
1305   all backends have stored document lengths for a long time.
1307 * test_harness: Create directories in a race-free way.
1309 matcher:
1311 * Avoid needing document length for an OP_WILDCARD with combiner OP_SYNONYM.
1312   We know that we can't get any duplicate terms in the expansion of a wildcard
1313   so the sum of the wdf from them can't possibly exceed the document length.
1315 * OP_SYNONYM: No longer tries to initialise weights for its subquery, which
1316   should reduce the time taken to set up a large wildcard query.
1318 * OP_SYNONYM: Fix frequency estimates when OP_SYNONYM is used with a
1319   subquery containing OP_XOR or OP_MAX - in such cases the frequency
1320   estimates for the first subquery of the OP_XOR/OP_MAX were used for
1321   all its subqueries.  Also the estimated collection frequency is
1322   now rounded to the nearest integer rather than always being rounded
1323   down.
1325 glass backend:
1327 * Revert change made in 1.4.6:
1329     Enable glass's "open_nearby_postlist" optimisation (which especially helps
1330     large wildcard queries) for writable databases without any uncommitted
1331     changes as well.
1333   The amended check isn't conservative enough as there may be postlist changes
1334   in the inverter while the table is unmodified.  This breaks testcase
1335   T150-tagging.sh in notmuch's testsuite, reported by David Bremner.
1337 * When indexing a document without any terms we now avoid some unnecessary work
1338   when storing its termlist.
1340 build system:
1342 * New --enable-64bit-termpos configure option which makes Xapian::termpos a
1343   64-bit type and enables support for storing 64-bit termpos values in the
1344   glass backend in an upwardly compatible way.  Few people will actually want
1345   to index documents more than 4 billion words long, but the extra numbering
1346   space can be helpful if you want to use term positions in "interesting" ways.
1348 * Hook up configure --disable-sse/--enable-sse=sse options for MSVC.
1350 * Fix configure probes for builtin functions for clang.  We need to specify the
1351   argument types for each builtin since otherwise AC_CHECK_DECLS tries to
1352   compile code which just tries to take a pointer to the builtin function
1353   causing clang to give an error saying that's not allowed.  If the argument
1354   types are specified then AC_CHECK_DECLS tries to compile a call to the
1355   builtin function instead.
1357 documentation:
1359 * Fix documentation comment typo.
1361 tools:
1363 * xapian-delve: Test for all docs empty using get_total_length() which is
1364   slightly simpler internally than get_avlength(), and avoids an exact floating
1365   point equality check.
1367 examples:
1369 * quest: Support --weight=coord.
1371 * xapian-pos: New tool to show term position info to help debugging when using
1372   positional information in more complex ways.
1374 portability:
1376 * Fix undefined behaviour from C++ ODR violation due to using the same name
1377   two different non-static inline functions.  It seems that with current GCC
1378   versions the desired function always ends up being used, but with current
1379   clang the other function is sometimes used, resulting in database corruption
1380   when using value slots in docid 16384 or higher with the default glass
1381   backend.  Patch from Germán M. Bravo.
1383 * Suppress alignment cast warning on sparc Linux.  The pointer being cast is to
1384   a record returned by getdirentries(), so it should be suitable aligned.
1386 * Drop special handling for Compaq C++.  We never actually achieved a working
1387   build using it, and I can find no evidence that this compiler still exists,
1388   let alone that it was updated for C++11 which we now require.
1390 * Create new database directories in race-free way.
1392 * Avoid throwing and handling an exception in replace_document() when
1393   adding a document with a specified docid which is <= last_docid but currently
1394   unused.
1396 * Use our portable code for handling UUIDs on all platforms, and only use
1397   platform-specific code for generating a new UUID.  This fixes a bug with
1398   converting UUIDs to and from string representation on FreeBSD, NetBSD and
1399   OpenBSD on little-endian platforms which resulted in reversed byte order in
1400   the first three components, so the same database would report a different
1401   UUID on these platforms compared to other platforms.  With this fix, the
1402   UUIDs of existing databases will appear to change on these platforms
1403   (except in rare "palindronic" cases).  Reported by Germán M. Bravo.
1405 * Fix to build with a C++17 compiler.  Previously we used a "byte" type
1406   internally which clashed with "std::byte" in source files which use
1407   "using namespace std;".  Fixes #768, reported by Laurent Stacul.
1409 * Adjust apitest testcase stubdb2 to allow for NetBSD oddity: NetBSD's
1410   getaddrinfo() in IPv4 mode seems to resolve ::1 to an IPv4 address on the
1411   local network.
1413 * Avoid timer_create() on OpenBSD and NetBSD.  On OpenBSD it always fails with
1414   ENOSYS (and there's no prototype in the libc headers), while on NetBSD it
1415   seems to work, but the timer never seems to fire, so it's useless to us (see
1416   #770).
1418 * Use SOCK_NONBLOCK if available to avoid a call to fcntl().  It's supported by
1419   at least Linux, FreeBSD, NetBSD and OpenBSD.
1421 * Use O_NOINHERIT for O_CLOEXEC on Windows.  This flag has essentially the same
1422   effect, and it's common in other codebases to do this.
1424 * On AIX O_CLOEXEC may be a 64-bit constant which won't fit in an int.  To
1425   workaround this stupidity we now call the non-standard open64x() instead
1426   of open() when the flags don't fit in an int.
1428 * Add functions to add/multiply with overflow check.  These are implemented
1429   with compiler builtins or equivalent where possible, so the overflow check
1430   will typically just require a check of the processor's overflow or carry
1431   flag.
1433 Xapian-core 1.4.7 (2018-07-19):
1435 API:
1437 * Database::check(): Fix bogus error reports for documents with length zero
1438   due to a new check added in 1.4.6 that the doclength was between the stored
1439   upper and lower bounds, which failed to allow for the lower bound ignoring
1440   documents with length zero (since documents indexed only by boolean terms
1441   aren't involved in weighted searches).  Reported by David Bremner.
1443 * Query: Use of Query::MatchAll in multithreaded code causes problems because
1444   the reference counting gets messed up by concurrent updates.  Document that
1445   Query(string()) should be used instead of MatchAll in multithreaded code, and
1446   avoid using it in library code.  Reported by Germán M. Bravo.
1448 * Stem:
1450   + Stemming algorithms added for Irish, Lithuanian, Nepali and Tamil.
1452   + Merge Snowball compiler changes which improve code generation.
1454   + Merge optimisations to the Arabic and Turkish stemmers.
1456 testsuite:
1458   + Fix duplicate test in apitest closedb10 testcase.  Patch from Guruprasad
1459     Hegde.
1461 glass backend:
1463 * A long-lived cursor on a table in a WritableDatabase could get into
1464   an invalid state, which typically resulted in a DatabaseCorruptError
1465   being thrown with the message:
1467       Db block overwritten - are there multiple writers?
1469   But in fact the on-disk database is not corrupted - it's just that
1470   the cursor in memory has got into an inconsistent state.  It looks
1471   like we'll always detect the inconsistency before it can cause on-disk
1472   corruption but it's hard to be completely certain.
1474   The bug is in code to rebuild the cursor when the underlying table
1475   changes in ways which require that, which is a fairly rare occurrence
1476   to start with, and only triggers when a block in the cursor has been
1477   released, reallocated, and we tried to load it in the cursor at the
1478   same level - the cursor wrongly assumes it has the current version
1479   of the block.
1481   Reported with a reproducer by Sylvain Taverne.  Confirmed by David
1482   Bremner as also fixing a problem in notmuch for which he hadn't managed
1483   to find a reduced reproducer.
1485 documentation:
1487 * INSTALL: Document need to have MSVC command line tools on PATH.
1489 portability:
1491 * Cygwin: Work around oddity where unlink() sometimes seems to indicate failure
1492   with errno set to ECHILD.
1494 Xapian-core 1.4.6 (2018-07-02):
1496 API:
1498 * API classes now support C++11 move semantics when using a compiler which
1499   we are confident supports them (currently compilers which define
1500   __cplusplus >= 201103 plus a special check for MSVC 2015 or later).
1501   C++11 move semantics provide a clean and efficient way for threaded code to
1502   hand-off Xapian objects to worker threads, but in this case it's very
1503   unhelpful for availability of these semantics to vary by compiler as it
1504   quietly leads to a build with non-threadsafe behaviour.  To address this,
1505   user code can #define XAPIAN_MOVE_SEMANTICS before #include <xapian.h> to
1506   force this on, and will then get a compilation failure if the compiler lacks
1507   suitable support.
1509 * MSet::snippet():
1511   + We were only escaping output for HTML/XML in some cases, which would
1512     potentially allow HTML to be injected into output (this has been assigned
1513     CVE-2018-0499).
1515   + Include certain leading non-word characters in snippets.  Previously we
1516     started the snippet at the start of the first actual word, but there are
1517     various cases where including non-word characters in front of the actual
1518     word adds useful context or otherwise aids comprehension.  Reported by
1519     Robert Stepanek in https://github.com/xapian/xapian/pull/180
1521 * Add MSetIterator::get_sort_key() method.  The sort key has always been
1522   available internally, but wasn't exposed via the public API before, which
1523   seems like an oversight as the collapse key has long been available.
1524   Reported by 张少华 on xapian-discuss.
1526 * Database::compact():
1528   + Allow Compactor::resolve_duplicate_metadata() implementations to delete
1529     entries.  Previously if an implementation returned an empty string this
1530     would result in a user meta-data entry with an empty value, which isn't
1531     normally achievable (empty meta-data values aren't stored), and so will
1532     cause odd behaviour.  We now handle an empty returned value by interpreting
1533     it in the natural way - it means that the merged result is to not set a
1534     value for that key in the output database.
1536   + Since 1.3.5 compacting a WritableDatabase with uncommitted changes throws
1537     Xapian::InvalidOperationError when compacting to a single-file glass
1538     database.  This release adds similar checks for chert and when compacting
1539     to a multiple-file glass database.
1541   + In the unlikely event that the total number of documents or the total
1542     length of all documents overflow when trying to compact a multi-database,
1543     we throw an exception.  This is now a DatabaseError exception instead of a
1544     const char* exception (a hang-over from before this code was turned into a
1545     public API in the library).
1547 * Document::remove_term(): Handle removing term at current TermIterator
1548   position - previously the underlying iterator was invalidated, leading to
1549   undefined behaviour (typically a segmentation fault).  Reported by Gaurav
1550   Arora.
1552 * TermIterator::get_termfreq() now always returns an exact answer.  Previously
1553   for multi-databases we approximated the result, which is probably either a
1554   hang-over from when this method was used during Enquire::get_eset(), or else
1555   due to a thinking that this method would be used in that situation (it
1556   certainly is not now).  If the user creates a TermIterator object and asks it
1557   for term frequencies then we really should give them the correct answer - it
1558   isn't hugely costly and the documentation doesn't warn that it might be
1559   approximated.
1561 * QueryParser::parse_query():
1563   + Now adds a colon after the prefix when prefixing a boolean term which
1564     starts with a colon.  This means the mapping is reversible, and matches
1565     what omega actually does in this case when it tries to reverse the mapping.
1566     Thanks to Andy Chilton for pointing out this corner case.
1568   + The parser now makes use of newer features in the lemon parser generator to
1569     make parsing faster and use less memory.
1571 * Enquire::get_mset(): Fix bug with get_mset(0, 0, X) when X > 0 which was
1572   causing an attempt to access an element in an empty vector.  Reported by
1573   sielicki in #xapian.
1575 * Stem:
1577   + Add Indonesian stemming algorithm.
1579   + Small optimisations to almost all stemming algorithms.
1581 * Stopper:
1583   + Add Indonesian stopword list.
1585   + The installed version of the Finnish stopword list now has one word per
1586     line.  Previously it had several space-separated words on some lines, which
1587     works with C++'s std::istream_iterator but may be inconvenient for use from
1588     some other languages.
1590   + The installed versions of stopword lists are now sorted in byte order
1591     rather than whatever collation order is specified by LC_COLLATE or similar
1592     at build time.  This makes the build more reproducible, and also may be
1593     more efficient for loading into some data structures.
1595 * WritableDatabase::replace_document(term, doc): Check for last_docid wrapping
1596   when used on a sharded database.
1598 * Database::locked(): Consistently throw FeatureUnavailableError on platforms
1599   where we can't test for a database lock without trying to take it.
1600   Previously GNU Hurd threw DatabaseLockError while platforms where we don't
1601   use fcntl() locking at all threw UnimplementedError.
1603 * Database and WritableDatabase constructors: Fix handling of entries for
1604   disabled backends in stub database files to throw FeatureUnavailableError
1605   instead of DatabaseError.
1607 * Database::get_value_lower_bound() now works correctly for sharded databases.
1608   Previously it returned the empty string if any shard had no values in the
1609   specified slot.
1611 * PostingIterator was failing to keep an internal reference to the parent
1612   Database object for sharded databases.
1614 * ValueIterator::skip_to() and check() had an off-by-one error in their docid
1615   calculations in some cases with sharded databases.
1617 testsuite:
1619 * apitest:
1621   + Enable testcases flagged metadata, synonym and/or writable to run on
1622     sharded databases.
1624   + Enable testcases flagged writable to run on sharded databases.  Writing to
1625     a sharded WritableDatabase has been supported since 1.3.2, but the test
1626     harness wasn't running many of the tests that could be with a sharded
1627     WritableDatabase.  This uncovered three bugs which are fixed in this
1628     release.
1630   + Support "generated" testcases for the inmemory backend, which uncovered a
1631     bug which is fixed in this release.
1633   + Skip testcase testlock1 on platforms that don't allow us to implement
1634     Database::locked() (which notably include GNU Hurd and Microsoft Windows).
1636   + Disable testlock2 on sharded databases as it fails for platforms which
1637     don't actually support testing the lock.
1639   + Extend tests of behaviour after database close.  Patch from Guruprasad
1640     Hegde.  Fixes https://trac.xapian.org/ticket/337
1642   + Enable testcase closedb5 for remote backends.  This testcase failed for
1643     remote backends when it was added and the cause wasn't clear, but it turns
1644     out it was actually a bug in the disk based backends, which was fixed way
1645     back in 2010.  Reported by Guruprasad Hegde.
1647   + Check for select() failing in retrylock1 testcase.  Retry on EINTR or
1648     EAGAIN, and report other errors rather than trying the read() anyway.
1649     Previously the read() would likely fail for the same reason the select()
1650     did, but at best this is liable to make what's going on less clear if the
1651     testcase fails.
1653 * Report bool values as true/false not 1/0.
1655 * Assorted minor testcase improvements.
1657 * The test harness now supports testcases which are expected to fail (XFAIL).
1658   Based on patch from Richard Boulton in https://trac.xapian.org/ticket/156.
1660 * Fix demangling of std::exception subclass names which wasn't happening due
1661   to a typo in the preprocessor check for the required header.  This was broken
1662   by changes in 1.4.2.
1664 * Make TEST_EQUAL() arguments side-effect free.  The TEST_EQUAL() macro
1665   evaluates its arguments a second time if the test fails in order to report
1666   their values.  This isn't ideal and really ought to be addressed, but for now
1667   fix uses where the argument has side-effect (e.g. *i++) such that the
1668   reported value should match the tested value.
1670 * runtest: Show usage if first option starts '-'.  Previously we ended up
1671   passing such options to libtool, so putting -v on runtest instead of apitest
1672   would run the tests but -v would effectively do nothing (it would make
1673   libtool verbose, but that doesn't make any difference in this case):
1674   ./runtest -v ./apitest
1676 * Suppress output from xcopy on MS Windows.
1678 * The test harness machinery for detecting file descriptor leaks should now
1679   work on any platform which has /dev/fd.
1681 * Implement recursive delete of a database directory in the test harness
1682   using nftw() if available (and not buggy like mingw64's seems to be), rather
1683   than running "rm -rf" as an external command.  This avoids the overhead of
1684   starting a new process each time we clean up a test database, which happens a
1685   lot during a test run.
1687 * Speed up generated test databases a little by adding a stat() check to avoid
1688   throwing and catching an exception when the database doesn't yet exist.
1690 * Skip timed tests when configured with --enable-log.  The logging can easily
1691   turn O(1) operations into O(n), and that's hard to avoid.  Fixes
1692   https://trac.xapian.org/ticket/757, reported by Guruprasad Hegde.
1694 matcher:
1696 * OP_VALUE_*: When a value slot's lower and upper bound are equal, we know
1697   that exactly how many documents the subquery can match (either 0 or those
1698   bounds).  This also avoids a division by zero which previously happened
1699   when trying to calculate the estimate.
1701 * Speed up sorting by keys.  Use string::compare() to avoid having to call
1702   operator< if operator> returns false.
1704 * Fix clamping of maxitems argument to get_mset() - it was being clamped
1705   to db.get_doccount(), now it's clamped to db.get_doccount() - first.  In
1706   practice this doesn't actually seem to cause any issues.
1708 * If a match time limit is in effect, when it expires we now clamp
1709   check_at_least to first + maxitems instead of to maxitems.  In practice this
1710   also doesn't seem to actually cause any issues (at least we've failed to
1711   construct a testcase where it actually makes an observable difference).
1713 * Fix percentages when only some shards have positions.  If the final shard
1714   didn't have positions this would lead to under-counting the total number leaf
1715   of subqueries which would lead to incorrect positional calculations (and a
1716   division by zero if the top level of the query was positional.  This bug was
1717   introduced in 1.4.3.
1719 * OP_NEAR: Fix "phantom positions", where OP_NEAR would think a term without
1720   positional information occurred at position 1 if it had the lowest term
1721   frequency amongst the OP_NEAR's subqueries.
1723 * Fix termfreq used in weight calculations for a term occurring more than once
1724   in the query.  Previously the termfreq for such terms was multiplied by the
1725   number of different query positions they appeared at.
1727 * OP_SYNONYM: We use the doclength upper bound for the wdf upper bound of a
1728   synonym - now we avoid fetching it twice when the doclength upper bound is
1729   explicitly needed.
1731 * Short-cut init() when factor is 0 in most Weight subclasses.  This indicates
1732   the object is for the term-independent weight contribution, which is always 0
1733   for most schemes, so there's no point fetching any stats or doing any
1734   calculations.  This fixes a divide by zero for TfIdfWeight, detected by
1735   UBSan.
1737 * OP_OR: Fix bug which caused orcheck1 to fail once hooked up to run with the
1738   inmemory backend.
1740 glass backend:
1742 * Fix glass freelist bug when changes to a new database which didn't modify the
1743   termlist table were committed.  In this corner case, a block which had been
1744   allocated to be the root block in the termlist table was leaked.  This was
1745   largely harmless, except that it was detected by Database::check() and caused
1746   it to report an error.  Reported by Antoine Beaupré and David Bremner.
1748 * Fix glass freelist bug with cancel_transaction().  The freelist wasn't
1749   reset to how it was before the transaction, resulting in leaked blocks.
1750   This was largely harmless, except that it was detected by Database::check()
1751   and caused it to report an error.
1753 * Improve the per-term wdf upper bound.  Previously we used min(cf(term),
1754   wdf_upper_bound(db)) which is tight for any terms which attain that
1755   upper bound, and also for terms with termfreq == 1 (the latter are common
1756   in the database (e.g. 66% for a database of wikipedia), but probably
1757   much less common in searches).  When termfreq > 1 we now use
1758   max(first_wdf(term), cf(term) - first_wdf(term)), which means terms with
1759   termfreq == 2 will also attain their bound (another 11% for the same
1760   database) while terms with higher termfreq but below the global bound will
1761   get a tighter bound.
1763 * Fix Database::locked() on single-file glass db to just return false (such
1764   databases can't be opened as a WritableDatabase so there can't be a write
1765   lock).  Previously this failed with: "DatabaseLockError: Unable to get write
1766   lock on /flintlock: Testing lock"
1768 * Fix compaction when both the input and output are specified as a file
1769   descriptor.  Previously this threw an exception due to an overeager check
1770   that destination != source.
1772 * Use O_TRUNC when compacting to single file.  If the output already exists but
1773   is larger than our output we don't want to just overwrite the start of it.
1774   This case also used to result in confusing compaction percentages.
1776 * Enable glass's "open_nearby_postlist" optimisation (which especially helps
1777   large wildcard queries) for writable databases without any uncommitted
1778   changes as well.
1780 * Make get_unique_terms() more efficient for glass.  We approximate
1781   get_unique_terms() by the length of the termlist (which counts boolean terms
1782   too) but clamp this to be no larger than the document length.  Since we need
1783   to open the termlist to get its length, it makes more sense to get the
1784   document length from that termlist for no extra cost rather than looking it
1785   up in the postlist table.
1787 * Database::check() now checks document lengths against the stored document
1788   length lower and upper bounds.  Patch from Uppinder Chugh.  Fixes
1789   https://trac.xapian.org/ticket/617.
1791 * Fix bogus handling of most-recently-read value slot statistics.  It seems
1792   that we get lucky and this can't actually cause a problem in practice due
1793   to another layer of caching above, but if nothing else it's a bug waiting to
1794   happen.
1796 * If we fail to create the directory for a new database because the path
1797   already exists, the exception now reports EEXIST as the errno value rather
1798   than whatever errno value happened to be set from an earlier library call.
1800 remote backend:
1802 * xapian-tcpsrv --one-shot no longer forks.  We need fork to handle multiple
1803   concurrent connections, but when handling a single connection forking just
1804   adds overhead and potentially complicates process management for our caller.
1805   This aligns with the behaviour under __WIN32__ where we use threads instead
1806   of forking, and service the connection from the main thread with --one-shot.
1808 * Fix repeat call to ValueIterator::check() on the same docid to not always
1809   set valid to true for remote backend.
1811 inmemory backend:
1813 * Fix repeat call to ValueIterator::check() on the same docid to not always
1814   set valid to true for inmemory backend.
1816 build system:
1818 * configure: Fix potentially confusing messages suggesting snprintf was added
1819   in C90 - it was actually standardised in C99.
1821 * Eliminate configure probes related to off_t by using C++11 features.
1823 * The installed xapian-config script is now cleaned up by removing code to
1824   handle use before installation.  This extra code contained build paths
1825   which meant the build wasn't bit-for-bit reproducible unless the same
1826   build directory name was used.  This change also eliminates use of
1827   automake's $(transform) (which seems to be intended an internal mechanism)
1828   and fixes "make uninstall" to remove xapian-config when a program-prefix or
1829   -suffix is in use (e.g. there's a default -1.5 suffix for git master
1830   currently).
1832 * Directory separator knowledge is now factored out into configure, based on
1833   $host_os and __WIN32__ (it seems hard to probe for this in a way which works
1834   when cross-compiling).
1836 * Fix build with --disable-backend-remote.
1838 * In an out-of-tree build configured with --enable-maintainer-mode
1839   and --disable-dependency-tracking we would fail to create the
1840   "tests/soaktest" and "unicode" directories in the build directory.
1841   Patch from Gaurav Arora.
1843 * Improve handling of multitarget rule stamp files.  Clean them on "make
1844   maintainer-clean" and ship them so that --enable-maintainer-mode when
1845   building from a tarball doesn't needlessly rerun the multitarget rules.
1847 * Split out allsnowballheaders.h again to avoid include path issues with
1848   unittest in out-of-tree maintainer-mode builds.
1850 * xapian-core.pc: Both the Name and Description were too long compared to
1851   pkg-config norms, and the Description was trying to be multi-line which it
1852   seems pkg-config doesn't support.  Fixes
1853   https://github.com/xapian/xapian/pull/203, reported by orbea.
1855 documentation:
1857 * Stop describing Xapian as "Probabilistic" - we've also had non-probabilistic
1858   weighting schemes since 1.3.2.
1860 * Improve API docs for MSet::snippet().
1862 * Correct some class names in doxygen file documentation comments.
1864 * Mark up shell command as code-block:: sh.
1866 tools:
1868 * xapian-delve:
1870   + Document values can contain binary data, so escape them by default for
1871     output.  Other options now supported are to decode as a packed integer
1872     (like omindex uses for last modified), decode using
1873     Xapian::sortable_unserialise(), and to show the raw form (which was the
1874     previous behaviour).
1876   + Report current database revision.
1878 * xapian-inspect:
1880   + Report entry count when opening table
1882   + Support inspecting single file DBs via a new --table option (which can also
1883     be used with a non-single-file DB instead of specifying the path to the
1884     table).
1886   + Add "first" and "last" commands which jump to the first/last entry in the
1887     current table respectively.
1889   + "until" now counts and reports the number of entries advanced by.
1891   + Document "until" with no arguments - this advances to the end of the table,
1892     but wasn't mentioned in the help.
1894   + Commands "goto" and "until" which take a key as an argument now expect the
1895     key in the same escaped form that's used for display.  This makes it much
1896     simpler to interact with tables with binary keys.
1898   + Fix to expect .glass not .DB extension of glass tables.
1900 portability:
1902 * Sort out building using MSVC with the standard build system, and fix assorted
1903   problems.  MSVC 2015 or later is required for decent C++11 support.  Both 32-
1904   and 64-bit builds are now supported.
1906 * Remove code specific to old MSVC nmake build system.  The latter has been
1907   removed already.
1909 * Don't use WIN32 API to parse/unparse UUIDs.  So much glue code is needed that
1910   it's simpler to just do the parsing and unparsing ourselves, and we already
1911   have an implementation which is used when generating UUIDs using /proc on
1912   Linux.  We still use UuidCreate() to generate a new UUID.
1914 * Improve compiler visibility attribute detection to check that using the
1915   attributes doesn't result in a warning - previously we'd enable them even on
1916   platforms which don't support them, which would result in a compiler warning
1917   for every file compiled.  We now probe for -fvisibility=hidden and
1918   -fvisibility-inlines-hidden together as it seems all compilers implement both
1919   or neither, and it's faster to do one probe instead of two.
1921 * Don't pass the same FDSET twice in same select() - this appears not to be
1922   allowed by current POSIX, and causes warnings with GCC8.
1924 * Fix compacttofd testcases to specify O_BINARY so they pass on platforms
1925   where O_BINARY matters.
1927 * configure: Probe for declaration of _putenv_s.  It seems that the symbol is
1928   always present in the MSVCRT DLL, but older mingw may not provide a
1929   declaration for it.
1931 * Fix "may be used uninitialised" warning with GCC 4.9.2 and -Os.
1933 * Suppress mingw32 deprecation warning for useconds_t.  We've already switched
1934   away from useconds_t on git master, but it's not easy to do for 1.4.x without
1935   ABI breakage.
1937 * Fix signed vs unsigned warnings with assertions on.
1939 * Use $(SED) instead of hard-coding "sed".  The rules concerned are all ones
1940   that only maintainers currently need to run, but we're likely to enable
1941   maintainer-mode by default at some point and then portability here will
1942   matter more.
1944 * Add missing explicit <algorithm> for std::max()/std::min().
1946 * Check for EAGAIN as well as EINTR from select().  The Linux select(2) man
1947   page says: "Portable programs may wish to check for EAGAIN and loop, just as
1948   with EINTR" and that seems to be necessary for Cygwin at least.
1950 * Probe for exp10() declaration as Cygwin seems to have the symbol but lacks a
1951   declaration in the headers.  Just ignoring it is simplest and we'll use GCC's
1952   __builtin_exp10() instead.
1954 * Fix warnings when building Snowball compiler with recent GCC.
1956 * Fix Perl script used during maintainer builds to work with Perl < 5.10.  Such
1957   old perl versions shouldn't really be relevant for maintainer builds at this
1958   point, but appveyor's mingw install has such a Perl version.
1960 * Remove unused macro STATIC_ASSERT_TYPE_DOMINATES (unused, except by
1961   internaltest unit test for it, since the flint backend was removed in 2011)
1962   and replace uses of STATIC_ASSERT_UNSIGNED_TYPE with C++11 features
1963   static_assert and std::is_unsigned instead.
1965 * Don't retry on (errno == EINTR) when read() or pread() indicates end-of-file.
1966   This could potentially have put us into an infinite loop if we encountered
1967   this situation and errno happened to be EINTR from a previous library call.
1969 * Make read-only data arrays consistently static and const.
1971 * Avoid casting invalid value to enum reply_type if an invalid reply code is
1972   received from a remote server.  This is technically undefined behaviour,
1973   though in practice probably not a problem.
1975 * Eliminate an array of function pointers and some char* array members in
1976   library, reducing the number of relocations needed at shared library load
1977   time, which reduces the total time to load the library.
1979 packaging:
1981 * Use https for tarball URLs in .spec files.  This provides protection against
1982   MITM attacks on people building packages using these spec files, and is also
1983   slightly more efficient as the http: URLs redirect to the https: versions
1984   anyway.
1986 debug code:
1988 * Fix build when configured with --enable-log due to bugs in debug logging
1989   annotations.  Patch from Uppinder Chugh.
1991 * Fix assertion for value range on empty slot.
1993 * Use AssertEq() rather than Assert with ==, the former reports the two
1994   values if the assertion fails.
1996 Xapian-core 1.4.5 (2017-10-16):
1998 API:
2000 * Add Database::get_total_length() method.  Previously you had to calculate
2001   this from get_avlength() and get_doccount(), taking into account rounding
2002   issues.  But even then you couldn't reliably get the exact value when total
2003   length is large since a double's mantissa has more limited precision than an
2004   unsigned long long.
2006 * Add Xapian::iterator_rewound() for bidirectional iterators, to test if the
2007   iterator is at the start (useful for testing whether we're done when
2008   iterating backwards).
2010 * DatabaseOpeningError exceptions now provide errno via get_error_string()
2011   rather than turning it into a string and including it in the exception
2012   message.
2014 * WritableDatabase::replace_document(): when passed a Document object which
2015   came from a database and has unmodified values, we used to always read
2016   those values into a memory structure.  Now we only do this if the document
2017   is being replaced to the same document ID which it came from, which should
2018   make other cases a bit more efficient.
2020 * Enquire::get_eset(): When approximating term frequencies we now round to the
2021   nearest integer - previously we always rounded down.
2023 testsuite:
2025 * Improve Xapian::Document test coverage.
2027 * Pass --child-silent-after-fork=yes to valgrind which stops us creating a
2028   .valgrind.log.* file for every remote testcase run.  This option was added in
2029   valgrind 3.3.0 which is already the minimum version we support.
2031 * Open and unlink valgrind log before option parsing so we no longer leave a
2032   log file behind if there's an error parsing options or for options like
2033   --help which report and exit.
2035 * Delete .valgrind.log.* on "make clean" - if tests are run under valgrind and
2036   the test is killed at just the wrong moment then a log file may be left
2037   behind.
2039 * Fix the NetworkError with ECHILD check added in 1.4.4 - this will no longer
2040   segfault if the test harness catches a NetworkError without an error string.
2042 matcher:
2044 * Iterating of positions has been sped up, which means phrase matching is now
2045   faster (by a little over 5% in some simple tests).
2047 * Fix use after free of QueryOptimiser hint in certain cases involving
2048   multiple databases only some of which have positional information.
2049   This bug was introduced by changes in xapian-core 1.4.3.  Fixes #752,
2050   reported and analysed by Robert Stepanek.
2052 * An unweighted OP_AND_MAYBE is now optimised to just its left branch - the
2053   other branch or branches only contribute weight, so can be completely ignored
2054   when the operator is unweighted.
2056 inmemory backend:
2058 * Use binary chop instead of linear search in all places where we're searching
2059   for a term or document - we weren't taking advantage of the sorted order
2060   everywhere.
2062 build system:
2064 * xapian-core.pc: Specify Libs.private in pkgconfig file, which is needed for
2065   static linking, and probably also for shared libraries on platforms without
2066   DT_NEEDED or something equivalent.  Fixes #751, reported by Matthieu Gautier.
2068 documentation:
2070 * Document that QueryParser::set_default_op() supports OP_MAX - this
2071   has been the case since OP_MAX was added, but the API docs for
2072   set_default_op() weren't updated to reflect this.
2074 * Document OP_MAX and OP_WILDCARD.
2076 * Fix documentation of TermGenerator stop_strategy values STOP_ALL and
2077   STOP_STEMMED.  Reported by Matthieu Gautier in #750.  Thanks to Gaurav Arora
2078   for additional investigation.
2080 * net/remote_protocol.rst: Update the current version of the remote protocol
2081   version (39 not 38).  The differences between the two are only in the Query
2082   and MSet serialisations which aren't documented in detail here.
2084 * Link get_unique_terms_begin() and get_terms_begin() API documentation -
2085   the cross-referencing is useful in itself, but also helps to highlight
2086   the difference between the two.
2088 * Fix "IPv5" -> "IPv6" comment typo.  Noted by James Clarke
2090 * deprecation.html:
2092   + Add deprecated Enquire::get_eset() overload - this was marked as deprecated
2093     in the header file, but hadn't been added here.
2095   + Move deprecated typedefs to the "to be removed" list - they'd been
2096     accidentally added to the "removed" list.
2098   + Improve descriptions of several deprecated features.
2100 * QueryParser::set_max_expansion() is now discussed in the API documentation
2101   instead of the deprecated set_max_wildcard_expansion().
2103 * Clarify PostList::check() API documentation:  If valid is set to false, then
2104   NULL must be returned (pruning in this situation doesn't make sense) and
2105   at_end() shouldn't be called (because it implicitly depends on the current
2106   position being valid).
2108 * HACKING:
2110   + Update re -Wold-style-cast which we enabled and then had to disable again.
2112   + Update links to C++ FAQ and libstdc++'s debug mode.
2114   + Update several URLs to use https.
2116   + The 1.2 release branch has now been retired, so remove 1.2-specific
2117     backporting tips.
2119 portability:
2121 * Also check <errno.h> for sys_nerr and sys_errlist.  This is probably a more
2122   common location for them than Linux's <stdio.h> (even on Linux the man page
2123   says they're in <errno.h> but that doesn't match reality).
2125 * Use $(CC) not $(CC_FOR_BUILD) to build zlib-vg.so.  The test for whether we
2126   need it is based on the host OS, so it makes more sense to use the host
2127   compiler to build it when cross compiling.
2129 * On Hurd F_GETLK currently always fails with errno set to ENOSYS - treat this
2130   the same way as ENOLCK.  This fixes the testsuite on GNU Hurd, broken since
2131   the addition on Database::locked() in 1.4.3.
2133 * Add missing #include "safesyssocket.h", needed on at least FreeBSD to get
2134   AF_INET and SOCK_STREAM defined.  Fixes
2135   https://github.com/xapian/xapian/pull/154, reported by Po-Chuan Hsieh
2136   (alternative fix applied was suggested by James Aylett).
2138 * configure: Fixed the probe for whether the test harness can use RTTI with
2139   IBM's xlC compiler (which defaults to not generating RTTI).  Previously the
2140   probe would always think RTTI was available.
2142 debug code:
2144 * Fix some incorrect class/method names in debug logging.
2146 * Stop disabling ccache for coverage builds as ccache 3.2.2 now supports
2147   caching compilations with --coverage, and they work as far back as ccache 3.0
2148   (caching is automatically disabled by these older versions).
2150 * Drop --enable-quiet from in COVERAGE_CONFIGURE - this option no longer does
2151   anything since 1.3.1.
2153 Xapian-core 1.4.4 (2017-04-19):
2155 API:
2157 * Database::check():
2159   + Fix checking a single table - changes in 1.4.2 broke such checks unless you
2160     specified the table without any extension.
2162   + Errors from failing to find the file specified are now thrown as
2163     DatabaseOpeningError (was DatabaseError, of which DatabaseOpeningError is
2164     a subclass so existing code should continue to work).  Also improved the
2165     error message when the file doesn't exist is better.
2167 * Drop OP_SCALE_WEIGHT over OP_VALUE_RANGE, OP_VALUE_GE and OP_VALUE_LE in the
2168   Query constructor.  These operators always return weight 0 so OP_SCALE_WEIGHT
2169   over them has no effect.  Eliminating it at query construction time is cheap
2170   (we only need to check the type of the subquery), eliminates the confusing
2171   "0 * " from the query description, and means the OP_SCALE_WEIGHT Query object
2172   can be released sooner.  Inspired by Shivanshu Chauhan asking about the query
2173   description on IRC.
2175 * Drop OP_SCALE_WEIGHT on the right side of OP_AND_NOT in the Query
2176   constructor.  OP_AND_NOT takes no weight from the right so OP_SCALE_WEIGHT
2177   has no effect there.  Eliminating it at query construction time is cheap
2178   (just need to check the subquery's type), eliminates the confusing "0 * "
2179   from the query description, and means the OP_SCALE_WEIGHT object can be
2180   released sooner.
2182 testsuite:
2184 * Add more tests of Database::check().  Fixes #238, reported by Richard
2185   Boulton.
2187 * Make apitest testcase nosuchdb1 fail if we manage to open the DB.
2189 * Skip testcases which throw NetworkError with errno value ECHILD - this
2190   indicates system resource starvation rather than a Xapian bug.  Such failures
2191   are seen on Debian buildds from time to time, see:
2192   https://bugs.debian.org/681941
2194 matcher:
2196 * Fix incorrect results due to uninitialised memory.  The array holding max
2197   weight values in MultiAndPostList is never initialised if the operator is
2198   unweighted, but the values are still used to calculate the max weight to pass
2199   to subqueries, leading to incorrect results.  This can be observed with an OR
2200   under an unweighted AND (e.g. OR under AND on the right side of AND_NOT).
2201   The fix applied is to simply default initialise this array, which should lead
2202   to a max weight of 0.0 being passed on to subqueries.  Bug reported in
2203   notmuch by Kirill A. Shutemov, and forwarded by David Bremner.
2205 documentation:
2207 * Correct "Query::feature_flag" -> "QueryParser::feature_flag".  Fixes #747,
2208   reported by James Aylett.
2210 * Rename set_metadata() `value` parameter to `metadata`.  This change is
2211   particularly motivated by making it easier to map this case specially in SWIG
2212   bindings, but the new name is also clearer and better documents its purpose.
2214 * Rename value range parameters.  The new names (`range_limit` instead of
2215   `limit`, `range_lower` instead of `begin` and `range_upper` instead of `end`)
2216   are particularly motivated by making it easier to map them specially in SWIG
2217   bindings, but they're also clearer names which better document their
2218   purposes.
2220 * Change "(key, tag)" to "(key, value)" in user metadata docs.  The user
2221   metadata is essentially what's often called a "key-value store" so users
2222   are likely to be familiar with that terminology.
2224 * Consistently name parameter of Weight::unserialise() overridden forms.
2225   In xapian/weight.h it was almost always named `serialised`, but LMWeight
2226   named it `s` and CoordWeight omitted the name.
2228 * Fix various minor documentation comment typos.
2230 portability:
2232 * Fix configure probe for __builtin_exp10() to work around bug on mingw - there
2233   GCC generates a call to exp10() for __builtin_exp10() but there is no exp10()
2234   function in the C library, so we get a link failure.  Use a full link test
2235   instead to avoid this issue.  Reported by Mario Emmenlauer on xapian-devel.
2237 * Fix configure probe for log2() which was failing on at least some platforms
2238   due to ambiguity between overloaded forms of log2().  Make the probe
2239   explicitly check for log2(double) to avoid this problem.
2241 * Workaround the unhelpful semantics of AI_ADDRCONFIG on platforms which follow
2242   the old RFC instead of POSIX (such as Linux) - if only loopback networking is
2243   configured, localhost won't resolve by name or IP address, which causes
2244   testsuites using the remote backend over localhost to fail in auto-build
2245   environments which deliberately disable networking during builds.  The
2246   workaround implemented is to check if the hostname is "::1", "127.0.0.1" or
2247   "localhost" and disable AI_ADDRCONFIG for these.  This doesn't catch all
2248   possible ways to specify localhost, but should catch all the ways these might
2249   be specified in a testsuite.  Fixes https://bugs.debian.org/853107, reported
2250   by Daniel Schepler and the root cause uncovered by James Clarke.
2252 debug code:
2254 * Adjust assertion in InMemoryPostList.  Calling skip_to() is fine when the
2255   postlist hasn't been started yet (but the assertion was failing for a term
2256   not in the database).  Latent bug, triggered by testcases complexphrase1 and
2257   complexnear1 as updated for addition of support for OP_OR subqueries of
2258   OP_PHRASE/OP_NEAR.
2260 Xapian-core 1.4.3 (2017-01-25):
2262 API:
2264 * MSet::snippet(): Favour candidate snippets which contain more of a diversity
2265   of matching terms by discounting the relevance of repeated terms using an
2266   exponential decay.  A snippet which contains more terms from the query is
2267   likely to be better than one which contains the same term or terms multiple
2268   times, but a repeated term is still interesting, just less with each
2269   additional appearance.  Diversity issue highlighted by Robert Stepanek's
2270   patch in https://github.com/xapian/xapian/pull/117 - testcases taken from his
2271   patch.
2273 * MSet::snippet(): New flag SNIPPET_EMPTY_WITHOUT_MATCH to get an empty snippet
2274   if there are no matches in the text passed in.  Implemented by Robert
2275   Stepanek.
2277 * Round MSet::get_matches_estimated() to an appropriate number of significant
2278   figures.  The algorithm used looks at the lower and upper bound and where the
2279   estimate sits between them, and then picks an appropriate number of
2280   significant figures.  Thanks to Sébastien Le Callonnec for help sorting out a
2281   portability issue on OS X.
2283 * Add Database::locked() method - where possible this non-invasively checks if
2284   the database is currently open for writing, which can be useful for
2285   dashboards and other status reporting tools.
2287 testsuite:
2289 * Use terms that exist in the database for most snippet tests.  It's good to
2290   test that snippet highlighting works for terms that aren't in the database,
2291   but it's not good for all our snippet tests to feature such terms - it's
2292   not the common usage.
2294 matcher:
2296 * Improve value range upper bound and estimated matches.  The value slot
2297   frequency provides a tighter upper bound than Database::get_doccount().
2298   The estimate is now calculated by working out the proportion of possible
2299   values between the slot lower and upper bounds which the range covers
2300   (assuming a uniform distribution).  This seems to work fairly well in
2301   practice, and is certainly better than the crude estimate we were using:
2302   Database::get_doccount() / 2
2304 * Handle arbitrary combinations of OP_OR under OP_NEAR/OP_PHRASE, partly
2305   addressing #508.  Thanks to Jean-Francois Dockes for motivation and testing.
2307 * Only convert OP_PHRASE to OP_AND if full DB has no positions.  Until now the
2308   conversion was done independently for each sub-database, but being consistent
2309   with the results from a database containing all the same documents seems more
2310   useful.
2312 * Avoid double get_wdf() call for first subquery of OP_NEAR and OP_PHRASE,
2313   which will speed them up by a small amount.
2315 documentation:
2317 * INSTALL: Update section about -Bsymbolic-functions which is not a new
2318   GNU ld feature at this point.
2320 tools:
2322 * xapian-delve: Uses new Database::locked() method to report if the database
2323   is currently locked.
2325 portability:
2327 * Fix build failure cross-compiling for android due to not pulling in header
2328   for errno.
2330 * Fix compiler warnings.
2332 Xapian-core 1.4.2 (2016-12-26):
2334 API:
2336 * Add XAPIAN_AT_LEAST(A,B,C) macro.
2338 * MSet::snippet(): Optimise snippet generation - it's now ~46% faster in a
2339   simple test.
2341 * Add Xapian::DOC_ASSUME_VALID flag which tells Database::get_document() that
2342   it doesn't need to check that the passed docid is valid.  Fixes #739,
2343   reported by Germán M. Bravo.
2345 * TfIdfWeight: Add support for the L wdf normalisation.  Patch from Vivek Pal.
2347 * BB2Weight: Fix weights when database has just one document.  Our existing
2348   attempt to clamp N to be at least 2 was ineffective due to computing
2349   N - 2 < 0 in an unsigned type.
2351 * DPHWeight: Fix reversed sign in quadratic formula, making the upper bound a
2352   tiny amount higher.
2354 * DLHWeight: Correct upper bound which was a bit too low, due to flawed logic
2355   in its derivation.  The new bound is slightly less tight (by a few percent).
2357 * DLHWeight,DPHWeight: Avoid calculating log(0) when wdf is equal to the
2358   document length.
2360 * TermGenerator: Handle stemmer returning empty string - the Arabic stemmer
2361   can currently do this (e.g. for a single tatweel) and user stemmers can too.
2362   Fixes #741, reported by Emmanuel Engelhart.
2364 * Database::check(): Fix check that the first docid in each doclength chunk is
2365   more than the last docid in the previous chunk - this code was in the wrong
2366   place so didn't actually work.
2368 * Database::get_unique_terms(): Clamp returned value to be <= document length.
2369   Ideally get_unique_terms() ought to only count terms with wdf > 0, but that's
2370   expensive to calculate on demand.
2372 glass backend:
2374 * When compacting we now only write the iamglass file out once, and we write it
2375   before we sync the tables but sync it after, which is more I/O friendly.
2377 * Database::check(): Fix in SEGV when out == NULL and opts != 0.
2379 * Fix potential SEGV with corrupt value stats.
2381 chert backend:
2383 * Fix potential SEGV with corrupt value stats.
2385 build system:
2387 * Add XO_REQUIRE autoconf macro to provide an easy way to handle version checks
2388   in user configure scripts.
2390 tools:
2392 * quest: Support BM25+, LM and PL2+ weighting schemes.
2394 * xapian-check: Fix when ellipses are shown in 't' mode.  They were being shown
2395   when there were exactly 6 entries, but we only start omitting entries when
2396   there are *more* than 6.  Fix applies to both glass and chert.
2398 portability:
2400 * Avoid using opendir()/readdir() in our closefrom() implementation as these
2401   functions can call malloc(), which isn't safe to do between fork() and exec()
2402   in a multi-threaded program, but after fork() is exactly where we want to
2403   use closefrom().  Instead we now use getdirentries() on Linux and
2404   getdirentriesattr() on OS X (OS X support bugs shaken out with help from
2405   Germán M. Bravo).
2407 * Support reading UUIDs from /proc/sys/kernel/random/uuid which is especially
2408   useful when building for Android, as it avoids having to cross-build a UUID
2409   library.
2411 * Disable volatile workaround for excess precision SEGV for SSE - previously it
2412   was only being disabled for SSE2.
2414 * When building for x86 using a compiler where we don't know how to disable
2415   use of 387 FP instructions, we now run remote servers for the testsuite under
2416   valgrind --tool=none, like we do when --disable-sse is explicitly specified.
2418 * Add alignment_cast<T> which has the same effect as reinterpret_cast<T> but
2419   avoids warnings about alignment issues.
2421 * Suppress warnings about unused private members.  DLHWeight and DPHWeight
2422   have an unused lower_bound member, which clang warns about, but we need to
2423   keep them there in 1.4.x to preserve ABI compatibility.
2425 * Remove workaround for g++ 2.95 bug as we require at least 4.7 now.
2427 * configure: Probe for <cxxabi.h>.  GCC added this header in GCC 3.1, which
2428   is much older than we support, so we've just assumed it was available if
2429   __GNUC__ was defined.  However, clang lies and defines __GNUC__ yet doesn't
2430   seem to reliably provide <cxxabi.h>, so we need to probe for it.
2432 * Fix "unused assignment" warning.
2434 * configure: Probe for __builtin_* functions.  Previously we just checked for
2435   __GNUC__ being defined, but it's cleaner to probe for them properly -
2436   compilers other than GCC and those that pretend to be GCC might provide these
2437   too.
2439 * Use __builtin_clz() with compilers which support it to speed up encoding
2440   and especially decoding of positional data.  This speeds up phrase searching
2441   by ~0.5% in a simple test.
2443 * Check signed right shift behaviour at compile time - we can use a test on a
2444   constant expression which should optimise away to just the required version
2445   of the code, which means that on platforms which perform sign-extension
2446   (pretty much everything current it seems) we don't have to rely on the
2447   compiler optimising a portable idiom down to the appropriate right shift
2448   instruction.
2450 * Improve configure check for log2().  We include <cmath> so the check really
2451   should succeed if only std::log2() is declared.
2453 * Enable win32-dll option to LT_INIT.
2455 debug code:
2457 * xapian-inspect:
2459   + Support glass instead of chert.
2461   + Allow control of showing keys/tags.
2463   + Use more mnemonic letters than X for command arguments in help.
2465 Xapian-core 1.4.1 (2016-10-21):
2467 API:
2469 * Constructing a Query for a non-reference counted PostingSource object will
2470   now try to clone the PostingSource object (as happened in 1.3.4 and
2471   earlier).  This clone code was removed as part of the changes in 1.3.5 to
2472   support optional reference counting of PostingSource objects, but that breaks
2473   the case when the PostingSource object is on the stack and goes out of scope
2474   before the Query object is used.  Issue reported by Till Schäfer and analysed
2475   by Daniel Vrátil in a bug report against Akonadi:
2476   https://bugs.kde.org/show_bug.cgi?id=363741
2478 * Add BM25PlusWeight class implementing the BM25+ weighting scheme, implemented
2479   by Vivek Pal (https://github.com/xapian/xapian/pull/104).
2481 * Add PL2PlusWeight class implementing the PL2+ weighting scheme, implemented
2482   by Vivek Pal (https://github.com/xapian/xapian/pull/108).
2484 * LMWeight: Implement Dir+ weighting scheme as DIRICHLET_PLUS_SMOOTHING.
2485   Patch from Vivek Pal.
2487 * Add CoordWeight class implementing coordinate matching.  This can be useful
2488   for specialised uses - e.g. to implement sorting by the number of matching
2489   filters.
2491 * DLHWeight,DPHWeight,PL2Weight: With these weighting schemes, the formulae
2492   can give a negative weight contribution for a term in extreme cases.  We
2493   used to try to handle this by calculating a per-term lower bound on the
2494   contribution and subtracting this from the contribution, but this idea
2495   is fundamentally flawed as the total offset it adds to a document depends on
2496   what combination of terms that document matches, meaning in general the
2497   offset isn't the same for every matching document.  So instead we now clamp
2498   each term's weight contribution to be >= 0.
2500 * TfIdfWeight: Always scale term weight by wqf - this seems the logical
2501   approach as it matches the weighting we'd get if we weighted every non-unique
2502   term in the query, as well as being explicit in the Piv+ formula.
2504 * Fix OP_SCALE_WEIGHT to work with all weighting schemes - previously it was
2505   ignored when using PL2Weight and LMWeight.
2507 * PL2Weight: Greatly improve upper bound on weight:
2508   + Split the weight equation into two parts and maximise each separately as
2509     that gives an easily solvable problem, and in common cases the maximum is
2510     at the same value of wdfn for both parts.  In a simple test, the upper
2511     bounds are now just over double the highest weight actually achieved -
2512     previously they were several hundred times.  This approach was suggested by
2513     Aarsh Shah in: https://github.com/xapian/xapian/pull/48
2514   + Improve upper bound on normalised wdf (wdfn) - when wdf_upper_bound >
2515     doclength_lower_bound, we get a tighter bound by evaluating at
2516     wdf=wdf_upper_bound.  In a simple test, this reduces the upper bound on
2517     wdfn by 36-64%, and the upper bound on the weight by 9-33%.
2519 * PL2Weight: Fix calculation of upper_bound when P2>0.  P2 is typically
2520   negative, but for a very common term it can be positive and then we should
2521   use wdfn_lower not wdfn_upper to adjust P_max.
2523 * Weight::unserialise(): Check serialised form is empty when unserialising
2524   parameter-free schemes BoolWeight, DLHWeight and DPHWeight.
2526 * TermGenerator::set_stopper_strategy(): New method to control how the Stopper
2527   object is used.  Patch from Arnav Jain.
2529 * QueryParser: Fix handling of CJK query over multiple prefixes.  Previously
2530   all the n-gram terms were AND-ed together - now we AND together for each
2531   prefix, then OR the results.  Fixes #719, reported by Aaron Li.
2533 * Add Database::get_revision() method which provides access to the database
2534   revision number for chert and glass, intended for use by xapiand.  Marked
2535   as experimental, so we don't have to go through the usual deprecation cycle
2536   if this proves not to be the approach we want to take.  Fixes #709,
2537   reported by Germán M. Bravo.
2539 * Mark RangeProcessor constructor as `explicit`.
2541 testsuite:
2543 * OP_SCALE_WEIGHT: Check top weight is non-zero - if it is zero, tests which
2544   try to check that OP_SCALE_WEIGHT works will always pass.
2546 * testsuite: Check SerialisationError descriptions from Xapian::Weight
2547   subclasses mention the weighting scheme name.
2549 matcher:
2551 * Fix stats passed to Weight with OP_SYNONYM.  Previously the number of
2552   unique terms was never calculated, and a term which matched all documents
2553   would be optimised to an all-docs postlist, which fails to supply the
2554   correct wdf info.
2556 * Use floating point calculation for OR synonym freq estimates.  The division
2557   was being done as an integer division, which means the result was always
2558   getting rounded down rather than rounded to the nearest integer.
2560 glass backend:
2562 * Fix allterms with prefix on glass with uncommitted changes.  Glass aims to
2563   flush just the relevant postlist changes in this case but the end of the
2564   range to flush was wrong, so we'd only actually flush changes for a term
2565   exactly matching the prefix.  Fixes #721.
2567 remote backend:
2569 * Improve handling of invalid remote stub entries: Entries without a colon now
2570   give an error rather than being quietly skipped; IPv6 isn't yet supported,
2571   but entries with IPv6 addresses now result in saner errors (previously the
2572   colons confused the code which looks for a port number).
2574 build system:
2576 * XO_LIB_XAPIAN: Check for user trying to specify configure for XAPIAN_CONFIG
2577   and give a more helpful error.
2579 * Fix XO_LIB_XAPIAN to work without libtool.  Modern versions of GNU m4 error
2580   out when defn is used on an undefined macro.  Uncovered by Amanda Jayanetti.
2582 * Clean build paths out of installed xapian-config, mostly in the interests of
2583   facilitating reproducible builds, but it is also a little more robust as the
2584   "uninstalled tree" case can't then accidentally be triggered.
2586 * Drop compiler options that are no longer useful:
2587   + -fshow-column is the default in all GCC versions we now support
2588     (checked as GCC 4.6).
2589   + -Wno-long-long is no longer necessary now that we require C++11 where
2590     "long long" is a standard type.
2592 documentation:
2594 * Add API documentation comments for all classes, methods, constants, etc which
2595   were lacking them, and improve the content of some existing comments.
2597 * Stop hiding undocumented classes and members.  Hiding them silences doxygen's
2598   warnings about them, so it's hard to see what is missing, and the stub
2599   documentation produced is perhaps better than not documenting at all.
2600   Fixes #736, reported by James Aylett.
2602 * xapian-check: Make command line syntax consistent with other tools.
2604 * Note when MSet::snippet() was added.
2606 * deprecation.rst: Recommend unsigned over useconds_t for timeout values (but
2607   leave the API using useconds_t for 1.4.x for ABI compatibility.  The type
2608   useconds_t is now obsolete and anyway was intended to represent a time in
2609   microseconds (confusing when Xapian's timeouts are in milliseconds).  The
2610   Linux usleep man page notes: "Programs will be more portable if they never
2611   mention this type explicitly."
2613 portability:
2615 * Suppress compiler warnings about pointer alignment on some architectures.
2616   We know the data is aligned in these cases.
2618 * Fix replicate7 under Cygwin.
2620 debug code:
2622 * Add missing forward declaration needed by --enable-log build.
2624 Xapian-core 1.4.0 (2016-06-24):
2626 API:
2628 * Update to Unicode 9.0.0.
2630 portability:
2632 * Fix build on big-endian architectures.  The new unaligned word access
2633   functions expect WORDS_BIGENDIAN to be set, but configure.ac wasn't invoking
2634   AC_C_BIGENDIAN to arrange for this to be set.
2636 * Suppress compiler warnings about pointer alignment.  We know the data is
2637   suitably aligned, because the whole point of these functions is to allow
2638   reading an aligned word.
2640 Xapian-core 1.3.7 (2016-06-01):
2642 API:
2644 * Reimplement ESet and ESetIterator as we did for MSet and MSetIterator in
2645   1.3.5.  ESetIterator internally now counts down to the end of the ESet, so
2646   the end test is now against 0, rather than against eset.size().  And more of
2647   the trivial methods are now inlined, which reduces the number of relocations
2648   needed to load the library, and should give faster code which is a very
2649   similar size to before.
2651 * MSetIterator and ESetIterator are now STL-compatible random_access_iterators
2652   (previously they were only bidirectional_iterators).
2654 testsuite:
2656 * Merge queryparsertest and termgentest into apitest.  Their testcases now use
2657   the backend manager machinery in the testharness, so we don't have to
2658   hard-code use of inmemory and chert backends, but instead run them under all
2659   backends which support the required features.  This fixes some test failures
2660   when both chert and glass are disabled due to trying to run spelling tests
2661   with the inmemory backend.
2663 * Avoid overflowing collection frequency in totaldoclen1.  We're trying to test
2664   total document length doesn't wrap, so avoid collection freq overflowing in
2665   the process, as that triggers errors when running the testsuite under ubsan.
2666   We should handle collection frequency overflow better, but that's a separate
2667   issue.
2669 * Add some test coverage for ESet::get_ebound().
2671 matcher:
2673 * Fix upper bound on matches for OP_XOR.  Due to a reversed conditional, the
2674   estimate could be one too low in some cases where the XOR matched all the
2675   documents in the database.
2677 * Improve lower bound on matches for OP_XOR.  Previously the lower bound was
2678   always set to 0, which is valid, but we can often do better.
2680 glass backend:
2682 * Fix Database::check() parsing of glass changes file header.  In practice this
2683   was unlikely to actually cause problems.
2685 build system:
2687 * --disable-backend-remote now disables replication too which makes it
2688   actually usable (currently replication and the remote backend share most of
2689   their network code, so disabling them together probably makes sense anyway).
2691 * Improve builds with various combinations of backends disabled (see #361).
2693 portability:
2695 * Revert change to handle a self-initialised PIMPL object (e.g. Xapian::Query
2696   q(q);), added in 1.3.6.  It seems this case is actually undefined behaviour,
2697   so there's not much point trying to do anything about it.  Clang warns about
2698   the testcase for it (tested with 3.5), but sadly current GCC doesn't (tested
2699   with 6.1).
2701 * Use <cstdint> for integer types of known widths now we require C++11.
2703 * Replace unaligned word access functions with optimised versions which use
2704   memcpy() and (on little-endian platforms) a byte-swap (via compiler builtins
2705   where available).  Access revision numbers in database blocks with an aligned
2706   load, since we know they are suitably aligned.
2708 * Simplify handling of platforms where timer_create() exists but isn't
2709   suitable for our needs - AIX and GNU Hurd both have timer_create() but it
2710   always seems to fail (on Hurd this is because there's a dummy implementation
2711   in glibc which always fails with ENOSYS).  Trying a call at runtime which
2712   will never succeed is a waste of time, so we want to avoid defining
2713   HAVE_TIMER_CREATE in such cases.  Probing for this properly in configure
2714   would need us to compile and run a test program, which is unhelpful when
2715   cross-compiling, so for now just test against a blacklist of platforms we
2716   know don't provide a suitable timer_create() function.
2718 * Check _POSIX_MONOTONIC_CLOCK and if it's not defined, use CLOCK_REALTIME
2719   instead of CLOCK_MONOTONIC.  The existing hard-coded platform checks still
2720   seem to be needed, as on these platforms CLOCK_MONOTONIC is available for
2721   some functions, but doesn't work with timer_create() for one reason or
2722   another.  But the new check should avoid failures on platforms without any
2723   monotonic clock support.
2725 * Make opt_intrusive_base symbols visible to avoid UBSAN warnings.
2727 * Avoid potential set-but-unused warning - with both chert and glass disabled,
2728   last_docid's final set value isn't used, which GCC doesn't warn about, but
2729   other compilers might.
2731 * Avoid explicit recursive return of void - we've had warnings for such cases
2732   from some compilers in the past, and it's an odd thing to do outside of a
2733   template.
2735 Xapian-core 1.3.6 (2016-05-09):
2737 API:
2739 * TfIdfWeight: Support freq and squared IDF normalisations.  Patch from Vivek
2740   Pal.
2742 * New Xapian::Query::OP_INVALID to provide an "invalid" query object.
2744 * Reject OP_NEAR/OP_PHRASE with non-leaf subqueries early to avoid a
2745   potential segmentation fault if the non-leaf subquery decayed at
2746   just the wrong moment.  See #508.
2748 * Reduce positional queries with a MatchAll or PostingSource subquery to
2749   MatchNothing (since these subqueries have no positional information, so
2750   the query can't match).
2752 * Deprecate ValueRangeProcessor and introduce new RangeProcessor class as
2753   a replacement.  RangeProcessor()::operator()() method returns Xapian::Query,
2754   so a range can expand to any query.  OP_INVALID is used to signal that
2755   a range is not recognised.  Fixes #663.
2757 * Combining of ranges over the same quantity with OP_OR is now handled by
2758   an explicit "grouping" parameter, with a sensible default which works
2759   for value range queries.  Boolean term prefixes and FieldProcessor now
2760   support "grouping" too, so ranges and other filters can now be grouped
2761   together.
2763 * Formally deprecate WritableDatabase::flush().  The replacement commit()
2764   method was added in 1.1.0, so code can be switched to use this and still
2765   work with 1.2.x.
2767 * Fix handling of a self-initialised PIMPL object (e.g. Xapian::Query q(q);).
2768   Previously the uninitialised pointer was copied to itself, resulting in
2769   undefined behaviour when the object was used.  This isn't something you'd see
2770   in normal code, but it's a cheap check which can probably be optimised away
2771   by the compiler (GCC 6 does).
2773 testsuite:
2775 * Fix testcase notermlist1 to check correct table extension - ".glass" not
2776   ".DB" (chert doesn't support DB_NO_TERMLIST).
2778 build system:
2780 * Bootstrap with autoconf 2.69.  This requires GNU m4 >= 4.6, but that should
2781   no longer be an issue on developer machines.
2783 * Fix build with --enable-log.  Debug logging was trying to log
2784   compress_strategy parameter which was removed recently.  Reported by Ankit
2785   Paliwal on xapian-devel.
2787 documentation:
2789 * Fix misfiled deprecation notes.  Various things marked as deprecated and
2790   removed in 1.3.x have in fact been deprecated but not removed (they were just
2791   added to the wrong list).  One instance queried by David Bremner on #xapian,
2792   and a review found several more.
2794 * Improve docs for lcov makefile targets - say that these are targets in the
2795   xapian-core directory (noted by poe_ on #xapian), document
2796   coverage-reconfigure-maintainer-mode target, and clarify what the example of
2797   how to use GENHTML_ARGS actually does.
2799 * Note that Java bindings use xapian/iterator.h.
2801 * Update release checklist.  The script to build the release tarballs now
2802   automates some of the changes needed in trac.
2804 portability:
2806 * Fix build with Android NDK which declares sys_errlist and sys_nerr in the
2807   C library headers, but doesn't actually define them in the library itself.
2808   The configure test now tries to link a trivial program which uses these
2809   symbols.  Patch from Tejas Jogi.
2811 Xapian-core 1.3.5 (2016-04-01):
2813 This release includes all changes from 1.2.23 which are relevant.
2815 API:
2817 * The Snipper class has been replaced with a new MSet::snippet() method.
2818   The implementation has also been redone - the existing implementation was
2819   slower than ideal, and didn't directly consider the query so would sometimes
2820   selects a snippet which doesn't contain any of the query terms (which users
2821   quite reasonably found surprising).  The new implementation is faster, will
2822   always prefer snippets containing query terms, and also understands exact
2823   phrases and wildcards.  Fixes #211.
2825 * Add optional reference counting support for ErrorHandler, ExpandDecider,
2826   KeyMaker, PostingSource, Stopper and TermGenerator.  Fixes #186, reported
2827   by Richard Boulton.  (ErrorHandler's reference counting isn't actually used
2828   anywhere in xapian-core currently, but means we can hook it up in 1.4.x if
2829   ticket #3 gets addressed).
2831 * Deprecate public member variables of PostingSource.  The new getters and/or
2832   setters added in 1.2.23 and 1.3.5 are preferred.  Fixes #499, reported by
2833   Joost Cassee.
2835 * Reimplement MSet and MSetIterator.  MSetIterator internally now counts down
2836   to the end of the MSet, so the end test is now against 0, rather than against
2837   mset.size().  And more of the trivial methods are now inlined, which reduces
2838   the number of relocations needed to load the library, and should give faster
2839   code which is a very similar size to before.
2841 * Only issue prefetch hints for documents if MSet::fetch() is called.  It's not
2842   useful to send the prefetch hint right before the actual read, which was
2843   happening since the implementation of prefetch hints in 1.3.4.  Fixes #671,
2844   reported by Will Greenberg.
2846 * Fix OP_ELITE_SET selection in multi-database case - we were selecting
2847   different sets for each subdatabase, but removing the special case check for
2848   termfreq_max == 0 solves that.
2850 * Remove "experimental" marker from FieldProcessor, since we're happy with the
2851   API as-is.  Reported by David Bremner on xapian-discuss.
2853 * Remove "experimental" marker from Database::check().  We've not had any
2854   negative feedback on the current API.
2856 * Databse::check() now checks that doccount <= last_docid.
2858 * Database::compact() on a WritableDatabase with uncommitted changes could
2859   produce a corrupted output.  We now throw Xapian::InvalidOperationError in
2860   this case, with a message suggesting you either commit() or open the database
2861   from disk to compact from.  Reported by Will Greenberg on #xapian-discuss
2863 * Add Arabic stemmer.  Patch from Assem Chelli in
2864   https://github.com/xapian/xapian/pull/45
2866 * Improve the Arabic stopword list.  Patch from Assem Chelli.
2868 * Make functions defined in xapian/iterator.h 'inline'.
2870 * Don't force the user to specify the metric in the geospatial API -
2871   GreatCircleMetric is probably what most users will want, so a sensible
2872   default.
2874 * Xapian::DBCHECK_SHOW_BITMAP: This was added in 1.3.0 (so has never been in
2875   a stable release) and was superseded by Xapian::DBCHECK_SHOW_FREELIST in
2876   1.3.2, so just remove it.
2878 * Make setting an ErrorHandler a no-op - this feature is deprecated and we're
2879   not aware of anyone using it.  We're hoping to rework ErrorHandler in 1.4.x,
2880   which will be simpler without having to support the current behaviour as well
2881   as the new.  See #3.
2883 testsuite:
2885 * unittest: We can't use Assert() to unit test noexcept code as it throws an
2886   exception if it fails.  Instead set up macros to set a variable and return if
2887   an assertion fails in a unittest testcase, and check that variable in the
2888   harness.
2890 glass backend:
2892 * Make glass the default backend.  The format should now be stable, except
2893   perhaps in the unlikely event that a bug emerges which requires a format
2894   change to address.
2896 * Don't explicitly store the 2 byte "component_of" counter for the first
2897   component of every Btree entry in leaf blocks - instead use one of the upper
2898   bits of the length to store a "first component" flag.  This directly saves 2
2899   bytes per entry in the Btree, plus additional space due to fewer blocks and
2900   fewer levels being needed as a result.  This particularly helps the position
2901   table, which has a lot of entries, many of them very small.  The saving would
2902   be expected to be a little less than the saving from the change which shaved
2903   2 bytes of every Btree item in 1.3.4 (since that saved 2 bytes multiple times
2904   for large entries which get split into multiple items).  A simple test
2905   suggests a saving of several percent in total DB size, which fits that.  This
2906   change reduces the maximum component size to 8194, which affects tables
2907   with a 64KB blocksize in normal use and tables with >= 16KB blocksize with
2908   full compaction.
2910 * Refactor glass backend key comparison - == and < operations are replaced by
2911   a compare() function returns negative, 0 or positive (like strcmp(), memcmp()
2912   and std::string::compare()).  This allows us to avoid a final compare to
2913   check for equality when binary chopping, and to terminate early if the binary
2914   chop hits the exact entry.
2916 * If a cursor is moved to an entry which doesn't exist, we need to step back to
2917   the first component of previous entry before we can read its tag.  However we
2918   often don't actually read its tag (e.g. if we only wanted the key), so make
2919   this stepping back lazy so we can avoid doing it when we don't want to read
2920   the tag.
2922 * Avoid creating std::string objects to hold data when compressing and
2923   decompressing tags with zlib.
2925 * Store minimum compression length per table in the version file, with 0
2926   meaning "don't compress".  Currently you can only change this setting with a
2927   hex editor on the file, but now it is there we can later make use of it
2928   without needing a database format change.
2930 * Database::check() now performs additional consistency checks for glass.
2931   Reported by Jean-Francois Dockes and Bob Cargill via xapian-discuss.
2933 * Database::check(): check docids don't exceed db_last_docid when checking
2934   a single glass table.
2936 * We now throw DatabaseCorruptError in a few cases where it's appropriate
2937   but we didn't previously, in particular in the case where all the files in a
2938   DB have been truncated to zero size (which makes handling of this case
2939   consistent with chert).
2941 * Fix compaction to a single file which already exists.  This was hanging.
2942   Noted by Will Greenberg on #xapian.
2944 chert backend:
2946 * When using 64-bit Xapian::docid, consistently use the actual maximum valid
2947   docid value rather instead of the maximum value the type can hold.
2949 build system:
2951 * Default to only building shared libraries.  Building both shared and static
2952   means having to compile the files which make up the library twice on most
2953   platforms.  Shared libraries are the better option for most users, and if
2954   anyone really wants static libraries they can configure with --enable-static
2955   (or --enable-static=xapian-core if configuring a combined tree with the
2956   bindings).
2958 * Fix XAPIAN_TEST_LINKER_FLAG macro to actually test if it's possible to link
2959   with the option in LDFLAGS - previously we attempted to guess based on
2960   whether the error message from $CXX $flag contained the option name, which
2961   doesn't actually work very well.
2963 documentation:
2965 * Document that OP_WILDCARD expansion limits currently work per sub-db.
2967 * Remove reference to ChangeLog files, as we are no longer updating them.
2969 * Remove link to apidoc.pdf which we no longer generate this by default.
2971 * Clarify LatLongCoord::operator< purpose in API documentation.
2973 * Fix documentation comment typo - LatLongDistancePostingSource is a posting
2974   source, not a match decider!
2976 * HACKING: Recommend lcov 1.11 as it uses much less memory
2978 tools:
2980 * xapian-replicate: Obviously corrupt replicas now self-heal.  If a replica
2981   database fails to open with DatabaseCorruptError then a full copy is now
2982   forced.
2984 portability:
2986 * Eliminate arrays of C strings, which result in relocations at library load
2987   time, slowing startup and making pages containing them unsharable.
2989 * Refactor MSet::fetch() to reduce load time relocations.
2991 debug code:
2993 * Fix to build when configured with --enable-assertions.
2995 * Fix to build when configured with --enable-log.  Reported by Tim McNamara
2996   on #xapian-discuss.
2998 Xapian-core 1.3.4 (2016-01-01):
3000 This release includes all changes from 1.2.22 which are relevant.
3002 API:
3004 * Update to Unicode 8.0.0.  Fixes #680.
3006 * Overhaul database compaction API.  Add a Xapian::Database::compact() method,
3007   with the Database object specifying the source database(s).
3008   Xapian::Compactor is now just a functor to use if you want to control
3009   progress reporting and/or the merging of user metadata.  The existing API
3010   has been reimplemented using the new one, but is marked as deprecated.
3012 * Add support for a default value when sorting.  Fixes #452, patch from
3013   Richard Boulton.
3015 * Make all functor objects non-copyable.  Previously some were, some weren't,
3016   but it's hard to correctly make use of this ability.  Fixes #681.
3018 * Fix use after free with WILDCARD_LIMIT_MOST_FREQUENT.  If we tried to open a
3019   postlist after processing such a wildcard, the postlist hint could be
3020   pointing to a PostList object which had been deleted.  Fixes #696, reported
3021   by coventry.
3023 * Add support for optional reference counting of MatchSpy objects.
3025 * Improve Document::get_description() - the output is now always valid UTF-8,
3026   doesn't contain implementation details like "Document::Internal", and more
3027   clearly reports if the document is linked to a database.
3029 * Remove XAPIAN_CONST_FUNCTION marker from sortable_serialise_() helper, as it
3030   writes to the passed in buffer, so it isn't const or pure.  Fixes
3031   decvalwtsource2 testcase failure when compiled with clang.
3033 * Make PostingSource::set_maxweight() public - it's hard to wrap for the
3034   bindings as a protected method.  Fixes #498, reported by Richard Boulton.
3036 testsuite:
3038 * Add unit test for internal C_isupper(), etc functions.
3040 matcher:
3042 * Optimise value range which is a superset of the bounds.  If the value
3043   frequency is equal to the doccount, such a range is equivalent to MatchAll,
3044   and we now avoid having to read the valuestream at all.
3046 * Optimise OP_VALUE_RANGE when the upper bound can't be exceeded.  In this
3047   case, we now use ValueGePostList instead of ValueRangePostList.
3049 glass backend:
3051 * Shave 2 bytes of every Btree item (which will probably typically reduce
3052   database size by several percent).
3054 * More compact item format for branch blocks - 2 bytes per item smaller.  This
3055   means each branch block can branch more ways, reducing the number of Btree
3056   levels needed, which is especially helpful for cold-cache search times.
3058 * Track an upper bound on spelling word frequency.  This isn't currently used,
3059   but will be useful for improving the spelling algorithm, and we want to
3060   stabilise the glass backend format.  See #225, reported by Philip Neustrom.
3062 * Support 64-bit docids in the glass backend on-disk format.  This changes the
3063   encoding used by pack_uint_preserving_sort() to one which supports 64 bit
3064   values, and is a byte smaller for values 16384-32767, and the same size for
3065   all other 32 bit values.  Fixes #686, from original report by James Aylett.
3067 * Use memcpy() not memmove() when no risk of overlap.
3069 * Store length of just the key data itself, allowing keys to be up to 255 bytes
3070   long - the previous limit was 252.
3072 * Change glass to store DB stats in the version file.  Previously we stored
3073   them in a special item in the postlist table, but putting them in the version
3074   file reduces the number of block reads required to open the database, is
3075   simpler to deal with, and means we can potentially recalculate tight upper
3076   and lower bounds for an existing database without having to commit a new
3077   revision.
3079 * Add support for a single-file variant for glass.  Currently such databases
3080   can only be opened for reading - to create one you need to use
3081   xapian-compact (or its API equivalent).  You can embed such databases within
3082   another file, and open them by passing in a file descriptor open on that file
3083   and positioned at the offset the database starts at).  Database::check() also
3084   supports them.  Fixes #666, reported by Will Greenberg (and previously
3085   suggested on xapian-discuss by Emmanuel Engelhart).
3087 * Avoid potential DB corruption with full-compaction when using 64K blocks.
3089 * Where posix_fadvise() is available, use it to prefetch postlist Btree blocks
3090   from the level below the root block which will be needed for postlists of
3091   terms in the query, and similarly for the docdata table when MSet::fetch() is
3092   called.  Based on patch by Will Greenberg in #671.
3094 chert backend:
3096 * Where posix_fadvise() is available, use it to prefetch postlist Btree blocks
3097   from the level below the root block which will be needed for postlists of
3098   terms in the query, and similarly for the record table when MSet::fetch() is
3099   called.  Based on patch by Will Greenberg in #671.
3101 remote backend:
3103 * Fix hook for remote support of user weighting schemes.  The commented-out
3104   code used entirely the wrong class - now we use the server object we have
3105   access to, and forward the method to the class which needs it.
3107 build system:
3109 * New configure options --enable-64bit-docid and --enable-64bit-termcount,
3110   which control the size of these types.  Because these types are used in
3111   the API, libraries built with different combinations of them won't be ABI
3112   compatible.  Based heavily on patch from James Aylett and Dylan Griffith.
3113   Fixes #385.
3115 * Sort out hiding most of the internal symbols which had public visibility
3116   for various reason.  Mostly addresses #63.
3118 tools:
3120 * xapian-inspect: We no longer install this - it's really an aid to Xapian
3121   development rather than a user tool.
3123 portability:
3125 * Minimum supported GCC version is now documented as GCC 4.7, for C++11
3126   support.  Previously we documented 4.7 as the oldest known to work.
3128 * Use CLOCK_REALTIME with timer_create() on Cygwin.
3130 * Don't include winsock headers on Cygwin.  Instead include <arpa/inet.h> for
3131   htons() and htonl().
3133 * Handle AI_ADDRCONFIG not being defined by some mingw versions.
3135 * Fix to handle mingw now providing a nanosleep() function.
3137 * Use WSAAddressToString instead of inet_ntop under __WIN32__ - at least under
3138   mingw we don't seem to have inet_ntop().
3140 * Fix testsuite to compile when S_ISSOCK() isn't defined.
3142 debug code:
3144 * Add missing parameters to debug logging for a few methods.
3146 Xapian-core 1.3.3 (2015-06-01):
3148 This release includes all changes from 1.2.20-1.2.21 which are relevant.
3150 API:
3152 * Database:
3154   + Add new flag Xapian::DB_RETRY_LOCK which allows opening a database for
3155     writing to wait until it can get a write lock.  (Fixes #275, reported by
3156     Richard Boulton).
3158   + Fix Database::get_doclength_lower_bound() over multiple databases when some
3159     are empty or consist only of zero-length documents.  Previously this would
3160     report a lower bound of zero, now it reports the same lowest bound as a
3161     single database containing all the same documents.
3163   + Database::check(): When checking a single table, handle the ".glass"
3164     extension on glass database tables, and use the extension to guide the
3165     decision of which backend the table is from.
3167 * Query:
3169   + Add new OP_WILDCARD query operator, which expands wildcards lazily, so now
3170     we create the PostList tree for a wildcard directly, rather than creating
3171     an intermediate Query tree.  OP_WILDCARD offers a choice of ways to limit
3172     wildcard expansion (no limit, throw an exception, use the first N by term
3173     name, or use the most frequent N).  (See tickets #48 and #608).
3175 * QueryParser:
3177   + Add new set_max_expansion() method which provides access to OP_WILDCARD's
3178     choice of ways to limit expansion and can set limits for partial terms as
3179     well as for wildcards.  Partial terms now default to the 100 most frequent
3180     matching terms.  (Completes #608, reported by boomboo).
3182   + Deprecate set_max_wildcard_expansion() in favour of set_max_expansion().
3184 * Add support for optional reference counting of FieldProcessor and
3185   ValueRangeProcessor objects.
3187 testsuite:
3189 * If command line option --verbose/-v isn't specified, set the verbosity level
3190   from environmental variable VERBOSE.
3192 * Re-enable replicate3 for glass, as it no longer fails.
3194 * Add more test coverage for get_unique_terms().
3196 * Don't leave an extra fd open when starting xapian-tcpsrv for remotetcp tests.
3198 glass backend:
3200 * When reporting freelist errors during a database check, distinguish between a
3201   block in use and in the freelist, and a block in the freelist more than once.
3203 * Fix compaction and database checking for the change to the format of keys
3204   in the positionlist table which happened in 1.3.2.
3206 * After splitting a block, we always insert the new block in the parent right
3207   after the block it was split from - there's no need to binary chop.
3209 * Avoid infinite recursion when we hit the end of the freelist block we're
3210   reading and the end of the block we're writing at the same time.
3212 * Fix freelist handling to allow for the newly loaded first block of the
3213   freelist being already used up.
3215 chert backend:
3217 * Fix problems with get_unique_terms() on a modified chert database.
3219 * Fix xapian-check on a single chert table, which seg faulted in 1.3.2.
3221 remote backend:
3223 * Avoid dividing zero by zero when calculating the average length for an empty
3224   database.
3226 build system:
3228 * Merge generate-allsnowballheaders script into collate-sbl.
3230 portability:
3232 * A compiler with good support for C++11 is now required to build Xapian.
3233   Most of the actively developed C++ compilers already have decent support,
3234   or are close to having it, and it makes development easier and more
3235   efficient.  Currently known to work: GCC >= 4.7, recent versions of clang
3236   (3.5 works).  Solaris Studio 12.4 compiles the code, but tests currently
3237   fail.  IBM's xlC doesn't support enough of C++11 yet.  HP's aCC hasn't
3238   been tested, but its documentation suggests it also doesn't support enough
3239   of C++11 yet.
3241 * Drop workarounds and special cases for old versions of various compilers
3242   which don't support C++11.
3244 * Use C++11's static_assert() and unique_ptr instead of custom implementations
3245   of equivalent functionality.
3247 * Building on OS/2 with EMX is no longer supported - EMX was last updated in
3248   2001 and comes with GCC 3.2.1, which is much too old to support C++11.
3250 * Building with SGI's and Compaq's C++ compilers is no longer supported -
3251   both seem to have ceased development, and don't support C++11.
3253 * Building with STLport is no longer supported - STLport was last released in
3254   2008, so it's no longer actively developed and won't support C++11.
3256 * Building on IRIX is no longer supported, because IRIX has reached end of
3257   life.
3259 * Disable "<FUNCTION> is expected to return a value" warning from Sun's C++
3260   compiler, as it fires for functions which end in a "throw" statement.
3261   Genuine instances of missing return values will be caught by compilers with
3262   superior warning machinery.
3264 * Fix warning from GCC 5.1 where template expansion leads to the comparison
3265   (bool_value < 255) which is always true.  Warning introduced by changes in
3266   1.3.2.
3268 * Use getaddrinfo() instead of gethostbyname(), since the latter may not be
3269   thread-safe, and as a step towards IPv6 support (see #374), but currently we
3270   still only look for IPv4 addresses.
3272 * timer_create() seems to always fail on AIX with EAGAIN, so just skip the
3273   matchtimelimit1 testcase there.
3275 * Under __WIN32__, we need to specify Vista as the minimum supported version to
3276   get the AI_ADDRCONFIG flag.  Older versions seem to all be out of support
3277   anyway.
3279 * Change configure probe for log2() to check for a declaration in <cmath>
3280   to get it to fix build on Solaris with Sun C++.  C++11 compilers should all
3281   provide log2(), but let's not rely on that just yet as it's easy to provide a
3282   fallback implementation.
3284 * Use scalbn() instead of ldexp() where possible (which we can in all cases
3285   when FLT_RADIX == 2, as it is on pretty much all current platforms).  On
3286   overflow and underflow ldexp() sets errno, which it seems better to avoid
3287   doing.
3289 * The list of stemmers is now in the same static const struct as the version
3290   info, and Stem::get_available_languages() is just an inlined wrapper which
3291   fetches this structure and returns the appropriate member.  This saves a
3292   relocation, reducing library load time a little.
3294 * Remove "pure" attribute from API functions which could throw an exception.
3295   These functions aren't really pure, and while we're happy for calls to them
3296   to be CSE-ed or eliminated entirely, the compiler might make more assumptions
3297   than that about a pure function - clang seems to assume pure => nothrow and
3298   an exception from such a function can't be caught.
3300 * Remove "pure" attribute from sortable_unserialise(), which can raise floating
3301   point exceptions FE_OVERFLOW and FE_UNDERFLOW.
3303 * Add "nothrow" attribute to more API functions which will never throw an
3304   exception.
3306 * Make sortable_serialise() an inlined wrapper around a function which won't
3307   throw and can be flagged with attribute 'const'.
3309 * Tweak sortable_unserialise() not to compare with a fixed string by
3310   constructing a temporary std::string object (which could throw
3311   std::bad_alloc), and mark it as XAPIAN_NOTHROW.
3313 debug code:
3315 * Only enable assertions in sortable_serialise() and sortable_unserialise() in
3316   the testsuite (since these functions shouldn't throw exceptions), and move
3317   the tests of these functions from queryparsertest to unittest to facilitate
3318   this.
3320 * Add more assertions to the glass backend code.
3322 Xapian-core 1.3.2 (2014-11-24):
3324 This release includes all changes from 1.2.16-1.2.19 which are relevant.
3326 API:
3328 * Update Unicode character database to Unicode 7.0.0.
3330 * New Xapian::Snipper class from Mihai Bivol's GSOC 2012 project.  (mostly
3331   fixes #211)
3333 * Fix all get_description() methods to always return UTF-8 text.  (fixes #620)
3335 * Database::check():
3337   + Alter to take its "out" parameter as a pointer to std::ostream instead of a
3338     reference, and make passing NULL mean "do not produce output", and make
3339     the second and third parameters optional, defaulting to a quiet check.
3341   + Escape invalid UTF-8 data in keys and tags reported by xapian-check, using
3342     the same code we use to clean up strings returned by get_description()
3343     methods.
3345   + Correct failure message which talks above the root block when it's actually
3346     testing a leaf key.
3348   + Rename DBCHECK_SHOW_BITMAP to DBCHECK_SHOW_FREELIST (old name still
3349     provided for now, but flagged as deprecated - DBCHECK_SHOW_BITMAP was new
3350     in 1.3.0, so will likely be removed before 1.4.0).
3352 * Methods and functions which take a string to unserialise now consistently
3353   call that parameter "serialised".
3355 * Weight: Make number of distinct terms indexing each document and the
3356   collection frequency of the term available to subclasses.  Patch from
3357   Gaurav Arora's Language Modelling branch.
3359 * WritableDatabase: Add support for multiple subdatabases, and support opening
3360   a stub database containing multiple subdatabases as a WritableDatabase.
3362 * WritableDatabase can now be constructed from just a pathname (defaulting to
3363   opening the database with DB_CREATE_OR_OPEN).
3365 * WritableDatabase: Add flags which can be bitwise OR-ed into the second
3366   argument when constructing:
3368   + Xapian::DB_NO_SYNC: to disable use of fsync, etc
3370   + Xapian::DB_DANGEROUS: to enable in-place updates
3372   + Xapian::DB_BACKEND_CHERT: if creating, create a chert database
3374   + Xapian::DB_BACKEND_GLASS: if creating, create a glass database
3376   + Xapian::DB_NO_TERMLIST: create a database without a termlist (see #181)
3378   + Xapian::DB_FULL_SYNC flag - if this is set for a database, we use the Mac
3379     OS X F_FULL_SYNC instead of fdatasync()/fsync()/etc on the version file
3380     when committing.
3382 * Database: Add optional flags argument to constructor - the following can be
3383   bitwise OR-ed into it:
3385   + Xapian::DB_BACKEND_CHERT (only open a chert database)
3387   + Xapian::DB_BACKEND_GLASS (only open a glass database)
3389   + Xapian::DB_BACKEND_STUB (only open a stub database)
3391 * Xapian::Auto::open_stub() and Xapian::Chert::open() are now deprecated in
3392   favour of these new flags.
3394 * Add LMWeight class, which implements the Unigram Language Modelling weighting
3395   scheme.  Patch from Gaurav Arora.
3397 * Add implementations of a number of DfR weighting schemes (BB2, DLH, DPH,
3398   IfB2, IneB2, InL2, PL2).  Patches from Aarsh Shah.
3400 * Add support for the Bo1 query expansion scheme.  Patch from Aarsh Shah.
3402 * Add Enquire::set_time_limit() method which sets a timelimit after which
3403   check_at_least will be disabled.
3405 * Database: Trying to perform operations on a database with no subdatabases now
3406   throws InvalidOperationError not DocNotFoundError.
3408 * Query: Implement new OP_MAX query operator, which returns the maximum weight
3409   of any of its subqueries.  (see #360)
3411 * Query: Add methods to allow introspection on Query objects - currently you
3412   can read the leaf type/operator, how many subqueries there are, and get a
3413   particular subquery.  For a query which is a term, Query::get_terms_begin()
3414   allows you to get the term.  (see #159)
3416 * Query: Only simplify OP_SYNONYM with a single subquery if that subquery is a
3417   term or MatchAll.
3419 * Avoid two vector copies when storing term positions in most common cases.
3421 * Reimplement version functions to use a single function in libxapian which
3422   returns a pointer to a static const struct containing the version
3423   information, with inline wrappers in the API header which call this.  This
3424   means we only need one relocation instead of 4, reducing library load time a
3425   little.
3427 * Make TermGenerator flags an anonymous enum, and typedef TermGenerator::flags
3428   to int for backward compatibility with existing user code which uses it.
3430 * Stem: Fix incorrect Unicode codepoints for o-double-acute and u-double-acute
3431   in the Hungarian Snowball stemmer.  Reported by Tom Lane to snowball-discuss.
3433 * Stem: Add an early english stemmer.
3435 * Provide the stopword lists from Snowball plus an Arabic one, installed in
3436   ${prefix}/share/xapian-core/stopwords/.  Patch from Assem Chelli, fixes #269.
3438 * Improve check for direct inclusion of Xapian subheaders in user code to
3439   catch more cases.
3441 * Add simple API to help with creating language-idiomatic iterator wrappers
3442   in <xapian/iterator.h>.
3444 testsuite:
3446 * Extend checkstatsweight1 to check that Weight::get_collection_freq() returns
3447   the same number as Database::get_collection_freq().
3449 * queryparsertest: Add testcase for FieldProcessor on boolean prefix with
3450   quoted contents.
3452 * queryparsertest: Enable some disabled cases which actually work (in some
3453   cases with slightly tweaked expected answers which are equivalent to those
3454   that were shown).
3456 * Make use of the new writable multidatabase feature to simplify the
3457   multi-database handling in the test harness.
3459 * Change querypairwise1_helper to repeat the query build 100 times, as with a
3460   fast modern machine we were sometimes trying with so many subqueries that we
3461   would run out of stack.
3463 * apitest: Use Xapian::Database::check() in cursordelbug1.  (partly addresses
3464   #238)
3466 * apitest: Test Query ops with a single MatchAll subquery.
3468 * apitest: New testcase readonlyparentdir1 to ensure that commit works with a
3469   read-only parent directory.
3471 matcher:
3473 * Streamline collation of statistics for use by weighting schemes - tests show
3474   a 2% or so increase in speed in some cases.
3476 * If a term matches all documents and its weight doesn't depend on its wdf, we
3477   can optimise it to MatchAll (the previous requirement that maxpart == 0 was
3478   unnecessarily strict).
3480 * Fix the check for a term which matches all documents to use the sub-db
3481   termfreq, not the combined db termfreq.
3483 * When we optimise a postlist for a term which matches all documents to use
3484   MatchAll, we still need to set a weight object on it to get percentages
3485   calculated correctly.
3487 glass backend:
3489 * 'brass' backend renamed to 'glass' - we decided to use names in ascending
3490   alphabetical order to make it easier to understand which backend is newest,
3491   and since 'flint' was used recently, we skipped over 'd', 'e' and 'f'.
3493 * Change positionlist keys to be ordered by term first rather than docid first,
3494   which helps phrase searching significantly.  For more efficient indexing,
3495   positionlist changes are now batched up in memory and written out in key
3496   order.
3498 * Use a separate cursor for each position list - now we're ordering the
3499   position B-tree by term first, phrase matching would cause a single cursor
3500   to cycle between disparate areas of the B-tree and reread the same blocks
3501   repeatedly.
3503 * Reference count blocks in the btree cursor, so cursors can cheaply share
3504   blocks.  This can significantly reduce the amount of memory used by cursors
3505   for queries which contain a lot of terms (e.g. wildcards which expand to a
3506   lot of terms).
3508 * Under glass, optimise the turning of a query into a postlist to reuse the
3509   cursor blocks which are the same as the previous term's postlist.  This is
3510   particularly effective for a wildcard query which expands to a lot of terms.
3512 * Keep track of unused blocks in the Btrees using freelists rather than
3513   bitmaps.  (fixes #40)
3515 * Eliminate the base files, and instead store the root block and freelist
3516   pointers in the "iamglass" file.
3518 * When compacting, sync all the tables together at the end.
3520 * In DB_DANGEROUS mode, update the version file in-place.
3522 * Only actually store the document data if it is non-empty.  The table which
3523   holds the document data is now lazily created, so won't exist if you never
3524   set the document data.
3526 chert backend:
3528 * Improve DBCHECK_FIX:
3530   + if fixing a whole database, we now take the revision from the first table
3531     we successfully look at, which should be correct in most cases, and is
3532     definitely better than trying to determine the revision of each broken
3533     table independently.
3535   + handle a zero-sized .DB file.
3537   + After we successfully regenerate baseA, remove any empty baseB file to
3538     prevent it causing problems.  Tracked down with help from Phil Hands.
3540 remote backend:
3542 * Bump remote protocol version to 38.0, due to extra statistics being tracked
3543   for weighting.
3545 * Make Weight::Internal track if any max_part values are set, so we don't need
3546   to serialise them when they've not been set.
3548 build system:
3550 * Fix conditional for enabling replication code - if chert is disabled but
3551   glass isn't, we should still enable it.
3553 * configure: Add hint for which package to install for rst2html
3555 documentation:
3557 * Don't build, ship or install PDF versions of the API docs by default, but
3558   provide an easy way for people to build it for themselves if they want it.
3560 * Convert equations in rst docs to use LaTeX via the math role and directive.
3562 * Actually ship, process and install geospatial.rst.
3564 * postingsource.rst: Use a modern class in postingsource example.  (Noted by
3565   James Aylett)
3567 * Move the protocol docs for the remote and replication protocols into the net/
3568   subdirectory.
3570 * Remove the dir_contents files and all the machinery to handle them.
3572 * HACKING: Note we now use doxygen 1.8.8 for 1.3.x snapshots and releases.
3574 * HACKING: Now using libtool 2.4.3 to bootstrap snapshots and 1.3.x releases.
3576 * HACKING: Now using automake 1.14.1 to bootstrap snapshots and 1.3.x releases.
3578 * HACKING: Drop note about needing git-svn if you're using git - bootstrap now
3579   only uses git-svn if your Xapian tree was checked out using git-svn.
3581 * HACKING: Need sphinx-doc to generate API docs for Python and Python 3 bindings.
3583 * HACKING: Note that MacTeX seems to be the best option if using homebrew.
3585 portability:
3587 * Don't pass an integer argument to log(), to avoid ambiguity errors with xlC
3588   and Sun's C++ compiler.  (fixes #627)
3590 * Fix compilations issues with Sun's C++ compiler (mostly missing library
3591   headers).
3593 * Implement RealTime::now() using clock_gettime() where it's available, since
3594   it can provide nanosecond resolution.
3596 * Implement RealTime::sleep() using nanosleep() where it's available, since it
3597   has a simpler API and a finer resolution than select().
3599 * Use lround() instead of round() in geospatial code, since we want the result
3600   as an int.  GCC 4.4.3 seems to optimise to use lround() anyway, but other
3601   compilers may not.
3603 * Include <math.h> for lround()/round(). (fixes #628)
3605 * Drop code supporting Microsoft Windows 9x which reached EOL in 2006.
3607 * Under C++11, use unique_ptr for AutoPtr.
3609 * Stop using a reference where we may end up passing *NULL, as that's invalid.
3610   Thanks Nick Lewycky and ubsan for helping track this down.
3612 * In DLHWeight and DPHWeight, avoid dividing by zero when the collection size
3613   is 0.
3615 debug code:
3617 * Fix assertion failure when built with --enable-assertions.  The behaviour
3618   when built without assertions happened to be correct.
3620 * Fix assertion in BitReader::decode(), and remove 'Assert(rd);' in two places
3621   where rd is no longer a pointer.
3623 Xapian-core 1.3.1 (2013-05-03):
3625 This release includes all changes from 1.2.10-1.2.15 which are relevant.
3627 API:
3629 * Give an compilation error if user code tries to include API headers other
3630   than xapian.h directly - these other headers are an internal implementation
3631   detail, but experience has shown that some people try to include them
3632   directly.  Please just use '#include <xapian.h>' instead.
3634 * Update Unicode character database to Unicode 6.2.0.
3636 * Add FieldProcessor class (ticket#128) - currently marked as an experimental
3637   API while we sort out how best to sort out exactly how it interacts with
3638   other QueryParser features.
3640 * Add implementation of several TF-IDF weighting schemes via a new TfIdfWeight
3641   class.
3643 * Add ExpandDeciderFilterPrefix class which only return terms with a particular
3644   prefix.  (fixes #467)
3646 * QueryParser: Adjust handling of Unicode opening/closing double quotes - if a
3647   quoted boolean term was started with ASCII double quote, then only ASCII
3648   double quote can end it, as otherwise it's impossible to quote a term
3649   containing Unicode double quotes.
3651 * Database::check(): If the database can't be opened, don't emit a bogus
3652   warning about there being too many documents to cross-check doclens.
3654 * TradWeight,BM25Weight: Throw SerialisationError instead of NetworkError if
3655   unserialise() fails.
3657 * QueryParser: Change the default stemming strategy to STEM_SOME, to eliminate
3658   the API gotcha that setting a stemmer is ignored until you also set a
3659   strategy.
3661 * Deprecate Xapian::ErrorHandler.  (ticket#3)
3663 * Stem: Generate a compact and efficient table to decode language names.  This
3664   is both faster and smaller than the approach we were using, with the added
3665   benefit that the table is auto-generated.
3667 * xapian.h:
3669   + Add check for Qt headers being included before us and defining
3670     'slots' as a macro - if they are, give a clear error advising how to work
3671     around this (previously compilation would fail with a confusing error).
3673   + Add a similar check for Wt headers which also define 'slots' as a macro
3674     by default.
3676 testsuite:
3678 * tests/generate-api_generated: Test that the string returned by a
3679   get_description() method isn't empty.
3681 * Use git commit hash in title of test coverage reports generated from a git
3682   tree.
3684 matcher:
3686 * Drop MatchNothing subqueries in OR-like situations in add_subquery() rather
3687   than adding them and then handling it later.
3689 * Handle the left side of AND_NOT and AND_MAYBE being MatchNothing in
3690   add_subquery() rather than in done().
3692 * Handle QueryAndLike with a MatchNothing subquery in add_subquery() rather
3693   than done().
3695 * Query: Multi-way operators now store their subquery pointers in a custom
3696   class rather than std::vector<Xapian::Query>.  The custom class take the
3697   same amount of space, or often less.  It's particularly efficient when
3698   there are two subqueries, which is very desirable as we no longer flatten a
3699   subtree of the same operator as we build the query.
3701 * Optimise an unweighted query term which matches all the documents in a
3702   subdatabase to use the "MatchAll" postlist.  (ticket#387)
3704 brass backend:
3706 * Iterating positional data now decodes it lazily, which should speed up
3707   phrases which include common words.
3709 * Compress changesets in brass replication. Increments the changeset version.
3710   Ticket #348
3712 * Restore two missing lines in database checking where we report a block with
3713   the wrong level.
3715 * When checking if a block was newly allocated in this revision, just look
3716   at its revision number rather than consulting the base file's bitmap.
3718 chert backend:
3720 * Iterating positional data now decodes it lazily, which should speed up
3721   phrases which include common words.
3723 remote backend:
3725 * Prefix compress list of terms and metadata keys in the remote protocol.
3726   This requires a remote protocol major version bump.
3728 build system:
3730 * Fix the 'libxapian' to be 'libxapian-1.3' and 'xapian.m4' to be
3731   'xapian-1.3.m4' (this was supposed to be the case for 1.3.0, but the
3732   change wasn't made correctly).
3734 * Remove support for 'configure --enable-quiet', 'make QUIET=' and 'make
3735   QUIET=y' - automake now supports 'configure --enable-silent-rules', 'make
3736   V=1' and 'make V=0' which are broadly equivalent and more standard.
3738 * configure: If we fail to find a function needed for the remote backend, don't
3739   autodisable it - it's more helpful to error out so the use can decide if they
3740   want to pass --disable-backend-remote to disable it, or work out what values
3741   to pass for LIBS, etc to make it work.  This also matches what we do for the
3742   disk based backends.
3744 * automake 1.13.1 is now used to generate snapshots and releases.
3746 * Add check-syntax make target to support editor syntax checks.
3748 * Fix to build when configured with --disable-backend-brass
3749   --disable-backend-chert.  (ticket#586)
3751 * Generate a check for compatible _DEBUG settings if built with MSVC.
3752   (ticket#389)
3754 * If you run "make coverage-check" by hand, the previous default of compressed
3755   HTML is unhelpful, so don't default to passing --html-gzip to genhtml, but
3756   instead add support for GENHTML_ARGS.
3758 * API methods and functions are now marked as 'const', 'pure', or 'nothrow'
3759   allowing compilers which support such annotations to generate more efficient
3760   code.  (tickets #151, #454)
3762 documentation:
3764 * HACKING: Note which MacPorts are needed for development work.
3766 * docs/remote_protocol.rst: Correct error in documentation of REPLY_DOCDATA
3767   message.
3769 tools:
3771 * xapian-check: Add "fix" option, which currently will regenerate iamchert if
3772   it isn't valid, and will regenerate base files from the .DB files (only
3773   really tested on databases which have just been compacted).
3775 portability:
3777 * Fix warning with GCC in build with assertions enabled.
3779 * common/fileutils.cc: Add safeunistd.h for mkdir, required by GCC 4.7
3780   (reported by Gaurav Arora).
3782 * backends/brass/brass_databasereplicator.cc: Use new/delete to avoid variable
3783   length array gcc extension and comply with c++98
3785 * Mark file descriptors as close-on-exec where supported.
3787 * api/queryinternal.cc: Need <functional> for mem_fun().
3789 * Work around Apple's OS X SDK defining a check() macro.
3791 * Add an option to use a flock() based locking implementation for brass and
3792   chert - this is much simpler than using fcntl() due to saner semantics around
3793   releasing locks when closing other descriptors on the same file (at least on
3794   platforms where flock() isn't just a compatibility wrapper around fcntl()).
3795   Sadly we can't simply switch to this without breaking locking compatibility
3796   with previous releases, but it's useful for platforms without fcntl()
3797   locking (it's enabled for DJGPP) and may be useful for custom builds for
3798   special purposes.
3800 packaging:
3802 * xapian-core.spec: Remove xapian-chert-update.
3804 debug code:
3806 * Building with --enable-log works once again.
3808 Xapian-core 1.3.0 (2012-03-14):
3810 API:
3812 * Update Unicode character database to Unicode 6.1.0.  (ticket#497)
3814 * TermIterator returned by Enquire::get_matching_terms_begin(),
3815   Query::get_terms_begin(), Database::synonyms_begin(),
3816   QueryParser::stoplist_begin(), and QueryParser::unstem_begin() now stores the
3817   list of terms to iterate much more compactly.
3819 * QueryParser:
3821   + Allow Unicode curly double quote characters to start and/or end phrases.
3823   + The set_default_op() method will now reject operators which don't make
3824     sense to set.  The operators which are allowed are now explicitly
3825     documented in the API docs.
3827 * Query: The internals have been completely reimplemented (ticket#280).  The
3828   notable changes are:
3830   + Query objects are smaller and should be faster.
3832   + More readable format for Query::get_description().
3834   + More compact serialisation format for Query objects.
3836   + Query operators are no longer flattened as you build up a tree (but the
3837     query optimiser still combines groups of the same operator).  This means
3838     that Query objects are truly immutable, and so we don't need to copy Query
3839     objects when composing them.  This should also fix a few O(n*n) cases when
3840     building up an n-way query pair-wise.  (ticket#273)
3842   + The Query optimiser can do a few extra optimisations.
3844 * There's now explicit support for geospatial search (this API is currently
3845   marked as experimental).  (ticket#481)
3847 * There's now an API (currently experimental) for checking the integrity of
3848   databases (partly addresses ticket#238).
3850 * Database::reopen() now returns true if the database may have been reopened
3851   (previously it returned void).  (ticket#548)
3853 * Deprecate Xapian::timeout in favour of POSIX type useconds_t.
3855 * Deprecate Xapian::percent and use int instead in the API and our own code.
3857 * Deprecate Xapian::weight typedef in favour of just using double and change
3858   all uses in the API and our own code.  (ticket#560)
3860 * Rearrange members of Xapian::Error to reduce its size (from 48 to 40 bytes on
3861   x86-64 Linux).
3863 * Assignment operators for PositionIterator and TermIterator now return *this
3864   rather than void.
3866 * PositionIterator, PostingIterator, TermIterator and ValueIterator now
3867   handle their reference counts in hand-crafted code rather than using
3868   intrusive_ptr/RefCntPtr, which means the compiler can inline the destructor
3869   and default constructor, so a comparison to an end iterator should now
3870   optimise to a simple NULL pointer check, but without the issues which the
3871   ValueIteratorEnd_ proxy class approach had (such as not working in templates
3872   or some cases of overload resolution).
3874 * Enquire:
3876   + Previously, Enquire::get_matching_terms_begin() threw InvalidArgumentError
3877     if the query was empty.  Now we just return an end iterator, which is more
3878     consistent with how empty queries behave elsewhere.
3880   + Remove the deprecated old-style match spy approach of using a MatchDecider.
3882 * Remove deprecated Sorter class and MultiValueSorter subclass.
3884 * Xapian::Stem:
3886   + Add stemmers for Armenian (hy), Basque (eu), and Catalan (ca).
3888   + Stem::operator= now returns a reference to the assigned-to object.
3890 testsuite:
3892 * Make unittest use the test harness, so it gets all the valgrind and fd leak
3893   checks, and other handy features all the other tests have.
3895 * Improve test coverage in several places.
3897 * Compress generated HTML files in coverage report.
3899 flint backend:
3901 * Remove flint backend.
3903 remote backend:
3905 * When propagating exceptions from a remote backend server, the protocol now
3906   sends a numeric code to represent which exception is being propagated, rather
3907   than the name of the type, as a number can be turned back into an exception
3908   with a simple switch statement and is also less data to transfer.
3909   (ticket#471)
3911 * Remote protocol (these changes require a protocol major version bump):
3913   + Unify REPLY_GREETING and REPLY_UPDATE.
3915   + Send (last_docid - doccount) instead of last_docid and (doclen_ubound -
3916     doclen_lbound) instead of doclen_ubound.
3918 * Remove special check which gives a more helpful error message when a modern
3919   client is used against a remote server running Xapian <= 0.9.6.
3921 build system:
3923 * Various changes allow us to now remove XAPIAN_VISIBILITY_DEFAULT from a
3924   number of functions which aren't in the public API (partly addresses
3925   ticket#63).
3927 * configure: For this development series, the library gets a -1.3 suffix and
3928   include files are installed with an extra /xapian-1.3 component to make
3929   parallel installs easier.
3931 * configure: Enable -fshow-column for GCC - things like vim's quickfix mode
3932   will then jump to the appropriate column for a compiler error or warning, not
3933   just the appropriate line.
3935 * Snowball compiler now reports "FILE:LINE:" before each error so tools like
3936   vim's quickfix mode can parse this and bring up the line with the error
3937   automatically.
3939 * docs/doxygen_api.conf.in: Don't generate XML from doxygen for the bindings -
3940   the bindings now do this for themselves.  (ticket#262)
3942 documentation:
3944 * INSTALL: Update GCC details - we now recommend 4.3 or newer (was 4.1), and
3945   note that while 3.1 is the hard minimum requirement, the oldest we've tested
3946   with at all recently was 3.3.
3948 * docs/deprecation.rst: Updated.
3950 tools:
3952 * delve:
3954   + Move delve from examples to bin and rename to xapian-delve.
3956   + Send errors to stderr not stdout.
3958 * xapian-check: Now reports useful descriptions rather than cryptic numeric
3959   codes for B-tree errors.
3961 debug code:
3963 * Add assertions that the index is in range when dereferencing MSetIterator and
3964   ESetIterator.
3966 * Fix various errors in debug logging statements.
3968 * Add QUERY category for debug logging.
3970 Xapian-core 1.2.23 (2016-03-28):
3972 API:
3974 * PostingSource: Public member variables are now wrapped by methods (mostly
3975   getters and/or setters, depending on whether they should be readable,
3976   writable or both).  In 1.3.5, the public members variables have been
3977   deprecated - we've added the replacement methods in 1.2.23 as well to make
3978   it easier for people to migrate over.
3980 chert backend:
3982 * xapian-check now performs additional consistency checks for chert. Reported
3983   by Jean-Francois Dockes and Bob Cargill via xapian-discuss.
3985 documentation:
3987 * Update links to Xapian website and trac to use https, which is now supported,
3988   thanks to James Aylett.
3990 portability:
3992 * On older Linux kernels, rename() of a file within a directory on NFS can
3993   sometimes erroneously fail with EXDEV.  This should only happen if you
3994   try to rename a file across filing systems, so workaround this issue by
3995   retrying up to 5 times on EXDEV (which should be plenty to avoid this
3996   bug, and we don't want to risk looping forever).  Fixes #698, reported by
3997   Mark Dufour.
3999 Xapian-core 1.2.22 (2015-12-29):
4001 API:
4003 * Add FLAG_CJK_NGRAM for QueryParser and TermGenerator.  Has the same effect as
4004   setting the environment variable XAPIAN_CJK_NGRAM.  Fixes #180, reported by
4005   Richard Boulton, with contributions from Pavel Strashkin, Mikkel Kamstrup
4006   Erlandsen and Brandon Schaefer.
4008 * Fix bug parsing multiple non-exclusive filter terms - previously this could
4009   result in such filters effectively being ignored.
4011 * Fix Database::get_doclength_lower_bound() over multiple databases when some
4012   are empty or consist only of zero-length documents.  Previously this would
4013   report a lower bound of zero, now it reports the same lowest bound as a
4014   single database containing all the same documents.
4016 * Make Database::get_wdf_upper_bound("") return 0.
4018 * Mark constructors taking a single argument as "explicit" to avoid unwanted
4019   implicit conversions.
4021 testsuite:
4023 * If command line option --verbose/-v isn't specified, set the verbosity level
4024   from environmental variable VERBOSE.
4026 * Skip timed tests if $AUTOMATED_TESTING is set.  Fixes #553, reported by
4027   Dagobert Michelsen.
4029 * Don't leave an extra fd open when starting xapian-tcpsrv for remotetcp tests.
4031 * apitest: Revert disabling of part of adddoc5 for clang - the test failure was
4032   in fact due to a bug in 1.3.x, and 1.2.x was never affected.
4034 * apitest: Tweak bounds checks in dbstats1 testcase - multi backends should
4035   give tight bounds.
4037 brass backend:
4039 * Format limit on docid now correctly imposed when sizeof(int) > 4.
4041 * Avoid potential DB corruption with full-compaction when using 64K blocks.
4043 chert backend:
4045 * Format limit on docid now correctly imposed when sizeof(int) > 4.
4047 * Avoid potential DB corruption with full-compaction when using 64K blocks.
4049 flint backend:
4051 * Format limit on docid now correctly imposed when sizeof(int) > 4.
4053 * Avoid potential DB corruption with full-compaction when using 64K blocks.
4055 remote backend:
4057 * Fix to handle total document length exceeding 34,359,738,368.  (Fixes #678,
4058   reported by matf).
4060 * Avoid dividing by zero when getting the average length for an empty database.
4062 * Stop apparent error from remote server when read-only client disconnects.  A
4063   read-only client just closes the connection when done, but the server
4064   previously reported "Got exception NetworkError: Received EOF", which sounds
4065   like there was a problem.  Now we just say "Connection closed" here, and
4066   "Connection closed unexpectedly" if the client connects in the middle of an
4067   exchange.  Possibly fixes #654, reported by Germán M. Bravo.
4069 * Give a clearer error message when the client and server remote protocol
4070   versions aren't compatible.
4072 * Check length of key in MSG_SETMETADATA.
4074 build system:
4076 * pkg-config: Fix library name in .pc file to say "xapian" not "xapian-core".
4077   Reported by Eric Lindblad to the xapian-devel list.
4079 * Private symbol decode_length() is no longer visible outside the library.
4081 documentation:
4083 * Stop maintaining ChangeLog files.  They make merging patches harder, and stop
4084   'git cherry-pick' from working as it should.  The git repo history should be
4085   sufficient for complying with GPLv2 2(a).
4087 * Strip out "quickstart" examples which are out of date and rather redundant
4088   with the "simple" examples.
4090 * Correct documentation of Enquire::get_query().  If no query has been set,
4091   the documentation said Xapian::InvalidArgumentError was thrown, but in
4092   fact we just return a default initialised Query object (i.e. Query()).  This
4093   seems reasonable behaviour and has been the case since Xapian 0.9.0.
4095 * Document xapian-compact --blocksize takes an argument.
4097 * Update snowball website link to snowballstem.org.
4099 tools:
4101 * xapian-replicate: Fix replication for files > 4GB on 32-bit platforms.
4102   Previously replication would fail to copy a file whose size didn't fit in
4103   size_t.  Fixes #685, reported by Josh Elsasser.
4105 * xapian-tcpsrv: Better error if -p/--port not specified
4107 * quest: Support `-f cjk_ngram`.
4109 examples:
4111 * xapian-metadata: Extend "list" subcommand to take optional key prefix.
4113 portability:
4115 * Fix new warnings from recent versions of GCC and clang.
4117 * Add spaces between literal strings and macros which expand to literal strings
4118   for C++11 compatibility in __WIN32__-specific code.
4120 * Need <unistd.h> for unlink() on FreeBSD, reported by Germán M. Bravo via
4121   github PR 72.
4123 * Fix testsuite to build when S_ISSOCK() isn't defined.
4125 * Don't provide our own implementation of sleep() under __WIN32__ if there
4126   already is one - mingw provides one, and in some situations it seems to clash
4127   with ours.  Reported to xapian-discuss by John Alveris.
4129 * Add missing '#include <arpa/inet.h>' to htons().  Seems to be implicitly
4130   included on most platforms, but Interix needs it.  Reported by Eric Lindblad
4131   on xapian-discuss.
4133 * Disable "<FUNCTION> is expected to return a value" warning from Sun's C++
4134   compiler, as it fires for functions ending in a "throw" statement.  Genuine
4135   instances will be caught by compilers with superior warning machinery.
4137 * Prefer scalbn() to ldexp() where possible, since the former doesn't ever set
4138   errno.
4140 * '#include <config.h>' in the "simple" examples, as when compiling with xlC on
4141   AIX, _LARGE_FILES gets defined by AC_SYS_LARGEFILE to enable large file
4142   support, and defining this changes the ABI of std::string, so it also needs
4143   to be defined when compiling code using Xapian.
4145 * On cygwin, include <arpa/inet.h> instead of winsock headers for htons() and
4146   htonl().
4148 * Include <cygwin/version.h> for CYGWIN_VERSION_API_MAJOR.
4150 * Avoid referencing static members via an object in that object's own
4151   definition, as this doesn't work with all compilers (noted with GCC 3.3), and
4152   is a bit of an odd construct anyway.  Reported by Eric Lindblad on
4153   xapian-discuss.
4155 * GCC < 3.4.2 lacks operator<< overloads for unsigned long long on some
4156   platforms, so simply work around this by using str(), as this isn't
4157   performance sensitive code.  Reported by Eric Lindblad on xapian-discuss.
4159 * Fix delete which should be delete[] in brass backend cursor code.
4161 Xapian-core 1.2.21 (2015-05-20):
4163 API:
4165 * QueryParser: Extend the set of characters allowed in the start of a range to
4166   be anything except for '(' and characters <= ' '.  This better matches what's
4167   accepted for a range end (anything except for ')' and characters <= ' ').
4168   Reported by Jani Nikula.
4170 matcher:
4172 * Reimplement OP_PHRASE for non-exact phrases.  The previous implementation was
4173   buggy, giving both false positives and false negatives in rare cases when
4174   three or more terms were involved.  Fixes #653, reported by Jean-Francois
4175   Dockes.
4177 * Reimplement OP_NEAR - the new implementation consistently requires the terms
4178   to occur at different positions, and fixes some previously missed matches.
4180 * Fix a reversed check for picking the shorter position list for an exact
4181   phrase of two terms.  The difference this makes isn't dramatic, but can be
4182   measured (at least with cachegrind).  Thanks to kbwt for spotting this.
4184 * When matching an exact phrase, if a term doesn't occur where we want, use
4185   its actual position to advance the anchor term, rather than just checking
4186   the next position of the anchor term.
4188 brass backend:
4190 * Fix cursor versioning to consider cancel() and reopen() as events where
4191   the cursor version may need incrementing, and flag the current cursor version
4192   as used when a cursor is rebuilt.  Fixes #675, reported by Germán M. Bravo.
4194 * Avoid using file descriptions < 3 for writable database tables, as it risks
4195   corruption if some code in the same process tries to write to stdout or
4196   stderr without realising it is closed.  (Partly addresses #651)
4198 chert backend:
4200 * Fix cursor versioning to consider cancel() and reopen() as events where
4201   the cursor version may need incrementing, and flag the current cursor version
4202   as used when a cursor is rebuilt.  Fixes #675, reported by Germán M. Bravo.
4204 * Avoid using file descriptions < 3 for writable database tables, as it risks
4205   corruption if some code in the same process tries to write to stdout or
4206   stderr without realising it is closed.  (Partly addresses #651)
4208 flint backend:
4210 * Fix cursor versioning to consider cancel() and reopen() as events where
4211   the cursor version may need incrementing, and flag the current cursor version
4212   as used when a cursor is rebuilt.  Fixes #675, reported by Germán M. Bravo.
4214 remote backend:
4216 * Fix sort by value when multiple databases are in use and one or more are
4217   remote.  This change necessitated a minor version bump in the remote
4218   protocol.  Fixes #674, reported by Dylan Griffith.  If you are upgrading a
4219   live system which uses the remote backend, upgrade the servers before the
4220   clients.
4222 build system:
4224 * The compiler ABI check in the public API headers now issues a warning
4225   (instead of an error) for an ABI mismatch for ABI versions 2 and later
4226   (which means GCC >= 3.4).  The changes in these ABI versions are bug fixes
4227   for corner cases, so there's a good chance of things working - e.g. building
4228   xapian-bindings with GCC 5.1 (which defaults to ABI version 8) against
4229   xapian-core built with GCC 4.9 (which defaults to ABI version 2) seems to
4230   work OK.  A warning is still useful as a clue to what is going on if linking
4231   fails due to a missing symbol.
4233 * xapian-config,xapian-core.pc: When compiling with xlC on AIX, the reported
4234   --cxxflags/--cflags now include -D_LARGE_FILES=1 as this is defined for the
4235   library, and defining it changes the ABI of std::string with this compiler,
4236   so it must also be defined when building code using the Xapian API.
4238 * xapian-core.pc: Include --enable-runtime-pseudo-reloc in --libs output for
4239   mingw and cygwin, like xapian-config does.
4241 * xapian-core.pc: Fix include directory reported by `pkg-config --cflags`.
4242   This bug was harmless if xapian-core was installed to a directory which was
4243   on the default header search path (such as /usr/include).
4245 * xapian-config: Fix typo so cached result of test in is_uninstalled() is
4246   actually used on subsequent calls.  Fixes #676, reported (with patch) by Ryan
4247   Schmidt.
4249 * configure: Changes in 1.2.19 broke the custom macro we use to probe for
4250   supported compiler flags such that the flags never got used.  This release
4251   fixes this problem.
4253 * configure: Set default value for AUTOM4TE before AC_OUTPUT so the default
4254   will actually get used.  Only relevant when building in maintainer mode
4255   (e.g. from git).
4257 * soaktest: Link with libtool's '-no-install' or '-no-fast-install', like we
4258   already do for other test programs, which means that libtool doesn't need to
4259   generate shell script wrappers for them on most platforms.
4261 documentation:
4263 * API documentation: Minor wording tweaks and formatting improvements.
4265 * docs/deprecation.rst: Add deprecation of omindex --preserve-nonduplicates
4266   which happened in 1.2.4.
4268 * HACKING: Update URL.
4270 * HACKING: libtool 2.4.6 is now used for bootstrapping snapshots and releases.
4272 tools:
4274 * xapian-compact: Make sure we open all the tables of input databases at the
4275   same revision.  (Fixes #649)
4277 * xapian-metadata: Add 'list' subcommand to list all the metadata keys.
4279 * xapian-replicate: Fix connection timeout to be 10 seconds rather than 10000
4280   seconds (the incorrect timeout has been the case since 1.2.3).
4282 * xapian-replicate: Set SO_KEEPALIVE for xapian-replicate's connection to the
4283   master, and add command line option to allow setting socket-level timeouts
4284   (SO_RCVTIMEO and SO_SNDTIMEO) on platforms that support them.  Fixes #546,
4285   reported by nkvoll.
4287 * xapian-replicate-server: Avoid potentially reading uninitialised data if a
4288   changeset file is truncated.
4290 portability:
4292 * Add spaces between literal strings and macros which expand to literal strings
4293   for C++11 compatibility.
4295 * ValueCountMatchSpy::top_values_begin(): Fix the comparison function not to
4296   return true for two equal elements, which manifests as incorrect sorting in
4297   some cases when using clang's libc++ (which recent OS X versions do).
4299 * apitest: The adddoc5 testcase fails under clang due to an exception handling
4300   bug, so just #ifdef out the problematic part of the testcase when building
4301   with clang for now.
4303 * Fix clang warnings on OS X.  Reported by Germán M. Bravo.
4305 * Fix examples to build with IBM's xlC compiler on AIX - they were failing due
4306   to _LARGE_FILES being defined for the library build but not for the examples,
4307   and defining this changes the ABI of std::string with this compiler.
4309 * configure: Improve the probe for whether the test harness can use RTTI to
4310   work for IBM's xlC compiler (which defaults to not generating RTTI).
4312 * Fix to build with Sun's C++ compiler.
4314 * Use F_DUPFD where available to dup to a file descriptor which is >= 2, rather
4315   than calling dup() until we get one.
4317 * When unserialising a double, avoid reading one byte past the end of the
4318   serialised value.  In practice this was harmless on most platforms, as
4319   dbl_max_mantissa is 255 for IEEE-754 format doubles, and at least GCC's
4320   std::string keeps the buffer nul-terminated.  Reported by Germán M. Bravo in
4321   github PR#67.
4323 * When unserialising a double, add missing cast to unsigned char when we check
4324   if the value will fit in the double type.  On machines with IEEE-754 doubles
4325   (which is most current platforms) this happened to work OK before.  It would
4326   also have been fine on machines where char is unsigned by default.
4328 * Fix incorrect use of "delete" which should be "delete []".  This is
4329   undefined behaviour in C++, though the type is POD, so in practice this
4330   probably worked OK on many platforms.
4332 debug code:
4334 * Fix some overly strict assertions in flint, which caused apitest's
4335   cursordelbug1 to fail with assertions on.
4337 Xapian-core 1.2.20 (2015-03-04):
4339 chert backend:
4341 * After splitting a block, we always insert the new block in the parent right
4342   after the block it was split from - there's no need to binary chop.
4344 build system:
4346 * Generate and install a file for pkg-config.  (Fixes#540)
4348 * configure: Update link to cygwin FAQ in error message.
4350 documentation:
4352 * include/xapian/weight.h: Document the enum stat_flags values.
4354 * docs/postingsource.rst: Use a modern class in postingsource example.  (Noted
4355   by James Aylett)
4357 * docs/deprecation.rst,docs/replication.rst: Fix typos.
4359 * Update doxygen configuration files to avoid warnings about obsolete tags from
4360   newer doxygen versions.
4362 * HACKING: Update details of building Xapian packages.
4364 tools:
4366 * xapian-check: For chert and brass, cross-check the position and postlist
4367   tables to detect positional data for non-existent documents.
4369 portability:
4371 * When locking a database for writing, use F_OFD_SETLK where available, which
4372   avoids having to fork() a child process to hold the lock.  This currently
4373   requires Linux kernel >= 3.15, but it has been submitted to POSIX so
4374   hopefully will be widely supported eventually.  Thanks to Austin Clements for
4375   pointing out this now exists.
4377 * Fix detection of fdatasync(), which appears to have been broken practically
4378   forever - this means we've probably been using fsync() instead, which
4379   probably isn't a big additional overhead.  Thanks to Vlad Shablinsky for
4380   helping with Mac OS X portability of this fix.
4382 * configure: Define MINGW_HAS_SECURE_API under mingw to get _putenv_s()
4383   declared in stdlib.h.
4385 * Use POSIX O_NONBLOCK in preference to O_NDELAY - the semantics of the latter
4386   differ between BSD and System V.
4388 * According to POSIX, strerror() may not be thread safe, so use alternative
4389   thread-safe ways to translate errno values where possible.
4391 * On Microsoft Windows, avoid defining EADDRINUSE, etc if they're already
4392   defined, and use WSAE* constants un-negated - they start from a high value
4393   so won't collide with E* constants.
4395 debug code:
4397 * Add more assertions to the chert backend code.
4399 Xapian-core 1.2.19 (2014-10-21):
4401 API:
4403 * Xapian::BM25Weight:
4405   + Improve BM25 upper bound in the case when our wdf upper bound > our
4406     document length lower bound.  Thanks to Craig Macdonald for pointing out
4407     this trick.
4409   + Pre-multiply termweight by (param_k1 + 1) rather than doing it for
4410     every weighted term in every document considered.
4412 testsuite:
4414 * Don't report apparent leaks of fds opened on /dev/urandom - at least on
4415   Linux, something in the C library seems to lazily open it, and the report of
4416   a possible leak followed by assurance that it's OK really is just noise we
4417   can do without.
4419 matcher:
4421 * Fix false matches reported for non-exact phrases in some cases.  Fixes the
4422   reduced testcase in #657, reported by Jean-Francois Dockes.
4424 brass backend:
4426 * Only full sync after writing the final base file (only affects Max OS X).
4428 chert backend:
4430 * Only full sync after writing the final base file (only affects Max OS X).
4432 flint backend:
4434 * Only full sync after writing the final base file (only affects Max OS X).
4436 build system:
4438 * For Sun's C++ compiler, pass -library=Crun separately since libtool looks for
4439   " -library=stlport4 " (with the spaces).  (fixes#650)
4441 * Remove .replicatmp (created by the test suite) upon "make clean".
4443 documentation:
4445 * include/xapian/compactor.h: Fix formatting of doxygen comment.
4447 * HACKING: freecode no longer accepts updates, so drop that item from the
4448   release checklist.
4450 * docs/overview.rst: Add missing database path to example of using
4451   xapian-progsrv in a stub database file.
4453 portability:
4455 * Suppress unused typedef warnings from debugging logging macros, which occur
4456   in functions which always exit via throwing an exception when compiling with
4457   recent versions of GCC or clang.
4459 * Fix debug logging code to compile with clang.  (fixes #657, reported by
4460   Germán M. Bravo)
4462 debug code:
4464 * Add missing RETURN() markup for debug logging in a few places, highlighted by
4465   warnings from recent GCC.
4467 * Fix incorrect return types in debug logging annotations so that code compiles
4468   when configured with --enable-log.
4470 Xapian-core 1.2.18 (2014-06-22):
4472 API:
4474 * Document: Fix get_docid() to return the docid for the sub-database (as it
4475   is explicitly documented to) for Document objects passed to functors like
4476   KeyMaker during the match.  (fixes#636, reported by Jeff Rand).
4478 * Document: Don't store the termname in OmDocumentTerm - we were only using it
4479   in get_description() output and an exception message.  Speeds up indexing
4480   etext.txt using simpleindex by 0.4%, and should reduce memory usage a bit
4481   too.  (Change inspired by comments from Vishesh Handa on xapian-devel).
4483 * Database: Iterating the values in a particular slot is now a bit more
4484   efficient for inmemory and remote backends (but still slow compared to
4485   flint, chert and brass).
4487 testsuite:
4489 * apitest: Expand crashrecovery1 to check that the expected base files exist
4490   and ones which shouldn't exist don't.
4492 * queryparsertest: Fix testcase for empty wildcard followed by negation to
4493   enable FLAG_LOVEHATE so the negation is actually parsed.  Fortunately the
4494   fixed testcase passes.
4496 matcher:
4498 * OP_SYNONYM: avoid fetching the doclength if the weighting scheme doesn't
4499   need it and the calculated wdf for the synonym is <= doclength_lower_bound
4500   for the current subdatabase.  (fixes #360)
4502 build system:
4504 * Releases are now bootstrapped with libtool 2.4.2 instead of 2.4, and with
4505   config.guess and config.sub updated to the latest versions.
4507 documentation:
4509 * Add an example of initializing SimpleStopper using a file listing stopwords.
4510   (Patch from Assem Chelli)
4512 * Improve the descriptions of the stem_strategy values in the API docs.
4513   (Reported by "oilap" on #xapian)
4515 * docs/sorting.rst: Fix incorrect parameter types in Xapian::Weight
4516   subclass example.
4518 * docs/glossary.rst: Add definition of "collection frequency".
4520 * HACKING:
4522   + makeindex is now in Debian package texlive-binaries.
4524   + Replace a link to the outdated autotools "goat book" with a link to the
4525     "Portable Shell" chapter of the autoconf manual.
4527 * include/xapian/base.h: Remove very out of date comments talking about atomic
4528   assignment and locking - since 0.5.0 we've adopted a "user locks" policy.
4529   (Reported by Jean-Francois Dockes)
4531 examples:
4533 * delve:
4535   + Add -A <prefix> option to list all terms with a particular prefix.
4537   + Send errors to stderr not stdout.
4539   + If -v is specified more than once, show even more info in some cases.
4540     (NEWS file claimed this was backported in 1.2.15, but it actually wasn't).
4542 * quest:
4544   + Add --default-op option.
4546   + Add --weight option to allow the weighting scheme to be specified.
4548 portability:
4550 * Explicitly '#include <algorithm>' for std::max(), fixing build with VS2013.
4551   (Fixes#641, reported by "boomboo").
4553 * Fix testcase blocksize1 not to try to delete an open database, which isn't
4554   possible under Windows.  (Fixes #643, reported by Chris Olds)
4556 * docs/quickstart.rst: Split --cxxflags and --libs for portability (noted by
4557   "Hurricane Tong" on xapian-devel).
4559 * Fix warnings with clang 5.0.
4561 debug code:
4563 * Add assertions that weighting scheme upper bounds aren't exceeded.
4565 Xapian-core 1.2.17 (2014-01-29):
4567 API:
4569 * Enquire::set_sort_by_relevance_then_value() and
4570   Enquire::set_sort_by_relevance_then_key(): Fix sense of reverse parameter.
4571   Reported by "boomboo" on IRC.
4573 * BM25Weight: Fix case where (k1 == 0 || b == 0) but k2 != 0.  Reported by
4574   "boomboo" on IRC.
4576 * Unicode::tolower(): Fix to give correct results for U+01C5, U+01C8, U+01CB,
4577   and U+01F2 (previously these were left unchanged).
4579 testsuite:
4581 * Automatically probe for and hook in eatmydata to the testsuite using the
4582   wrapper script it now includes.
4584 * Fix apitest to build when brass, chert or flint are disabled.
4586 brass backend:
4588 * Fix handling of invalid block sizes passed to Xapian::Brass::open() - the
4589   size gets fixed as documented, but the uncorrected size was passed to the
4590   base file (and abort() was called if 0 was passed).
4592 * Validate "dir_end" when reading a block.  (fixes #592)
4594 chert backend:
4596 * Fix handling of invalid block sizes passed to Xapian::Chert::open() - the
4597   size gets fixed as documented, but the uncorrected size was passed to the
4598   base file (and abort() was called if 0 was passed).
4600 * Validate "dir_end" when reading a block.  (fixes #592)
4602 flint backend:
4604 * Fix handling of invalid block sizes passed to Xapian::Flint::open() - the
4605   size gets fixed as documented, but the uncorrected size was passed to the
4606   base file (and abort() was called if 0 was passed).
4608 * Validate "dir_end" when reading a block.  (fixes #592)
4610 build system:
4612 * configure: Improve reporting of GCC version.
4614 * Use -no-fast-install on platforms where -no-install causes libtool to emit a
4615   warning.
4617 * docs/Makefile.am: Fix handling of MAINTAINER_NO_DOCS.
4619 * Include UnicodeData.txt and the script to generate the unicode tables from
4620   it.
4622 documentation:
4624 * postingsource.rst: Clarify a couple of points (reported by "vHanda" on IRC).
4626 portability:
4628 * Protect the ValueIterator::check() method against Mac OS X SDK headers
4629   which define a check() macro.
4631 * Fix warning from xlC compiler.
4633 * Avoid use of grep -e in configure, as /usr/bin/grep on Solaris doesn't
4634   support -e.
4636 * Fix check for flags which might be needed for ANSI mode for compilers called
4637   'cxx'.
4639 * configure: Improve handling of Sun's C++ compiler - trick libtool into not
4640   adding -library=Cstd, and prefer -library=stdcxx4 if supported.  Explicitly
4641   add -library=Crun which seems to be required, even though the documentation
4642   suggests otherwise.
4644 Xapian-core 1.2.16 (2013-12-04):
4646 API:
4648 * PositionIterator,PostingIterator,TermIterator,ValueIterator: Don't segfault
4649   if skip_to() or check() is called on an iterator which is already at_end().
4650   Reported by David Bremner.
4652 * ValueCountMatchSpy: get_description() on a default-constructed
4653   ValueCountMatchSpy object no longer fails when xapian-core is built with
4654   --enable-log.
4656 * ValueCountMatchSpy: get_total() on a default-constructed ValueCountMatchSpy
4657   object now returns 0 rather than segfaulting.
4659 testsuite:
4661 * If -v/--verbose is specified more than once to a test program, show the
4662   diagnostic output for passing tests as well as failing/skipped ones.
4664 * queryparsertest: Change qp_scale1 to time 5 repetitions of the large query to
4665   help average out variations.
4667 * queryparsertest: Add test coverage for explicit synonym of a term with a
4668   prefix (e.g. ~foo:search).
4670 * apitest: Remove code from registry* testcases which tries to test the
4671   consequences of throwing an exception from a destructor - it's complex to
4672   ensure we don't leak memory while doing this (it seems GCC doesn't release
4673   the object in this case, but clang does), and it's generally frowned upon,
4674   plus C++11 makes destructors noexcept by default.
4676 * Fix "make check" to actually removed cached databases first, as is
4677   intended.
4679 brass backend:
4681 * When moving a cursor on a read-only table, check if the block we want is in
4682   the internal cursor.  We already do this for a writable table, as it is
4683   necessary for correctness, but it's a cheap check and may avoid asking the
4684   OS for a block we actually already have.
4686 * Correctly report the database as closed rather than 'Bad file descriptor'
4687   in certain cases.
4689 * Reuse a cursor for reading values from valuestreams rather than creating
4690   a new one each time.  This can dramatically reduce the number of blocks
4691   redundantly reread when sorting by value.  The rereads will generally get
4692   served from VM cache, but there's still an overhead to that.
4694 chert backend:
4696 * When moving a cursor on a read-only table, check if the block we want is in
4697   the internal cursor.  We already do this for a writable table, as it is
4698   necessary for correctness, but it's a cheap check and may avoid asking the
4699   OS for a block we actually already have.
4701 * Correctly report the database as closed rather than 'Bad file descriptor'
4702   in certain cases.
4704 * Reuse a cursor for reading values from valuestreams rather than creating
4705   a new one each time.  This can dramatically reduce the number of blocks
4706   redundantly reread when sorting by value.  The rereads will generally get
4707   served from VM cache, but there's still an overhead to that.
4709 flint backend:
4711 * When moving a cursor on a read-only table, check if the block we want is in
4712   the internal cursor.  We already do this for a writable table, as it is
4713   necessary for correctness, but it's a cheap check and may avoid asking the
4714   OS for a block we actually already have.
4716 * Correctly report the database as closed rather than 'Bad file descriptor'
4717   in certain cases.
4719 build system:
4721 * Compress source tarballs with xz instead of gzip.
4723 * Split XAPIAN_LIBS out of XAPIAN_LDFLAGS so that -l flags for libraries
4724   configure detects are needed appear after -L flags specified by the user
4725   that may be needed to find such libraries.  (fixes#626)
4727 * XO_LIB_XAPIAN now handles the user specifying a relative path in
4728   XAPIAN_CONFIG, e.g.: "./configure XAPIAN_CONFIG=../xapian-core/xapian-config"
4730 * Adjust XO_LIB_XAPIAN to strip _gitNNN suffix from snapshot versions.
4732 * configure: Handle git snapshot naming when calculating REVISION.
4734 * configure: Enable -fshow-column for GCC - things like vim's quickfix mode
4735   will then jump to the appropriate column for a compiler error or warning, not
4736   just the appropriate line.
4738 * configure: Report GCC version in configure output.
4740 documentation:
4742 * The API documentation shipped with the release is now generated with
4743   doxygen 1.8.5 instead of 1.5.9, which is most evident in the different
4744   HTML styling newer doxygen uses.
4746 * Document how Utf8Iterator handles invalid UTF-8 in API documentation.
4748 * Improve how descriptions of deprecated features appear in the API
4749   documentation.
4751 * docs/remote_protocol.rst: Correct error in documentation of REPLY_DOCDATA
4752   message.
4754 * docs/overview.rst: Correct documentation for how to specify "prog" remote
4755   databases in stub files.
4757 * Direct users to git in preference to SVN - we'll be switching entirely in
4758   the near future.
4760 tools:
4762 * xapian-chert-update: Fix -b to work rather than always segfaulting (reported
4763   in https://bugs.debian.org/716484).
4765 * xapian-chert-update: The documented alias --blocksize for -b has never
4766   actually been supported, so just drop mentions of it from --help and the man
4767   page.
4769 * xapian-check:
4771   + Fix chert database check that first docid in each doclength chunk is more
4772     than the last docid in the previous chunk - previously this didn't actually
4773     work.
4775   + Fix database check not to falsely report "position table: Junk after
4776     position data" whenever there are 7 unused bits (7 is OK, *more* than 7
4777     isn't).
4779   + Fix to report block numbers correctly for links within the B-tree.
4781   + If the METAINFO key is missing, only report it once per table.
4783   + Fix database consistency checking to always open all the tables at the same
4784     revision - not doing this could lead to false errors being reported after a
4785     commit interrupted by the process being killed or the machine crashing.
4786     Reported by Joey Hess in https://bugs.debian.org/724610
4788 examples:
4790 * quest: Add --check-at-least option.
4792 portability:
4794 * configure: clang doesn't support -Wstrict-null-sentinel or -Wlogical-op, so
4795   don't pass it these options.
4797 * Fix build errors and warnings with mingw.
4799 * Suppress "unused local typedef" warnings from GCC 4.8.
4801 * If the compiler supports C++11, use static_assert to implement
4802   CompileTimeAssert.
4804 * tests/zlib-vg.c: Fix two warnings when compiled with clang.
4806 * Fix failure when built with -D_GLIBCXX_DEBUG - we were modifying the top()
4807   element of a heap before calling pop(), such that the heap comparison
4808   operation (which is called when -D_GLIBCXX_DEBUG is on to verify the heap is
4809   valid) would read off the end of the data.  In a normal build, this issue
4810   would likely never manifest.
4812 * configure: When generating ABI compatibility checks in xapian/version.h, pass
4813   $CXXFLAGS and $CPPFLAGS to $CXXCPP as they could contain options which affect
4814   the ABI (such as -fabi-version for GCC).  (Fixes #622)
4816 * Microsoft GUIDs in binary form have reversed byte order in the first three
4817   components compared to standard UUIDs, so the same database would report a
4818   different UUID on Windows to on other platforms.  We now swap the bytes to
4819   match the standard order.  With this fix, the UUIDs of existing databases
4820   will appear to change on Windows (except in rare "palindronic" cases).
4822 * Fix a couple of issues to get Xapian to build and work on AIX.
4824 * common/safeuuid.h: Remove bogus take-address-of from uuid handling code for
4825   NetBSD and OpenBSD.
4827 * Under cygwin, use cygwin_conv_path() if using a new enough cygwin version,
4828   rather than the now deprecated cygwin_conv_to_win32_path().  Reported by
4829   "Haroogan" on the xapian-devel mailing list.
4831 * common/safeuuid.h: Add missing '#include <cstdlib>' and qualify free with std.
4833 * Fix 'unused label' warning when chert backend is disabled.
4835 * xapian.h: Add check for Wt headers being included before us and defining
4836   'slots' as a macro - if they are, give a clear error advising how to work
4837   around this (previously compilation would fail with a confusing error).
4839 debug code:
4841 * Fix assertion failure for when an OrPostList decays to an AndPostList - the
4842   ordering of the subqueries by estimated termfreq may not be the same as it
4843   was when the OrPostList was constructed, as the subqueries may themselves
4844   have decayed.  Reported by Michel Pelletier.
4846 * Fix -Wcast-qual warning from GCC 4.7 when configured with --enable-log.
4848 Xapian-core 1.2.15 (2013-04-16):
4850 API:
4852 * QueryParser/TermGenerator: Don't include CJK codepoints which are
4853   punctuation in N-grams.
4855 * TermGenerator: Fix bug where we failed to generate the first bigram
4856   from the second sequence of N-grammable CJK characters in a piece of text.
4858 brass backend:
4860 * Call fdatasync()/fsync() when creating the "iambrass" file.
4862 chert backend:
4864 * Call fdatasync()/fsync() when creating the "iamchert" file.
4866 flint backend:
4868 * Call fdatasync()/fsync() when creating the "iamflint" file.
4870 build system:
4872 * XO_LIB_XAPIAN now handles the user specifying XAPIAN_CONFIG without a path,
4873   for example: ./configure XAPIAN_CONFIG=xapian-config-1.3
4875 tools:
4877 * delve: If -v is specified more than once, show even more info in some cases.
4879 portability:
4881 * Fix warning due to needlessly casting away const-ness in debug logging.
4883 * Fix pointer truncation bug in lemon parser generator, which probably affects
4884   regenerating the query parser on WIN64.
4886 debug code:
4888 * Fix to build when configured with --enable-log.
4890 Xapian-core 1.2.14 (2013-03-14):
4892 API:
4894 * MSet::get_document(): Don't cache retrieved Document objects unless they
4895   were requested with fetch().  This avoids using a lot of memory when many
4896   MSet entries are retrieved.  (Fixes #604)
4898 testsuite:
4900 * apitest: Improved test coverage.
4902 matcher:
4904 * Check if a candidate document has at least the minimum weight needed
4905   before checking positional information, which speeds up slow phrase
4906   searches (partly addresses #394).
4908 brass backend:
4910 * Fix multipass compaction not to damage document values, and to merge the
4911   database stats correctly.  (fixes #615)
4913 chert backend:
4915 * Fix multipass compaction not to damage document values, and to merge the
4916   database stats correctly.  (fixes #615)
4918 flint backend:
4920 * Fix multipass compaction bug.  (fixes #615)
4922 tools:
4924 * xapian-replicate:
4926   + Fix handling of delays between replication events - the subtraction of the
4927     target time and the current time was reversed, so we wouldn't sleep when
4928     before the deadline, but would sleep after it for the amount we'd missed it
4929     by.
4931   + On Microsoft Windows, we no longer sleep for more than 43 years if the
4932     target time for a replication event had already passed.  (Fixes #472)
4934 portability:
4936 * matcher/queryoptimiser.cc: Need <functional> for mem_fun().
4938 * tests/harness/testsuite.cc: Don't provide explicit template types to
4939   make_pair - it isn't useful, and breaks with C++11.  Fixes build error with
4940   MSVC2012.
4942 * examples/quest.cc: Fix to build with Sun Studio 12 compiler.  (ticket#611)
4944 Xapian-core 1.2.13 (2013-01-09):
4946 API:
4948 * TermGenerator: Add new method TermGenerator::set_max_word_length() to allow
4949   this limit to be adjusted by the user.
4951 * QueryParser: Implicitly close any unclosed brackets at the end of the query
4952   string.  Patch from Sehaj Singh Kalra.
4954 * DateValueRangeProcessor: Add extra constructor overloaded form so that in
4955   DateValueRangeProcessor(1, "date:"), the const char * gets interpreted as
4956   std::string rather than bool.
4958 testsuite:
4960 * apitest: Assorted test coverage improvements.
4962 * When reporting valgrind errors, skip any warnings before the error in the
4963   valgrind log.
4965 matcher:
4967 * Improved fix for #590 - count all matching LeafPostList objects with a Weight
4968   object rather than trying to prune at the MultiAndPostList level based on
4969   max_wt (if wdf is always zero for a term, BM25 gives max_wt of 0, which lead
4970   to us never counting that subquery.
4972 * Fix calculation of 0.0/0.0 in some cases.  This then got used as a minimum
4973   weight, but it seems this gives -nan (at least on x86-64 Linux) so it may
4974   have been harmless in practice.
4976 * We no longer use the highest weighted MSet entry to calculate percentages, so
4977   remove code which finds it.
4979 brass backend:
4981 * Close excess file handles before we get the fcntl lock, which avoids the
4982   lock being released again if one is open on the lock file.  Notably this
4983   avoids a situation where multiple threads in the same process could succeed
4984   in locking a database concurrently.
4986 chert backend:
4988 * Close excess file handles before we get the fcntl lock, which avoids the
4989   lock being released again if one is open on the lock file.  Notably this
4990   avoids a situation where multiple threads in the same process could succeed
4991   in locking a database concurrently.
4993 flint backend:
4995 * Close excess file handles before we get the fcntl lock, which avoids the
4996   lock being released again if one is open on the lock file.  Notably this
4997   avoids a situation where multiple threads in the same process could succeed
4998   in locking a database concurrently.
5000 remote backend:
5002 * Improve the UnimplementedError message for a MatchSpy subclass which doesn't
5003   implement name() so it's clearer that it is this particular subclass which
5004   can't be used remotely, rather than all MatchSpy objects.
5006 build system:
5008 * The build system is now generated with automake 1.11.6 rather than 1.11.1,
5009   which fixes a security issue in "make distcheck" (not something users will
5010   usually run, but it seems worth addressing).
5012 * Use user-specified LIBS for configure tests, which is what you'd expect to
5013   happen, and provides a way for the user to tell configure where to find
5014   library functions which configure can't find for itself.
5016 * INCLUDES is now deprecated in automake, so use AM_CPPFLAGS instead.
5018 * Test coverage rules now assume lcov 1.10 which allows them to be simpler
5019   and not to require a patched version of lcov.
5021 documentation:
5023 * valueranges.html: Update documentation to reflect change in Xapian 1.1.2 -
5024   DateValueRangeProcessor and StringValueRangeProcessor now support a prefix or
5025   suffix.
5027 * Clarify that the "reverse" parameter of set_sort_by_relevance_then_value()
5028   and set_sort_by_relevance_then_key() only affects the ordering of the
5029   value/key part of the sort.
5031 * docs/quickstart.html: Fix seriously outdated statement that Xapian doesn't
5032   create the database directory - that changed in 0.7.2 (released 2003-07-11).
5034 * HACKING: Try to make it clearer we're looking for a dual-licence on submitted
5035   patches.
5037 tools:
5039 * xapian-replicate:
5041   + Add a --full-copy option to force a full copy to be sent.  (ticket#436)
5043   + Add --quiet option, and be a little more verbose by default.
5045   + Allow files > 32G to be be copied by replication.
5047   + Fix "if (fd > 0)" tests in some replication code to be "if (fd >= 0)".
5048     In practice this is unlikely to actually have caused problems since
5049     stdin is typically still open and using fd 0.
5051   + Simplify how we open the .DB file on the replication slave to just call
5052     open() once with O_CREAT, rather than once without, than stat() if that
5053     fails, and then again with O_CREAT|O_TRUNC if stat() doesn't show an
5054     ordinary file exists.
5056 examples:
5058 * quest:
5060   + New --flags command line option to allow setting arbitrary QueryParser
5061     flags.
5063   + Align option descriptions in --help output, and make the initial letter of
5064     such descriptions consistently lowercase.
5066 portability:
5068 * Fix testsuite harness to compile with GCC 4.7.
5070 * On platforms with the F_MAXFD fcntl but without closefrom(), we were failing
5071   to close the highest numbered open fd in our closefrom() replacement.
5073 * Our closefrom() replacement on Linux now works around valgrind not hiding
5074   some extra fds it has open, but then complaining if we try to close them.
5076 + Pass O_BINARY when opening replication related files in some cases where we
5077   weren't before, which will probably help solve ticket #472.
5079 * configure: socketpair() needs -lnetwork on Haiku.
5081 * Micro-optimisation in Unicode handling - GCC doesn't currently optimise the
5082   arithmetic shift right idiom we use, but it documents that signed right shift
5083   does sign extension so we now just use a right shift for GCC.
5085 debug code:
5087 * Preserve errno over debug logging calls, so they can safely be added to code
5088   which expects errno not to change.
5090 Xapian-core 1.2.12 (2012-06-27):
5092 build system:
5094 * 1.2.11 had its library version information incorrectly set.  This resulted in
5095   the shared library having an incorrect SONAME - e.g. on Linux,
5096   libxapian.so.21 instead of libxapian.so.22.  This release has been made to
5097   fix this problem.
5099 documentation:
5101 * AUTHORS: Add the GSoC students.
5103 Xapian-core 1.2.11 (2012-06-26):
5105 API:
5107 * Add new QueryParser::STEM_ALL_Z stemming strategy, which stems all terms and
5108   adds a Z prefix.  (Patch from Sehaj Singh Kalra, fixes ticket#562)
5110 * Add TermGenerator::set_stemming_strategy() method, with strategies which
5111   correspond to those of QueryParser.  Based on patch from Sehaj Singh Kalra,
5112   with some tweaks for adding term positions in more cases.  (Fixes ticket#563)
5114 * Correct "BM25Weight" to "TradWeight" in exception message from TradWeight.
5116 * We were failing to call init() for user-defined Weight objects providing the
5117   term-independent weight.  These now get called with init(0.0).
5119 * Xapian::Auto::open_stub() now throws a Xapian::DatabaseOpeningError exception
5120   if the stub file can't be opened.  Previously we failed to check for this
5121   condition, which resulted in us treating the file as empty.
5123 testsuite:
5125 * When the testsuite is using valgrind, we used to run remote servers under
5126   valgrind too (but with --tool=none) to get consistent behaviour as valgrind's
5127   emulation of x87 excess precision isn't exact.  Now we only do this if x87 FP
5128   instructions are actually in use (which means x86 architecture and configure
5129   run with --disable-sse).
5131 * Make sure XAPIAN_MAX_CHANGESETS gets unset after replication testcases which
5132   set it, so further testcases don't waste time generating changesets.
5134 * Improved test coverage (including more tests for closed databases -
5135   ticket#337).
5137 brass backend:
5139 * After closing the database, methods which try to use the termlist would throw
5140   FeatureUnavailableError with message "Database has no termlist", assuming
5141   that the termlist table not being open meant it wasn't present.  Fix to check
5142   if the postlist_table is open to determine which case we're in.
5144 chert backend:
5146 * After closing the database, methods which try to use the termlist would throw
5147   FeatureUnavailableError with message "Database has no termlist", assuming
5148   that the termlist table not being open meant it wasn't present.  Fix to check
5149   if the postlist_table is open to determine which case we're in.
5151 inmemory backend:
5153 * Check if the database is closed in metadata_keys_begin() for InMemory
5154   Databases.
5156 build system:
5158 * xapian-config: Don't interpret a missing .la file as meaning that we only
5159   have static libraries.
5161 documentation:
5163 * Fix API documentation for Query constructors - both XOR and ELITE_SET can
5164   take any number of subqueries, not only exactly two.
5166 * Backport missing API documentation comments for operator++ and operator*
5167   methods or PositionIterator, PostingIterator and TermGenerator.
5169 * docs/replication.rst: Update documentation - since 1.2.5, the value of
5170   XAPIAN_MAX_CHANGESETS determines how many changesets we keep.
5172 * docs/admin_notes.rst: Correction - we don't "create a lock file", we "lock a
5173   file".
5175 * Fix API documentation for TradWeight constructor - "k1" should be "k".
5177 portability:
5179 * configure: Overhaul handling of compilers which pretend to be GCC.  Clang
5180   is now detected, and we only pass it warning flags it actually understands.
5181   And we now check for symbol visibility support with Intel's compiler.
5183 * configure: Solaris automatically pulls in library dependencies, so set
5184   link_all_deplibs_CXX=no there.
5186 * configure: We now check -Bsymbolic-functions for all compilers.
5188 * configure: Enable -Wdouble-promotion for GCC >= 4.6.
5190 * Pass -ldl last when compiling zlib-vg.so, as that seems to be needed on
5191   Ubuntu 12.04.
5193 * Fix incorrect use of "delete" which should be "delete []".  This is
5194   undefined behaviour in C++, though the type is POD, so in practice this
5195   probably worked OK on many platforms.
5197 * In BM25Weight when k1 or b is zero (not the default), we used to multiply
5198   an uninitialised double by zero, which is undefined behaviour, but in
5199   practice will often give zero, leading to the desired results.
5201 * xapian.h: Add check for Qt headers being included before us and defining
5202   'slots' as a macro - if they are, give a clear error advising how to work
5203   around this (previously compilation would fail with a confusing error).
5205 Xapian-core 1.2.10 (2012-05-09):
5207 testsuite:
5209 * apitest: Extend tradweight1 to test that TradWeight(0) means that wdf and
5210   document length don't affect the weight of a term.
5212 * termgentest: Check that TermGenerator discards words > 64 bytes.
5214 matcher:
5216 * Don't count unweighted subqueries of MultiAndPostList in percentage
5217   calculations, as OP_FILTER maps to MultiAndPostList now.  (ticket#590)
5219 brass backend:
5221 * When compacting, if the output database is empty, don't write out a metainfo
5222   tag.  Take care not to divide by zero when computing the percentage size
5223   change for a table.
5225 chert backend:
5227 * When compacting, if the output database is empty, don't write out a metainfo
5228   tag.  Take care not to divide by zero when computing the percentage size
5229   change for a table.
5231 documentation:
5233 * API documentation:
5235  + Note version when Database::close() was added.
5237  + Fix switched lower and upper in API documentation for Weight methods
5238    get_doclength_lower_bound() and get_doclength_upper_bound().  Correct
5239    maximum to minimum in get_doclength_lower_bound() comment and note that this
5240    excludes zero length documents.  Fix "An lower" to "A lower".
5242 * docs/admin_notes.html: Mention that postlist and termlist tables also hold
5243   value info for chert.  Mention that xapian-chert-update was removed in 1.3.0.
5244   Mention that you need to use copydatabase from 1.2.x to convert flint to
5245   chert.
5247 * HACKING: Update section on patches to mention git (git diff and git
5248   format-patch), and using "-r" with normal diff, and also that ptardiff offers
5249   a nice way to diff against an unpacked tarball.
5251 debug code:
5253 * Fix use of AssertEq() on NULL, which doesn't compile, at least with recent
5254   GCC.
5256 Xapian-core 1.2.9 (2012-03-08):
5258 API:
5260 * QueryParser: Fix FLAG_AUTO_SYNONYMS not to enable auto multi-word synonyms
5261   too (but in a different way to trunk so as to not break the ABI).
5263 matcher:
5265 * Fix issue with running AND, OR and XOR queries against a database with no
5266   documents in it - this was leading to a divide by zero, which led to
5267   MSet::get_matches_estimated() reporting 2147483648 on i386.
5269 build system:
5271 * Remove configure's --with-stlport and --with-stlport-compiler options, as
5272   they don't allow you to actually specify what you need to (at least to use
5273   the Debian STLport package), and instead document what to pass to configure
5274   to enable building with STLport (though it seems to no longer be actively
5275   maintained, and the debug mode (which is probably the most interesting
5276   feature now) doesn't seem to work on Debian stable).
5278 documentation:
5280 * Document that OP_ELITE_SET with non-term subqueries might pick subqueries
5281   which don't match anything.  Closes ticket#49.
5283 * Document that you can define a static operator delete method in your subclass
5284   if deallocation needs to be handled specially.  (Closes ticket#554)
5286 * Assorted minor documentation improvements.
5288 portability:
5290 * Address new warnings from GCC 4.6.
5292 * Fix argument order when linking xapian-check to fix mingw build.
5293   (ticket#567)
5295 * Add some missing explicit header includes to fix build with STLport.
5297 Xapian-core 1.2.8 (2011-12-13):
5299 API:
5301 * Add support to TermGenerator and QueryParser for indexing and searching CJK
5302   text using n-grams.  Currently this is only enabled when the environmental
5303   variable XAPIAN_CJK_NGRAM is set to a non-empty value.
5305 documentation:
5307 * Add link from index page to apidoc.pdf.
5309 * quickstart.html: Correct link which was to quickstartsearch.cc.html but
5310   should be to quickstartindex.cc.html.
5312 * overview.html,quickstart.html: Fix several factual errors.
5314 * API documentation:
5316   + Improve documentation comments for several methods.
5318   + Add documentation for function parameters which didn't have it.
5320   + Remove bogus paragraph in WritableDatabase::replace_document()
5321     documentation comment which had been cut and pasted from delete_document()
5322     documentation comment.  (Fixes ticket#579)
5324   + Explicitly document which value slot numbers are valid.  (Fixes ticket#555)
5326   + Escape < and > in doxygen comments so "<foo>" doesn't get eaten by doxygen.
5328 portability:
5330 + Some fixes for warnings when cross-compiling to mingw.
5332 * tests/soaktest/soaktest.cc: With Sun's compiler, random() and srandom()
5333   aren't in <cstdlib> so we need to use <stdlib.h> instead.
5335 Xapian-core 1.2.7 (2011-08-10):
5337 API:
5339 * Document objects now track whether any document positions have been modified
5340   so that replacing a modified document can completely skip considering
5341   updating positions if none have changed.  Currently the flint, chert, and
5342   brass backends implement this optimisation.  A common case this speeds up is
5343   adding and/or removing boolean filter terms to/from existing documents - for
5344   example this gives an 18% speedup for adding tags in notmuch.
5346 testsuite:
5348 * Make sure that perftest isn't run with libeatmydata preloaded, as making
5349   fsync() a no-op makes performance tests rather bogus.
5351 remote backend:
5353 * Remove unnecessary call to reopen() in the remote servers in a case where
5354   either we had just called it or we are using a writable database and so
5355   reopen() doesn't do anything.
5357 build system:
5359 * configure: -Wshadow gives bogus warnings with 4.0 (at least on Mac OS X), so
5360   disable it for GCC < 4.1 (like the comments already said we did!)
5362 documentation:
5364 * Improve the documentation comment for Database::close().  (ticket#504)
5366 * Fix typo in documentation comment for Enquire constructor which reversed the
5367   intended sense (though the text was fairly obviously wrong before).
5369 * Improve documentation of QueryParser::add_boolean_prefix()'s exclusive
5370   parameter to talk about terms and prefixes rather than values and fields
5371   (which was confusing since "document value" has a particular meaning in
5372   Xapian).
5374 * docs/facets.html: Expand descriptions for indexing and finding facets.
5375   Fix errors in example code.
5377 * docs/index.html: Add links to Omega and bindings documentation.
5379 * docs/remote_protocol.html: Fixed typo which reversed the intended sense.
5381 * xapian-check --help: Document that checking a whole database performs
5382   additional cross-checks between the tables.
5384 * docs/admin_notes.html: Add note about xapian-chert-update.
5386 * docs/deprecation.html: Note here that WritableDatabase::flush() is
5387   deprecated in favour of WritableDatabase::commit().
5389 portability:
5391 * Fix -Wshadow warnings from GCC 4.6.
5393 * Fix warning from GCC 3.3.
5395 debug code:
5397 * Fix some problems with the templates used to implement output of parameters
5398   and return values in debug logging.
5400 Xapian-core 1.2.6 (2011-06-12):
5402 API:
5404 * QueryParser:
5406   + Add new set_max_wildcard_expansion() method to allow limiting the number of
5407     terms a wildcard can expand to.  (ticket#350)
5409   + If default_op is OP_NEAR or OP_PHRASE then disable stemming of the terms,
5410     since we don't index positional information for stemmed terms by default.
5412 * Spelling correction was failing to correctly handle words which had the same
5413   trigram in an even number of times.
5415 testsuite:
5417 * We now actually include the soaktest code in the release tarballs.
5419 matcher:
5421 * Eliminate some vector copies when handling phrase subqueries in the query
5422   optimiser.
5424 brass backend:
5426 * Kill the child process which holds the lock with SIGKILL as that can't be
5427   ignored, whereas SIGHUP can be in some cases.
5429 chert backend:
5431 * Kill the child process which holds the lock with SIGKILL as that can't be
5432   ignored, whereas SIGHUP can be in some cases.
5434 flint backend:
5436 * Kill the child process which holds the lock with SIGKILL as that can't be
5437   ignored, whereas SIGHUP can be in some cases.
5439 documentation:
5441 * The HTML documentation is now maintained in reStructured Text format.
5443 * docs/queryparser.html: Document the precedence order of operators.
5445 * docs/scalability.html: Bring up-to-date.
5447 * docs/overview.html: Document "remote" in stub databases.
5449 * docs/postingsource.html: Add PostingSource example.  (ticket#503)
5451 * include/xapian/database.h: Add @exception InvalidArgumentError for
5452   Database::get_document() (ticket#542).
5454 * Ship ChangeLog.0 in the tarball.
5456 * Assorted minor improvements.
5458 examples:
5460 * examples/delve: Report has_positions().
5462 * examples/simpleindex: Add short description to usage message.
5464 portability:
5466 * Fix to build for mingw.
5468 Xapian-core 1.2.5 (2011-04-04):
5470 API:
5472 * Enquire::get_eset() now accepts a min_wt argument to allow the minimum wanted
5473   weight to be specified.  Default is 0, which gives the previous behaviour.
5475 * QueryParser: Handle NEAR/<offset> and ADJ/<offset> where offset isn't an
5476   integer the same way at the end of the query as in the middle.
5478 * Replication:
5480   + Only keep $XAPIAN_MAX_CHANGESETS changeset files when generating a new one
5481     (previously this variable only controlled if we generated changesets or
5482     not).  Closes ticket#278.
5484   + $XAPIAN_MAX_CHANGESETS is reread each time, rather than only when the
5485     database is opened.
5487   + If you build Xapian with DANGEROUS mode enabled, changeset files now
5488     actually have the appropriate flag set (the reader will currently throw an
5489     exception, but that's better than quietly handling them incorrectly).
5491 testsuite:
5493 * Compaction tests which generate stub files now close them before performing
5494   the actual compaction, to avoid issues on Microsoft Windows (ticket#525).
5496 * Improve test coverage.
5498 matcher:
5500 * Fix memory leak if an exception is thrown during the match.
5502 brass backend:
5504 * Bumped format version number (we now store the oldest revision for which we
5505   might have a replication changeset).
5507 * Optimise not to read the bitmaps from the base files when opening a database
5508   for reading (cross-port of equivalent change to chert).
5510 * Optimise not to update doclength when it hasn't changed (cross-port of
5511   equivalent change to chert).
5513 * If we try to delete an old base file and it isn't there, just continue rather
5514   than throwing an exception.  We wanted to get rid of it anyway, and it may be
5515   NFS issues telling us the wrong thing.  In particular, DatabaseCorruptError
5516   was rather a pessimistic assessment.
5518 chert backend:
5520 * Optimise not to read the bitmaps from the base files when opening a database
5521   for reading.
5523 * Optimise not to update doclength when it hasn't changed.
5525 * xapian-chert-update: Fix to handle larger databases, and databases which
5526   have values set.
5528 * If we try to delete an old base file and it isn't there, just continue rather
5529   than throwing an exception.  We wanted to get rid of it anyway, and it may be
5530   NFS issues telling us the wrong thing.  In particular, DatabaseCorruptError
5531   was rather a pessimistic assessment.
5533 flint backend:
5535 * Optimise not to read the bitmaps from the base files when opening a database
5536   for reading (cross-port of equivalent change to chert).
5538 * Optimise not to update doclength when it hasn't changed (cross-port of
5539   equivalent change to chert).
5541 * If we try to delete an old base file and it isn't there, just continue rather
5542   than throwing an exception.  We wanted to get rid of it anyway, and it may be
5543   NFS issues telling us the wrong thing.  In particular, DatabaseCorruptError
5544   was rather a pessimistic assessment.
5546 remote backend:
5548 * xapian-tcpsrv: If we can't bind to the specified port because it is a
5549   privileged one, exit with code 77 (EX_NOPERM) to make it easier to
5550   automatically handle failure when starting the server from a script.
5552 build system:
5554 * Snapshots and releases are now bootstrapped with autoconf 2.68 and libtool
5555   2.4.
5557 * configure: -Wstrict-null-sentinel was added in GCC 4.0.1 and so doesn't work
5558   with GCC 4.0.0.  For simplicity, only enable it for GCC >= 4.1.
5560 documentation:
5562 * INSTALL: Note how to build for a non-default arch on a multi-arch platform.
5564 * include/xapian/enquire.h: Fix doxygen markup so alternative overloaded forms
5565   of Enquire::get_mset() appear in the API documentation.
5567 * collapsing.html: Add missing document (written some time ago, but never
5568   actually added to builds).
5570 * replication.html: Update documentation to make it clear that users shouldn't
5571   create the destination directory for replication themselves.
5573 * docs/intro_ir.html: Update link to a paper.  Update text about book "to be
5574   published in 2008".
5576 * docs/deprecation.html:
5578   + PostingSource now offers a replacement for Enquire::set_bias().
5580   + OmegaScript: $set{spelling,true} is now deprecated.
5582   + Add note about botched removal of Enquire.get_matching_terms from Python
5583     bindings (now fully removed).
5585   + Note removal of "if idx in mset" from Python bindings.
5587   + Deprecate MSet.items and ESet.items from Python bindings (ticket#531).
5589 * docs/admin_notes.html: Update for 1.2.5.
5591 * Updates to documentation of internals.
5593 tools:
5595 * xapian-replicate-server: Fix race condition between checking if a file
5596   exists and opening it to replicate it.
5598 * xapian-replicate: Complain unless host name and port number are specified -
5599   previously these defaulted to an empty string and 0, which resulted in
5600   potentially confusing error messages.
5602 * xapian-replicate: If --master isn't specified, default to DATABASE.
5604 examples:
5606 * quest: Report any spelling correction (requires the database contains
5607   spelling data of course).
5609 * copydatabase: Add --no-renumber option.
5611 portability:
5613 * api/compactor.cc: Add missing header <ctime> for time() (ticket#530).
5615 * api/compactor.cc: Use msvc_posix_rename() under __WIN32__ to atomically
5616   update stub file after compaction (ticket#525).
5618 * Fix uninitialised variable warnings with gcc -O3.
5620 * Eliminate std::string member of global static object used when compiled with
5621   --enable-log which was causes problems on Mac OS X.
5623 * Fix some issues highlighted by clang++ warnings.
5625 Xapian-core 1.2.4 (2010-12-19):
5627 API:
5629 * QueryParser:
5631   + Avoid a double free if Query construction throws an exception in a
5632     particular case.  Fixes ticket#515.
5634   + Allow phrase generators between a probabilistic prefix and the term itself
5635     (e.g. path:/usr/local).
5637   + The correct window size wasn't being set in some cases when default_op was
5638     set to OP_PHRASE.
5640 * Enquire::get_mset():
5642   + Avoid pointlessly trying to allocate lots of memory if the first document
5643     requested is larger than the size of the database.
5645   + An empty query now returns an MSet with firstitem set correctly -
5646     previously firstitem was always 0 in this case.
5648 * Document: Initialise docid to 0 when creating a document from
5649   scratch, as documented.
5651 * Compactor:
5653   + Move the database compaction and merging functionality into this new class,
5654     and make xapian-compact a simple wrapper around this class.  (ticket#175)
5656   + Inputs can now be stub database directories or files, in which case the
5657     databases in the stub are used as inputs.
5659   + Add support for compacting to a stub database, which can be one of the
5660     inputs (for atomic update).
5662   + If spellings and/or synonyms were only present in some source databases,
5663     they weren't copied to the output database, but now they are.
5665 testsuite:
5667 * Improve test coverage (particularly for Xapian::Utf8Iterator and
5668   Xapian::Stem).
5670 * Add zlib-vg.c to distribution tarballs.
5672 * tests/runtest: Add XAPIAN_TESTSUITE_LD_PRELOAD hook to allow libeatmydata to
5673   easily be used to speed up testsuite runs.
5675 matcher:
5677 * The matcher wasn't recalculating the max possible weight after a subquery of
5678   XOR reached its end.  This caused an assertion failure in debug builds, and
5679   is a missed optimisation opportunity.
5681 * Implement SelectPostList::check() so that check() on OP_NEAR and OP_PHRASE
5682   subqueries will just check a single document, not a potentially huge numbers
5683   of documents.
5685 * BM25Weight: Fix calculation order to avoid inconsistent weights due to
5686   rounding when certain non-default parameter combinations are used.
5688 * TradWeight: Fix calculation order to avoid inconsistent weights due to
5689   rounding with TradWeight(0).
5691 * Fix regression in speed of OP_OR queries in certain cases due to optimisation
5692   added in 1.0.21/1.2.1.
5694 * In the query optimiser, use value range bounds to detect value ranges which
5695   must be empty.
5697 remote backend:
5699 * Add support for iterating metadata keys with the remote backend.  This change
5700   necessitated an increase in the minor version of the remote protocol.  If you
5701   are upgrading a live system which uses the remote backend, upgrade the
5702   servers before the clients.
5704 build system:
5706 * xapian-config: Add --static option which makes other options report values
5707   for static linking.
5709 * xapian-config is now removed by "make distclean" not "make clean".
5711 * configure: FreeBSD and OpenBSD don't need explicit dependency libraries, so
5712   set link_all_deplibs_CXX=no there.
5714 * This release uses autoconf 2.67 rather than 2.65.
5716 documentation:
5718 * INSTALL: Raise recommended GCC version from 3.3 to 4.1, since that's the
5719   oldest we regularly test with.
5721 * replication.html: Update and improve in various ways.
5723 * Remove lingering "experimental" marker from PostingSource and
5724   ValueCountMatchSpy API documentation.
5726 * index.html: Add links to replication and facets documents, and fix typo in
5727   serialisation document link.
5729 * internals.html: Add link to replication protocol.
5731 * Change the categorisation document to talk about facets, since that's the
5732   terminology that seems to be most widely used these days, and
5733   "categorisation" can also mean automatically assigning categories to
5734   documents.  Also update to reflect the final API.
5736 * deprecation.html: Add guidelines for supporting other software.
5738 * Document cases where QueryParser's FLAG_WILDCARD and FLAG_PARTIAL aren't
5739   currently supported.
5741 * PLATFORMS: Move PLATFORMS information to the wiki and replace with a pointer.
5743 tools:
5745 * xapian-compact: Fix access to empty priority_queue while merging synonyms.
5746   This could have caused problems, though we've had no reports of any (the
5747   bug was found with _GLIBCXX_DEBUG).
5749 * xapian-compact: Add --quiet/-q option to suppress progress output.
5750   (ticket#437)
5752 * xapian-replicate: If a full copy was attempted, but was not put live, display
5753   an explanatory message (in verbose mode).
5755 examples:
5757 * examples/quest: Add command line options to allow prefixes to be specified
5758   for the QueryParser.
5760 * examples/delve: Add '-z' option to count zero-length documents.
5762 * examples/simplesearch: Fix cut-and-paste errors in usage message and
5763   --version output.
5765 portability:
5767 * configure: Add support for --enable-sse=sse and --enable-sse=sse2 to allow
5768   control of which SSE instructions to use.
5770 * configure: Enable use of SSE maths on x86 by default with Sun's compiler.
5772 * configure: Beef up the test for whether -lm is required and add a special
5773   case to force it to be for Sun's C++ compiler - there's some interaction with
5774   libtool and/or shared objects which means that the previous configure test
5775   didn't think -lm is needed here when it is.
5777 * Fix to build on OpenBSD 4.5 with GCC 3.3.5.
5779 * Need to avoid excess precision on m68k when targeting models 68010, 68020,
5780   68030 as well as 68000.
5782 * Fix compilation with Sun's C++ compiler.
5784 * Fix testsuite to build on Solaris < 10.
5786 Xapian-core 1.2.3 (2010-08-24):
5788 API:
5790 * Database::get_spelling_suggestion() will now suggest a correction even if the
5791   passed word is in the dictionary, provided the correction has at least the
5792   same frequency.  Partly addresses #225.
5794 * QueryParser:
5796   + Fix handling of groups of terms which are all stopwords - in situations
5797     where this causes a problem we now disable stopword checks for such groups.
5798     (ticket#245)
5800   + Fix to be smarter about handling a boolean filter term containing ".." in
5801     the presence of valuerangeprocessors.
5803 testsuite:
5805 * New "unittest" program for testing low level functions directly.  Currently
5806   this has tests for the internal resolve_relative_path() function.
5807   (ticket#243)
5809 remote backend:
5811 * Retry select() if it fails with EINTR while waiting for connect(), and
5812   discriminate cases with same failure message to aid debugging.
5814 documentation:
5816 * Fix documentation comment for Xapian::timeout type - it holds a time interval
5817   in milliseconds not microseconds (the API docs for the methods which use it
5818   explicitly correctly document that the timeouts are in milliseconds).
5820 * libuuid moved from e2fsprogs to util-linux-ng about a year ago, so update
5821   documentation, comments, and configure error messages to reflect this.
5823 portability:
5825 * configure: Don't pass -mtune=generic unless GCC >= 4.2 is in use
5826   (ticket#492).
5828 * Fix handling of some obscure cases of resolving relative paths on Microsoft
5829   Windows.  (ticket#243).
5831 * Optimise closing of all unwanted file descriptors after forking by using
5832   closefrom() if available, and otherwise providing our own implementation
5833   (optimised to some extent for many platforms).
5835 * Fix test harness to build under Microsoft Windows (ticket#495).
5837 packaging:
5839 * xapian-core.spec: Add xapian-metadata and cmake related files to RPM
5840   packaging.
5842 * xapian-core.spec: Update BuildRequires to specify libuuid-devel instead of
5843   e2fsprogs-devel.
5845 debug code:
5847 * Improve logging of function parameter placeholder strings.
5849 Xapian-core 1.2.2 (2010-06-27):
5851 brass backend:
5853 * Sync changes from each Btree table to disk right after syncing changes to
5854   its base file, which allows more time for the table changes to be written
5855   and may also be more efficient with some Linux kernel versions.
5857 chert backend:
5859 * Sync changes from each Btree table to disk right after syncing changes to
5860   its base file, which allows more time for the table changes to be written
5861   and may also be more efficient with some Linux kernel versions.
5863 tools:
5865 * xapian-check: Don't try to check document lengths are consistent between the
5866   postlist and termlist tables if it would use more than 1GB of memory, and
5867   handle std::bad_alloc or std::length_error when trying to allocate space
5868   for this.  This issue affected sup users, as sup allocates docids such that
5869   they are sparse and large docids can easily occur.
5871 examples:
5873 * delve: Show the database's UUID.
5875 portability:
5877 * Revert 1.2.1 change to visibility of Xapian::Weight's copy constructor as
5878   it making it private broke compilation with GCC 4.1 (which seems to be a
5879   bug in this compiler version).
5881 * tests/harness/testsuite.cc: Need <cstdio> for sprintf().  Fixes compilation
5882   error which was masked if valgrind was installed.  (ticket#489)
5884 packaging:
5886 * xapian-core.spec: Update for 1.2.x - add e2fsprogs-devel to BuildRequires and
5887   add new files to install.
5889 Xapian-core 1.2.1 (2010-06-22):
5891 This release includes all changes from 1.0.21 which are relevant.
5893 API:
5895 * QueryParser: Add support for open-ended ranges (ticket#480).
5897 * Add new optional parameter to QueryParser::add_boolean_prefix() to allow the
5898   user to indicate a prefix isn't "exclusive" and that multiple instances
5899   should be combined with OP_AND rather than OP_OR.  Fixes ticket#402.  This
5900   change should also improve efficiency as it avoids copying the lists of
5901   prefixes and compares them more efficiently.
5903 * You can now specify a custom stemming algorithm by subclassing
5904   Xapian::StemImplementation, mostly based on patch from Evgeny Sizikov in
5905   ticket#448.
5907 * Fix replication bug: when multiple commits were made to the master database
5908   while a client was performing a full copy, the client would only apply the
5909   first changeset and then try to make the database live, but fail due to
5910   trying to set the wrong revision number.
5912 * Replication no longer sleeps between applying changesets to an offline
5913   database.  It's only necessary to sleep for a live database (to allow readers
5914   to complete a search without getting DatabaseModifiedErrror.
5916 * xapian-replicate: Add new "-r" command line option to specify how long
5917   replication sleeps for between applying changesets to a live database.
5919 * If a Btree table doesn't exist when applying a replication changeset, create
5920   it.  This fixes replicating a revision where a lazy table is created.
5921   (ticket#468)
5923 testsuite:
5925 * zlib can produce "uninitialised" output from "initialised" input - the
5926   output does decode to the input, so this is presumably just some unused bits
5927   in the output, so we use an LD_PRELOAD hack to get valgrind to check the
5928   input is initialised and then tell it that the output is initialised.
5930 * Don't pass NULL to closedir(), which fixes test harness failures on platforms
5931   without /proc/self/fd.
5933 * Use safesyswait.h, fixing build failure on "make check" on FreeBSD.
5935 * Check is SA_SIGINFO is defined before using it as it isn't available
5936   everywhere.  Fixes testsuite build failure on GNU Hurd.
5938 * Add a "soaktest" testsuite, intended to contain long-running tests with
5939   random data.  Currently contains a single test which builds and runs random
5940   queries, checking that the results returned are consistent when asking for
5941   different result ranges.
5943 * Test UUID returned by Database::get_uuid() is 36 characters long.
5945 matcher:
5947 * Xapian no longer forces the wdf_max value to be at least one in
5948   BM25Weight::get_maxpart().  We used to do this so that a non-existent term in
5949   the query would cause it not to achieve 100%, but now we calculate
5950   percentages based on the number of matching subqueries, and it is more
5951   natural for a non-existent term to get zero weight (ditto for a term which
5952   always has wdf 0).
5954 * OP_VALUE_RANGE and OP_VALUE_GE now use value streams directly which is much
5955   more efficient for chert (the default backend in 2.2.x).  As an example, a
5956   range query testcase which previously took 29 seconds now takes 0.4 seconds
5957   (70 times faster).  (ticket#432)
5959 * The term statistics from multiple databases are now gathered in a simpler
5960   way which is a bit faster and uses less memory.
5962 build system:
5964 * Install headers under PREFIX/include not PREFIX/include/xapian.  If you used
5965   XO_LIB_XAPIAN or xapian-config in your build system, the headers would still
5966   have been found.
5968 * Releases and snapshots are now generated with libtool 2.2.10 instead of
5969   2.2.6.
5971 * Fix build failures with some combinations of backends disabled (partially
5972   addresses ticket#361 - some combinations still fail).
5974 * Add check to configure that GCC actually supports visibility for the platform
5975   being built for, which fixes compiler warnings with platforms which don't
5976   (such as Mac OS X and mingw).
5978 documentation:
5980 * Update documentation - replication and PostingSource aren't experimental in
5981   1.2.x.
5983 portability:
5985 * Make use of built-in UUID API on FreeBSD and NetBSD.  (ticket#470)
5987 * Fix mingw build.
5989 debug code:
5991 * Add new pretty printer for values reported by calls and returns in debug
5992   logging - in particular, strings are now reported with non-printable
5993   characters escaped.
5995 * Debug logging should have less runtime overhead when built in but not in use.
5997 * Drop support for --enable-log=profile - dedicated profiling tools are likely
5998   to return more useful results.
6000 Xapian-core 1.2.0 (2010-04-28):
6002 This release includes all changes from 1.0.20 which are relevant.
6004 testsuite:
6006 * Fix --abort-on-error to actually work.
6008 * Exit with status 1 not 0 if we caught an exception from the harness itself.
6010 Xapian-core 1.1.5 (2010-04-16):
6012 This release includes all changes from 1.0.19 which are relevant.
6014 API:
6016 * Database replication now handles an exception while applying a changeset
6017   better.
6019 * If environment variable XAPIAN_MAX_CHANGESETS is set on a replication client
6020   then any changesets read are saved so the replicated copy can itself be
6021   replicated.
6023 testsuite:
6025 * Use sigsetjmp() and siglongjmp() where available so that the set of blocked
6026   signals get restored and the test harness can catch a second incidence of a
6027   particular signal in a run.  Use sigaction() instead of signal() where
6028   available, which allows us to report the address associated with SIGSEGV,
6029   SIGFPE, SIGILL, and SIGBUS.
6031 * Add machinery to check for leaked file descriptors.  Currently this requires
6032   /proc/self/fd to work (which is present on Linux and some other platforms).
6033   Remove the crude ulimit in runtest which has caused problems on some Debian
6034   buildds.
6036 * The test harness now explicitly catches const char * exceptions and reports
6037   their contents.
6039 brass backend:
6041 * Ensure that the wdf upper bound is correctly updated when replacing
6042   documents.
6044 * xapian-compact: Now sets lastdocid correctly when using --no-renumber.
6046 chert backend:
6048 * Ensure that the wdf upper bound is correctly updated when replacing
6049   documents.
6051 * xapian-compact: Now sets lastdocid correctly when using --no-renumber.
6053 * xapian-check: Check that the initial doclen chunk exists.
6055 flint backend:
6057 * xapian-compact: Now sets lastdocid correctly when using --no-renumber.
6059 remote backend:
6061 * Add remote backend support for WritableDatabase::add_spelling() and
6062   WritableDatabase::remove_spelling().  This bumps the remote protocol to
6063   version 35.0 (so both client and servers will need updating).  Suggesting
6064   spelling corrections isn't yet supported.  (ticket#178)
6066 build system:
6068 * XO_LIB_XAPIAN: Give a more specific error message for the cases where
6069   XAPIAN_CONFIG isn't found, is a directory, or isn't executable.
6071 examples:
6073 * delve:
6075   + If any documents are specified with "-d<docid>", "-V<slot>" now only show
6076     values for those documents.
6078   + Remove undocumented -k option, which has been a compatibility alias for -V
6079     since 0.9.10.  Just use -V instead.
6081 * xapian-metadata: Add new example program which allows you to get and set
6082   individual user metadata entries.
6084 Xapian-core 1.1.4 (2010-02-15):
6086 This release includes all changes from 1.0.18 which are relevant.
6088 API:
6090 * Xapian::TermGenerator,Xapian::QueryParser,Xapian::Unicode::is_wordchar():
6091   Add ENCLOSING_MARK and COMBINING_SPACING_MARK categories to is_wordchar(),
6092   which is used by TermGenerator and QueryParser.  Also make TermGenerator and
6093   QueryParser ignore several zero-width space characters.  This is a better
6094   but less compatible version of a fix in 1.0.18.
6096 * Implement support for iterating valuestreams for multidatabases.
6098 * Xapian::Stem: Update the german and german2 stemming algorithms to the latest
6099   versions from Snowball.  These add an extra rule for the "-nisse" ending.
6101 * Xapian::ValueCountMatchSpy: Replace get_values() with values_begin() and
6102   values_end().
6104 * Xapian::MatchSpy: Provide an iterator for accessing the top values found
6105   instead of taking a vector by reference to return them in.
6107 * Xapian::NumericRanges: Remove experimental API we aren't happy with yet.
6109 * Xapian::DatabaseReplica, Xapian::DatabaseMaster: Remove experimental
6110   API we aren't happy with.  Replication is still supported via the
6111   command line programs.  (ticket#347)
6113 * Xapian::score_evenness(): Remove as it turns out not to be useful in practice.
6114   (ticket#435)
6116 * Xapian::ValueWeightPostingSource: A ValueWeightPostingSource with no entries
6117   would report -infinity as its upper bound, which could cause no results to be
6118   incorrectly returned for some queries involving such an object.
6120 * Xapian::WritableDatabase::close() fixed to commit() changes (unless a
6121   transaction is in progress).
6123 testsuite:
6125 * apitest: Improve test coverage in various places.
6127 matcher:
6129 * Uses of values during the match (sorting by value or Sorter, MatchSpy,
6130   MatchDecider, and collapsing) now use value stream iteration which is
6131   a lot more efficient for chert and brass (but may be slower for flint).
6133 brass backend:
6135 * New development backend.  Changes over chert:
6137   + Batched posting list changes during indexing use significantly less memory.
6139   + Instead of using complex code to iterate modified posting lists and
6140     documents length lists, brass can flush individual such lists to disk
6141     and then iterates them from there.
6143   + To iterate all terms, chert flushes all pending postlist changes.  In the
6144     case where a prefix is specified, brass only flushes postlist changes for
6145     terms starting with the specified prefix, and doesn't flush document length
6146     changes.
6148 chert backend:
6150 * Promote chert to being the stable backend.
6152 * Change the packing of integers and strings into sortable keys, which reduces
6153   database size by 2.5% in tests.  This means an incompatible change in the
6154   chert format.  You can use the new xapian-chert-update utility to update a
6155   chert database from the old format to the new format.  It works much like
6156   xapian-compact so should take a similar amount of time (and results in a
6157   compact database).
6159 * xapian-compact:
6161   + Prune unused docids off the end of each database when merging multiple
6162     databases with renumbering.
6164   + Extend --no-renumber to support merging databases, but only if they have
6165     disjoint ranges of used document ids.
6167   + Ensure that the resultant database has a fresh UUID (previously chert
6168     copied the UUID from the first input).
6170 * xapian-check:
6172   + Fix checking of the METAINFO key in chert.  For small databases, the
6173     statistics fit in few enough bytes that incorrect check appeared to
6174     succeed and no errors were reported, but for larger databases an
6175     error was incorrectly reported.
6177   + Rework the checking of postlist chunks to use a cleaner approach which
6178     should report errors better.
6180   + Use a type wider than 32 bits to keep count of items in a table.
6181     Previously xapian-check would report the number of entries modulo
6182     4294967296.
6184 * When iterating a value stream, skip_to() now only assigns the value to a
6185   std::string when it reaches its target.  This saves a lot of unnecessary
6186   string copying - in a real-world test it improved the time for 100 queries
6187   from 3.66s to 3.10s.
6189 * When skipping through a chunk of postings to find the one we want, don't
6190   bother to unpack the wdf values we're skipping over.  This should save a
6191   significant amount of time in certain cases where the profile data shows
6192   about a third of the time is spent in the function where this happens.
6194 * Report locking failure due to running out of file descriptors better.
6196 flint backend:
6198 * xapian-compact:
6200   + Prune unused docids off the end of each database when merging multiple
6201     databases with renumbering.
6203   + Ensure that the resultant database has a fresh UUID (previously flint
6204     didn't set a UUID so one would be generated on demand when next requested,
6205     but only if the database was writable).
6207 * Report locking failure due to running out of file descriptors better.
6209 remote backend:
6211 * Add support for WritableDatabase::set_metadata() and Database::get_metadata()
6212   to the remote backend (based largely on patch in #178).
6214 inmemory backend:
6216 * Read the document data and values lazily for the inmemory backend like we do
6217   for other backends.  They're much less costly to fetch than if a disk or
6218   network access is involved, but it avoids copying potentially large data
6219   which may not be needed.  Consistency here also makes things easier to
6220   understand for both users and developers.
6222 build system:
6224 * This release uses autoconf 2.65 rather than 2.64.
6226 documentation:
6228 * docs/replication.html: Add note about not using reopen() with databases being
6229   updated by the replication client.
6231 * docs/admin_notes.html: Update for chert and other recent changes.
6233 * Remove out-of-date reference in the API documentation comment to an
6234   add_slot() method.  This no longer exists - you need to use multiple
6235   ValueCountMatchSpy objects to monitor more than one slot.
6237 examples:
6239 * simpleexpand,simpleindex,simplesearch: Handle --help and --version.
6241 debug code:
6243 * The debug log now reports boolean values as "true" and "false" (instead of
6244   "1" and "0").
6246 Xapian-core 1.1.3 (2009-09-18):
6248 This release includes all changes from 1.0.15-1.0.17 which are relevant.
6250 API:
6252 * Update Unicode character database to Unicode 5.2.  (ticket#351)
6254 * Rename Xapian::Sorter to Xapian::KeyMaker, paving the way for using it to
6255   build collapse keys too.  Xapian::Sorter remains for compatibility (and is
6256   now a subclass of Xapian::KeyMaker) but is deprecated.
6258 * Resolve the inconsistency in MultiValueSorter::add()'s "forward" parameter
6259   versus the "reverse" parameters which the Enquire sorting functions now take
6260   by replacing the class with MultiKeyMaker with a renamed method add_value()
6261   with a "reverse" parameter.  MultiValueSorter remains with the old semantics
6262   for compatibility but is deprecated.  (ticket#359)
6264 * QueryParser: Don't apply spelling correction to wildcarded terms, or to terms
6265   at the end of the query which we expand under FLAG_PARTIAL.
6267 * Add new Error subclass SerialisationError which we throw for serialisation
6268   related errors (which previously mostly threw NetworkError.
6270 * Rename Xapian::SerialisationContext to Xapian::Registry.
6272 * Add DecreasingValueWeightPostingSource class, which reads weights from a
6273   value slot in which a significant range of the values are in decreasing
6274   order.  This functions similarly to ValueWeightPostingSource, but can be much
6275   more efficient.
6277 * Add new Xapian::MatchSpy class:
6279   + This replaces the use of Xapian::MatchDecider as a "matchspy", which is now
6280     deprecated.  The new class only inspects, and can't reject.  It can work
6281     with remote databases, with the results being serialised to return them
6282     across the link.
6284   + Add subclass ValueCountMatchSpy, which counts the occurrences of each value
6285     in a slot in the search results seen (useful for faceted or categorisation
6286     systems).  The results can be grouped into ranges using the NumericRange
6287     and NumericRanges classes, and the score_evenness() function.  This API is
6288     currently experimental.
6290 * Remove default implementation of Weight::clone() which returns NULL.  We
6291   always need clone() to be implemented because it's called for every term
6292   in the query, not just used for the remote backend.
6294 chert backend:
6296 * Rewrite the low level packing and unpacking functions more efficiently.  As
6297   well as being generally faster, the pack functions now take a reference to a
6298   string to append to, which avoids creating a lot of temporary string objects.
6299   Indexing HTML files with omindex is 5-10% faster.  Searching for "The" on
6300   gmane (which results in a lot of unpacking of postings and document lengths)
6301   is about 35% faster.  (ticket#326)
6303 * xapian-compact: Don't report an absent lazy input table as 0 size.
6305 * Fix ChertModifiedPostList to skip added-but-then-deleted-before-flush
6306   documents.  (ticket#392)
6308 * Fix WritableDatabase::get_doclength() to work properly after a call to commit
6309   for the chert backend (ticket#397).
6311 * Fix to work with the metainfo key stored in the latest format of chert
6312   databases.
6314 * Avoid doing pointless work by trying to delete non-existent lists of values
6315   when we're just adding documents.
6317 * Fix code to find the first docid in the next chunk (ticket#399).
6319 * Add support for chert databases without a termlist table (ticket#181).
6320   Currently the only way to create such a database is to create a chert
6321   database and do "rm termlist.*".
6323 flint backend:
6325 * xapian-compact: Don't report an absent lazy input table as 0 size.
6327 remote backend:
6329 * Remote protocol major version has changed to support serialising MatchSpy
6330   objects.
6332 * Fixed not to sometimes read off the end of the returned matches when
6333   searching multiple databases, some of which are remote, and when the primary
6334   ordering is by relevance.
6336 build system:
6338 * This release uses autoconf 2.64 rather than 2.63.  This means configure now
6339   makes use of shell functions, which makes it ~13% smaller, and should also
6340   make it execute faster.
6342 * configure: Send stderr output from ldconfig to config.log.
6344 * Add optional third parameter to XO_LIB_XAPIAN autoconf macro which specifies
6345   the basename for the "xapian-config" script (defaults to "xapian-config" to
6346   give the current behaviour).
6348 * This release uses doxygen 1.5.9 to generate the API documentation.
6350 documentation:
6352 * Minor improvements to the formatting of the collated API documentation.
6354 portability:
6356 * Fix code to compile with Sun's C++ compiler.
6358 * Fix our uuid_unparse_lower() replacement for older libuuid to actually
6359   compile (really fixes ticket#368).
6361 * Fix xapian-config to work with Solaris 10 /bin/sh.  (ticket#405)
6363 debug code:
6365 * Use C++ syntax for NULL with a type in log output.
6367 Xapian-core 1.1.2 (2009-07-23):
6369 This release includes all changes from 1.0.14 which are relevant.
6371 API:
6373 * Move support for a prefix/suffix from NumberValueRangeProcessor to
6374   StringValueRangeProcessor, and change NumberValueRangeProcessor and
6375   DateValueRangeProcessor to inherit from StringValueRangeProcessor so all
6376   three now support a prefix/suffix.  (ticket#220)
6378 * Query: Trim 4 bytes off the internals.  (ticket#280)
6380 * QueryParser: If default_op is OP_NEAR or OP_PHRASE then make the window size
6381   (9 + no_of_terms) to match the default for an explicit NEAR or PHRASE.
6382   (ticket#254)
6384 testsuite:
6386 * Sort out the clash between two different patches to fix leaking file
6387   descriptors when running tests with the remotetcp backend (broken by
6388   changes in 1.1.1).
6390 matcher:
6392 * If the highest weighted document doesn't match all the terms in the query,
6393   its percentage weight is now calculated by simply counting how many weighted
6394   leaf subqueries match it instead of scaling by the proportion of the weight
6395   which matches (which required accessing the termlist for that document).
6396   (ticket#363).
6398 * XOR with a SYNONYM subquery could previously achieve 100% - this has been
6399   fixed.
6401 flint backend:
6403 * Backport the lazy update changes from chert to flint:
6405   WritableDatabase::replace_document() now updates the database lazily in
6406   simple cases - for example, if you just change a document's values and
6407   replace it with the same docid, then the terms and document data aren't
6408   needlessly rewritten.  Caveats: currently we only check if you've looked at
6409   the values/terms/data, not if they've actually been modified, and only keep
6410   track of the last document read.
6412 build system:
6414 * Update to always use C++ forms for ISO C standard headers (ticket#330).
6416 * Fix several places where Xapian::doccount is used instead of
6417   Xapian::termcount, and similar issues.  It's still not possible to make
6418   these types different sizes, but we're now closer to this goal.
6419   (ticket#385).
6421 documentation:
6423 * Note that PostingSource and Weight objects returned by clone() and
6424   unserialise() methods will be deallocated with "delete".
6426 debug code:
6428 * Fix debug logging not to segfault on NULL Query::Internal pointers.
6430 Xapian-core 1.1.1 (2009-06-09):
6432 This release includes all changes from 1.0.13 which are relevant.
6434 API:
6436 * New Query::OP_SYNONYM operator, which matches the same documents as OP_OR,
6437   but attempts to weight as if the all the subqueries were a single term with
6438   their combined wdf, which should give better relevance weights.
6440 * QueryParser's synonym, wildcard, and partial query features now use
6441   the new OP_SYNONYM operator.
6443 * PostingSource: Add new set_maxweight() method to allow subclasses to tell
6444   the matcher that their maximum weight has decreased.  Make get_maxweight()
6445   a non-virtual method of the baseclass which returns the last set maxweight
6446   (which will require updates to most user subclasses. (ticket#340)
6448 * DatabaseReplica: Fix SEGV when calling get_description() on a default
6449   constructed DatabaseReplica.
6451 * Make Query::MatchAll and Query::MatchNothing const since they're immutable.
6452   All the public methods of Query are const, so this should be completely API
6453   compatible.
6455 * Methods returning an end iterator for a ValueIterator now actually return a
6456   proxy object which silently converts to ValueIterator if required.  This
6457   proxy object allows a comparison with an "_end()" method to be optimised
6458   better so that it just ends up comparing the internal member of the iterator
6459   class with NULL (previously a call to ValueIterator's destructor remained).
6460   This should be API compatible, but note that it is definitely now more
6461   efficient just to compare against the return value of the relevant _end()
6462   method than to store the end iterator explicitly.
6464 testsuite:
6466 * Testcase valuestats4 requires transactions, so indicate that and remove the
6467   explicit SKIP for inmemory.
6469 * Testcase changemaxweightsource1 uses ChangeMaxweightPostingSource, which
6470   doesn't work with multi or remote, so mark the test accordingly.
6472 * We've decided that "going back" with skip_to() or check() should have
6473   unspecified behaviour, so stop testing how this case behaves!
6475 matcher:
6477 * Subclass MultiPostList directly from PostList instead of from LeafPostList.
6478   This gets rid of two unused data members per MultiPostList in exchange for
6479   having to define 5 extra "never called" methods, but 4 of these just
6480   tailcall.
6482 * Store termfreqs and reltermfreqs for query terms in a single map rather than
6483   one map for each, which saves is more compact and likely to be faster.
6485 chert backend:
6487 * xapian-check: For chert, check value stats are the correct format and that
6488   the streamed values are consistent with their stats (ticket#277).
6490 * xapian-check: Chert doesn't store termlist entries for documents without
6491   terms, which resulted in us reporting an error when we found document ids in
6492   the doclength "postlist" which were greater than any with an entry in the
6493   termlist.  Instead compare these entries against db.get_last_docid() if we
6494   are checking a whole db and the db can be opened.  If not, suppress this
6495   check.
6497 remote backend:
6499 * When serialising stats, serialise the termfreq and reltermfreq together,
6500   rather than in separate lists.  This gives a smaller serialised form, and
6501   matches these both being stored in the same map now.  This is an incompatible
6502   remote protocol change, so bump the major version to 32.  (ticket#362)
6504 build system:
6506 * Some build failures with --disable-backend-XXX options have been fixed, but
6507   we haven't exhaustively tested all combinations.
6509 * Ship common/win32_uuid.cc and common/win32_uuid.h (ticket#367).
6511 documentation:
6513 * Update PostingSource documentation to describe how init() is called again if
6514   a PostingSource is reused.  Fixes #352.
6516 portability:
6518 * Fixed to build with GCC 4.4.
6520 * Drop support for GCC 2.95.3 and 3.0.x - we now require at least 3.1 as doing
6521   so eliminates some preprocessor conditionals which we aren't able to test
6522   regularly as we don't have easy access to such old GCC versions.  GCC 3.1 is
6523   nearly 7 years old now, and GCC3 didn't get widespread use until later
6524   versions anyway.  If you still need to use GCC < 3.1, Xapian 1.0.x should
6525   build with 2.95.3 or newer.
6527 * Older versions of libuuid don't have uuid_unparse_lower() so probe for it in
6528   configure, and if it isn't present provide an inline version in safeuuid.h
6529   (ticket#368).
6531 * Fixed to build with MSVC (ticket#379).
6533 * Add static_cast<char>() to str(bool) overload to suppress bogus MSVC warning
6534   (ticket#377).
6536 debug code:
6538 * common/debuglog.h: Add missing initialisation of uncaught_exception variable
6539   in a couple of places.
6541 Xapian-core 1.1.0 (2009-04-22):
6543 API:
6545 * All deprecated xapian-core features listed for removal in 1.1.0 have been
6546   removed.  See deprecation.html for details, and suggested updates.
6548 * The Unicode character categorisation functions have been updated from
6549   Unicode 5.0 to 5.1.
6551 * Add NON_SPACING_MARK to is_wordchar() for better tokenisation of languages
6552   which use such marks - for example, Arabic.  This is better than the stop-gap
6553   fix in 1.0 of treating NON_SPACING_MARK as a phrase-generator character
6554   when parsing queries, but it does mean that databases built from data
6555   containing such characters will need to be rebuilt.  (ticket#355)
6557 * The details of how to subclass Xapian::Weight to implement your own
6558   weighting scheme have changed incompatibly to allow user weighting schemes
6559   to have access to the same statistics as built-in schemes (ticket#213)
6560   If you have a existing subclass of Xapian::Weight you'll need to update it.
6562 * New Database methods get_doclength_upper_bound(), get_doclength_lower_bound()
6563   and get_wdf_upper_bound(), primarily intended for allowing weighting schemes
6564   to calculate tighter upper bounds on weights (which BM25Weight and TradWeight
6565   now do) which allows matcher weight-based optimisations to be more effective.
6566   Chert actually tracks doclength bounds and a global (rather than per term)
6567   upper bound on wdf; other backends return much less tight bounds, but these
6568   still lead to better upper bounds on weights.
6570 * Enquire::get_eset() now uses an unmodified of probabilistic formula, and
6571   doesn't return terms which would get a negative weight from it (since that
6572   means they are expected to be harmful not helpful).
6574 * Add Database::close() method, which will release system resources (in
6575   particular, close filehandles) held by a database.  This is particularly
6576   useful when wrapping the API for languages with garbage collection.
6578 * Change Database::positionlist_begin() not to throw exceptions if the term or
6579   document doesn't exist.
6581 * Xapian databases now have a UUID, readable with Database::get_uuid().
6583 * A new Database replication API has been added (currently experimental).
6585 * MSet::get_termfreq() will now fall back to looking up the term frequency in
6586   the database rather than raising an exception if a term wasn't present in
6587   the query.
6589 * Calling RSet:add_document() with argument 0 now throws InvalidArgumentError.
6591 * QueryParser sped up (new version of lemon); queryparsertest runs 2.2% faster.
6593 * Add ValueSetMatchDecider, which is a matchdecider which is intended to be
6594   passed a set of values to look for in documents, and selects documents based
6595   on the presence of those values.
6597 * Add new Xapian::PostingSource class to allow passing custom sources of
6598   postings and weights to the matcher.  Built-in PostingSource subclasses:
6599   FixedWeightPostingSource, ValueMapPostingSource, ValuePostingSource, and
6600   ValueWeightPostingSource.  (Currently experimental).
6602 * Database: Add get_value_freq(), get_value_lower_bound() and
6603   get_value_upper_bound() methods to get statistics about the values stored in
6604   a slot.  Add support for the value statistics methods to chert, inmemory,
6605   multi and remote databases.
6607 * Enquire::get_eset() now faster for large ESet size.
6609 * Xapian::Document objects now have a reduced memory footprint.
6611 * Enquire::set_collapse_key() now allows you to specify a maximum number of
6612   matches with each collapse key to keep (which defaults to 1, giving the
6613   previous behaviour).  Enquire can now report bounds and an estimate of what
6614   the total number of matches would have been if collapsing wasn't in use.
6616 * WritableDatabase::commit() is a new, preferred alias for
6617   WritableDatabase::flush().  (ticket#266)
6619 * Add methods for serialising documents and queries to strings, and
6620   unserialising back from strings.  (ticket#206)
6622 testsuite:
6624 * stemtest: No longer checks environment variables OM_STEMTEST_SKIP_RANDOM,
6625   OM_STEMTEST_LANGUAGES, and OM_STEMTEST_SEED.
6627 * perftest: New performance testsuite.  This is intended to contain intended to
6628   contain potentially time-consuming performance tests, which log output to
6629   an XML file for later analysis.  It's not run by "make check" - use "make
6630   check-perf" to run it.
6632 * apitest: Now runs tests over both flint and chert for multi, remotetcp, and
6633   remoteprog.
6635 * Wait for subprocesses to finish at end of tests with remotetcp backend, to
6636   avoid test failures when the same database is used for the next testcase.
6638 matcher:
6640 * Internally, pass around non-normalised document lengths as Xapian::termcount
6641   (unsigned integer) not Xapian::doclength (double).  This gives a 3% speedup
6642   for 10 term OR queries!
6644 chert backend:
6646 * New development backend.  Use Chert::open() to explicitly create a chert
6647   format database, or set XAPIAN_PREFER_CHERT=1 in the environment to
6648   prefer chert when creating a new database without an explicit type.
6650 * Quartz and Flint stored the document length alongside every posting list
6651   entry.  Chert instead stores a chunked list of all the document lengths
6652   which saves a lot of space, and is a big win for large queries or those
6653   which don't need the document lengths.  This structure is used to
6654   implement much faster iteration (six times faster in a test) over all
6655   document ids (which speeds up queries using unary NOT, e.g. `NOT apples'),
6656   and to test for the existence of documents (instead of checking the record
6657   table for an entry).
6659 * Document values are now stored in a chunked stream for each slot for
6660   efficient access to the same slot in lots of documents.  This makes
6661   operations like sort by value much more efficient.
6663 * WritableDatabase::replace_document() now updates the database lazily in
6664   simple cases - for example, if you just change a document's values and
6665   replace it with the same docid, then the terms and document data aren't
6666   needlessly rewritten.  Caveats: currently we only check if you've looked at
6667   the values/terms/data, not if they've actually been modified, and only keep
6668   track of the last document read.
6670 flint backend:
6672 * If we can't obtain a write lock while trying to create a new database
6673   we now report the lock failure with DatabaseLockError, not
6674   DatabaseOpeningError - it's more useful to know that the lock attempt failed
6675   in this situation.
6677 * Improve reporting of failures to obtain lock due to unexpected errors.
6679 * xapian-check: Don't stop checking a table after an error in certain cases -
6680   instead increment the error counter and try to continue checking from the
6681   next item.
6683 remote backend:
6685 * The remote database protocol major version has been increased, allowing
6686   a significant amount of compatibility code to be removed.  This change means
6687   that new clients won't work with old servers, and old clients won't work
6688   with new servers.  If upgrading a live system, you will need to take this
6689   into account.
6691 * The remote servers now always default to opening a Database and the client
6692   has to send a protocol message to explicitly request write access.  This
6693   allows a single server to support multiple readers and one writer
6694   simultaneously.  (ticket#145)
6696 * Database::get_document() no longer does an unnecessary copy of the document's
6697   values.
6699 * Change serialisation of queries to be more compact and easier to parse.
6701 stub databases:
6703 * Stub databases used to assume that any relative paths were relative to the
6704   current working directory.  They now assume that relative paths are
6705   relative to the directory holding the stub database file.
6707 * Stub database lines which begin with a '#' character are now ignored,
6708   allowing comments in stub database files.
6710 * New "stub directory" database type - this is a directory containing a stub
6711   database file named "XAPIANDB".
6713 * Don't just ignore lines with no spaces in a stub database file.
6715 * Bad lines in a stub file were being ignored after we'd seen a good entry.
6717 * Add new Auto::open_stub() overload which opens a stub database file
6718   containing a single entry as a WritableDatabase.
6720 * Add support for "inmemory" to stub database (which is useful now that stub
6721   databases can be opened for writing).
6723 * A stub database file is now allowed to contain no database entries, which
6724   results in an empty Database object (this avoids user code having to special
6725   case to handle "0 or more" databases).
6727 build system:
6729 * To allow installations of Xapian 1.0 and 1.1 to easily coexist, the library
6730   is now libxapian-1.1; xapian.m4 is now xapian-1.1.m4; headers are now
6731   installed in $prefix/include/xapian-1.1.  If you use XO_LIB_XAPIAN or
6732   xapian-config as we recommend, this should all be transparent.  Also
6733   programs and scripts have a default program suffix to -1.1 unless overridden
6734   using the --program-suffix argument to configure (if you really want no
6735   suffix, "./configure --program-suffix=" will achieve this).
6737 * On Linux and k*bsd-gnu, override libtool's link_all_deplibs_CXX to "no".
6739 * On Linux, override libtool's sys_lib_dlsearch_path_spec to a list generated
6740   in a more reliable way which includes all the default directories.
6742 * configure: --enable-debug and --enable-debug-verbose have been deprecated
6743   since 1.0.0, so remove specific errors pointing to the replacements.
6745 documentation:
6747 * Disable "JAVADOC_AUTOBRIEF" in doxygen configuration since we always try to
6748   write a brief description explicitly, and JAVADOC_AUTOBRIEF causes problems
6749   in some cases.
6751 * docs/deprecation.html: Describe what "experimental" features are, and why
6752   replication and posting sources are currently experimental.
6754 * docs/deprecation.html: Deprecate Stem_get_available_languages() from the
6755   python bindings.
6757 examples:
6759 * Use C++ forms of C headers in examples (ticket#330).
6761 packaging:
6763 * xapian-core.spec: We no longer need to run autoreconf to work around
6764   libtool's incomplete sys_lib_dlsearch_path_spec or to pick up distro-specific
6765   patches for link_all_deplibs.
6767 debug code:
6769 * Report get_description() rather than the pointer value for
6770   Xapian::Query::Internal* parameters to internal functions.
6772 * The debug logging framework has been overhauled.  See HACKING for details
6773   of how it now works.
6775 * Faster integer to string functions inside the library (this is a general
6776   improvement, but will particularly speed up debug logging as that converts a
6777   lot of integers to strings).
6779 Xapian-core 1.0.23 (2011-01-14):
6781 API:
6783 * QueryParser: Avoid a double free if Query construction throws an exception
6784   in a particular case.  Fixes ticket#515.
6786 * QueryParser: Handle NEAR/<offset> and ADJ/<offset> where offset isn't an
6787   integer the same way at the end of the query as in the middle.
6789 * Enquire::get_mset(): Avoid pointlessly trying to allocate lots of memory
6790   if the first document requested is larger than the size of the database.
6792 * Enquire::get_mset(): An empty query now returns an MSet with firstitem set
6793   correctly - previously firstitem was always 0 in this case.
6795 matcher:
6797 * The matcher wasn't recalculating the max possible weight after a subquery of
6798   XOR reached its end.  This caused an assertion failure in debug builds, and
6799   is a missed optimisation opportunity.
6801 tools:
6803 * xapian-compact: Fix access to empty priority_queue while merging synonyms.
6804   This could have caused problems, though we've had no reports of any (the
6805   bug was found with _GLIBCXX_DEBUG).
6807 Xapian-core 1.0.22 (2010-10-03):
6809 API:
6811 * Xapian::Document: Initialise docid to 0 when creating a document from
6812   scratch, as documented.
6814 * Xapian::QueryParser: Allow phrase generators between a probabilistic prefix
6815   and the term itself (e.g. path:/usr/local).
6817 matcher:
6819 * Back out the OP_OR efficiency improvement made in 1.0.21 since this change
6820   slows down some other common cases.  We'll address this fully in 1.2.4, but
6821   that fix is more invasive than we are comfortable with for 1.0.x at this
6822   point.
6824 build system:
6826 * xapian-config: Add --static option which makes other options report values
6827   for static linking.
6829 documentation:
6831 * deprecation.html: Add guidelines for supporting other software.
6833 * Document cases where QueryParser's FLAG_WILDCARD and FLAG_PARTIAL aren't
6834   currently supported.
6836 * Fix documentation for Xapian::timeout type - it holds a time interval in
6837   milliseconds not microseconds (the API docs for the methods which use it
6838   explicitly correctly document that the timeouts are in milliseconds).
6840 portability:
6842 * configure: Don't pass -mtune=generic unless GCC >= 4.2 is in use
6843   (ticket#492).
6845 * configure: Add support for --enable-sse=sse and --enable-sse=sse2 to allow
6846   control of which SSE instructions to use.
6848 * configure: Enable use of SSE maths on x86 by default with Sun's compiler.
6850 * configure: Beef up the test for whether -lm is required and add a special
6851   case to force it to be for Sun's C++ compiler - there's some interaction with
6852   libtool and/or shared objects which means that the previous configure test
6853   didn't think -lm is needed here when it is.
6855 * Fix test harness to build under Microsoft Windows (ticket#495).
6857 * Fix to build on OpenBSD 4.5 with GCC 3.3.5.
6859 * Need to avoid excess precision on m68k when targeting models 68010, 68020,
6860   68030 as well as 68000.
6862 packaging:
6864 * xapian-core.spec: Add cmake related files to RPM packaging.
6866 Xapian-core 1.0.21 (2010-06-18):
6868 API:
6870 * Xapian::Stem now recognises "nb" and "nn" as additional codes for the
6871   Norwegian stemmer.
6873 * Xapian::QueryParser now correctly parses a wildcarded term in between two
6874   other terms (ticket#484).
6876 testsuite:
6878 * Improve test coverage of OP_VALUE_RANGE and MSet::get_percent().
6880 matcher:
6882 * OP_OR could skip a matching document if it decayed to OP_AND or OP_AND_MAYBE
6883   during the match in some cases.  Fixes ticket#476.
6885 * OP_XOR with non-leaf subqueries could skip matching documents in some cases,
6886   and OP_XOR of three or more sub-queries could return incorrect weights.
6887   Fixes ticket#475.
6889 * OP_OR is now more efficient if a subquery is potentially expensive (e.g.
6890   ValueRangePostList, OP_NEAR, OP_PHRASE).  A 10-fold speed-up with
6891   ValueRangePostList has been observed.
6893 flint backend:
6895 * When iterating a table, if the table changes underneath we could end up
6896   returning the same entry twice.  (Debian#579951)
6898 * A cancelled transaction (or a failing operation implicitly cancelling
6899   pending changes) now marks the tables as unmodified, which fixes an exception
6900   trying to read block 0 if one of the tables is empty on disk.
6902 quartz backend:
6904 * When iterating a table, if the table changes underneath we could end up
6905   returning the same entry twice.  (Debian#579951)
6907 remote backend:
6909 * When daemonising, read the max fd to close with sysconf() instead of using
6910   a hardcoded value of 256, and work even if stdin and stdout have been closed.
6912 build system:
6914 * Install files to make Xapian easier to use with cmake.
6916 documentation:
6918 * Update the list of languages that the Xapian::Stem constructor recognises.
6920 * Assorted minor improvements to the collated API documentation.
6922 portability:
6924 * On x86 processors, Xapian now defaults to using SSE2 FP instructions.  This
6925   avoids issues with excess precision and it a bit faster too.  If you need
6926   to support processors without SSE2 (this means pre-Pentium4 for Intel) then
6927   configure with --disable-sse.  (ticket#387)
6929 * Fix warning when compiling for mingw with GCC 4.2.1.
6931 * Remove mutable from a couple of reference class members - mutable doesn't
6932   make sense for a reference and some compilers warn about it.
6934 Xapian-core 1.0.20 (2010-04-27):
6936 API:
6938 * MSet: Fix incorrect values reported by get_matches_estimated(),
6939   get_matches_lower_bound(), and get_matches_upper_bound() in certain cases
6940   when sorting and collapsing (ticket#464).
6942 documentation:
6944 * deprecation.html: Note how to disable deprecation warnings. (ticket#393)
6946 examples:
6948 * delve: Add -a option to list all terms in a database.
6950 * delve: -d and -V command line options now report out of range and invalid
6951   numbers.
6953 portability:
6955 * The getopt warning fix for Cygwin in 1.0.19 caused build failures on Mac OS X
6956   (and probably some other platforms with non-GNU getopt implementations), so
6957   replace with a fix which is only enabled for Cygwin. (ticket#469)
6959 Xapian-core 1.0.19 (2010-04-15):
6961 API:
6963 * QueryParser: Fix leak if Xapian::Database throws an exception during parsing
6964   (ticket#462).
6966 testsuite:
6968 * Explicitly flush after indexing for quartz and flint, so we see any
6969   exceptions from the flush (the implicit flush from the destructor swallows
6970   any exceptions).
6972 * apitest: Add databasemodified1 testcase to provide some test coverage for
6973   DatabaseModifiedError.
6975 flint backend:
6977 * When updating a document, rather than decoding the old positions, comparing
6978   with the new, and then encoding the new if different, we now just encode the
6979   new and then compare the encoded forms.  (ticket#428)
6981 * Avoid trying to delete the document positions when we know there aren't any.
6983 * Fix memory leak if Database::allterms_begin() throws an exception
6984   (ticket#462).
6986 * xapian-check: Report document id for document length mismatch.
6988 * Fix potential issues with iterators over a WritableDatabase which is modified
6989   during iteration.  No problems have actually been observed with flint, only
6990   in 1.1.4 with chert in cases which don't occur in flint, but it seems likely
6991   the issue can manifest for flint in other situations.  Fixes ticket#455.
6993 * Initialise zlib z_stream structure members zalloc, zfree, and opaque with
6994   Z_NULL rather than 0 cast to the appropriate type, as that's what the zlib
6995   documentation says to do.  Add missing initialisation of opaque for the
6996   inflate z_stream which the zlib docs say is needed (reading the zlib code,
6997   this isn't true for current versions, so this improves robustness rather
6998   than fixing an observable bug).
7000 * Don't memcpy() a block to itself - it's a waste of effort, and (probably)
7001   undefined behaviour (as a block overlaps itself).
7003 quartz backend:
7005 * Fix potential issues with iterators over a WritableDatabase which is modified
7006   during iteration.  No problems have actually been observed with quartz, only
7007   in 1.1.4 with chert in cases which don't occur in quartz, but it seems likely
7008   the issue can manifest for quartz in other situations.  Fixes ticket#455.
7010 * Don't memcpy() a block to itself - it's a waste of effort, and (probably)
7011   undefined behaviour (as a block overlaps itself).
7013 build system:
7015 * Force -fno-strict-aliasing for GCC 4.2 to avoid bad code being generated due
7016   to a bug in that compiler version.  Fixes ticket#449.  This issue hasn't been
7017   observed to affect Xapian 1.0.x, but it seems prudent to backport the fix.
7019 documentation:
7021 * INSTALL: Correct description of --enable-assertions.  It does NOT enable
7022   debugging symbols, and shouldn't control checks on bad data passed to API
7023   calls (if it does anywhere, that's a bug).  Note that Xapian will run more
7024   slowly with assertions on.
7026 * spelling.html:
7028   + Add section on indexing.
7030   + Add a note about removing automatically added spelling dictionary entries.
7032   + Move the "algorithm" section to the end, as it is really just background
7033     information for the curious.
7035 * include/xapian/queryparser.h: Document the possible exception messages from
7036   QueryParser::parse_query().
7038 * include/xapian/termgenerator.h: Note how TermGenerator handles stopwords.
7040 examples:
7042 * delve: Display the lastdocid value when displaying general database
7043   statistics.
7045 * simpleindex: Explicitly call flush() on the database, as that is good
7046   practice (since you see any exceptions).
7048 portability:
7050 * Fix compilation failure in testsuite on OpenBSD, introduced by new regression
7051   test in 1.0.18.  Fixes ticket#458.
7053 * Fix getopt-related warning on Cygwin.
7055 Xapian-core 1.0.18 (2009-02-14):
7057 API:
7059 * Document: Add new add_boolean_term() method, which is an alias for add_term()
7060   with wdfinc=0.
7062 * QueryParser:
7064   + Add support for quoting boolean terms so they can contain arbitrary
7065     characters (partly addresses ticket#128).
7067   + Add ENCLOSING_MARK and COMBINING_SPACING_MARK categories, plus several
7068     zero-width space characters, as phrase generators.  This mirrors a better
7069     fix in 1.1.4, but without losing compatibility with existing databases.
7071   + Fix handling of an explicit AND before a hated term (foo AND -bar).
7072     (ticket#447)
7074 * TermIterator: Only include trailing '+' or '#' on a term if it isn't followed
7075   by a word character (makes more sense and matches QueryParser's behaviour).
7076   (ticket#446)
7078 * Database: Fix many methods to behave better on a database with no
7079   subdatabases, such as is constructed by Database().  Fixes ticket#415.
7081 testsuite:
7083 * Add test coverage for xapian-compact, and improve coverage for
7084   WritableDatabase::replace_document().
7086 * apitest: Rename matchfunctor<n> to matchdecider<n> to match current
7087   terminology.
7089 flint backend:
7091 * When updating documents, don't update posting entries which haven't changed.
7092   Largely fixes ticket #250.
7094 * If the number of entries in the position table happened to be 4294967296 or
7095   an exact multiple, Xapian would ignore positional data for that table when
7096   running queries, and xapian-compact wouldn't copy its contents.
7098 * Iterating all the terms in the database with a prefix is now slightly more
7099   efficient.
7101 * Fix locking code to work if stdin and/or stdout have been closed.
7103 * If a document is replaced with itself unmodified, we no longer increase the
7104   automatic flush counter.
7106 * When iterating a posting list modified since the last flush(), the reported
7107   wdf is now correct (previously it was too high by its old value).
7109 * Replacing a document deleted since the last flush failed to update the
7110   collection frequency and wdf, and caused an assertion failure when assertions
7111   were enabled.
7113 * WritableDatabase::replace_document() didn't always remove old positional
7114   data (the only effect is that the position table was bloated by unwanted
7115   entries).
7117 * xapian-inspect:
7119   + New "until" command which shows entries until a specified key is reached.
7121   + New "open" command which allows easy switching between tables.
7123 * xapian-compact: Fix typos in --help output.
7125 quartz backend:
7127 * Replacing a document deleted since the last flush failed to update the
7128   collection frequency and wdf, and caused an assertion failure when assertions
7129   were enabled.
7131 * WritableDatabase::replace_document() didn't always remove old positional
7132   data (the only effect is that the position table was bloated by unwanted
7133   entries).
7135 remote backend:
7137 * Throw UnimplementedError if a MatchDecider is used with the remote backend.
7138   Previously Xapian returned incorrect results in this case.
7140 build system:
7142 * configure: With --enable-maintainer-mode, enable -Werror for GCC >= 4.1
7143   rather than >= 4.0 as Apple's GCC 4.0 gives bogus uninitialised variable
7144   warnings.
7146 documentation:
7148 * The API documentation now includes Xapian::Error and subclasses, and doesn't
7149   mention Xapian::Query::Internal.
7151 * Make clear in the Xapian::Document API documentation that this class is a
7152   lazy handle and discuss the issues this can cause.
7154 * INSTALL: Improve text about zlib dependency.
7156 * HACKING: Add details of our licensing policy for accepting patches.
7158 examples:
7160 * quest: If no database is specified, still parse the query and report
7161   Query::get_description() to provide an easy way to check how a query parses.
7163 portability:
7165 * Fix GCC 4.2 warning.
7167 xapian-core 1.0.17 (2009-11-18):
7169 API:
7171 * QueryParser:
7173   + Fix handling of a group of two or more terms which are all stopwords which
7174     notably caused issues when default_op was OP_AND, but could probably
7175     manifest in other cases too.  Fixes ticket#406.
7177   + Fix interaction of FLAG_PARTIAL and FLAG_SYNONYM.  (ticket#407)
7179 * Database: A database created via the default constructor no longer causes a
7180   segfault when the methods get_metadata() or metadata_keys_begin() are called.
7182 flint backend:
7184 * Don't try to close the fd one more than the maximum allowable when locking
7185   the database.  Harmless, except it causes a warning when running under
7186   valgrind.  (ticket#408)
7188 remote backend:
7190 * Xapian::Sorter isn't supported with the remote backend so throw
7191   UnimplementedError rather than giving incorrect results.  (ticket#384)
7193 * Fix potential reading off the end of the MSet which is returned internally
7194   by the remote server.
7196 documentation:
7198 * Various documentation comment improvements for the Database class.
7200 examples:
7202 * examples/quest.cc: Tighten up the type of the error we catch to detect an
7203   unknown stemming language.
7205 portability:
7207 * xapian-config: Need to quote ^ for Solaris /bin/sh.
7209 * configure: Actually use any flags we determine are needed to switch the
7210   compiler to proper ANSI C++ mode, when building xapian-core - this stopped
7211   working in 1.0.12, breaking support for HP's aCC, Compaq's cxx, Sun's CC, and
7212   SGI's CC.
7214 Xapian-core 1.0.16 (2009-09-10):
7216 flint backend:
7218 * Fix a typo which stopped this fix in 1.0.12 from working (ticket #398):
7220   If we fail to get the lock after we spawn the child lock process (the common
7221   case is because the database is already open for writing) then we now clean
7222   up the child process properly.
7224 documentation:
7226 * Improve API documentation of QueryParser::set_default_op() and
7227   QueryParser::get_default_op().
7229 portability:
7231 * Fix build failure on Mac OS X 10.6.
7233 Xapian-core 1.0.15 (2009-08-26):
7235 testsuite:
7237 * Fix the test harness not to report heaps of bogus errors when using valgrind
7238   3.5.0.
7240 flint backend:
7242 * Backport the lazy update changes from 1.1.2:
7244   WritableDatabase::replace_document() now updates the database lazily in
7245   simple cases - for example, if you just change a document's values and
7246   replace it with the same docid, then the terms and document data aren't
7247   needlessly rewritten.  Caveats: currently we only check if you've looked at
7248   the values/terms/data, not if they've actually been modified, and only keep
7249   track of the last document read.
7251 * Fix PostingIterator::skip_to() on an unflushed WritableDatabase to skip
7252   documents which were added and deleted since the last flush.  (ticket#392)
7254 documentation:
7256 * Overhaul the doxygen options we use and tweak various documentation comments
7257   to improve the generated API documentation.
7259 * Explicitly document that an empty prefix argument to
7260   QueryParser::add_prefix() means "no prefix".
7262 * Update the documentation comments for Enable::set_sort_by_value(),
7263   set_sort_by_value_then_relevance(), and set_sort_by_relevance_then_value() to
7264   mention sortable_serialise() as a good way to store numeric values for
7265   sorting.
7267 Xapian-core 1.0.14 (2009-07-21):
7269 API:
7271 * When using more than one ValueRangeProcessor, QueryParser didn't reset the
7272   begin and end strings to ignore any changes made by a ValueRangeProcessor
7273   which returned false, so further ValueRangeProcessors would see any changes
7274   it had made.  This is now fixed, and test coverage improved.
7276 testsuite:
7278 * The test harness code which launches xapian-tcpsrv child processes was
7279   failing to close a file descriptor for each one launched due to a bug in
7280   the code which is meant to track them.  This was causing apitest to fail
7281   on OpenBSD (ticket#382).  Also wait between testcases for any spawned
7282   xapian-tcpsrv processes to exit to avoid spurious failures when a database is
7283   reused by the next testcase.
7285 * tests/runtest.in: Use "ulimit -n" where available to limit the number of
7286   available file descriptors to 64 so we catch file descriptor leaks sooner.
7288 * When measuring CPU time used for scalability tests, we no longer try to
7289   include the CPU time used by child processes, as we can only get that for
7290   child processes which have exited and it's hard to ensure that they have
7291   with the current framework.  Although this means we only tests the
7292   client-side scaling for remote tests, the local backend tests cover most of
7293   the work done by the server part of the remote backend.
7295 * apitest: In testcase topercent2, don't expect max_attained or max_possible to
7296   be exact as rounding errors in different ways of calculating can cause small
7297   variations.  On trunk we already have similar code because the new weighting
7298   scheme stuff gives different bounds in the different cases.  This should fix
7299   testsuite failures seen on some of the Debian and Ubuntu buildds.
7301 * The test harness now always reports the full exception message (was
7302   conditional on --verbose), and output for different exception types and
7303   other causes of failure is now more consistent.
7305 * For scalability tests, the test harness now increases the number of
7306   repetitions until the first run takes more than 0.001 seconds, to avoid
7307   trying to base calculations on a length of time we probably can't reliably
7308   measure to start with.
7310 * Add test coverage for Stem::get_description() for each supported language.
7312 * queryparsertest: Reenable tests which require the inmemory backend to be
7313   enabled by fixing typo XAPIAN_HAS_BACKEND_INMEMORY ->
7314   XAPIAN_HAS_INMEMORY_BACKEND.
7316 flint backend:
7318 * Use F_FULLFSYNC where available (Mac OS X currently) to ensure that changes
7319   have been committed to disk.  (ticket#288)
7321 remote backend:
7323 * Fix handling of percentage weights in various cases when we're searching
7324   multiple remote databases or a mix of local and remote databases.
7326 build system:
7328 * configure: -Wshadow produces false positives with GCC 4.0, so only enable it
7329   for >= 4.1 since we enable -Werror for maintainer-mode builds for GCC >= 4.0.
7331 * configure: Check that we can find the valgrind/memcheck.h header as well as
7332   the valgrind binary.
7334 * Change how snowball generates the data used by its among operation - instead
7335   of using pointers to the strings in struct among, store an offset into a
7336   constant pool, as this reduces the number of relocations by about 2300, which
7337   should decrease the time taken by the dynamic linker when loading the
7338   library.  This also reduces the size of the shared library significantly
7339   (on x86-64 Linux, the stripped shared library is 4% smaller).
7341 Xapian-core 1.0.13 (2009-05-23):
7343 API:
7345 * Xapian::Document no longer ever stores empty values explicitly.  This
7346   wasn't intentional behaviour, and how this case was handled wasn't
7347   documented.  The amended behaviour is consistent with how user metadata
7348   is handled.  This change isn't observable using Document::get_value(),
7349   but can be noticed when iterating with Document::values_begin(), using
7350   Document::values_count(), or trying to delete the value with
7351   Document::remove_value().
7353 testsuite:
7355 * Fix testcase scaleweight4 not to fail on x86 when compiled with -O0.  The
7356   problem was in the testcase code, and was caused by excess precision in
7357   intermediate FP values.
7359 * Testcases which check that operations have the expected O(...) behaviour now
7360   check CPU time instead of wallclock time on most platforms, which should
7361   eliminate occasional failures due to load spikes from other processes.
7362   (ticket#308)
7364 * Fix test failures due to SKIP_TEST_FOR_BACKEND("inmemory") not skipping when
7365   it should due to comparing char * strings with == (on trunk the return value
7366   being tested is std::string rather than const char *).
7368 * Improve test coverage in several corner cases.
7370 * Fix testcase consistency2 to actually be run (fortunately it passes).
7372 * In the generated testcases, call get_description() on the default
7373   constructed object of each class to make sure that works (and doesn't try to
7374   dereference NULL, or fail some assertion, etc).  All currently checked
7375   classes are fine - this is to avoid future regressions or such problems with
7376   new classes.
7378 * In the test coverage build, use "--coverage" instead of "-fprofile-arcs
7379   -ftest-coverage".
7381 * The test harness now has the inmemory backend flagged as supporting
7382   user-specified metadata (apart from iteration over metadata keys).
7384 matcher:
7386 * If a query contains a MatchAll subquery, check for it before checking the
7387   other terms so that the loop which checks how many terms match can exit
7388   early if they all match.
7390 * When an OR or ANY_MAYBE decayed to an AND, we were carefully swapping the
7391   children for maximum efficiency, but the condition was reversed so we were
7392   in fact making things worse.  This was noticed because it was resulting in
7393   the same query running faster when more results were asked for!
7395 * Only build the termname to termfreq and weight map for the first subdatabase
7396   instead of rebuilding it for each one.  Also don't copy this map to return
7397   it.  This should speed up searches a little, especially those over multiple
7398   databases.
7400 * If a submatcher fails but ErrorHandler tells us to continue without it, we
7401   just use a NULL pointer to stand in rather than allocating a special dummy
7402   place-holder object.
7404 * Remove AndPostList, in favour of MultiAndPostList.  AndPostList was only used
7405   as a decay product (by AndMaybePostList and OrPostList), and doesn't appear
7406   to be any faster.  Removing it reduces CPU cache pressure, and is less code
7407   to maintain.
7409 * Call check() instead of skip_to() on the optional branch of AND_MAYBE.
7411 flint backend:
7413 * Fix a bug in TermIterator::skip_to() over metadata keys.
7415 remote backend:
7417 * Fix xapian-tcpsrv --interface option to work on MacOS X (ticket#373).
7419 * Fix typo which caused us to return the docid instead of the maximum weight
7420   a document from a remote match could return!  This could have led to wrong
7421   results when searching multiple databases with the remote backend, but
7422   probably usually didn't matter as with BM25 the weights are generally small
7423   (often all < 1) while docids are inevitably >= 1.
7425 inmemory backend:
7427 * The inmemory backend doesn't support iterating over metadata keys.  Trying
7428   to do so used to give an empty iteration, but has now been fixed to throw
7429   UnimplementedError (and this limitation has now been documented).
7431 build system:
7433 * Remove a lot of unused header inclusions and some unused code which should
7434   make the build faster and slightly smaller.
7436 * Fix to compile under --disable-backend-flint, --disable-backend-remote, and
7437   --disable-backend-inmemory.
7439 * Don't remove any built sources in "make clean" even under
7440   --make-maintainer-mode as that breaks switching a tree away from
7441   maintainer-mode with: make distclean;./configure
7443 * configure: Enable more GCC warnings - "-Woverloaded-virtual" for all
7444   versions, "-Wstrict-null-sentinel" for 4.0+, "-Wlogical-op
7445   -Wmissing-declarations" for 4.3+.  Notably "-Wmissing-declarations" caught
7446   that consistency2 wasn't being run.
7448 * Internally, fix the few places where we pass std::string by value to pass
7449   by const reference instead (except where we need a modifiable copy anyway) as
7450   benchmarking shows that const reference is slightly faster and generates
7451   less code with GCC's reference counted std::string implementation - with a
7452   non-reference counted implementation, const reference should be much faster.
7453   (ticket#140)
7455 documentation:
7457 * INSTALL: We no longer regularly test build with GCC 2.95.4 and we're raising
7458   the minimum GCC version required to 3.1 for Xapian 1.1.x.
7460 * Document what passing maxitems=0 to Enquire::get_mset() does.
7462 * docs/queryparser.html: Add examples of using a prefix on a phrase or
7463   subexpression.
7465 * Correct doxygen comments for user metadata functions:
7466   Database::get_metadata() can't throw UnimplementedError but
7467   WritableDatabase::set_metadata() can.
7469 * Document that Database::metadata_keys_begin() returns an end iterator if the
7470   backend doesn't support metadata.
7472 * HACKING: Update the list of Debian/Ubuntu packages needed for a development
7473   environment.
7475 debug code:
7477 * Fix build with --enable-debug.
7479 * Added some more assertions.
7481 Xapian-core 1.0.12 (2009-04-19):
7483 API:
7485 * WritableDatabase::remove_spelling() now works properly.
7487 * The QueryParser now treats NON_SPACING_MARK Unicode characters as phrase
7488   generators, which improves handling of Arabic.  This is a stop-gap solution
7489   for 1.0.x which will work with existing databases without requiring
7490   reindexing - in 1.1.0, NON_SPACING_MARK will be regarded as part of a word.
7491   (ticket#355)
7493 * Fix undefined behaviour in distribution of OP_NEAR and OP_PHRASE over a
7494   non-leaf subquery (indentified by valgrind on testcase nearsubqueries1).
7495   (ticket#349)
7497 * Enhance distribution of OP_NEAR/OP_PHRASE over non-leaf subqueries to work
7498   when there are multiple non-leaf subqueries (ticket#201).
7500 * Enquire::get_mset() no longer needlessly checks if the documents exist.
7502 * PostingIterator::get_description() output improved visually in some cases.
7504 testsuite:
7506 * Add make targets to assist generating a testsuite code coverage report with
7507   lcov.  See HACKING for details.
7509 * Improved test coverage in a number of places and removed some used code as
7510   shown by lcov's coverage report.
7512 flint backend:
7514 * xapian-compact:
7516   + Now handles databases which contains no documents but have user metadata
7517     (ticket#356).
7519   + Fix test for the total document length overflowing.
7521 * Release the database lock if the database is closed due to an unrecoverable
7522   error during modifications. (ticket#354)
7524 * If we fail to get the lock after we spawn the child lock process (the common
7525   case is because the database is already open for writing) then we now clean
7526   up the child process properly.
7528 build system:
7530 * Overriding CXXFLAGS at make-time (e.g. "make CXXFLAGS=-Os") no longer
7531   overrides any flags configure detected to be required to make the compiler
7532   accept ISO C++ (for GCC, no such flags are required, so this doesn't
7533   change anything).
7535 documentation:
7537 * Update documentation and code comments to reflect that 1.1 will be a
7538   development series, and 1.2 the next release series.
7540 * docs/admin_notes.html: Document the child process used for locking which
7541   exec-s "cat" (ticket #258).
7543 * include/xapian/unicode.h: Fix documentation comment typos.
7545 * include/xapian/matchspy.h: Removed currently unused header to stop doxygen
7546   from generating documentation for it.
7548 Xapian-core 1.0.11 (2009-03-15):
7550 API:
7552 * Enquire::get_mset():
7554   + Now throws UnimplementedError if there's a percentage cutoff and sorting is
7555     primarily by value - this has never been correctly supported and it's
7556     better to warn people than give incorrect results.
7558   + No longer needlessly copies the results internally.
7560   + When searching multiple databases, now recalculates the maximum attainable
7561     weight after each database which may allow it to terminate earlier.
7562     (ticket#336).
7564   + Fix inconsistent percentage scores when sorting primarily by value, except
7565     when a MatchDecider is also being used; document this remaining problem
7566     case.  (ticket#216)
7568 * Enquire::set_sort_by_value() (and similar methods): Rename the wrongly named
7569   "ascending" parameter to "reverse", and note that its value should always be
7570   explicitly given since defaulting to "reverse=true" is confusing and the
7571   default will be deprecated in 1.1.0.  (ticket#311)
7573 * Database::allterms_begin(): Fix memory leak when iterating all terms from
7574   more than one database.
7576 * Query::get_terms_begin(): Don't return "" from the TermIterator (happened
7577   when the query contained or was Query::MatchAll).
7579 * Add QueryParser::FLAG_DEFAULT to make it easier to add flags to those set by
7580   default.
7582 testsuite:
7584 * The testsuite now reports problems detected by valgrind with newer valgrind
7585   versions.  Drop support for running the testsuite under valgrind < 3.3.0
7586   (well over a year old) as this greatly simplifies the configure tests.
7588 * Fix usage message for options which take arguments in --help output from test
7589   programs - "-x=foo" doesn't work, the correct syntax is "-x foo".
7591 * If comparing MSet percentages fails, report the differing percentages if in
7592   verbose mode.
7594 * Add test that backends don't truncate total document length to 32 bits.
7596 * Disable lockfileumask1 (regression testcase added in 1.0.10) on Cygwin and on
7597   OS/2.
7599 flint backend:
7601 * The configure test for pread() and pwrite() got accidentally disabled in
7602   0.8.4 and we've always been using llseek() followed by read() or write()
7603   since then.  The configure test is now fixed, and gives a slight speedup
7604   (3% measured for searching).
7606 * The child process used to implement WritableDatabase locking now changes
7607   directory to / so that it doesn't block unmounting of any partitions and
7608   closes any open file descriptors which aren't relating to locking so that
7609   if those files are closed by our parent and deleted the disk space gets
7610   released right away.
7612 * We now reuse the same zlib zstream structures rather than using a fresh
7613   one for each operation.  This doesn't make a measurable difference in
7614   our own tests on Linux but reportedly is measurably faster on some
7615   systems.  (ticket #325)
7617 quartz backend:
7619 * The pread()/pwrite() fix also speeds up quartz.
7621 remote backend:
7623 * Avoid copying Query::Internal objects needlessly when unserialising Query
7624   objects.
7626 inmemory backend:
7628 * Store the (non-normalised) document lengths as Xapian::termcount (unsigned
7629   int) rather than Xapian::doclength (double) which saves 4 bytes per document.
7631 build system:
7633 * configure: The output of g++ --version changed format (again) with GCC 4.3
7634   which meant configure got "g++" for the version.  Instead use the (hopefully)
7635   more robust technique of using g++ -E to pull out __GNUC__ and
7636   __GNUC_MINOR__.
7638 documentation:
7640 * API documentation:
7642   + WritableDatabase::flush() can't throw DatabaseLockError.
7644   + WritableDatabase's constructor can throw at least DatabaseCorruptError or
7645     DatabaseLockError.
7647   + Document how to get all matches from Enquire::get_mset().
7649   + Other minor improvements.
7651 * docs/sorting.html: Clarify meaning.
7653 portability:
7655 * Fix "#line" directives in generated file queryparser/queryparser_internal.cc
7656   to give a relative path - previously they had a full path when generated by a
7657   VPATH build (as release tarballs are), and this confused GCC 2.95 and
7658   depcomp.
7660 * Fix for compiling with Sun's compiler (untested as we no longer have access
7661   to it).
7663 Xapian-core 1.0.10 (2008-12-23):
7665 API:
7667 * Composing an OP_NEAR query with two non-term subqueries now throws
7668   UnimplementedError instead of AssertionError (in a --enable-assertions build)
7669   or leading to unexpected results (otherwise).  This partly addresses bug#201.
7671 * Using a MultiValueSorter with no values set no longer causes a hang or
7672   segmentation fault (but it is still rather pointless!)
7674 matcher:
7676 * If we're using values for sorting and for another purpose, cache the
7677   Document::Internal object created to get the value for sorting, like we do
7678   between other uses.
7680 flint backend:
7682 * If the disk became full while flushing database changes to disk, the
7683   WritableDatabase object would throw a DatabaseError exception but be left in
7684   an inconsistent state such that further use could lead to the database on
7685   disk ending up in a "corrupt" state (theoretically fixable, but no tool
7686   to fix such a database exists).  Now we try to ensure that the object is
7687   left in a consistent state, but if doing so throws a further exception, we
7688   put the WritableDatabase object in a "closed" state such that further
7689   attempts to use it throw an exception.
7691 * Create the lockfile "flintlock" with permissions 0666 so that the umask is
7692   honoured just like we do for the other files (previously we used 0600).
7693   Previously it wasn't possible to lock a database for update if it was
7694   owned by another user, even if you otherwise had sufficient permissions via
7695   "group" or "other".
7697 * Fix garbled exception message when a base file can't be reread.
7699 quartz backend:
7701 * Fix garbled exception message when a base file can't be reread.
7703 remote backend:
7705 * xapian-tcpsrv and xapian-progsrv now accept -w as a short form of --writable,
7706   as was always intended.
7708 build system:
7710 * This release now uses newer versions of the autotools (autoconf 2.62 ->
7711   2.63; automake 1.10.1 -> 1.10.2).
7713 documentation:
7715 * INSTALL: Add new paragraphs about HP's aCC and IRIX (adapted from footnotes
7716   in PLATFORMS).
7718 * PLATFORMS: HP testdrive has been shut down, so all mark all those machines as
7719   "no longer available".  Update atreus' build report to 1.0.10.
7721 * docs/queryparser.html: Add link to valueranges.html.
7723 examples:
7725 * delve: Add missing "and" to --help output.  Report termfreq and collection
7726   freq for each term we're asked about.
7728 portability:
7730 * Fix to build with GCC 4.4 snapshot.
7732 Xapian-core 1.0.9 (2008-10-31):
7734 API:
7736 * Database::get_spelling_suggestion() is now faster (15% speed up for parsing
7737   queries with FLAG_SPELLING_CORRECTION set in a test on real world data).
7739 * Fix OP_ELITE_SET segmentation fault due to excess floating point precision
7740   on x86 Linux (and possibly other platforms).
7742 * Database::allterms_begin() over multiple databases now gives a TermIterator
7743   with operations O(log(n)) rather than potentially O(n) in the number of
7744   databases.
7746 * Add new Database methods metadata_keys_begin() and metadata_keys_end() to
7747   allow the complete list of metadata in a database to be retrieved (this
7748   API addition is needed so that copydatabase can copy database metadata).
7750 testsuite:
7752 * Remove the cached test databases before running the testsuite.
7754 * apitest: Fix cursordelbug1 to work on Microsoft Windows (bug#301).
7756 * apitest,queryparsertest: Skip tests which fail because the timer granularity
7757   is too coarse to measure how long the test took.  In practice, this is only
7758   an issue on Microsoft Windows (bug#300 and bug#308).
7760 matcher:
7762 * Adjust percent cutoff calculations in the matcher in a way which corresponds
7763   to the change to percentage calculations made in 1.0.7 to allow for excess
7764   precision.
7766 * Query::MatchAll no longer gives match results ranked by increasing document
7767   length.
7769 flint backend:
7771 * xapian-compact: Fix crash while compacting spelling table for a single
7772   database when built with MSVC, and probably other platforms, though Linux
7773   got lucky and happened to work (bug#305).
7775 build system:
7777 * configure: Disable -Wconversion for now - it's not useful for older GCC and
7778   is buggy in GCC 4.3.
7780 * configure: Set -Wstrict-overflow to 1 instead of 5, to avoid unreasonable
7781   warnings under GCC 4.3.
7783 documentation:
7785 * Minor improvements to API documentation, including documenting the
7786   XAPIAN_FLUSH_THRESHOLD environmental variable in WriteableDatabase::flush()
7787   (bug#306).
7789 * valueranges.html: Fix typos in example code, and drop superfluous empty
7790   destructor from ValueRangeProcessor subclass.
7792 * HACKING: Several improvements.
7794 examples:
7796 * copydatabase: Also copy user metadata.
7798 Xapian-core 1.0.8 (2008-09-04):
7800 API:
7802 * Fix output of RSet::get_description
7804 testsuite:
7806 * Report subtotals per backend, rather than per testgroup per backend to make
7807   the output easier to read.
7809 flint backend:
7811 * Fix WritableDatabase::add_document() and replace_document() not to be O(n*n)
7812   in the number of values in the new document.
7814 * Fix handling of a table created lazily after the database has had commits,
7815   and which is then cursored while still in sequential mode.
7817 * Fix failure to remove all the Btree entries in some cases when all the
7818   postings for a term are removed.  (bug#287)
7820 * xapian-inspect: Show the help message on start-up.  Correct the documented
7821   alias for next from ' ' to ''.  Avoid reading outside of input string when it
7822   is empty.  (bug#286)
7824 quartz backend:
7826 * Backport fix from flint for WritableDatabase::add_document() and
7827   replace_document() not to be O(n*n) in the number of values in the new
7828   document.
7830 build system:
7832 * configure: Report bug report URL in --help output.
7834 * xapian-config: Report bug report URL in --help output.
7836 * configure: Fix deprecation error for --enable-debug=full to say to instead
7837   use '--enable-assertions --enable-log' not '--enable-debug --enable-log'.
7839 documentation:
7841 * valueranges.html: Expand on some sections.
7843 examples:
7845 * quest: Fix to catch QueryParserError instead of const char * which
7846   QueryParser threw in Xapian < 1.0.0.
7848 * copydatabase: Use C++ forms of C headers.  Only treat '\' as a directory
7849   separator on platforms where it is.  Update counter every 13 counting up to
7850   the end so that the digits all "rotate" and the counter ends up on the exact
7851   total.
7853 portability:
7855 * Eliminate literal top-bit-set characters in testsuite source code.
7857 Xapian-core 1.0.7 (2008-07-15):
7859 API:
7861 * OP_VALUE_RANGE, OP_VALUE_GE, and OP_VALUE_LE:
7863   + If there were gaps in the document id numbering, these operators could
7864     return document ids which weren't present in the database.  This has been
7865     fixed.
7867   + These operators are now more efficient when there are a lot of "missing"
7868     document ids (bug#270).
7870   + Optimise Query(OP_VALUE_GE, <n>, "") to Query::MatchAll.
7872 * Xapian::QueryParser:
7874   + QueryParser now stops parsing immediately when it hits a syntax error.
7875     This doesn't change behaviour, but does mean failing to parse queries is
7876     now more efficient.
7878   + Cases of O(N*N) behaviour have been fixed.
7880 * Xapian::Stem now recognises "nl" as an alias for "dutch" (debian bug 484458).
7882 * Setting sort by value was being ignored by a Xapian::Enquire object which had
7883   previously had a Xapian::Sorter set (bug#256).
7885 testsuite:
7887 * Improved test coverage in a few places.
7889 matcher:
7891 * When using a MatchDecider, we weren't reducing matches_lower_bound unless
7892   all the potential results were retrieved, which led to the lower bound
7893   being too high in some such cases.
7895 * We now track how many documents were tested by a MatchDecider and how many
7896   of those it rejected, and set matches_estimated based on this rate.  Also,
7897   matches_upper_bound is reduced by the number of rejected documents.
7899 * Fixed matches_upper_bound in some cases when collapsing and using a
7900   MatchDecider.
7902 * Fixed matches_lower_bound when collapsing and using a percentage cutoff.
7904 * When using two or more of a MatchDecider, collapsing, or a percentage
7905   cutoff, we now only round the scaled estimate once, and we also round it to
7906   the nearest rather than always rounding down.  Hopefully this should
7907   improve the estimate a little in such cases.
7909 * Fix problem on x86 with the top match getting 99% rather than 100% (caused
7910   by excess precision in an intermediate value).
7912 flint backend:
7914 * If Database::reopen() is called and the database revision on disk hasn't
7915   changed, then do as little work as possible.  Even if it has changed, don't
7916   bother to recheck the version file (bug#261).
7918 * xapian-compact:
7920   + Fix check for user metadata key to not match other key types we may add in
7921     the future.  When compacting, we can't assume how we should handle them.
7923   + If the same user metadata key is present in more than one source database
7924     with different tag values, issue a warning and copy an arbitrary tag value.
7926   + Fix potential SEGV when compacting database(s) with user metadata but no
7927     postings.
7929   + In error message, refer to "iamflint" as the "version file", not the
7930     "meta file".
7932 * xapian-inspect:
7934   + Print top-bit-set characters as escaped hex forms as they often won't be
7935     valid UTF-8 sequences.
7937   + If we're passed a database directory rather than a single table, issue a
7938     special error message since this is an obvious mistake for users to make.
7940 * Fix cursor handling for a modified table which has previously only had
7941   sequential updates which usually manifested as zlib errors (bug#259).
7943 quartz backend:
7945 * Fix cursor handling for a modified table which has previously only had
7946   sequential updates which usually manifested as incorrect data being returned
7947   (bug#259).
7949 * Calling skip_to() as the first operation on an all-documents PostingIterator
7950   now works correctly.
7952 remote backend:
7954 * Improve performance of matches with multiple databases at least one of which
7955   is remote, and when the top hit is from a remote database (bug#279).
7957 * When remote protocol version doesn't match, the error message displayed
7958   now shows the minor version number supplied by the server correctly.
7960 * We now wait for the connection to close after sending MSG_SHUTDOWN for a
7961   WritableDatabase, which ensures that changes have been written to disk
7962   and the lock released before the WritableDatabase destructor returns
7963   (as is the case with a local database).
7965 * We no longer ever send MSG_SHUTDOWN for a read-only Database - just closing
7966   the connection is enough (and is protocol compatible).
7968 inmemory backend:
7970 * Fix bug which resulted in the values not being stored correctly when
7971   replacing an existing document, or if there are gaps in the document id
7972   numbering.
7974 build system:
7976 * This release now uses newer versions of the autotools (autoconf 2.61 ->
7977   2.62; automake 1.10 -> 1.10.1; libtool 1.5.24 -> 1.5.26).  The newer
7978   autoconf reportedly results in a faster configure script, and warns about
7979   use of unrecognised configure options.
7981 * Fix configure to recognise --enable-log=profile and fix build problems when
7982   this is enabled.
7984 * "make up" in the "tests" subdirectory now does "make" in the top-level.
7986 * Fix "make distcheck" by using dist-hook to install generated files from
7987   either srcdir or builddir, with the appropriate dependency to generate them
7988   automatically in maintainer mode builds.
7990 documentation:
7992 * intro_ir.html: Improve wording a bit.
7994 * The documentation now links to trac instead of bugzilla.  For links to the
7995   main website, we now prefer xapian.org to www.xapian.org.
7997 * Doxygen-generated API documentation:
7999   + Improved documentation in several places.
8001   + The helper macro XAPIAN_VISIBILITY_DEFAULT no longer appears in the output.
8003   + Header and directory relationship graphs are no longer generated as they
8004     aren't actually informative here.
8006 * HACKING: Numerous updates and improvements.
8008 examples:
8010 * quest: Output get_description() of the parsed query.
8012 portability:
8014 * Fix build with GCC 2.95.3.
8016 * Fix build with GCC 4.3.
8018 * Newer libtool features improved support for Mac OS X Leopard and added
8019   support for AIX 6.1.
8021 debug code:
8023 * Database::get_spelling_suggestion() now debug logs with category APICALL
8024   rather than SPELLING, for consistency with all other API methods.
8026 * Added APICALL logging to a few Database methods which didn't have it.
8028 * Remove debug log tracing from get_description() methods since logging for
8029   other methods calls get_description() methods on parameters, so logging these
8030   calls just makes for more confusing debug logs.  A get_description() method
8031   should have no side-effects so it's not very interesting even when explicitly
8032   called by the user.
8034 Xapian-core 1.0.6 (2008-03-17):
8036 API:
8038 * Add new query operators OP_VALUE_LE and OP_VALUE_GE which perform "single
8039   ended" range checks, and a corresponding new Query constructor.
8041 * Add Unicode::toupper() to complement Unicode::tolower().
8043 * Xapian::Stem has been further optimised - stemtest now runs ~2.5% faster.
8045 testsuite:
8047 * tests/runtest: Fixed to handle test programs with a ".exe" extension.
8049 * tests/queryparsertest: Add a couple more testcases which already work to
8050   improve test coverage.
8052 * tests/apitest: Add caseconvert1 testcase to test Unicode::tolower() and
8053   Unicode::toupper().
8055 flint backend:
8057 * xapian-check: Fix not to report an error for a database containing no
8058   postings but some user metadata.
8060 * Update the base files atomically to avoid problems with reading processes
8061   finding partially written ones.
8063 * Create lazy tables with the correct revision to avoid producing a database
8064   which we later report as "corrupt" (bug#232).
8066 * xapian-compact: Fix compaction for databases which contain user metadata
8067   keys.
8069 quartz backend:
8071 * Update the base files atomically to avoid problems with reading processes
8072   finding partially written ones.
8074 remote backend:
8076 * The addition of OP_VALUE_LE and OP_VALUE_GE required an update to the Query
8077   serialisation, which required a minor remote protocol version bump.
8079 * Fix to actually set the writing half as the connection as non-blocking when
8080   a timeout is specified.  This would have prevented timeouts from operating
8081   correctly in some situations.
8083 build system:
8085 * configure: GCC warning flag overhaul:  Stop passing "-Wno-multichar" since
8086   any multi-character character literal is bound to be a typo (I believe we
8087   were only passing it after misinterpreting its sense!)  Pass
8088   "-Wformat-security", and "-Wconversion" for all GCC versions.  Add
8089   "-Winit-self" and "-Wstrict-overflow=5" for GCC >= 4.2.  The latter might
8090   prove too aggressive, but seems reasonable so far.  Fix some minor niggles
8091   revealed by "-Wconversion" and "-Wstrict-overflow=5".
8093 * Add XAPIAN_NORETURN() annotations to functions and non-virtual methods which
8094   don't return.
8096 documentation:
8098 * docs/intro_ir.html: Briefly mention how pure boolean retrieval is supported.
8100 * docs/valueranges.html: Fix example of using multiple VRPs to come out as a
8101   "program listing".
8103 * include/xapian/queryparser.h: Fix incorrect example in doccomment.
8105 * docs/quickstart.html: Remove information covered by INSTALL since
8106   there's no good reason to repeat it and two copies just risks one
8107   getting out of date (as has happened here!)
8109 * docs/quickstart.html: Fix very out of date reference to MSet::items
8110   (bug#237).
8112 * PLATFORMS: Remove reports for 0.8.x as they're too old to be interesting.
8113   Separate out 0.9.x reports.  Add Solaris 9 and 10 success reports from James
8114   Aylett.  Update from Debian buildd logs.
8116 portability:
8118 * Now builds on OS/2, thanks to a patch by Yuri Dario.
8120 * Fix testsuite to build on mingw (broken by changes in 1.0.5).
8122 debug code:
8124 * Fix --enable-assertions build, broken by changes in 1.0.5.
8126 Xapian-core 1.0.5 (2007-12-21):
8128 API:
8130 * More sophisticated sorting of results is now possible by defining a
8131   functor subclassing Xapian::Sorter (bug#100).
8133 * Xapian::Enquire now provides a public copy constructor and assignment
8134   operator (bug#219).
8136 * Xapian::Document::values_begin() didn't ensure that values had been read
8137   when working on a Document read from a database.  However, values_end() did
8138   (and so did values_count()) so this wasn't generally a problem in practice.
8140 * Xapian::PostingIterator::skip_to() now works correctly when running over
8141   multiple databases.
8143 * Xapian::Database::postlist_begin() no longer adds a "MultiPostList" wrapper
8144   for the common case when there's only one subdatabase.
8146 * Xapian::TradWeight now avoids division by zero in the (rare) situation of the
8147   average document length being zero (which can only happen if all documents
8148   are empty or only have terms with wdf 0).
8150 * Calling Xapian::WritableDatabase methods when we don't have exactly one
8151   subdatabase now throws InvalidOperationError.
8153 testsuite:
8155 * apitest:
8157   + Testcases now describe the conditions they need to run, and are
8158     automatically collated by a Perl script.  This makes it significantly
8159     easier to add a new testcase.
8161   + The test harness's "BackendManager" has been overhauled to allow
8162     cleaner implementations of testcases which are currently hard to
8163     write cleanly, and to make it easier to add new backend settings.
8165   + Add a "multi" backend setting which runs suitable tests over two
8166     subdatabases combined.  There's a corresponding new make target
8167     "check-multi".
8169   + Add more feature tests of document values.
8171   + sortrel1 now runs for inmemory too.
8173   + Add simple feature test for TradWeight being used to run a query.
8175   + Fix spell3 to work on Microsoft Windows (bug#177).
8177   + API classes are now tested to check they have copy constructors and
8178     assignment operators, and also that most have a default constructor.
8180   + quartztest testcases adddoc2 and adddoc3 have been reworked as apitest
8181     testcases adddoc5 and adddoc6, which run for other backends.
8183   + stubdb1 now explicitly creates the database it needs - generally this
8184     bug didn't manifest because an earlier test has already created it.
8186 * queryparsertest: Add feature tests to check that ':' is being inserted
8187   between prefix and term when it should be.
8189 * Fix extracting of valgrind error messages in the test harness.
8191 * tests/valgrind.supp: Add more variants of the zlib suppressions.
8193 matcher:
8195 * Xapian::Enquire: When the "first" parameter to get_mset() is non-zero, avoid
8196   copying all the wanted items after performing the match.
8198 * Fix bug in handling a pure boolean match over more than one database under
8199   set_docid_order(ASCENDING) - we used to exit early which isn't correct.
8201 * When collapsing on a value, give a better lower bound on the number of
8202   matches by keeping track of the number of empty collapse values seen.
8204 * Xapian::BM25Weight: Fix bug when k2 is non-zero: a non-initialised value
8205   influenced the weight calculations.  By default k2 is zero, so this bug
8206   probably won't have affected most users.
8208 * The mechanism used to collate term statistics across multiple databases has
8209   been greatly simplified (bug#45).
8211 flint backend:
8213 * xapian-check:
8215   + Update to handle flint databases produced by Xapian 1.0.3 and later.
8217   + Fix not to go into an infinite loop if certain checks fail.
8219 quartz backend:
8221 * quartzcompact: Fix equality testing of C strings to use strcmp() rather than
8222   '=='!  In practice, using '==' often gives the desired effect due to pooling
8223   of constant strings, but this may have resulted in a bug on some platforms.
8225 remote backend:
8227 * If we're doing a match with only one database which is remote then just
8228   return the unserialised MSet from the remote match.  This requires an
8229   update to the MSet serialisation, which requires a minor remote protocol
8230   version bump.
8232 build system:
8234 * XO_LIB_XAPIAN now hooks LT_INIT as well as AC_PROG_LIBTOOL and
8235   AM_PROG_LIBTOOL.
8237 * Distribute preautoreconf, dir_contents, docs/dir_contents and
8238   tests/dir_contents.
8240 * Fix preautoreconf to correctly handle all the sources passed to doxygen to
8241   create the collated internal source documentation, and to work in a VPATH
8242   build.
8244 documentation:
8246 * sorting.html: New document on the topic of sorting match results.
8248 * HACKING,admin_notes.html,bm25.html,glossary.html,intro_ir.html,overview.html,
8249   quickstart.html,scalability.html,termgenerator,html,synonyms.html: Assorted
8250   minor improvements.
8252 * valueranges.html: State explicitly that Xapian::sortable_serialise() is used
8253   to encode values at index time, and give an example of how it is called.
8255 * API documentation:
8257  + Clarify get_wdf() versus get_termfreq().
8259  + We now use pngcrush to reduce the size of PNG files in the HTML version.
8261  + The HTML version no longer includes various intermediate files which doxygen
8262    generates.
8264  + Hide the v102 namespace from Doxygen as it isn't user visible.
8266  + Stop describing get_description() as an "Introspection method", as this
8267    doesn't help to explain what it does, and get_description() doesn't really
8268    fall under common formal definitions of "introspection".
8270 * index.html: Add a list of documents on particular topics and include links to
8271   previously unlinked-to documents.  Weed down the top navigation bar which had
8272   grown to unwieldy length.
8274 * PLATFORMS: Update for Debian buildds.
8276 * Improve documentation comment for Document::termlist_count().
8278 * admin_notes.html: Note that this document is up-to-date for 1.0.5.
8280 * INSTALL: zlib 1.2.0 apparently fixes a memory leak in deflateInit2(), which
8281   we use, so that's another reason to prefer 1.2.x.
8283 portability:
8285 * Add explicit includes of C headers needed to build with the latest snapshots
8286   of GCC 4.3.  Fix new warnings.
8288 * xapian-config: On platforms which we know don't need explicit dependencies,
8289   --ltlibs now gives the same output as --libs.
8291 * The minimum supported GCC version is now 2.95.3 (rather than 2.95) as 2.95.3
8292   added support for '#include <sstream>' which means we no longer need to
8293   maintain our own version.
8295 * Fix build with SGI's compiler on IRIX.
8297 * Fix or suppress some MSVC warnings.
8299 debug code:
8301 * Remove incorrect assertion in MultiAndPostList (bug#209).
8303 * Fix build when configured with "--enable-log --disable-assertions".
8305 Xapian-core 1.0.4 (2007-10-30):
8307 API:
8309 * Query:
8311   + Add OP_SCALE_WEIGHT operator (and a corresponding constructor which
8312     takes a single subquery and a parameter of type "double").  This
8313     multiplies the weights from the subquery by the parameter, allowing
8314     adjustment of the importance of parts of the query tree.
8316   + Deprecate the essentially useless constructor Query(Query::op, Query).
8318 * QueryParser:
8320   + A field prefix can now be set to expand to more than one term prefix.
8321     Similarly, multiple term prefixes can now be applied by default.  This is
8322     done by calling QueryParser::add_boolean_prefix() or
8323     QueryParser::add_prefix() more than once with the same field name but a
8324     different term prefix (previously subsequent calls with the same field name
8325     had no effect).
8327   + Trying to set the same field as probabilistic and boolean now throws
8328     InvalidOperationError.
8330   + Fix parsing of `term1 site:example.org term2', broken by changes in 1.0.2.
8332   + Drop special treatment for unmatched ')' at the start of the query, as it
8333     seems rather arbitrary and not particularly useful and was causing us to
8334     parse `(site:example.org) -term' incorrectly.
8336   + The QueryParser now generates pure boolean Query objects for strings such
8337     as `site:example.org' by applying OP_SCALE_WEIGHT with a factor of 0.0.
8339   + Fix handling of `"quoted phrase" +term' and `"quoted phrase" -term'.
8341   + Fix handling of `site:example.org -term'.
8343   + Fix problem with spelling correction of hyphenated terms (or other terms
8344     joined with phrase generators): the position of the start of the term
8345     wasn't being reset for the second term in the generated phrase, resulting
8346     in out of bounds errors when substituting the new value in the corrected
8347     query string.
8349   + The parser stack is now a std::vector<> rather than a fixed size, so it
8350     will typically use less memory, and can't hit the fixed limit.
8352   + Fix handling of STEM_ALL and update the documentation comment for
8353     QueryParser::set_stemming_strategy() to explain how it works clearly.
8355 * PostingIterator: positionlist_begin() and get_wdf() should now always
8356   throw InvalidOperationError where they aren't meaningful (before in some
8357   cases UnimplementedError was thrown).
8359 testsuite:
8361 * Add tests for new features.
8363 * Add another valgrind suppression for a slightly different error from zlib
8364   in Ubuntu gutsy.
8366 * Remove quartztest's test_postlist1 and test_postlist2, replacing the coverage
8367   lost by extending and adding tests which work with other backends as well.
8369 * If a test throws a subclass of std::exception, the test harness now
8370   reports the class name and the extra information returned by std::exception's
8371   what() method.
8373 matcher:
8375 * Several performance improvements have been made, mainly to the handling
8376   of OP_AND and related operations (OP_FILTER, OP_NEAR, and OP_PHRASE).
8377   In combination, these are likely to speed up searching significantly
8378   for most users - in tests on real world data we've seen savings of 15-55%
8379   in search times).  These improvements are:
8381   + OP_AND of 3 or more sub-queries is now processed more efficiently.
8383   + Sub-queries from adjacent OP_AND, OP_FILTER, OP_NEAR, and OP_PHRASE are now
8384     combined into a single multi-way OP_AND operation, and the filters which
8385     implement the near/phrase restrictions are hoisted above this so they need
8386     to check fewer documents (bug#23).
8388   + If an OP_OR or OP_AND_MAYBE decays to OP_AND, we now ensure that the less
8389     frequent sub-query is on the left, which OP_AND is optimised to expect.
8391 * When the Enquire::get_mset() parameter checkatleast is set, and we're sorting
8392   by relevance with forward ordering by docid, and the query is pure boolean,
8393   the matcher was deciding it was done before the checkatleast requirement was
8394   satisfied.  Then the adjustments made to the estimated and max statistics
8395   based on checkatleast meant the results claimed there were exactly msize
8396   results.  This bug has now been fixed.
8398 * Queries involving an OP_VALUE_RANGE filter now run around 3.5 times faster
8399   (bug#164).
8401 * The calculations behind MSet::get_matches_estimated() were always rounding
8402   down fractions, but now round to the nearest integer.  Due to cumulative
8403   rounding, this could mean that the estimate is now a few documents higher in
8404   some cases (and hopefully a better estimate).
8406 * Implement explicit swap() methods for internal classes MSetItem and ESetItem
8407   which should make the final sort of the MSet and ESet a little more
8408   efficient.
8410 flint backend:
8412 * Fixed a bug introduced in 1.0.3 - trying to open a flint database for reading
8413   no longer fails if it isn't writable.
8415 * We no longer use member function pointers in the Btree implementation which
8416   seems to speed up searching a little.
8418 remote backend:
8420 * The remote protocol minor version has been increased (to accommodate
8421   OP_SCALE_WEIGHT).  If you are upgrading a live system which uses the
8422   remote backend, upgrade the servers before the clients.
8424 build system:
8426 * Added macro machinery to allow branch prediction hints to be specified and
8427   used by compilers which support this (current GCC and Intel C++).
8429 * In a developer build, look for rst2html.py if rst2html isn't found as some
8430   Linux distros have it installed under with an extension.
8432 documentation:
8434 * In the API documentation, explicitly note that Database::get_metadata()
8435   returns an empty string when the backend doesn't support user-specified
8436   metadata, and that WritableDatabase::set_metadata() throws UnimplementedError
8437   in this case.  Also describe the current behaviour with multidatabases.
8439 * README: Remove the ancient history lesson - this material is better left to
8440   the history page on the website.
8442 * deprecation.html:
8444   + Deprecate the non-pythonic iterators in favour of the pythonic ones.
8446   + Move "Stem::stem_word(word)" in the bindings to the right section (it was
8447     done in 1.0.0, as already indicated).
8449   + Improve formatting.
8451 * When running rst2html, using "--verbose" was causing "info" messages to be
8452   included in the HTML output, so drop this option and really fix this issue
8453   (which was thought to have been fixed by changes in 1.0.3).
8455 * install.html: Reworked - this document now concentrates on giving
8456   a brief overview of building which should be suitable for most common cases,
8457   and defers to the INSTALL document in each tarball for more details.
8459 * PLATFORMS: Update from tinderbox and buildbot.
8461 * remote.html: xapian-tcpsrv has been able to handle concurrent read
8462   access since 0.3.1 (7 years ago) so update the very out-of-date information
8463   here.  Also, note that some newer features aren't supported by the remote
8464   backend yet.
8466 * HACKING: Note specifically that std::list::size() is O(n) for GCC.
8468 * intro_ir.html: Add link to the forthcoming book "Introduction to
8469   Information Retrieval", which can be read online.
8471 * scalability.html: Update size of gmane.
8473 * quartzdesign.html: Note that Quartz is now deprecated.
8475 debug code:
8477 * The debug assertion code has been rewritten from scratch to be cleaner and
8478   pull in fewer other headers.
8480 Xapian-core 1.0.3 (2007-09-28):
8482 API:
8484 * Add support for user specified metadata (bug#143).  Currently supported by
8485   the flint and inmemory backends.
8487 * Deprecate Enquire::register_match_decider() which has always been a no-op.
8489 * Improve the lower bound on the number of matching documents for an AND query
8490   - if the sum of the lower bounds for the two sides is greater than the
8491   number of documents in the database, then some of them must have both terms.
8493 * Spelling correction: Fix off-by-one error in loop bounds when initialising
8494   (bug#194).
8496 * If the check_at_least parameter to Enquire::get_mset() is used, but there
8497   aren't that many results, then MSet::get_matches_lower_bound() and
8498   MSet::get_matches_upper_bound() weren't always reported as equal - this
8499   bug is now fixed.
8501 * When sorting by value, and using the check_at_least parameter to
8502   Enquire::get_mset(), some potential matches weren't being counted.
8504 * Failing to create a flint or quartz database because we couldn't create the
8505   directory for it now throws DatabaseCreateError not DatabaseOpeningError.
8507 testsuite:
8509 * Fix display of valgrind output when a test fails because valgrind detected
8510   a problem.
8512 * Add another version of valgrind suppression for the zlib end condition check
8513   as this gives a different backtrace for zlib in Ubuntu gutsy.
8515 flint backend:
8517 * The Flint database format has been extended to support user metadata, and
8518   each termlist entry is now a byte shorter (before compression).  As a
8519   result, Xapian 1.0.2 and earlier won't be able to read Xapian 1.0.3
8520   databases.  However, Xapian 1.0.3 can read older databases.  If you open an
8521   older flint database for writing with Xapian 1.0.3, it will be upgraded
8522   such that it cannot then be read by Xapian 1.0.2 and earlier.
8524 * Zlib compression wasn't being used for the spelling or synonym tables (due
8525   to a typo - Z_DEFAULT_COMPRESSION where it should be Z_DEFAULT_STRATEGY).
8527 * xapian-check: Allow "db/record." and "db/record.DB" as arguments.
8529 * Fix "key too long" exception message by substituting FLINT_BTREE_MAX_KEY_LEN
8530   with its numeric value.
8532 * Assorted minor efficiency improvements.
8534 * If we reach the flush threshold during a transaction, we now write out the
8535   postlist changes, but don't actually commit them.
8537 * Check length of new terms is at most 245 bytes for flint in add_document()
8538   and replace_document() so that the API user gets an error there rather
8539   than when flush() is called (explicitly or implicitly).  Fixes bug#44.
8541 * Flint used to read the value of the environmental variable
8542   XAPIAN_FLUSH_THRESHOLD when the first WritableDatabase was opened and would
8543   then cache this value.  However the program using Xapian may have changed
8544   it, so we now reread it each time a WritableDatabase is opened.
8546 * Implement TermIterator::positionlist_count() for the flint backend.
8548 remote backend:
8550 * Fix the result of MSet::get_matches_lower_bound() when using the
8551   check_at_least parameter to get_mset().
8553 inmemory backend:
8555 * Implement TermIterator::positionlist_count() for the inmemory backend.
8557 build system:
8559 * xapian-config: We always need to include dependency_libs in the output of
8560   `xapian-config --libs` if shared libraries are disabled.
8562 * Distribution tarballs are now in the POSIX "ustar" format.  This supports
8563   pathnames longer than 99 characters (which we now have a few instances of
8564   in the doxygen generated documentation) and also results in a distribution
8565   tarball that is about half the size!  This format should be readable by any
8566   tar program in current use - if your tar program doesn't support it, we'd
8567   like to know (but note that the GNU tar tarball is smaller than the size
8568   reduction in the xapian-core tarball...)
8570 * configure no longer generates msvc/version.h - this is now entirely handled
8571   by the MSVC-specific makefiles.
8573 documentation:
8575 * Add a glossary.
8577 * docs/stemming.html: Reorder the initial paragraphs so we actually answer the
8578   question "What is a stemming algorithm?" up front.
8580 * When running rst2html, use "--exit-status=warning" rather than "--strict".
8581   The former actually gives a non-zero exit status for a warning or worse,
8582   while the former doesn't, but does include any "info" messages in the output
8583   HTML.
8585 * docs/deprecation.rst: Add "Database::positionlist_begin() throwing
8586   RangeError and DocNotFoundError".
8588 * valueranges.rst: Correct out-of-date reference to float_to_string.
8590 * HACKING: Document a few more "coding standards".
8592 * PLATFORMS: Updated.
8594 * docs/overview.html: Restore HTML header accidentally deleted in November
8595   2006.
8597 * Fix several typos.
8599 portability:
8601 * Add missing instances of "#include <string.h>" to fix compilation with recent
8602   GCC 4.3 snapshots.
8604 * Fix some warnings for various compilers and platforms.
8606 Xapian-core 1.0.2 (2007-07-05):
8608 API:
8610 * Xapian now offers spelling correction, based on a dynamically maintained
8611   list of spelling "target" words.  This is currently supported by the
8612   flint backend, and works when searching multiple databases.
8614 * Xapian now offers search-time synonym expansion, based on an externally
8615   provided synonym dictionary.  This is currently supported by the flint
8616   backend, and works when searching multiple databases.
8618 * TermGenerator: now offers support for generating spelling correction
8619   data.
8621 * QueryParser:
8623   + New flag FLAG_SPELLING_CORRECTION to enable spelling correction, and a new
8624     method, "get_corrected_query_string()" to get the spelling corrected
8625     query string.
8627   + New flags have been added to allow the new synonym expansion feature to be
8628     enabled and controlled.  Synonym expansion can either be automatic, or only
8629     for terms explicitly indicated in the query string by the new "~" operator.
8631   + The precedence of the boolean operators has been adjusted to match their
8632     usual precedence in mathematics and programming languages.  "NOT" now binds
8633     as tightly as "AND" (previously "AND NOT" would bind like "AND", but just
8634     "NOT" would bind like "OR"!)  Also "XOR" now binds more tightly than "OR",
8635     but less tightly than "AND" (previously it bound just like "OR").
8637   + '+' and '-' have been fixed to work on bracketed subexpressions as
8638     documented.
8640   + If the stemmer is "none", no longer put a Z prefix on terms; this now
8641     matches the output of TermGenerator.
8643 * Add new Xapian::sortable_serialise() and Xapian::sortable_unserialise()
8644   functions which serialise and unserialise numbers (currently only
8645   doubles) to a string representation which sorts in numeric order.  Small
8646   integers have a short representation.
8648 * NumberValueRangeProcessor has been changed to work usefully.  Previously
8649   the numbers had to be the same length; now numbers are serialised to
8650   strings such that a string sort on the string orders the numbers correctly.
8651   Negative and floating point numbers are also supported now.  The old
8652   NumberValueRangeProcessor is still present in the library to preserve
8653   ABI compatibility, but code linking against 1.0.2 or later will pick
8654   up the new implementation, which really lives in a sub-namespace.
8656 * Documents now have a get_docid() method, to get the document ID from the
8657   database they came from.
8659 * Add support for a new type of match decider, called a "matchspy".  Unlike
8660   the old deciders, this will reliably be tested on every candidate
8661   document, so can be used to tally statistics on them.
8663 * Fixed a segfault when getting a description for a MatchNothing query
8664   joined with AND_NOT (bug #176).
8666 * Header files have been tidied up to remove some unnecessary includes.
8667   Applications using "#include <xapian.h>" will not be affected.  We don't
8668   intend to support direct inclusion of individual header files from the xapian
8669   directory, but if you do that, you may have to update you code.
8671 testsuite:
8673 * Feature tests added for all new features.
8675 * Improved test coverage in queryparsertest.  Some tests in queryparsertest
8676   now use flint databases, so the test now ensures that the .flint
8677   subdirectory exists.
8679 * The test harness no longer creates <dbdir>/log for flint (flint doesn't
8680   create a log like quartz does).
8682 * apitest: "-bremote" must now be "-bremoteprog" (to better match
8683   "-bremotetcp"); "-bvoid" must now be "-bnone" (to better describe not
8684   using a database backend).
8686 * To complement "make check-flint", "make check-quartz", and "make
8687   check-remote", you can now run tests for the remotetcp backend with
8688   "make check-remotetcp", for the remoteprog backend with "make
8689   check-remoteprog", for the inmemory backend with "make check-inmemory", and
8690   tests not requiring a backend with "make check-none".
8692 * Several extra tests of the check_at_least parameter supplied to
8693   get_mset() were added.
8695 * Fix memory leak and fd leak in remotetcp handling, so apitest now passes
8696   under valgrind.
8698 * quartztest: no longer test QuartzPostList::get_collection_freq(), which
8699   has been removed.
8701 * Add regression test emptyquery2 for bug #176.
8703 * Add regression test matchall1 for bug with MatchAll queries.
8705 * Enhanced test coverage of match functor, to check that it returns all
8706   matching documents.
8708 matcher:
8710 * Fix bug when check_at_least was supplied - the matches after the
8711   requested MSet size were being returned to the user.  The parameter is
8712   also now handled in a more efficient way - no extra memory is required
8713   (previously, extra memory proportional to the value of check_at_least was
8714   required).
8716 * Fix bug which used incorrect statistics, and caused assertion failures,
8717   when performing a search using a MatchAll query.
8719 * Optimisation for single term queries: we don't need to look at the top
8720   document's termlist to determine that it matches all the query terms.
8722 flint backend:
8724 * The value and position tables are now only created if there is anything to
8725   add to them.  So if you never use document values, there's no value.DB,
8726   value.baseA, or value.baseB.  This means the table doesn't need to be opened
8727   for searching (saving a file handle and a number of syscalls) and when
8728   flushing changes, we don't need to update baseA/baseB just to keep the
8729   revisions in step.  The flint database version has been increased, but the
8730   new code will happily open and read/update flint databases from Xapian 1.0.0
8731   and 1.0.1.  Xapian 1.0.2 flint databases can't be read by Xapian 1.0.1 or
8732   earlier though.
8734 * Two new optional tables are now supported: "spelling", which is used to
8735   store information for spelling correction, and "synonym", which is used
8736   to store synonym information.
8738 * xapian-compact: Now compacts and merges spelling and synonym tables.
8739   Also has a new option "--no-renumber" to preserve document ids from
8740   source databases.
8742 * xapian-check: Now checks the spelling and synonym tables (only the Btree
8743   structure is currently checked, not the information inside).
8745 * Database::term_exists(), Database::get_termfreq(), and
8746   Database::get_collection_freq() are now slightly more efficient for flint
8747   databases.
8749 * New utility 'xapian-inspect' which allowing interactive inspection of key/tag
8750   pairs in a flint Btree.  Useful for development and debugging, and an
8751   approximate equivalent to quartzdump.
8753 * WritableDatabase::delete_document() no longer cancels pending changes if the
8754   document doesn't exist.
8756 * Fix handling of exceptions during commit - previously, this could result
8757   in tables getting out-of-sync, perhaps even resulting in a corrupt database.
8759 * Optimise iteration of all documents in the case where all the document
8760   IDs up to lastdocid are used; in this case, we no longer need to access disk
8761   to get the document IDs.
8763 quartz backend:
8765 * WritableDatabase::delete_document() no longer cancels pending changes if the
8766   document doesn't exist.
8768 * We no longer create a postlist just to find the termfreq or collection
8769   frequency.
8771 remote backend:
8773 * Calling WritableDatabase::delete_document() on a non-existent document now
8774   correctly propagates DocNotFoundError.
8776 * The minor remote protocol version has increased (to fix the previous issue).
8777   You should be able to cleanly upgrade a live system by upgrading servers
8778   first and then clients.
8780 * progclient: Reopen stderr on the child process to /dev/null rather than
8781   closing it.  This fixes apitest with the remoteprog backend to pass when run
8782   under valgrind (it failed in this case in 1.0.0 and 1.0.1).  It probably
8783   has no effect otherwise.
8785 * check_at_least is now passed to the remote server to reduce the work
8786   needed to produce the match, and the serialised size of the returned MSet.
8788 inmemory backend:
8790 * Bug fix: using replace_document() to add a document with a specific
8791   document id above the highest currently used would create empty documents
8792   for all document ids in between.
8794 build system:
8796 * Work around an apparent bug in automake which causes the entries in .libs
8797   subdirectories generated for targets of bin_PROGRAMS not to be removed on
8798   make clean.  This was causing make distcheck to fail.
8800 * Snapshots and releases are now bootstrapped with automake 1.10, and
8801   libtool 1.5.24.
8803 * HTML documentation generated from RST files is now installed.
8805 documentation:
8807 * The API documentation is now generated with Doxygen 1.5.2, which fixes the
8808   missing docs for Xapian::Query.
8810 * Ship and install internals.html.
8812 * Generating the doxygen-collated documentation of the library internals (with
8813   "make doxygen_source_docs") now only tries to generate an HTML version.  The
8814   PDF version kept exceeding TeX limits, and HTML is a more useful format for
8815   this anyway.
8817 * API docs for Xapian::QueryParser now make it clear that the default value for
8818   the stemming strategy is STEM_NONE.
8820 * API docs now describe the NumberValueRangeProcessor more clearly.
8822 * Several typo fixes and assorted wording improvements.
8824 * queryparser.html: Mention "AND NOT" as an alternative way to write "NOT",
8825   and document synonym expansion.
8827 * admin_notes.html: Updated for changes in this release, and corrected a
8828   few minor errors.
8830 * spelling.rst: New file, documenting the spelling correction feature.
8832 * synonyms.rst: New file, documenting the synonyms expansion feature.
8834 * valueranges.rst: The NumberValueRangeProcessor is now documented.
8836 * HACKING: Mention new libtool, and more details about preferring
8837   pre-increment.  Also add a note about 2 space indentation of protection
8838   level declarations in classes.
8840 * INSTALL: note that zlib must be installed before you can build.
8842 examples:
8844 * copydatabase: Now copies synonym and spelling data.  Also, fix a cosmetic
8845   bug with progress output when a specified database directory has a trailing
8846   slash.
8848 portability:
8850 * Fix to build on with OpenBSD's zlib (xapian-core 1.0.0 and 1.0.1 didn't).
8852 * Fixed to build with older zlib such as zlib 1.1.5 which Solaris apparently
8853   uses (xapian-core 1.0.0 and 1.0.1 didn't).  However, we recommend using zlib
8854   1.2.x as decompressing is apparently about 20% faster.
8856 * msvc/version.h.in: Generated version.h for MSVC build no longer has the
8857   remote backend marked as disabled.
8859 * Fix warnings from Intel's C++ compiler.
8861 * Fixes for compilation with gcc-2.95 and GCC 4.3 snapshots.
8863 packaging:
8865 * RPMs:
8867   + Rename xapian.spec to xapian-core.spec to match tarball name.
8869   + Append the user name to BuildRoot.
8871 debug code:
8873 * Better debug logging from the queryparser internals.
8875 Xapian-core 1.0.1 (2007-06-11):
8877 API:
8879 * Xapian::Error:
8881   + Make Error::error_string member std::string rather than char * to avoid
8882     problems with double free() with copied Error objects.  Unfortunately
8883     this mean an incompatible ABI change which we had hoped to avoid until
8884     1.1.0, but in this case there didn't seem to be a sane way to fix the
8885     problem without an ABI change.
8887   + Error::get_description() now converts my_errno to error_string if it hasn't
8888     been already rather than not including any error description in this case.
8890   + Add new method "get_description()" to get a string describing the error
8891     object.  This is used in various examples and scripts, improving their
8892     error reporting.
8894 * Xapian::Database: Add new form of allterms_begin() and allterms_end()
8895   which allow iterating of all terms with a particular prefix.  This
8896   is easier to use than checking the end condition yourself, and is
8897   more efficiently implemented for the remote backend (fixes bug#153).
8899 * Xapian::Enquire: Passing an uninitialised Database object to Enquire will
8900   now cause InvalidArgumentError to be thrown, rather than causing a segfault
8901   when you call Enquire::get_mset().  If you really want an empty database,
8902   you can use Xapian::InMemory::open() to create one.
8904 * Xapian::QueryParser: Multiple boolean prefixed terms with the same term
8905   prefix are now combined with OR before such groups are combined with AND
8906   (bug#157).  Multiple value ranges on the same value are handled similarly.
8908 * Xapian::Query OP_VALUE_RANGE: Avoid calling db->get_lastdocid() repeatedly
8909   as we know the answer won't change - this reduces the run time of a
8910   particular test case by 25%.
8912 testsuite:
8914 * Add test for serialisation of error strings.
8916 * Improved output in various situations:
8918   + Quote strings in TEST_STRINGS_EQUAL().
8920   + queryparsertest: Use TEST_STRINGS_EQUAL when comparing query descriptions
8921     against their expected output, since this makes it much easier to see the
8922     differences.
8924   + Report whole message for exceptions, rather than a truncated version, in
8925     verbose mode.
8927   + Make use of Xapian::Error::get_description(), giving better error
8928     reports.
8930 * queryparsertest: New test of custom ValueRangeProcessor subclass
8931   (qp_value_customrange1).
8933 * apitest: flintdatabaseformaterror1 and flintdatabaseformaterror2 now use a
8934   genuine Xapian 0.9.9 flint database for their tests, and more cases are
8935   tested.  The two tests have also been split into 3 now.
8937 * Fix test harness not to invoke undefined behaviour in cases where a paragraph
8938   of test data contains two or fewer characters.
8940 * Implement a better fix for the MSVC ifstream issue which was fixed in 1.0.0.
8941   This fixes an unintentional side-effect of the previous fix which meant that
8942   apitest's consistency1 wasn't working as intended (it now has a regression
8943   test to make sure it is testing what we intend).
8945 flint backend:
8947 * xapian-compact: Don't uncompress and recompress tags when compacting a
8948   database.  This speeds up xapian-compact rather a lot (by more than 50% in a
8949   quick test).
8951 * If the docid counter wraps, Flint now throws DatabaseError (fixes bug#152).
8953 * Remove the special case error message for pre-0.6 databases since they'll
8954   be quartz format (the check is only in flint because this code was taken from
8955   quartz).
8957 quartz backend:
8959 * If the docid counter wraps, Quartz now throws DatabaseError (fixes bug#152).
8961 remote backend:
8963 * The remote protocol now has a minor version number.  If the major
8964   version number is the same, a client can work with any server with
8965   the same or higher minor version number, which makes upgrading live
8966   systems easier for most remote protocol changes - just upgrade the servers
8967   first.
8969 * When a read-only remote database is closed, the client no longer sends a
8970   (totally bogus) MSG_FLUSH to the server, and the reply is also eliminated.
8971   This reduces the time taken to close a remote database a little (fixes
8972   bug#149).
8974 inmemory backend:
8976 * skip_to() on an allterms TermIterator from an InMemory Database can no longer
8977   move backwards.
8979 * An allterms TermIterator now initialises lazily, which can save some work if
8980   the first operation is a skip_to() (as it often will be).
8982 build system:
8984 * Fix VPATH compilation in maintainer mode with gcc-2.95.
8986 * Fix multiple target rule for generating the queryparser source files in
8987   parallel builds.
8989 * Distribute missing stub Makefiles for "bin", "examples", and
8990   "include/xapian".
8992 documentation:
8994 * Document the design flaw with NumberValueRangeProcessor and why it shouldn't
8995   be used.
8997 * ValueRangeProcessor and subclasses now have API documentation and an overview
8998   document.
9000 * Expand documentation of value range Query constructor.
9002 * Improved API documentation for the TermGenerator class.
9004 * docs/deprecation.rst:
9006   + Fix copy and paste error - set_sort_forward() should be changed to
9007     set_docid_order().
9009   + Improve entry for QueryParserError.
9011 * PLATFORMS: Updated from tinderbox.
9013 examples:
9015 * copydatabase: Rewritten to use the ability to iterate over all the documents
9016   in a database.  Should be much more efficient for databases with sparsely
9017   distributed document IDs.
9019 * simpleindex: Rewritten to use the TermGenerator class, which eliminates a
9020   lot of non-Xapian related code and is more typical of what a user is likely
9021   to want to do.
9023 * simplesearch,simpleexpand: Rewritten to use the QueryParser class, which
9024   is more typical of what a user is likely to want to do.
9026 portability:
9028 * xapian-config: Add special case check for host_os matching linux* or
9029   k*bsd-gnu since vanilla libtool doesn't correctly probe link_all_deplibs=no
9030   for them.
9032 packaging:
9034 * RPMs: Add "# norootforbuild" comment which SuSE's build scripts look for.
9035   Rename "Source0:" to "Source:" as there's only one tarball now.  Add gcc-c++
9036   and zlib-devel to "Build-Requires:".
9038 * The required automake version has been lowered to 1.8.3, so RPMs can now be
9039   built on RHEL 4 and SLES 9.
9041 Xapian-core 1.0.0 (2007-05-17):
9043 API:
9045 * Xapian::Database:
9047   + The Database(const std::string &) constructor has been marked as "explicit".
9048     Hopefully this won't affect real code, but it's possible.  Instead of
9049     passing a std::string where a Xapian::Database is expected, you'll now
9050     have to explicitly write `Xapian::Database(path)' instead of `path'.
9052   + Fixed problem when calling skip_to() on an allterms iterator over multiple
9053     databases which could cause a debug assertion in debug builds, and possible
9054     misbehaviour in normal builds.
9056 * Xapian::Error:
9058   + The constructors of Error subclasses which take a `const std::string &'
9059     parameter are now explicit.  This is very unlikely to affect any real code
9060     but if it does, just write `Xapian::Error(msg)' instead of `msg'.
9062   + Xapian::Error::get_type() now returns const char* rather than std::string.
9063     Generally existing code will just work (only one change was required in
9064     Xapian itself) - the simplest change is to write `std::string(e.get_type())'
9065     instead of `e.get_type()'.
9067   + Previously, the errno value was lost when an error was propagated from
9068     a remote server to the client, because errno values aren't portable
9069     between platforms.  To fix this, Error::get_errno() is now deprecated and
9070     you should use Error::get_error_string() instead, which returns a string
9071     expanded from the errno value (or other system error code).
9073 * Xapian::QueryParser:
9075   + Now assumes input text is encoded as UTF-8.
9077   + We've made several changes to term generation strategy.  Most notably:
9078     Unicode support has been added; '_' now counts as a word character; numbers
9079     and version numbers are now parsed as a single term; single apostrophes are
9080     now included in a term; we now store unstemmed forms of all terms; and we
9081     no longer try to "normalise" accents.
9083   + parse_query() now throws the new Xapian::Error subclass QueryParserError
9084     instead of throwing const char * (bug#101).
9086   + Pure NOT queries are now supported (for example, `NOT apples' will match
9087     all documents not indexed by the stemmed form of `apples').  You need
9088     to enable this feature by passing QueryParser::FLAG_PURE_NOT in flags
9089     to QueryParser::parse_query().
9091   + We now clear the stoplist when we parse a new query.
9093   + Queries such as `+foo* bar', where no terms in the database match the
9094     wildcard `foo*', now match no documents, even if `bar' exists.  Handling
9095     of `-foo*' has also been fixed.
9097   + Now supports wildcarding the last term of a query to provide better support
9098     for incremental searching.  Enabled by QueryParser::FLAG_PARTIAL.
9100   + The default prefix can now be specified to parse_query() to allow parsing
9101     of text entry boxes for particular fields.
9103   + QueryParser::set_stemming_options() has been deprecated since 0.9.0 and
9104     has now been removed.
9106 * Xapian::Stem:
9108   + Now assumes input text is encoded as UTF-8.
9110   + We've updated to the latest version of the Snowball stemmers.  This means
9111     that a small number of words produce different (and generally better)
9112     stems and that some new stemmers are supported: german2 (like german but
9113     normalises umlauts), hungarian, kraaij_pohlmann (a different Dutch
9114     stemmer), romanian, and turkish.
9116 * Xapian::TermGenerator:
9118   + New class which generates terms from a piece of text.
9120 * Xapian::Enquire:
9122   + The Enquire(const Database &) constructor has been marked as "explicit".
9123     This probably won't affect real code - certainly no Xapian API methods
9124     or functions take an Enquire object as a parameter - but calls to user
9125     methods or functions taking an Enquire object could be affected.  In
9126     such cases, you'll now have to explicitly write `Xapian::Enquire(db)'
9127     instead of `db'.
9129   + Enquire::get_eset() now produces better results when used with multiple
9130     databases - without USE_EXACT_TERMFREQ they should be much more similar to
9131     results from an equivalent single database; with USE_EXACT_TERMFREQ they
9132     should be identical.
9134   + Track the minimum weight required to be considered for the MSet separately
9135     from the minimum item which could be considered.  Trying to combine the two
9136     caused several subtle bugs (bug#86).
9138   + Enquire::get_query() is now `const'.  Should have no effect on user code.
9140   + Enquire::get_mset() now handles the common case of an "exact" phrase search
9141     (where the window size is equal to the number of terms) specially.
9143   + Enquire::include_query_terms and Enquire::use_exact_termfreq are now
9144     deprecated in favour of capitalised versions Enquire::INCLUDE_QUERY_TERMS
9145     and Enquire::USE_EXACT_TERMFREQ (for consistency with our other manifest
9146     constants, and general C/C++ conventions).
9148 * Xapian::RSet:
9150   + RSet::contains(MSetIterator) is now `const'.  Should have no effect on user
9151     code.
9153 * Xapian::SimpleStopper::add() now takes `const std::string &' not `const
9154   std::string'.  Should have no effect on user code.
9156 * Xapian::Query:
9158   + We now only perform internal validation on a Query object when it's either
9159     constructed or changed, to avoid O(n^2) behaviour in some cases.
9161   + Xapian::Query::MatchAll (an alias for Query("")) matches all terms in the
9162     document (useful for "pure NOT" queries) and Xapian::Query:MatchNothing
9163     is now a more memorable alias for Query().
9165 * Instead of explicitly checking that a term exists before opening its
9166   postlist, we now do both in one operation, which is more efficient.
9168 * MatchDecider::operator() now returns `bool' not `int'.
9170 * ExpandDecider::operator() now returns `bool' not `int'.
9172 * Xapian::TermIterator::get_termfreq() now throws InvalidOperationError
9173   if called on a TermIterator from a freshly created Document (since
9174   there's no meaningful term frequency as there's no Database for
9175   context).
9177 * <xapian/output.h> is no longer available as an externally visible header.
9178   It's not been included by <xapian.h> since 0.7.0.  Instead of using
9179   `cout << obj;' use `cout << obj.get_description();'.
9181 * New constant Xapian::BAD_VALUENO which is -1 cast to Xapian::valueno.
9183 * New Xapian::ValueRangeProcessor hierarchy: DateValueRangeProcessor,
9184   NumberValueRangeProcessor, and StringValueRangeProcessor.  In
9185   conjunction with the new QueryParser::add_valuerangeprocessor()
9186   method and the new Query::OP_VALUE_RANGE op these allow you to
9187   implement ranges in the query parser, such as `$50..100',
9188   `10..20kg', `01/02/2007..03/04/2007'.
9190 testsuite:
9192 * Many new and improved testcases in various areas.
9194 * If a test throws an unknown exception, say so in the test failure message.
9195   If it throws std::string, report the first 40 characters (or first line if
9196   less than 40 characters) of the string even in non-verbose mode.
9198 * Use of valgrind improved:
9200   + The test harness now only hooks into valgrind if environment variable
9201     XAPIAN_TESTSUITE_VALGRIND is set, which makes it easy to run test programs
9202     under valgrind in the normal way.  The runtest script sets this
9203     automatically.
9205   + runtest now passes "--leak-resolution=high" to valgrind to prevent
9206     unrelated leak reports related to STL classes from being combined.
9208   + configure tests for valgrind improved and streamlined.
9210   + New runsrv script to run xapian-tcpsrv and xapian-progsrv.  We need to
9211     run these under valgrind to avoid issues with excess numerical precision
9212     in valgrind's FP handling, but we can use "--tool=none" which is a lot
9213     faster than running them under valgrind's default memcheck tool.
9215 * The test harness now starts xapian-tcpsrv in a more reliable way - it will
9216   try sequentially higher port numbers, rather than failing because a
9217   xapian-tcpsrv (or something else) is already using the default port.
9218   It also no longer leaks file descriptors (which was causing later tests
9219   to fail on some platforms), and if xapian-tcpsrv fails to start, the error
9220   message is now reported.
9222 * remotetest has been removed and its testcases have either been added to
9223   apitest or just removed if redundant with tests already in apitest.
9225 * termgentest is a new test program which tests the Xapian::TermGenerator
9226   class.
9228 * TEST_EQUAL_DOUBLE() now uses a slightly less stringent threshold -
9229   DBL_EPSILON is too strict for calculations which include multiple
9230   steps.  Also, we now use it instead of doubles_are_equal_enough() and
9231   weights_are_equal_enough() which try to perform the same job.
9233 * New macro TEST_STRINGS_EQUAL() which displays the strings on separate lines
9234   so the differences can be clearly seen.
9236 * Test programs are now linked with '-no-install' which means that libtool
9237   doesn't need to generate shell script wrappers for them on most platforms.
9239 * runtest: Now turns on MALLOC_CHECK_ and MALLOC_PERTURB_ for glibc if
9240   valgrind isn't being used.
9242 * Better support for Microsoft Windows:
9244   + test_emptyterm2 no longer tries to delete a database from disk while a
9245     WritableDatabase object still exists for it, since this isn't supported
9246     under Microsoft Windows.
9248   + Fallback handling when srcdir isn't specified how takes into account .exe
9249     extensions and different path separators.
9251 flint backend:
9253 * Flint is now the default backend.
9255 * xapian-check: New program which performs consistency checks on a flint
9256   database or table.
9258 * xapian-compact: Now prunes unused docids off the start of each source
9259   database's range of docids.
9261 * Positional information is now encoded using a highly optimised fls()
9262   implementation, which is much faster than the FP code 0.9.x used.
9263   Unfortunately the old encoding could occasionally add extra bits
9264   on some architectures, which was harmless except the databases
9265   wouldn't be portable.  Because of this, the flint format has had to
9266   be changed incompatibly.
9268 * The lock file is now called "flintlock" rather than "flicklock" (which
9269   was a typo!)
9271 * Flint now releases its lock correctly if there's an error in
9272   WritableDatabase's constructor.  Previously the lock would remain until
9273   the process exited.
9275 * Flint now throws new Xapian::Error subclass DatabaseVersionError instead of
9276   DatabaseOpeningError when it fails to open a database because it has an
9277   unsupported version.  DatabaseVersionError is a subclass of
9278   DatabaseOpeningError so existing code should continue to work, but it's
9279   now much easier to determine if the problem is that a database needs
9280   rebuilding.
9282 * If you try to open a flint database with an older or newer version than
9283   flint understands, the exception message now gives the version understood,
9284   rather than "I only understand FLINT_VERSION" (literally).
9286 * If we fail to obtain the lock, report why in the exception message.
9288 * Flint now compresses tags in the record and termlist tables using zlib.
9290 * More robust code to handle the flint locking child process, in case of
9291   unexpected errors.
9293 * If a document was replaced more than once between flushes, the document
9294   length wouldn't be updated after the first change.
9296 quartz backend:
9298 * Quartz is still supported, but use in new projects is deprecated (use Flint
9299   instead).  Quartz will be removed eventually.
9301 * quartzcheck: Test if this is a quartz database by looking at "meta" not
9302   "record_DB".  If "record_DB" is >= 2GB and we don't have a LFS aware stat
9303   function then stat can fail even though the file is there.  Also open the
9304   database explicitly as a Quartz database for extra robustness.
9306 * If a document was replaced more than once between flushes, the document
9307   length wouldn't be updated after the first change.
9309 remote backend:
9311 * The remote backend is now supported under Microsoft Windows.
9313 * Open a fresh copy of the database(s) on each connection to a xapian-tcpsrv
9314   rather than relying on being able to share a database across fork() or
9315   between threads (which we don't promise will work).
9317 * xapian-tcpsrv: New "--interface" option allows the hostname or address of the
9318   interface to listen on to be specified (the default is the previous behaviour
9319   of listening on all interfaces).
9321 * If name lookup fails, report the h_errno code from gethostbyname() rather
9322   than whatever value errno happens to currently have!
9324 * Fix bugs in query unserialisation.
9326 * The remote backend now supports all operations (get_lastdocid(), and
9327   postlist_begin() have now been implemented).
9329 * Currently a read-only server can be opened as a WritableDatabase (which is
9330   a minor bug we plan to fix).  In this case, operations which write will fail
9331   and the exception is now InvalidOperationError not NetworkError.
9333 * If a remote server catches NetworkTimeoutError then it will now only
9334   propagate it if we can send it right away (since the connection is
9335   probably unhappy).  After that (and for any other NetworkError) we now
9336   just rethrow it locally to close the connection and let it be logged if
9337   required.
9339 * The timeout parameter to RemoteDatabase wasn't being used, instead the
9340   client would wait indefinitely for the server to respond.
9342 * A timeout of zero to the remote backend now means "never timeout".  This
9343   is now the default idle timeout for WritableDatabase (the connection
9344   timeout default is now 10 seconds, rather than defaulting to the idle
9345   timeout).
9347 * Fix handling of the document length in remote termlists.
9349 * The remote backend now checks when decoding serialised string that the
9350   length isn't more than the amount of data available (bug#117).
9352 * The remote backend now handles the unique term variants of delete_document
9353   and replace_document on the server side.
9355 * The RSet serialisation now encodes deltas between docids (rather than the
9356   docids themselves) which greatly reduces the size of the encoding of a
9357   sparse RSet for a large database.
9359 * We now encode deltas between term positions when sending data after calling
9360   positionlist_begin() on a remote database.
9362 * When using a MatchDecider with remote database(s), don't rerun the
9363   MatchDecider on documents which a remote server has already checked.
9365 * Apply the "decreasing weights with remote database" optimisation which we use
9366   in the sort_by_relevance case in the sort_by_relevance_then_value case too.
9368 * We now throw NetworkError rather than InternalError for invalid data received
9369   over the remote protocol.
9371 * We now close stderr of the spawned backend program when using the "prog" form
9372   of the remote backend.  Previously stderr output would go to the client
9373   application's stderr.
9375 muscat36 backend:
9377 * Support for the old Muscat 3.6 backends has been completely removed.  It's
9378   still possible to convert Muscat 3.6 databases to Xapian databases by
9379   building 0.9.10 and using copydatabase to create a quartz database, which can
9380   then be read by 1.0.0 (and converted to a flint database using copydatabase
9381   again).
9383 build system:
9385 * We've added GCC visibility annotations to the library, which when using GCC
9386   version 4.0 or later reduce the size and load time of the library and
9387   increase the runtime speed a little.  Under x86_64, the stripped library is
9388   6.4% smaller (1.5% smaller with debug information).
9390 * configure: If using GCC, use -Bsymbolic-functions if it is supported
9391   (it requires a very recent version of ld currently).  This option reduces the
9392   size and load time of the shared library by resolving references within the
9393   library when it's created.
9395 * We automatically define _FORTIFY_SOURCE in config.h if GCC is in use
9396   and it's not already set (you can override this as documented in INSTALL).
9397   This adds some checking (mostly at compile time) that important return
9398   values aren't ignored and that array bounds aren't exceeded.
9400 * `./configure --enable-quiet' already allows you to specify at configure time
9401   to pass `--quiet' to libtool.  Now you can override this at make-time by
9402   using `make QUIET=' (to turn off `--quiet') or `make QUIET=y' (to turn on
9403   `--quiet').
9405 * In non-maintainer mode, we don't need the tools required to rebuild some of
9406   the documentation, so speed up configure by not even probing for them in
9407   this common case.
9409 * The makefiles now use non-recursive make in all directories except "docs" and
9410   "tests".  For users, this means that the build is faster and requires less
9411   disk space (bug#97).
9413 * configure: Add proper detection for SGI's C++ (check stderr output of
9414   "CC -v") and automatically pass -ptused in CXXFLAGS for xapian-core and any
9415   applications using xapian-config --cxxflags since it seems to be required to
9416   avoid template linking errors.
9418 * XO_LIB_XAPIAN now checks for the case where XAPIAN_CONFIG wasn't specified
9419   and xapian-config wasn't found, but the library appears to be installed -
9420   this almost certainly means that the user has installed xapian-core from
9421   a package, but hasn't installed the -dev or -devel package, so include
9422   that advice in the error message.
9424 * `./configure --with-stlport-compiler' now requires a compiler name as an
9425   argument.
9427 * configure: Disable probes for f77, gcj, and rc completely by preventing
9428   the probe code from even appearing in configure - this reduces the size of
9429   configure by 209KB (~25%) and should speed it up significantly.
9431 * configure: Suppress more unhelpful warnings and "remarks" for HP's aCC, and
9432   turn on "+wlint", which seems useful.
9434 * A number of cases of unnecessary header inclusions have been addressed,
9435   which should speed up compilation (fewer headers to parse when compiling
9436   many source files).  This also reduces dependencies within the source code,
9437   and thus the number of files which need to be rebuilt when a header is
9438   changed.
9440 * configure: Cache the results of some of our custom tests.
9442 documentation:
9444 * The documentation has all been updated for changes in Xapian 1.0.0.
9446 * Many of the documentation comments in the API headers (which are collated
9447   using doxygen to generated the API reference) have been improved, and some
9448   missing ones added.  Also, internal classes, members, and methods are now all
9449   marked as such so that none should appear in the generated documentation.  In
9450   particular, the class inheritance graphs should be a lot clearer.  A few other
9451   problems have also been addressed.
9453 * docs/internals.html: New separate index page for the "internal"
9454   documentation.
9456 * docs/deprecated.html: New document describing deprecation policy.  This
9457   includes lists of features which have been removed, or which are deprecated
9458   and scheduled for removal, along with suggested replacements.
9460 * docs/admin_notes.html: New document introducing Xapian for sysadmins.
9462 * docs/termgenerator.html: New document describing the new term generation
9463   strategy implemented by the Term::Generator class.
9465 * docs/bm25.html,docs/intro_ir.html: These have been overhauled to make them
9466   fit better with the rest of the documentation, and with Xapian itself.
9468 * docs/overview.html: Fixed links to error classes in generated API
9469   documentation.
9471 * HACKING,INSTALL: Many updates and improvements.
9473 * xapian-config: Improve --version output so that help2man produces a better
9474   man page.
9476 * PLATFORMS: Remove reports for 0.7.* and demote reports for 0.8.* to "older
9477   reports" status.  All SF compilefarm machines are now "no longer available",
9478   so update the symbols and key to reflect this.  Update with recent success
9479   reports from the tinderbox and other sources.
9481 * AUTHORS: Thanks several bug reporters I missed before, as well as recent
9482   contributors.
9484 * docs/code_structure.html now looks nicer and includes links to
9485   svn.xapian.org.
9487 * docs/remote_protocol.html: Fixed several typos and other errors, and document
9488   all the new messages.
9490 * We no longer include docs/apidoc/latex/* in the xapian-core tarballs since
9491   it's just useless bloat.
9493 examples:
9495 * delve:
9497   + Report the exception error string if open a database fails.
9499   + Rename "-k" to "-V" since "keys" were renamed to "values" long ago.  Keep
9500     "-k" as an alias for now, but don't advertise it.  Add handling so "-V3"
9501     shows value #3 for every document in the database.
9503   + No longer stems terms by default.  Add "-s/--stemmer" option to allow a
9504     stemmer to be specified.
9506 * quest: Add "--stemmer" option to allow stemming language to be set, or
9507   stemming to be disabled.
9509 portability:
9511 * Fix compilation with GCC 4.3 snapshot.
9513 * Always use pid_t not int for holding a process id, and use AC_TYPE_PID_T to
9514   `#define pid_t int' if <sys/types.h> doesn't provide pid_t.
9516 * Pass the 4th parameter of setsockopt() as char* which works whether the
9517   function actually takes char* or void* (since C++ allows implicit conversion
9518   from char* to void*).
9520 * Most warnings in the MSVC build have been fixed.
9522 * Refactored most portability workarounds into safeXXXX.h headers.
9524 * Building for mingw in a cygwin environment should work better now.
9526 packaging:
9528 * RPM spec file:
9530   + Updated for the changes in this release.
9532   + ChangeLog.examples is now packaged.
9534 debug code:
9536 * Rename --enable-debug* configure options - conflating the options to "turn on
9537   assertions" and "turn on logging" is confusing. `--enable-debug[=partial]'
9538   becomes `--enable-assertions'; `--enable-debug-verbose' becomes
9539   `--enable-log' and `--enable-debug=full' becomes `--enable-assertions
9540   --enable-log'.  For now the old options give an error telling you the new
9541   equivalent.
9543 * Debug logging from expand is now all of type EXPAND (some was of types
9544   MATCHER and WTCALC before).
9546 * Hook the debug tracing in the lemon generated parser into Xapian's debug
9547   logging framework.
9549 * New assertion types: AssertEqParanoid() and AssertNeParanoid().
9551 * Retry write() if it fails when writing a debug log entry to ensure to avoid
9552   the risk of a partial write.
9554 Xapian-core 0.9.10 (2007-03-04):
9556 API:
9558 * Fix WritableDatabase::replace_document() not to lose positional information
9559   for a document if it is replaced with itself with unmodified postings.
9561 * QueryParser: Add entries to the "unstem" map for prefixed boolean filters
9562   (e.g. type:html).
9564 * Fix inconsistent ordering of documents between pages with
9565   Enquire::set_sort_by_value_then_relevance (fixes bug#110).
9567 testsuite:
9569 * Workaround apparent bug in MSVC's ifstream class.
9571 flint and quartz backends:
9573 * Fix possible double-free after a transaction fails.
9575 * Fix code for recovering from failing to open a table for reading
9576   mid-modification.  If modifications are so frequent that opening for reading
9577   fails 100 times in a row, throw DatabaseModifiedError not
9578   DatabaseOpeningError.
9580 * Don't call std::string::append(ptr, 0) when ptr may be uninitialised
9581   or NULL (rather suspect, and reported to cause SEGV-like behaviour with
9582   MSVC).
9584 * Ensure both_bases is set to false if we don't have both bases when
9585   opening a table using an existing object.
9587 * Use MS Windows API calls to delete files and open files we might want to
9588   delete while they are still open (i.e. the flint and quartz btree base
9589   files).  This fixes a problem when a writer can't discard an old revision at
9590   the exact moment a reader is opening it (bug #108).
9592 remote backend:
9594 * Fix WritableDatabase::has_positions() to refetch the cached value if it
9595   might be out of date.
9597 * Fix incorrect serialisation of a query with non-default termpositions.
9599 inmemory backend:
9601 * If replace_document is used to set the docid of a newly added document which
9602   has previously existed, ensure we mark that document as valid.
9604 documentation:
9606 * Assorted improvements to API documentation.
9608 * docs/Makefile.am: The larger pool_size we set in 0.9.9 for building
9609   sourcedoc.pdf was a bit marginal, so increase it further.
9611 * docs/stemming.html,docs/install.html: Correct 2 references to "CVS" to say
9612   "SVN" instead.
9614 * HACKING: Update the release checklist.
9616 portability:
9618 * Fix flint and quartz to allow 2GB+ B-tree tables when compiling with MSVC.
9620 packaging:
9622 * RPMs: Remove "." from end of "Summary:".  Package the new man page for
9623   xapian-progsrv.
9625 Xapian-core 0.9.9 (2006-11-09):
9627 testsuite:
9629 * Use popen() to run xapian-tcpsrv and wait for "Listening..." before returning
9630   rather than just sleeping for 1 second and hoping that's enough.
9632 * If we can't start xapian-tcpsrv because the port is in use, try higher
9633   numbered ports.
9635 remote backend:
9637 * xapian-tcpsrv: If the port requested is in use, exit with code 69
9638   (EX_UNAVAILABLE) which is useful if you're trying to automate launching of
9639   xapian-tcpsrv instances.
9641 * xapian-tcpsrv: Output "Listening..." once the socket is open and read for
9642   connections (this allows the testsuite to wait until xapian-tcpsrv is ready
9643   before connecting to it).
9645 * xapian-progsrv: Now supports --help, --version, and has a man page.  Fixes
9646   Bug #98.
9648 * Turn on TCP_NODELAY for the TCP variant of the remote backend which
9649   dramatically improves the latency of operations on the database.
9651 build system:
9653 * internaltest: Disable serialiselength1 and serialisedoc1 when the remote
9654   backend is disabled to fix build error in this case.
9656 * Move libbtreecheck.la from testsuite/ to backends/quartz/.
9658 * Move the testsuite harness from testsuite/ to tests/harness/.
9660 documentation:
9662 * Ship our custom INSTALL file rather than the generic one from autoconf which
9663   we've accidentally been shipping instead since 0.9.5.
9665 * docs/Makefile.am: Building sourcedoc.pdf needs a larger pool_size now we're
9666   using pdflatex.
9668 * HACKING: Update debian packaging checklist.
9670 * PLATFORMS: Updated with results from tinderbox.
9672 portability:
9674 * Create "safefcntl.h" as a replacement for <fcntl.h> instead of using
9675   "utils.h" for this purpose, since "utils.h" pulls in many other things we
9676   often don't need.
9678 packaging:
9680 * RPMs: Prevent binaries getting an rpath for /usr/lib64 on FC6.
9682 Xapian-core 0.9.8 (2006-11-02):
9684 API:
9686 * QueryParser: Don't require a prefixed boolean term to start with an
9687   alphanumeric - allow the same set of characters as we do for the second
9688   and subsequent characters.
9690 flint backend:
9692 * Only force a flush on WritableDatabase::allterms_begin() if there are
9693   actually pending changes.
9695 quartz backend:
9697 * Only force a flush on WritableDatabase::allterms_begin() if there are
9698   actually pending changes.
9700 * quartzcheck: Avoid dying because of an unhandled exception if the Btree
9701   checking code finds an error in the low-level Btree structure.  Add a
9702   catch for any other unknown exceptions.
9704 build system:
9706 * When building with GCC, turn on warning flag -Wshadow even when not in
9707   maintainer mode (provided it is supported by the GCC version being used).
9709 * testsuite/backendmanager.cc: Fix compilation when valgrind is detected by
9710   configure.
9712 * If generating apidoc.pdf fails, display the logfile pdflatex generates since
9713   that is likely to show what failed.
9715 documentation:
9717 * Produce a PDF for apidoc rather than PostScript, since the PDF is smaller,
9718   plus at least as easy to print and easier to view for most users.  Use
9719   pdflatex to generate the PDF directly rather than going via a DVI file which
9720   apparently produces a better result and also avoids problems on some Linux
9721   distros where latex is a symlink to pdfelatex (bug#81, bug#95).
9723 * HACKING: Mention automake 1.10 is out but we've not tested it yet.
9725 * HACKING: Add entries to release checklist: make sure new API methods
9726   are wrapped by the bindings, and that bug submitters are thanked.
9728 * HACKING: Note that on Debian, tetex-extra is needed for
9729   fancyhdr.sty.
9731 * HACKING: Note that dch can be used to update debian/changelog.
9733 * docs/code_structure.html: Document backends/remote.
9735 * PLATFORMS: Update from tinderbox.
9737 portability:
9739 * configure: When checking if we need -lm, don't use a constant argument to
9740   log() as the compiler might simply evaluate the whole expression at compile
9741   time.
9743 * configure: Redhat's GCC 2.96 doesn't support -Wundef even though real GCC
9744   version before and after it do!
9746 * configure: Avoid use of double quotes in double-quoted backticks since
9747   it causes problems on some platforms.
9749 * backends/flint/flint_io.cc: Fix compilation on windows (needs to
9750   #include "safewindows.h" to get definition of SSIZE_T).
9752 * Fix our implementation of om_ostringstream to compile so that the build
9753   works once more on older compilers without <sstream> (regression probably
9754   introduced in 0.9.7).
9756 packaging:
9758 * xapian.spec: Package xapian-progsrv.
9760 Xapian-core 0.9.7 (2006-10-10):
9762 API:
9764 * QueryParser:
9766   + Allow a distance to be optionally specified for NEAR - e.g.
9767     "cats NEAR/3 dogs" (bug#92).
9769   + Implement "ADJ" operator - like "NEAR" except the terms must
9770     appear in matching documents in the same order as in the query.
9772   + Fix bug in how we handle prefixed quoted phrases and prefixed brackets.
9774   + Fix parsing of loved and hated prefixed phrases and bracketted expressions.
9776   + Fix handling of stopwords in boolean expressions.
9778   + Don't ignore a stopword if it's the only query term.
9780 * Document::add_value() failed to replace an existing value with the same
9781   number, contrary to what the documentation says (bug #82).
9783 * Enquire::set_sort_by_value(): Don't fetch the document data when fetching
9784   the value to sort on.  Simple benchmarking showed this to speed up sort by
9785   value by a factor of between 3 and 9!
9787 * Implement transactions for flint and quartz.  Also supported are "unflushed"
9788   transactions, which provided an efficient way to atomically group a number
9789   of database modifications.
9791 * The Xapian::Error and Xapian::ErrorHandler classes have been reimplemented.
9792   The new versions have better, clearer documentation comments and are cleaner
9793   internally.
9795 * Change how doubles are serialised by TradWeight, BM25Weight, and in the
9796   remote backend protocol.  The new encoding allows us to transfer any double
9797   value which can be represented by both machines precisely and compactly.
9799 testsuite:
9801 * Add targets "check-flint", "check-quartz", and "check-remote" in tests and at
9802   the top level which run the subset of tests which test the respective backend.
9804 * apitest: Run tests on flint if flint is enabled, rather than if quartz is
9805   enabled!
9807 * apitest: Speed up deldoc4 when run in verbose mode - some stringstream
9808   implementations are very inefficient when the string grows long.
9810 * Turn on GLIBCXX_FORCE_NEW when running tests under valgrind to stop the GNU
9811   C++ STL from using a pooling allocator.  This helps make velgrind's leak
9812   tracking more reliable.
9814 * Probe for required valgrind logging options at configure time rather than
9815   when running the test program.  This saves about 2 seconds per test program
9816   invocation.
9818 * Fix testsuite harness to show valgrind output when a test fails (when running
9819   under valgrind in verbose mode).  This had stopped working, probably due to
9820   changes in valgrind 3.
9822 * internaltest: Check that the destructor on a temporary object gets called
9823   at the correct time (Sun C++ deliberately gets this wrong by default, and it
9824   would be good to catch any other compilers which do the same).
9826 * apitest: When running tests on the remote backend and running under valgrind,
9827   run xapian-tcpsrv and xapian-progsrv under valgrind too to avoid issues
9828   with the precision of doubles (bug#94).
9830 flint backend:
9832 * Retry on EINTR from fcntl or waitpid when creating or releasing the flint
9833   lock file.
9835 * xapian-compact: Add --blocksize option to allow the blocksize to be set
9836   (default is 8K as before.)
9838 * WritableDatabase::replace_document(did, doc) was double-incrementing the
9839   "changes" counter when document did didn't exist so it would flush twice
9840   as often - fixed.
9842 * WritableDatabase::postlist_begin(): Remove forced flush when iterating the
9843   posting list of a term which has modified postings pending.
9845 quartz backend:
9847 * quartzcompact: Add --blocksize option to allow the blocksize to be set
9848   (default is 8K as before.)
9850 * WritableDatabase::replace_document(did, doc) was double-incrementing the
9851   "changes" counter when document did didn't exist so it would flush twice
9852   as often - fixed.
9854 remote backend:
9856 * Most of the remote backend has been rewritten.  It now supports most
9857   operations which a local database does (including writing!), the protocol
9858   used is more compact, and a number of layers of classes have been eliminated
9859   and the sequences of method calls simplified, so the code should be easier to
9860   understand and maintain despite doing more.  A number of bugs have been fixed
9861   in the process.
9863 * xapian-tcpsrv: Report errno if we catch a Xapian::Error which has it set.
9865 * xapian-tcpsrv: Fix memory leak in query unserialisation.
9867 build system:
9869 * Now using autoconf 2.60 for snapshots and releases.  Also now using a
9870   libtool patch which improves support for Sun C++'s -library=stlport4 option.
9872 * configure: Fix generation of version.h to work with Solaris sed.
9874 * automake adds suitable rules for rebuilding doxygen_api_conf and
9875   doxygen_source_conf, so remove our less accurate versions.  Also fix
9876   dependencies for regenerating the doxygen documentation, and make the
9877   documentation build work with parallel make.
9879 * Make use of the dist_ prefix to avoid having to list files in EXTRA_DIST as
9880   well as in *_DATA and man_MANS.
9882 * Removed a few unused #include-s.
9884 * include/xapian/error.h: Add hook to allow SWIG bindings to be built using
9885   GCC's visibility support.
9887 * configure: Turn on automake's -Wportability to help ensure our Makefile.am's
9888   are written in a portable way.
9890 * configure: Disable probing and short-cut tests for a FORTRAN compiler.  We
9891   don't use one, but current libtool versions always check for it regardless.
9893 * xapian-config: Prune -L/usr/lib from output of `xapian-config --libs'.
9895 documentation:
9897 * docs/scalability.html: quartzcompact and xapian-compact now allow you to set
9898   the blocksize, so there's no need to use copydatabase if you want to migrate
9899   a database to a larger blocksize.  Mention gmane.  Other minor tweaks.
9901 * Eliminate "XAPIAN_DEPRECATED" from generated documentation.
9903 * PLATFORMS: Added success report for Nexenta (alpha 5), MSVC, and sparc linux.
9904   Updated other results from tinderbox.
9906 * Add links to the wiki from README and the documentation index.
9908 * docs/overview.html: Add discussion of uses of terms vs values.
9910 * docs/overview.html: Rewrite the section on Xapian::Document to remove some
9911   very out-of-date information and make it clearer.
9913 * include/xapian/database.h: Note that automatically allocated document IDs
9914   don't reuse IDs from deleted documents.
9916 * include/xapian/enquire.h: Note that "set_sort_by_relevance" is the default
9917   setting.
9919 * docs/queryparser.html,include/xapian/queryparser.h: Add note that
9920   FLAG_WILDCARD requires you to call set_database.
9922 * HACKING: Add some advice regarding debugging using -D_GLIBCXX_DEBUG,
9923   valgrind, and gdb.
9925 * HACKING: Give URL to Alexandre Duret-Lutz's autotools tutorial, which is much
9926   more up-to-date than the "goat book".
9928 * HACKING: Update and expand the information about the debian packaging.
9930 * Add missing dir_contents files.
9932 portability:
9934 * xapian/version.h: Add a check that _GLIBCXX_DEBUG is set compatibly if we're
9935   compiling with GNU C++ 3.4 or newer.
9937 * Add configure check to see if "-lm" is needed to get maths functions since
9938   newer versions of Sun's C++ compiler seem to require this.
9940 * Automatically put Sun's C++ compiler into "ANSI C++ compliant library" mode
9941   (using -library=stlport4).  This allows us to remove most of the special
9942   case bits of code we've accumulated for just this compiler, which improves
9943   maintainability.
9945 * Sun's C++ compiler implements non-standards-conforming lifetimes for
9946   temporary objects by default.  This means database locks don't get released
9947   when they should, so we now always pass "-features=tmplife" for Sun C++
9948   which selects the behaviour specified by the C++ standard.
9950 Xapian-core 0.9.6 (2006-05-15):
9952 API:
9954 * Rename Xapian::xapian_version_string() and companions to
9955   Xapian::version_string(), etc.  Keep the old functions as aliases which are
9956   marked as deprecated.
9958 * QueryParser: Add rules to handle a boolean filter with a "+" in front (such
9959   as +site:xapian.org).
9961 testsuite:
9963 * queryparsertest: Add another prefix testcase to improve coverage.
9965 build system:
9967 * configure: Simpler check for VALGRIND being set to empty value.
9969 * include/Makefile.am: Add xapian/version.h.timestamp as a dependency on
9970   all-local so that xapian/version.h actually gets regenerated when required.
9972 * Eliminate XAPIAN_BUILD_BACKEND_* from config.h and just use
9973   XAPIAN_HAS_*_BACKEND from xapian/version.h instead.
9975 documentation:
9977 * remote_protocol.html: Document keep-alive messages.
9979 * xapian/enquire.h: Remove bogus documentation for a parameter which doesn't
9980   exist.
9982 * PLATFORMS: Added a summary.  Updated and pruned old entries for which we
9983   have a newer close match.
9985 * HACKING: Expand on details of what's required when changing Xapian (discuss
9986   documentation requirements, and more on why feature tests are vital).
9988 * HACKING: Update section on building debian packages.
9990 portability:
9992 * The tarball is generated with a patched version of libtool 1.5.22 which
9993   fixes libtool bugs on HP-UX and some BSD platforms.
9995 * configure: Fix problems with test for snprintf which affected cygwin, and
9996   possibly some other platforms.
9998 * configure: Tweak version.h generation to cope with CXXCPP putting carriage
9999   returns into its output as can happen on cygwin.
10001 * Fix renaming of "iamflint.tmp" for MS Windows where you can't rename an open
10002   file.
10004 * Fixed MSVC7 warnings.
10006 * Added workaround for newlib header bug.
10008 Xapian-core 0.9.5 (2006-04-08):
10010 API:
10012 * QueryParser:
10014   + Fix FLAG_BOOLEAN_ANY_CASE to really allow any case combination - previously
10015     it only allowed all uppercase or all lowercase.
10017   + Fix QueryParser's handling of terms with trailing "#", "+", or "-" when
10018     set_database has been called and the term doesn't exist in the database
10019     with the suffix.
10021 * Add mechanism to allow xapian-bindings to override deprecation warnings so
10022   we can continue to wrap deprecated methods without lots of warnings.
10024 * Move Enquire::get_matching_terms_end() and Document::termlist_end() inline in
10025   header.
10027 * Database::termlist_begin(): Eliminate the MultiTermList wrapper in the common
10028   case where we're only dealing with a single database.
10030 * Fix TermIterator::positionlist_begin() to work on TermIterator from
10031   Database::termlist_begin().  Make TermList::positionlist_begin() pure
10032   virtual and put dummy implementations in BranchTermList and other
10033   subclasses which can't (or don't) implement it.  This makes it hard to
10034   accidentally fail to implement it in a backend's TermList subclass.
10036 * TermIterator::positionlist_begin() with the remote backend now throws
10037   UnimplementedError instead of InvalidOperationError.
10039 * Implement Enquire::set_sort_by_relevance_then_value().
10041 testsuite:
10043 * Added missing feature test for QueryParser::FLAG_BOOLEAN_ANY_CASE.
10045 * remotetest: Check mset size in tcpmatch1.
10047 flint backend:
10049 * xapian-compact: Fixed segfault from passing an unknown option (e.g.
10050   "xapian-compact --foo").
10052 quartz backend:
10054 * quartzdump,quartzcompact: Fixed segfault from passing an unknown option
10055   (e.g.  "quartzdump --foo").
10057 remote backend:
10059 * xapian-tcpsrv: Don't perform a name lookup on the IP address which an
10060   incoming connection is from as that could easily slow down the search
10061   response - instead just print the IP address itself if output is verbose.
10063 * xapian-tcpsrv: Allow up to 5 connections in the listen queue instead of just
10064   one.
10066 build system:
10068 * Removed unused code from the matcher and the remote, quartz, and flint
10069   backends.
10071 documentation:
10073 * All installed binaries now support --help and --version and have a man page
10074   (which is generated using help2man).
10076 * docs/overview.html: Bring up to date.
10078 * docs/remote_protocol.html: Document messages for requesting and sending a
10079   termlist and a document.
10081 * PLATFORMS, AUTHORS: Updated.
10083 * INSTALL: Improve wording.
10085 * HACKING: Note that we now use a lightly patched version of libtool 1.5.22.
10087 * HACKING: aclocal is part of automake, not autoconf.
10089 portability:
10091 * Added some tweaks to help support compilation with MSVC.
10093 packaging:
10095 * RPMs: package the new man pages.
10097 debug code:
10099 * Add missing spaces in some debug output.
10101 Xapian-core 0.9.4 (2006-02-21):
10103 API:
10105 * Flag deprecated methods such that the compiler gives a warning, for compilers
10106   which support such a feature (most notably GCC >= 3.1).
10108 * Correct typo in name of definition of function xapian_revision().
10110 testsuite:
10112 * Updated uses of deprecated methods in the testsuite.
10114 build system:
10116 * xapian-config: Set exec_prefix and prefix at top of script so that
10117   xapian-config works after xapian-core is installed.
10119 documentation:
10121 * Add documentation comment for Enquire::set_sort_by_value_then_relevance().
10123 * README: Add pointer to HACKING.  Change "CVS access" to "SVN access".
10125 * PLATFORMS: Updated from tinderbox.
10127 * COPYING: Update second occurrence of old FSF address.
10129 Xapian-core 0.9.3 (2006-02-16):
10131 API:
10133 * Added 4 functions to report version information for the library version being
10134   used (which may not be the same as that compiled against if shared libraries
10135   are in use):  xapian_version_string(), xapian_major_version(),
10136   xapian_minor_version(), xapian_revision().
10138 * Xapian::QueryParser:
10140   + Fix handling of "+" terms in a query when the default query operator is
10141     AND.  Added regression test for this.
10143   + Added "AND NOT" as a synonym for "NOT".  Added feature tests for this.
10145 * Fix prototype for ESet::operator[] to take parameter of type termcount
10146   instead of doccount (doccount and termcount are both typedefs to the same
10147   type so this really just makes the prototype more consistent).
10149 * Xapian::Stem: Check for malloc and calloc failing to allocate memory and
10150   throw an exception.  Richard has fixed this upstream in snowball, so this is
10151   a temporary fix until we import a new version of snowball.
10153 * Xapian::Database: Trying to open a database for reading which doesn't exist
10154   now fails with DatabaseOpeningError instead of FeatureUnavailableError.
10155   Added regression test for this.
10157 * Add Stopper::get_description() and SimpleStopper::get_description().
10159 testsuite:
10161 * Fixed testsuite harness to work with valgrind on 64 bit platforms.
10163 * Merged the "running tests" section of docs/tests.html into the similar
10164   section in HACKING, and make docs/tests.html refer the reader to HACKING for
10165   more information.
10167 * Tidied and enhanced environmental variables which the test suite harness
10168   recongnises:
10170   + OM_TEST_BACKEND: Removed support since the "-b" switch to apitest allows
10171     you control which backend is used, making OM_TEST_BACKEND pretty much
10172     redundant.
10174   + XAPIAN_SIG_DFL: Renamed to XAPIAN_TESTSUITE_SIG_DFL.
10176   + XAPIAN_TESTSUITE_OUTPUT: New environmental variable to control use of
10177     ANSI colour escape sequences in test output (set to "plain" to disable
10178     them, unset, empty, or "auto" to check if stdout is a tty, or anything
10179     else to force colour).
10181 flint backend:
10183 * xapian-compact: Added "--multipass" option to merge postlists in pairs or
10184   triples until all are merged.  Generally this is faster than an N-way merge,
10185   but it does require more disk space for temporary files so it's not the
10186   default.
10188 quartz backend:
10190 * quartzcheck: If the database is too broken to open, emit a warning message
10191   and bump the error count.
10193 build system:
10195 * Now generate snapshots and releases with automake 1.9.6 (was 1.9.5) and
10196   libtool 1.5.22 (was 1.5.18).
10198 * configure: If not cross-compiling, try to actually run a test program built
10199   with the C++ compiler, not just link one.
10201 * configure: Fix to actually skip the check for valgrind if VALGRIND is set to
10202   an empty value.
10204 * configure: Add sanity check for MS Windows that "find" is Unix-like find, not
10205   MSDOS-like.
10207 * Fix conditional compilation of flint backend - it was being disabled when
10208   quartz was, not when flint was supposed to be.
10210 documentation:
10212 * INSTALL,README: Updated.
10214 * Give pointer to replacements for the deprecated Enquire sorting methods
10215   in the doxygen collated documentation.
10217 * PLATFORMS: Added success reports for ppc64 linux and Fedora Core 4.  Updated
10218   from the tinderbox.
10220 * HACKING: Note platforms valgrind now has solid support for; Improve
10221   phrasing in a few places.
10223 * Upgrade to using doxygen 1.4.6 for generating API documentation.
10225 * Change title of the "full source" documentation to "Internal Source
10226   Documentation" rather than "Full source documentation" to make it
10227   clearer it's only useful if you want to modify Xapian itself.
10229 * Fix documentation comments for the values of QueryParser::feature_flag so
10230   doxygen actually pulls out the documentation for them.  Add documentation for
10231   the parameters of QueryParser::parse_query().
10233 * queryparser.html: Document wildcards.
10235 portability:
10237 * Fix compilation with GCC 4.0.1 and later (need to forward declare class
10238   InMemoryDatabase) (bug #69).
10240 * Fix compilation under cygwin (broken in 0.9.2).
10242 * Don't pass NULL for the second parameter of execl() - the Linux man page
10243   says execl takes "one or more pointers to null-terminated strings".  Also
10244   cast the NULL to (void*) to avoid "missing sentinel" warning from GCC4.
10246 * Use snprintf instead of sprintf where available (we were attempting to
10247   do this in some places before, but the configure test was broken so
10248   sprintf was always being used).
10250 * Enable more warnings under aCC and fix minor issues highlighted.  Suppress
10251   "Entire translation unit was empty" warning which isn't useful to us.
10253 * Write top-bit set characters in the source using \xXX notation to avoid
10254   warnings from Intel's C++ compiler.
10256 * configure: TYPE_SOCKLEN_T fails hard, so only run it if we've successfully
10257   run other socket tests.
10259 * queryparser/accentnormalisingitor.h: #include <limits.h> for CHAR_BIT.
10261 * bin/xapian-compact.cc: Fix printf type mismatch on 64 bit platforms.
10263 * Replace pair<bool, string> with a simple class BoolAndString - the pair
10264   results in a 4328 byte symbol on HP-UX which gets truncated (to 4000 bytes).
10265   Most likely this is harmless, but it causes a warning.
10267 * configure: Disable flint backend by default if building for djgpp or msdos.
10269 * xapian-config: Previously when linking without libtool we've always thrown
10270   in dependency_libs, even though only some platforms need it (because it's
10271   generally pretty harmless).  However some Linux distros have an unhelpful
10272   policy of not packaging .la files, so libxapian.la isn't available to
10273   extract dependency_libs from.  Linux is a platform which doesn't require
10274   dependency_libs to be explicitly linked, so extend xapian-config to not
10275   pull in dependency_libs if libtool's link_all_deplibs_CXX=no.
10277 * xapian-config: If the current platform needs dependency_libs and
10278   libxapian.la's dependency_libs contains another .la file, transform it into a
10279   pair of -L and -l options, and recursively expand its dependency_libs (if
10280   any).
10282 * Don't pass functions with C++ linkage to places wanting pointers to functions
10283   with C linkage.  So far this has worked for us, but it causes warnings with
10284   some compilers, and may not be portable.
10286 * Compaq C++ 7.1 doesn't suffer from the problem which previously prevented
10287   it from building Xapian.  This release includes workarounds for some
10288   oddities with errno.h support in this compiler, but currently the build
10289   fails when trying to link a binary with the library.
10291 packaging:
10293 * RPM: Invoke %setup correctly in xapian.spec.
10295 debug code:
10297 * Add missing '#include <iostream>' when TIMING_PATCH is defined.
10299 Xapian-core 0.9.2 (2005-07-15):
10301 API:
10303 * QueryParser:
10305   + Added optional "flags" argument to parse_query method.
10307   + Add flag FLAG_BOOLEAN_ANY_CASE which tells the QueryParser that boolean
10308     operators such as "AND", "OR", and "NEAR" should be recognised even if
10309     they aren't fully capitalised (so "and", "And", "aNd", etc will work too).
10311   + Add flag FLAG_WILDCARD which tells the QueryParser to allow right
10312     truncation e.g. "xap*".
10314   + Fixed to handle "-site:microsoft.com" where site is a boolean prefix.
10315     Added testcases for this.
10317 testsuite:
10319 * The test harness was incorrectly creating a quartz database when a flint one
10320   was requested, which meant tests weren't being run against flint and so it
10321   had bugs rendering it pretty much unusable.
10323 * Added regression test longpositionlist1 (to check encoding/decoding a long
10324   position list, which flint had problems with).
10326 flint backend:
10328 * Bumped format version number.
10330 * Added new "xapian-compact" program which can compact and merge flint
10331   databases in a similar way to how quartzcompact does for quartz databases.
10333 * Fixed to auto-detect database type when opening an existing Flint database
10334   as a WritableDatabase.
10336 * The code to encode the position list size, first entry, and last entry
10337   didn't match the code to decode them!  Reworked both to match, using a
10338   slightly more compact encoding.
10340 * We were failing to append "DB" to the path when opening a table for reading.
10342 * Rewrite of FlintAllTermsList with several fewer member variables.  The
10343   rewrite fixes a bug too - the old version wasn't ignoring the metainfo
10344   entry which is now in the postlist table.
10346 * It seems we need to explicitly kill the child process used for locking.
10347   Otherwise when we have two databases locked just closing the connection
10348   doesn't cause the child to die.  I don't understand why it's needed, but this
10349   fix is at least clean.
10351 quartz backend:
10353 * quartzcompact: Fix mis-repacking of keys in positionlist table when merging
10354   several databases.
10356 * Disable assertion in allterms iteration which is incorrect in a corner case.
10357   This is only a problem if a termname contains zero bytes and you're using a
10358   debug build.  Add regression test test_specialterms2.
10360 remote backend:
10362 * Implement sorting on a value with the remote backend.
10364 build system:
10366 * Pass automake options to AM_INIT_AUTOMAKE rather than specifying them in
10367   Makefile.am.  This way, the version requirements for autoconf and automake
10368   are stated close together.
10370 * configure: -Wshadow causes false positives with GCC 3.0.4, so only enable it
10371   for 3.1 and up.
10373 * configure: Eliminate use of "ln -s" when generating include/xapian/version.h
10374   since it seems to cause problems on Solaris in some setups and isn't really
10375   necessary.
10377 * Add dependency mechanism so version.h gets regenerated when the template is
10378   changed.
10380 * configure: Check for spaces in build directory, source directory, or install
10381   prefix and die with a helpful message.
10383 * Add dependency to generate queryparser_token.h.
10385 * Eliminated TOP_SRCDIR and TOP_BUILDDIR - it's better to just use top_srcdir
10386   and top_builddir directly.
10388 * configure: Generate the list of source files to feed to doxygen by inspecting
10389   all the Makefile.am files prior to running autoreconf rather than by using
10390   "find" when the user runs ./configure.  This speeds up configure, avoids
10391   generating docs for random .cc and .h files which aren't part of xapian-core,
10392   and avoids problems with picking up FIND.EXE on MS Windows.
10394 documentation:
10396 * Expanded explanation of the "descending docid with boolean weighting" trick
10397   for fast date ordered searching in Enquire::set_docid_order() API docs.
10399 * docs/intro_ir.html: Citeseer has moved, so update link.
10401 * testsuite/testsuite.cc: Update URL for valgrind FAQ in comment.
10403 * COPYING: Update FSF address.
10405 * HACKING: Minor updates to release checklist.
10407 portability:
10409 * Assorted tweaks towards allowing compilation with MSVC.
10411 packaging:
10413 * xapian.spec.in: Package xapian-compact.
10415 Xapian-core 0.9.1 (2005-06-06):
10417 API:
10419 * Fix SEGV on get_terms_begin() on an empty Query object.  This was causing
10420   a SEGV in Omega with an empty query.
10422 * Put Query::get_terms_end() inline in header.
10424 flint backend:
10426 * Added the new "flint" backend, which starts out as a copy of the quartz
10427   backend plus some modifications and replacements.  When creating a database
10428   without a specified backend, quartz is still used unless the environmental
10429   variable XAPIAN_PREFER_FLINT is set to a non-empty value.
10431 * apitest now runs tests on flint as well as the other backends.
10433 * Removed undocumented (and hence the little used) quartz "log" feature.
10435 * Implement new fork+fcntl+exec based locking (for Unix) and CreateFile based
10436   locking (for Windows - currently untested).
10438 * Move the special key/tag pair holding the total document length and doc id
10439   high water mark from the record table to the postlist table.  This means that
10440   when appending documents, the insertion point will now always be at the end
10441   of the record table which is more efficient.  We need to jump around the
10442   postlist table to merge postings in anyway.
10444 * Changed metafile magic to be different from quartz, and make the metafile
10445   version a datestamp which we'll change each time the format changes.
10447 * Check the return value of close() when writing the metafile.
10449 * Flint position list table now stores entries using interpolative coding
10450   (which is significantly more compact).
10452 quartz backend:
10454 * quartzcheck: Fixed corner case where you couldn't check a single Btree table
10455   which was just the DB and baseA/baseB files in a directory (Xapian doesn't
10456   produce anything like this, but btreetest does while unit testing the
10457   Btree code).
10459 build system:
10461 * Releases are now created using libtool 1.5.18 and automake 1.9.5.
10463 * configure: Pass more -W flags to g++ (including -Wundef which caught the
10464   getopt problem fixed in this release).  Fixed new GCC warnings from these new
10465   flags.
10467 * Fixed a lingering DOXYGEN_HAVE_DOT reference.
10469 * Fixed accidentally pruned #define which meant that getopt code was being
10470   included even on systems which use glibc (on such systems, we should use
10471   the glibc copy of the code instead).
10473 * queryparser/queryparser.lemony: Add missing '#include <config.h>'.
10475 documentation:
10477 * Added missing documentation comments for a QueryParser methods added in
10478   0.9.0.
10480 * docs/quartzdesign.html: Removed warning that quartz is still in development.
10482 * PLATFORMS: Updated from tinderbox.
10484 * configure: Describe CC_FOR_BUILD in configure --help output.
10486 * HACKING: Updated release instructions to refer to SVN, and note that release
10487   tarballs are now built specially rather than being copies of snapshots.
10488   Update information about the SVN tag name to use for debian files.
10490 * HACKING: Add "email Fabrice" to the release checklist so that RPM
10491   spec files don't lag behind.
10493 * Fixed a few spelling mistakes.
10495 packaging:
10497 * xapian.spec: Remove bogus %setup line left over from when we packaged
10498   xapian-core and xapian-examples together from separate tarballs.
10500 debug code:
10502 * api/omqueryinternal.cc: Fixed compilation with --enable-debug.
10504 * common/omdebug.h: Replace C style cast with static_cast<> which reveals that
10505   we were discarding const (harmlessly though).
10507 Xapian-core 0.9.0 (2005-05-13):
10509 API:
10511 * Query objects really need to be immutable after construction (otherwise we
10512   need a copy-on-write mechanism).  To achieve this the following API changes
10513   were required:
10515   + Remove Query::set_length() in favour of an optional length
10516     parameter to Enquire::set_query().
10518   + Eliminated Query::set_elite_set_size() in favour of optional parameter
10519     to constructor.
10521   + Eliminated Query::set_window() in favour of an optional parameter to the
10522     constructor.
10524 * Removed OP_WEIGHT_CUTOFF, since it doesn't actually seem to add useful
10525   functionality over using Enquire::set_cutoff().
10527 * MSet::max_size() (which only exists so that MSet is an STL container) now
10528   returns MSet::size() and is inlined from the header.
10530 * Added ESet::max_size() (for STL compatibility).
10532 * Fixed Xapian::RSet to have the same "it's a handle" copy semantics as most of
10533   the other classes.
10535 * Rewritten QueryParser class:
10537   + Uses Lemon instead of Bison to generate the parser, which enables us to
10538     stop using static data, so this class is at last reentrant.
10540   + QueryParser now uses a PIMPL style with reference counted internals like
10541     most of the other Xapian classes.
10543   + Direct access to member variables has gone, which unfortunately forces an
10544     API change (but this fixes bug #39).  Instead of accessing
10545     QueryParser::termlist member variable, iterate over terms using
10546     Query::get_terms_begin() and get_terms_end() on the returned Query object.
10547     Direct access to stoplist is replaced by QueryParser::get_stoplist_begin()
10548     and get_stoplist_end(); and to unstem by get_unstem_begin() and
10549     get_unstem_end().
10551   + The rewrite parses many real world examples better than the old version.
10553   + Now allow searches for C#, etc.  If a database has been set, for this and +
10554     and - suffixes, check if the term actually exists, and if not, ignore the
10555     suffix if the unsuffixed term exists.
10557   + Added QueryParser::get_description() method (not very descriptive yet!)
10559   + Added backward compatibility wrapper for old version of
10560     QueryParser::set_stemming_options().
10562   + xapian.h now automatically includes xapian/queryparser.h.  Directly
10563     including xapian/queryparser.h will continue to work for now, but is
10564     deprecated.
10566   + QueryParser::parse_query() was failing to clear termlist and unstem
10567     - the rewrite fixes this.
10569   + New QueryParser parses "term prefix:(term2 term3)" correctly.
10571 * Added Xapian::SimpleStopper which just stops terms specified by a pair of
10572   iterators.  This should be sufficient for the majority of uses.
10574 * Tidied up the Enquire sorting API and added ability to reverse sort on a
10575   value.  Removed sort_bands support.
10577 * Enquire::get_description() improved.
10579 * Methods which return an end iterator where the internals are just NULL are
10580   now inline in the header for efficiency.  Should we ever need to change an
10581   implementation, we can easily move methods back into the library and bump the
10582   library version suitably.
10584 * Added Stem::operator() as preferred alternative to Stem::stem_word().
10586 * Simplified Stem internal design by restructuring to eliminate a few internal
10587   methods.
10589 * BM25Weight: Avoid fetching document length if we're simply going to multiply
10590   it by zero!
10592 testsuite:
10594 * Fixed TEST_EQUAL_DOUBLE to use DBL_EPSILON correctly.
10596 * Rewrite of index_utils test harness code, removing unused and unusual
10597   features.  Data files for tests are now easier to write.  These changes
10598   also fix the bug that ^x didn't actually decode hex values correctly.
10600 * tests/testdata/etext.txt: Stripped carriage returns.
10602 * apitest: Extended stemlang1 to check that trying to create
10603   a stemmer for a non-existent language throws InvalidArgumentError.
10605 * queryparsertest:
10607   + Moved into tests/ subdirectory.
10609   + Reworked to use the standard testsuite harness.
10611   + Added tests for new features in the rewritten QueryParser.
10613 quartz backend:
10615 * quartzcheck: Now checks the structure of all the tables, not
10616   just the postlist table, and cross-checks doclen values between
10617   termlist and postlist tables.  Recognises "--help" option.  Should
10618   now continue after an error (typically it would crash before), and
10619   counts the number of errors found.  Now exits with non-zero status
10620   if any errors were found.  More readable output.
10622 * quartzcompact: Extended to allow merging several quartz
10623   databases to produce a single compact quartz database.  This
10624   allows for faster building - simple index in chunks, then merge
10625   the chunks.
10627 * quartzcompact: Made full compaction a tiny bit more compact.
10629 * quartzcompact: Added "fuller compaction" mode, which ignores the usual "at
10630   least 4 items per block" rule.  This achieves slightly tighter compaction,
10631   though it's probably not advisable to use this option if you plan to update
10632   the compacted database.
10634 * Improved compaction by a few % in non-full case.  Tighter bound on amount of
10635   memory to reserve to read the tag into.
10637 * Fix skip_to on an allterms TermIterator to set the current term when the
10638   skip_to-ed term is in the database.  Add regression test for this
10639   (allterms5).
10641 * Values are stored in sorted order so we can stop unpacking the list once we
10642   get to one after the one we're looking for (in the case where the one we're
10643   looking for doesn't exist).
10645 build system:
10647 * configure: Check that the C++ compiler can actually link a program.
10648   AC_LANG_CXX doesn't, and if it can't find a C++ compiler it'll just return
10649   "g++" which just leads to a later configure test failing in a confusing way.
10651 * configure: corrected configure output of "none known for yes" or "none known
10652   for no" to "none known for g++-3.2" or similar.
10654 * include/xapian/version.h: Define XAPIAN_HAS_xxx_BACKEND for each backend
10655   which is enabled.  The bindings need this, and user code might find it useful
10656   too.
10658 * include/xapian/database.h: Don't declare the backend factory functions if the
10659   corresponding backend has been disabled.  This means that trying to use a
10660   disabled backend will be caught at compile time rather than link time.
10662 * configure: Enhanced valgrind test to (a) see if --tool=memcheck
10663   is needed and (b) see if valgrind actually works (we don't want to
10664   try to use an x86 valgrind on an x86_64 box).
10666 * configure: Suppress 2 Intel C++ warnings which we can't easily code around,
10667   and enable -Werror automatically with --enable-maintainer-mode.
10669 * Clearer make rules for building Postscript doxygen docs.
10671 * Removed some no longer used code.
10673 * Moved a number of method definitions out of headers because they are virtual,
10674   or too large to be sensible candidates for inlining.
10676 * Eliminated the extra library for the queryparser - it's tiny compared to the
10677   main library and having it around just complicates things.
10679 * configure: We no longer need Bison, but we do need CC_FOR_BUILD to compile
10680   Lemon with.
10682 * Snapshot generator now appends _svn6789 or similar to the version string.
10683   Adjusted configure and XO_LIB_XAPIAN macro to take this into account.
10685 * configure: If any tools needed for documentation are missing
10686   and we're in maintainer mode, die with a suitable error in
10687   configure rather than with strange errors when building the
10688   documentation.
10690 * docs/Makefile.am: Explicitly set the pool_size for latex, because we
10691   now seem to overflow the default setting on some systems.
10693 * docs/Makefile.am: Use $(MAKE) instead of make.
10695 documentation:
10697 * Numerous improvements to documentation comments.  Added documentation
10698   comments for QueryParser class.
10700 * HACKING: Added better description of how reference-counted API
10701   classes are structured.
10703 * HACKING: Note that '#include <limits>' isn't supported by GCC 2.95,
10704   and other assorted minor tweaks.
10706 * HACKING: Note how to disable use of VALGRIND on the make check
10707   command line, or when using runtest directly.
10709 * Updated all documentation mentions of CVS to talk about Subversion
10710   instead.
10712 * PLATFORMS: Updated from tinderbox and other sources.
10714 * PLATFORMS: Added minimal testcase which fails to compile with
10715   Compaq's C++ compiler (cxx).
10717 * INSTALL,README: Updated.
10719 * docs/queryparser.html: Note that + and - work on phrases and
10720   bracketed expressions.
10722 * docs/intro_ir.html: Corrected two errors.
10724 * docs/stemming.html: Stemming appears to be applicable to Japanese
10725   so don't say it isn't!
10727 examples:
10729 * Moved xapian-examples module to examples subdirectory of xapian-core.
10731 * quest: Added stopword handling.
10733 portability:
10735 * configure: autoconf identifies Intel's C++ compiler as GCC, so probe for
10736   which we actually have.
10738 * Xapian will now compile cleanly with Intel C++ 8.1 on ia64 Linux and
10739   on x86 Linux.
10741 * backends/quartz/btree.cc: Fixed GCC compilation warning.
10743 * tests/api_db.cc: Fixed warning from Sun's C++ compiler.
10745 * configure: Automatically enable ANSI C++ mode for SGI's compiler
10746   with '-LANG:std'; check that any automatically determined flags
10747   for ANSI C++ mode actually allow us to compile a trivial program
10748   - if they don't it probably means the compiler isn't the one we
10749   were expecting, but one installed with the same name, so we now
10750   drop the flags in this case.
10752 * The compile on IRIX with SGI compiler is now warning free, apart from two
10753   "unused variable" warnings in Snowball generated code.
10755 * On WIN32, don't define NOMINMAX if it is already defined.
10757 packaging:
10759 * xapian.spec: Don't say "%makeinstall" in a comment since rpm
10760   tries to expand it and explodes.
10762 * xapian.spec: '/usr/share' -> '%{_datadir}'.
10764 * xapian.spec: Put the .so in the -devel package (it's only useful
10765   for linking to - the .so.* files are all that's needed at runtime).
10767 debug code:
10769 * net/socketserver.cc: Fixed typo in debug code.
10771 Xapian-core 0.8.5 (2004-12-23):
10773 quartz backend:
10775 * quartzcompact: When full_compaction is enabled, don't fill the last few bytes
10776   of a block if that would mean we needed an extra item and the overhead for
10777   that item would use up more of the next block than we save.  This reduces the
10778   table size after full compaction by up to 0.2% in my tests!
10780 * quartzcompact: Tables sizes will always be a whole number of Kbytes, since
10781   the blocksize is, so report the size in K.  Also report the change in size as
10782   well as the before and after sizes.
10784 * quartzcompact: Added missing '#include <config.h>' so that largefile support
10785   is enabled when we call stat() and we report compression statistics for
10786   tables > 2G.
10788 * quartzcompact: Added --no-full / -n option to disable full compaction.  This
10789   may be useful if you want to update the database after compacting it (need to
10790   test to see if this option is actually useful).
10792 * Renamed Btree::compress() to Btree::compact() for consistency with
10793   "full_compaction" and "quartzcompact".  Also, "compress" is confusing since
10794   we use that term in the zlib patch.
10796 build system:
10798 * xapian-config: Fixed --libs output to not include libxapian.la.
10800 * Added missing '#include <config.h>' to various .cc files (the omissions were
10801   probably harmless, but config.h should be included as the first thing any
10802   source file does).
10804 documentation:
10806 * Minor updates.
10808 packaging:
10810 * RPM spec file: %makeinstall puts the wrong paths in the .la files so use
10811   "make DESTDIR=... install" instead.
10813 debug code:
10815 * Fixed to build with AssertParanoid enabled.
10817 Xapian-core 0.8.4 (2004-12-08):
10819 API:
10821 * Added constructors to Database and WritableDatabase which fulfil the role
10822   that the Auto::open() factory functions currently do.  Auto::open() is
10823   now deprecated.
10825 * Removed the ability to write a Xapian object to an ostream directly, as
10826   it's little used and potentially dangerous ('cout << mset[i];' will
10827   compile, but you almost certainly meant 'cout << *mset[i];').  You can
10828   get the old effect by writing 'cout << obj->get_description();' instead
10829   of 'cout << obj;'.  Note that including xapian.h no longer pulls in
10830   fstream, which code may have been implicitly relying on - if this is
10831   a problem add '#include <fstream>' after '#include <xapian.h>'.
10833 * QueryParser: Be smarter about when to add a ':' when adding a term prefix.
10835 * BoolWeight::unserialise() now returns BoolWeight*, and similarly for
10836   TradWeight and BM25Weight.  BoolWeight::clone() now returns BoolWeight *.
10838 * If a database contains no positional information, change NEAR and PHRASE
10839   queries into AND queries (as otherwise they'd return no matches at all)
10840   (bug #56).  Added feature test phraseorneartoand1.
10842 * Renamed BM25 parameters to match standard naming in papers and elsewhere
10843   (A->k3, B->k1, C->k2, D->b), eliminated the extra factor of 2 which our C
10844   had, and reordered the parameters to k1, k2, k3.  This is an incompatible API
10845   change for BM25Weight(), so if you are using custom parameters for BM25
10846   you'll need to update your code.
10848 * During query expansion, if we estimate the term frequency, ensure it has a
10849   sane value (>= r and <= N - R + r) rather than bodging around the problem
10850   later on.
10852 * TradWeight, BM25Weight: termfreq is always exact for matching (we only
10853   approximate it for query expansion) so replace code to work around bad
10854   approximations with Assert() to make sure this never happens.
10856 testsuite:
10858 * runtest: Enhanced to allow it to run test programs under valgrind and other
10859   tools (gdb was already supported).
10861 * runtest: now works with valgrind 2.1.2 and later (valgrind's --logfile-fd
10862   option was renamed to --log-fd).
10864 * runtest: Allow VALGRIND environmental variable to override the value we got
10865   from configure.
10867 * Added a dependency so "make check" regenerates runtest if necessary.
10869 * The test programs now point the user to the runtest script if srcdir can't
10870   be guessed.  And they no longer look for the test program in the tests
10871   subdirectory of the current directory.
10873 * btreetest: Fixed memory leaks in test_cursor1 (the testcase itself was
10874   causing the leak, not the library).
10876 * apitest: Fixed mset_range_is_same() and mset_range_is_same_weights() helper
10877   functions which were only comparing the first item in the range.  Thankfully
10878   the tests still all pass so this wasn't hiding any bugs.
10880 * apitest: A modified version of changequery1 fails - the bug is obscure and
10881   subtle, and the fix is tricky so set the modified test to SKIP for now.
10883 * apitest: Added test_weight1 which tests the built-in Xapian::Weight
10884   subclasses and test_userweight1 which tests user defined weighting schemes
10885   (bug#8).
10887 * quartztest: Test with DB_CREATE_OR_OPEN in writelock1.
10889 quartz backend:
10891 * An interrupted update could cause any further updates to fail with "New
10892   revision too low" because the new revision was being calculated incorrectly -
10893   fixed (bug#55).
10895 * Fixed Bcursor::del() which didn't always leave the cursor on the next item
10896   like it should.  This may have been causing problems when trying to remove
10897   the last references to a particular term.
10899 * Fixed ultra-obscure bug in the code which finds a key suitable to
10900   discriminating between two blocks in a B-tree branch (discovered by reading
10901   the code).  Comparing the keys didn't consider the length of the second, so
10902   it is possible the code would miscompare.  But in reality this is extremely
10903   unlikely to happen, and even then would probably just mean that the
10904   discriminating key wouldn't be as short as it could be (wasting a few bytes
10905   but otherwise harmless).
10907 * If we're removing a posting list entirely, often there will only be one
10908   chunk, so avoid creating a Bcursor in this case.
10910 * Simplified Btree::compare_keys() by removing the last case which was dead
10911   code as it was covered by an earlier case.
10913 * Check that any user specified block size is a power of 2.  If the block
10914   size passed is invalid, use the default of 8192 rather than throwing an
10915   exception.
10917 * Started to refactor the Btree manager by introducing Item and Key classes
10918   which take care of handling the on-disk format, and eliminated duplicated
10919   tag reading code in Btree and Bcursor.  These changes will pave the way for
10920   improvements to the on disk format.
10922 * Applied the Quartz "DANGEROUS" patch, but disabled for now.  This way it
10923   won't keep being broken by changes to the code.
10925 * quartzcompact: Added --help and --version; Check that the source path and
10926   desitination path aren't the same; Report each table name when we start
10927   compacting it, and some simple stats on the compaction achieved when we
10928   finish.
10930 muscat36 backend:
10932 * Removed a default parameter value from one variant of
10933   Xapian::Muscat36::open_db() so that there's only one candidate for
10934   open_db(string).
10936 build system:
10938 * xapian-config: If flags are needed to select ANSI mode with the current
10939   compiler, then make xapian-config --cxxflags include them so that Xapian
10940   users don't have to jump through the same hoops we do.
10942 * xapian-config: Added --swigflags option for use with SWIG.
10944 * XO_LIB_XAPIAN now passes ac_top_srcdir to xapian-config which uses it
10945   (if provided) to say "configure.ac" or "configure.in" rather than
10946   "configure.in (or configure.ac)" in the "Add AC_PROG_LIBTOOL"
10947   error message.
10949 * Cleaned up the build system in a few places.
10951 * Removed a few totally unneeded header includes.
10953 * Moved a number of functions and methods out of headers because they're not
10954   good inlining candidates (too big or virtual methods).
10956 * Changed C style casts to C++ style.  The syntax is ugly, but they do make the
10957   intent clearer which is a good thing.  Note this as a coding style guideline
10958   in HACKING.
10960 * configure.ac: Automatically add -Werror to CFLAGS and CXXFLAGS if
10961   maintainer mode is enabled and we're using GCC3 or newer.  Don't do
10962   this for older GCCs as GCC 2.95 issues spurious warnings.
10964 * Reworked how include/xapian/version.h is generated so that it works
10965   better with compilers other than GCC, and with HP-UX sed.
10967 * XAPIAN_VERSION is now a string (e.g. "0.8.4").
10969 * Added new #define XAPIAN_REVISION (which is 4 for version 0.8.4).
10971 documentation:
10973 * docs/bm25.html,docs/intro_ir.html: Reworked to talk about Xapian
10974   rather than Muscat.  Also improved the appearance of the formulae.
10976 * HACKING: Valgrind now supports x86 FreeBSD and PowerPC Linux.
10978 * Documented parameters of Enquire::register_match_decider().
10980 * We now use doxygen 1.3.8 to build documentation for snapshots and releases.
10982 * PLATFORMS: Updated from the tinderbox (which now runs builds on machines
10983   available in HP's testdrive scheme) and other assorted reports.
10985 * PLATFORMS: Removed reports from versions prior to 0.7.0.  So much
10986   has changed that these are of little value.
10988 * docs/scalability.html: Added note warning about benchmarking from cold.
10990 * Assorted other minor documentation improvements.
10992 portability:
10994 * configure.ac: Improved snprintf configure test to actually
10995   check that it works (older implementations may have different
10996   semantics for the return value, and at least one ignores the length
10997   restriction entirely!)
10999 * Reworked the GNU getopt source we use so that the header is clean and
11000   suitable for use from a reasonably ISO-conforming C++ compiler instead of
11001   being full of cruft for working around quirky C compilers which C++ compilers
11002   tend to stumble over.
11004 * Use SOCKLEN_T for the type we need to pass to various socket calls, since
11005   HPUX defines socklen_t yet wants int in those calls.  Reworked the
11006   TYPE_SOCKLEN_T test we use.
11008 * On Windows, we want winsock2.h instead of sys/socket.h.  Mingw doesn't seem
11009   to even have the latter, so I think previously we've been compiling by
11010   picking one up from somewhere random!
11012 * Change the small number of C sources we have to be C++ so we can compile
11013   everything with the C++ compiler.  This way we don't need to worry about
11014   configure choosing a mismatching pair of compilers, or about whether
11015   configure tests with the C compiler don't apply to the C++ compiler, or vice
11016   versa.
11018 * Compiles and passes testsuite with HP's aCC (we have to compile in
11019   ANSI mode, so we automatically add -AA to CXXFLAGS).
11021 * If the link test detects pread and pwrite are present, get configure to try
11022   out prototypes for pread and pwrite.  This is much cleaner than trying to
11023   find the right combination of preprocessor defines to get each platform's
11024   system headers to provide prototypes.
11026 * configure: Disable probing for pread/pwrite on HP-UX as they're present but
11027   don't work when LFS (Large File Support) is enabled, and we definitely want
11028   LFS.
11030 * Fixed some warnings from Sun's C++ compiler.
11032 * Provide our own C_isalpha(), etc replacements for isalpha(), etc
11033   which always work in the C locale and avoid signed char problems.
11035 * For mingw/cygwin, pass -no-undefined when linking libxapianqueryparser.la
11036   so libtool builds a shared library.  Also pass the magic linker flag
11037   -Wl,--enable-runtime-pseudo-reloc if configure has determined it is needed.
11039 * For cygwin, use the underlying MoveFile API call for locking, as link()
11040   doesn't work on FAT partitions.  And don't rely on HAVE_LINK to control
11041   whether we use link() otherwise - if the configure test somehow misfires, a
11042   compilation error is better than using rename() on Unix as that would cause a
11043   second writer to smash the lock of the first.
11045 * Closer to building with Compaq C++ - add "-std strict_ansi" to CXXFLAGS, and
11046   tweaked the code in several places.  It currently dies trying to compile
11047   the PIMPL smart pointer template code which looks hard to fix.
11049 debug code:
11051 * HACKING: Document that %% in XAPIAN_DEBUG_LOG is substituted with
11052   the process-id, and that setting XAPIAN_DEBUG_FLAGS to -1 enables
11053   all debug messages.
11055 * Removed compatibility code for checking environment variables OM_DEBUG_FILE
11056   and OM_DEBUG_TYPES.
11058 Xapian-core 0.8.3 (2004-09-20):
11060 API:
11062 * Fixed bug which caused a segmentation fault or odd "Document not found"
11063   exceptions when new check_at_least parameter to Enquire::get_mset() was used
11064   and there weren't many matches (regression test checkatleast1).
11066 remote backend:
11068 * Renamed omtcpsrv to xapian-tcpsrv and omprogsrv to xapian-progsrv.
11070 packaging:
11072 * RPM packaging now has a separate package for the runtime libraries to
11073   allow 32 and 64 bit versions to be installed concurrently.
11075 * RPM for xapian-core now includes binaries from xapian-examples.
11077 debug code:
11079 * Fixed to compile with debug tracing enabled.
11081 Xapian-core 0.8.2 (2004-09-13):
11083 API:
11085 * Removed the compatibility layer which allowed programs written against the
11086   pre-0.7.0 API to be compiled.
11088 * Added new ESet methods swap(), back() and operator[].
11090 * Xapian::WritableDatabase::replace_document can now be used
11091   to add a document with a specific docid (to allow keeping docids
11092   in sync with numeric UIDs from another system).
11094 * Added Xapian::WritableDatabase::replace_document and
11095   delete_document variants which take a unique id term name rather
11096   than a document id.
11098 * Enquire::get_mset(): If a matchdecider is specified and no matches
11099   are requested, the lower bound on the number of matches must be 0
11100   (since the matchdecider could reject all the matches).
11102 * Renamed Query::is_empty() to Query::empty() for consistency.  Keep
11103   Query::is_empty() for now as a deprecated alias.
11105 * Enquire::set_sorting() now takes an optional third parameter which allows
11106   you to specify a sort by value, then relevance, then docid instead of
11107   by value then docid.
11109 * Enquire::get_mset() now takes an optional "check_at_least" parameter
11110   which allows Omega's MIN_HITS functionality to be implemented in the matcher
11111   (where it can be done a bit more efficiently).
11113 testsuite:
11115 * Reworked quartztest's positionlist1 into a generic api test as apitest's
11116   poslist3.
11118 * apitest: Reenabled allterms2, but with the iterator copying parts removed -
11119   TermIterator is an input_iterator so that part was invalid.
11121 * Overhauled btreetest and quartztest - tests at the Btree level are now all
11122   in btreetest.  Those at the QuartzDatabase level are in quartztest.
11124 * Split api_db.cc into 3 files as it has grown rather large.
11126 * tests/runtest: Added support for easily running gdb on a test program,
11127   automatically sorting out srcdir and libtool.
11129 quartz backend:
11131 * Refactored the quartz backend code to reduce the number of layered classes
11132   and eliminate unnecessary buffering, reducing memory usage so that more
11133   posting list changes can be batched together (see next change) and database
11134   building can be done several times faster.
11136 * Added tunable flush threshold - set XAPIAN_FLUSH_THRESHOLD=50000 to flush
11137   every 50000 documents.  The default is now every 10000 documents (was
11138   every 1000 documents previously).  The optimum value will most likely
11139   depend on your data and hardware.
11141 * WritableDatabase::get_document() no longer forces pending changes to be
11142   flushed.  The document will read things lazily from the database, and that
11143   reading may trigger a forced flush).
11145 * WritableDatabase::get_avlength() no longer forces pending changes to be
11146   flushed.  This means you can now search a modified WritableDatabase without
11147   causing a flush unless the search includes a term whose postlist has pending
11148   modifications.
11150 * Reduced quartz postlist chunk threshold from "2048 or a few bytes more" to
11151   "2000 or a few bytes more" so that full size chunks won't get split by the
11152   Btree.
11154 * Improved the "Db block overwritten" message.  The DatabaseCorruptError
11155   version now suggests multiple writers may be the cause, while the
11156   DatabaseModifiedError version uses less alarming wording and says to call
11157   Database::reopen().
11159 * QuartzWritableDatabase now stores the total document length and the last
11160   docid itself rather than tallying added and removed document length and
11161   writing the last docid back every time a document is added.  This gives
11162   cleaner code and a small performance win.
11164 * Make the first key null for blocks more than 1 away from the leaves.
11165   It saves disk space for a tiny CPU and RAM cost so is bound to be
11166   a win overall.
11168 * matcher/localmatch.cc: Fixed problems handling termweights in queries with
11169   the same term repeated (bug #37) and added regression test (qterminfo2).
11171 * Sped up iteration over all the terms in a database (QuartzCursor now only
11172   reads the tag from the Btree if asked to).
11174 * Cancelling an operation is now implemented more efficiently.
11176 inmemory backend:
11178 * Fixed bugs with deleting a document while a PostingIterator over it is
11179   active.
11181 muscat36 backend:
11183 * Fixed to compile now that internal_end_session() has gone (broken in 0.8.1).
11185 build system:
11187 * Fixed to compile when configured with --disable-inmemory (bug #33).
11189 * XO_LIB_XAPIAN now AC_SUBSTs XAPIAN_VERSION so your application's build
11190   system can easily check for a particular version of Xapian.
11192 * When compiling with GCC, we check that the compiler used to compile the
11193   library and the compiler used to compile the application have compatible
11194   C++ ABI versions.  Unfortunately GCC 3.1 incorrectly reports the same
11195   ABI version as GCC 3.0, so we now special case that test.
11197 * Bumped the versions of the autotools we require for bootstrapping, and
11198   updated the documentation of these in the HACKING document.
11200 * Quote macro names to fix warnings from newer aclocal.
11202 documentation:
11204 * Improved API documentation for Xapian::WritableDatabase::replace_document and
11205   delete_document.
11207 * Added documentation comments for MSet methods size(), empty(), swap(),
11208   begin(), end(), back().
11210 * Removed bogus documentation comments saying that some Enquire methods can
11211   throw DatabaseOpeningError.
11213 * Updated quartz design docs to reflect recent changes.  Also pulled
11214   out the Btree and Bcursor API docs and slotted them in as doxygen
11215   documentation comments - this way they're much more likely to
11216   be kept up-to-date.
11218 * Corrected multiple occurrences of "an Xapian::XXX" to "a Xapian::XXX"
11219   (presumably these all resulted from replacing "Om" with "Xapian::").
11221 * Various minor updates and improvements.
11223 portability:
11225 * Reworked how we cope with fcntl.h #define-ing open on Solaris.  This change
11226   finally allows Sun's C++ compiler to produce a working Xapian build on
11227   sparc Solaris!
11229 * configure.ac: Don't define DATADIR - we no longer use it and clashes
11230   with more recent mingw headers.
11232 * matcher/andpostlist.cc: Initialise lmax and rmax to 0.  This cures
11233   the SIGFPE on apitest's qterminfo2 on alpha linux.
11235 Xapian-core 0.8.1 (2004-06-30):
11237 API:
11239 * New method Xapian::Database::get_lastdocid which returns the highest used
11240   document id for a database (useful for re-synchronizing an indexer which
11241   was interrupted).  Implemented for quartz and inmemory.
11243 * Xapian::MSet::get_matches_*() methods now take collapsing into account, and
11244   the documentation has been clarified to state explicitly that collapsing and
11245   cutoffs are taken into account (bug#31).
11247 * Xapian::MSet: Need to adjust index by firstitem when indexing into items
11248   (bug#28).
11250 * MSetIterator and ESetIterator are now bidirectional iterators (rather than
11251   just input iterators)
11253 * Fixed post-increment forms of PostingIterator, TermIterator,
11254   PositionIterator, and ValueIterator so that *i++ works (as it must for them
11255   to be true input iterators).
11257 * Xapian::QueryParser: If we fail to parse a query, try stripping out
11258   non-alphanumerics (except '.') and reparsing.
11260 * Fixed memory leaked upon Xapian::QueryParser destruction.
11262 * Removed several unused Xapian::Error subclasses (these were used by the
11263   indexer framework which we decided was a failed experiment).
11265 testsuite:
11267 * queryparsertest: Pruned near-duplicate queryparsertest testcases.
11269 * queryparsertest: Added test case for `term NOT "a phrase'.
11271 * remotetest: Use 127.0.0.1 instead of localhost so that tcpmatch1 doesn't fail
11272   just because the network setup is broken.
11274 * apitest: Make emptyquery1 check that Query("") causes an InvalidArgumentError
11275   exception.
11277 quartz backend:
11279 * Fixed bug which meant we sometimes failed to remove a posting when deleting
11280   or replacing a document.
11282 * Fixed PostlistChunkReader to take a copy of the postlist data being read to
11283   avoid problems with reading data from a string that's been deleted.
11285 * Fixed bug in postlist merging which could occasionally extend a postlist
11286   chunk to overlap the docid range of the next chunk.
11288 * Eliminated the split cursor in each Btree object - we only actually need a
11289   single block buffer to handle splitting blocks.  This reduces the memory
11290   overhead of each Bcursor (and hence each QuartzPostList).
11292 * Changed 2 calls to abort() to throw Xapian::DatabaseCorruptError instead,
11294 * If Btree is writable, throw DatabaseCorruptError if we detect overwritten.
11296 * Check the return value of fdatasync()/fsync()/_commit() and raise an error.
11297   If they fail, we really want to know as it could cause data corruption.
11299 * Assorted clean ups, improved comments, debug tracing, assertions.
11301 * When merging in postlist changes, removed an unneeded call to
11302   QuartzBufferedTable::get_or_make_tag() in a case when we're using a cursor
11303   which has already fetched the tag.
11305 * Added SON_OF_QUARTZ define to disable incompatible changes to database
11306   formats by default, and use it to control the docid encoding for keys such
11307   that we're always inserting at the end of the table when added new documents.
11309 * Reopening the readonly version of a writable Btree is now more efficient
11310   (we used to close and reopen all the files and destroy and recreate a lot
11311   of objects and buffers).
11313 * Share file descriptors between the read and write Btree objects so that a
11314   quartz WritableDatabase now uses 5 fds rather than 10.
11316 * Added configure test for glibc, because otherwise we need to include a header
11317   before we can check for glibc in order to define something we should be
11318   defining before we include any headers!  Defining _XOPEN_SOURCE on OpenBSD
11319   seems to do the opposite to Linux and *disable* pread and pwrite!
11321 backends:
11323 * Stripped out the session machinery - all that is actually required is to
11324   ensure that any unflushed changes are flushed when the destructor runs.
11326 * A few other backend interface cleanups.
11328 build system:
11330 * Unified the shlib version numbers (the small benefit of tracking them
11331   individually makes it hard to justify the extra work required, and having one
11332   version simplifies debian packaging too).
11334 * configure.in: Fix typo (STLPORT_CXXLAGS -> STLPORT_CXXFLAGS)
11336 * Removed trivial m4/Makefile.am and autoconf/Makefile.am and do the work
11337   from the top level Makefile.am instead.  It's easier to see the structure
11338   this way, and it also removes a couple of recursive make invocations which
11339   will speed up builds a little.
11341 documentation:
11343 * HACKING: Added a list of subtasks when doing a release.
11344   Currently it's always me that does this, but it may not always be
11345   and anyhow it'll help me to have a list to run through.
11347 * include/xapian/database.h: Remove references to sessions in doxygen
11348   comments.
11350 * docs/quickstart.html: Corrected lingering reference to "om.h" and
11351   note that we need <iostream>.
11353 * docs/quickstartindex.cc.html,docs/quickstartexpand.cc.html,
11354   docs/quickstartsearch.cc.html: Add <iostream>.
11356 * PLATFORMS,AUTHORS: Updated.
11358 * docs/quartzdesign.html: Corrected various pieces of out of date
11359   information, and improved wording in a couple of places.
11361 * docs/scalability.html: Removed the reference to the Quartz update bottleneck
11362   "currently being addressed for Xapian 0.8" as it's now been addressed!  Also
11363   reworded to remove use of first person (it was originally a message sent to
11364   the mailing list).
11366 Xapian-core 0.8.0 (2004-04-19):
11368 * Omega, xapian-examples and xapian-bindings now have their own NEWS files.
11370 API:
11372 * Throw an exception when an empty query is used to build in the binary
11373   operator Query constructor (previously this caused a segfault.  Added
11374   regression test.
11376 * Made the TradWeight constructor explicit.  This is technically an API change
11377   as before you could pass a double where a Xapian::Weight was required - now
11378   you must pass Xapian::TradWeight(2.0) instead of 2.0.  That seems desirable,
11379   and it's unlikely any existing code will be affected.
11381 * Added "explicit" qualifier to constructors for internal use which take a
11382   single parameter.
11384 * Renamed Xapian::Document::add_term_nopos to Xapian::Document::add_term
11385   (with forwarding wrapper method for compatibility with existing code).
11387 * The reference counting mechanism used by most API classes now handles
11388   creating a new object slightly more efficiently.
11390 * Xapian::QueryParser: Don't use a raw term for a term which starts with a
11391   digit.
11393 testsuite:
11395 * apitest, quartztest: Added a couple of tests, and commented out some test
11396   lines which fail in debug builds.
11398 * quartztest: cause a test to fail if there's still a directory after a call
11399   to rmdir(), or if there isn't a directory after calling mkdir().
11401 * apitest: Check returned docids are the expected values in a couple more
11402   cases.  Improved wording of a comment.
11404 quartz backend:
11406 * We now merge a batch of changes into a posting list in a single pass which
11407   relieves an update bottleneck in previous versions.
11409 * When storing the termlist, pack the wdf into the same byte as the reuse
11410   length when possible - doing so typically makes the termlist 14% smaller!
11411   This change is backward compatible (0.7 database will work with 0.8, but
11412   databases built or updated with 0.8 won't work with 0.7).
11414 * quartzcheck: Check the structure within the postlist Btree as well as
11415   the Btree structures themselves.
11417 * Reduced code duplication in the btree manager and btreechecking code.
11419 * quartzdump: Backslash escape space and backslash in output rather than hex
11420   encoding them; renamed start-term and end-term to start-key and end-key;
11421   removed rather pointless "Calling next" message; if there's an error, write
11422   it to stderr not stdout, and exit with return code 1.
11424 * Corrected a number of comments in the source.
11426 * Removed several needless inclusions of quartz_table_entries.h.
11428 * Removed OLD_TERMLIST_FORMAT code - it has been disabled for since 0.6.0.
11430 * Removed all the quartz lexicon code and docs.  It's been disabled for ages,
11431   and we've not missed it.
11433 build system:
11435 * XO_LIB_XAPIAN autoconf macro can now be called without arguments in the
11436   common case where you want the test to fail if Xapian isn't found.
11438 * Fixed the configure test for valgrind - it wasn't working correctly when
11439   valgrind was installed but was too a version to support VALGRIND_COUNT_ERRORS
11440   and VALGRIND_COUNT_LEAKS.
11442 * GCC 2.95 supported -Wno-long-long and is our minimum recommended version, so
11443   unconditionally use -Wno-long-long with GCC, and don't test for it on other
11444   compilers (the old test incorrectly decided to use it with SGI's compiler
11445   resulting in a warning for every file compiled).
11447 documentation:
11449 * Updated the quickstart tutorial and removed the warning that "this
11450   document isn't up to date".
11452 * docs/intro_ir.html: Added a link to "Information Retrieval" by Keith van
11453   Rijsbergen which can be downloaded from his website!
11455 * docs/quartzdesign.html: Some minor improvements.
11457 * docs/matcherdesign.html: Merged in more details from a message sent to the
11458   mailing list.
11460 * docs/queryparser.html: Grammar fixes.
11462 * Doxygen wasn't picking up the documentation for PostingIterator and
11463   PositionListIterator - fixed.  Added doxygen comments for Xapian::Stopper
11464   and Xapian::QueryParser.
11466 * PLATFORMS: Updated with many results from tinderbox and from users.
11468 * AUTHORS: Updated the list of contributors.
11470 * HACKING: XAPIAN_DEBUG_TYPES should be XAPIAN_DEBUG_FLAGS.
11472 * HACKING: Updated to mention that building from CVS requires
11473   `./configure --enable-maintainer-mode' (or use bootstrap).
11475 * HACKING: Added notes about using "using", and pointers to a couple of useful
11476   C++ web resources.
11478 portability:
11480 * Solaris: Code tweaks for compiling with Sun's C++ compiler.
11482 * IRIX: Code tweaks for compiling with SGI's C++ compiler.
11484 * NetBSD mkdir() doesn't cope with a trailing / on the path - fixed our code to
11485   cope with this.
11487 * mingw/cygwin: Only use O_SYNC (on the debug log) if the headers define it.
11489 * backends/quartz/quartz_table_manager.cc: Fix for building on mingw.
11491 * mingw: Added configure test for link() to avoid infinite loop in our C++
11492   wrapper for link.
11494 * mingw and cygwin both need -Wl,--enable-runtime-pseudo-reloc passing when
11495   linking.  Arrange for xapian-config to include this, and check that the ld
11496   installed is a new enough version (or at least that it was at configure
11497   time).  Also pass to programs linked as part of the xapian-core build.
11499 * cygwin: Close a QuartzDatabase or QuartzWritableDatabase before trying to
11500   overwrite it - cygwin doesn't allow use to delete open/locked files...
11502 * backends/quartz/quartz_termlist.cc: Use Xapian::doccount instead of
11503   unsigned int in set_entries().
11505 * Database::Internal::Internal::keep_alive() should be
11506   Database::Internal::keep_alive().
11508 * Make Xapian::Weight::Weight() protected rather than private as we want to be
11509   able to call it from derived classes (GCC 3.4 flags this, other compilers
11510   seem to miss it).
11512 debug code:
11514 * Open debug log with flag O_WRONLY so that we can actually write to it!
11516 * backends/quartz/quartz_values.cc: Fixed problem with dereferencing
11517   a pointer to the end of a string in debug output.
11519 Xapian 0.7.5 (2003-11-26):
11521 API:
11523 * Xapian::QueryParser now supports prefixes on phrases and expressions (e.g.
11524   author:(twain OR poe) subject:"space flight").
11526 * Added missing default constructors for TermIterator, PostingIterator, and
11527   PositionIterator classes.
11529 * Fixed PositionIterator assignment operator.
11531 testsuite:
11533 * queryparsertest: Added testcase for new phrase and expression prefix support.
11535 * apitest: Added regression tests for API fixes.
11537 backends:
11539 * quartzcompact: Fix the name that the meta file gets copied to (was
11540   /path/to/dbdirmeta rather than /path/to/dbdir/meta).
11542 build system:
11544 * Changed to using AM_MAINTAINER_MODE.  If you're doing development work on
11545   Xapian itself, you should configure with "--enable-maintainer-mode" and
11546   ideally use GNU make.
11548 * Fixed configure test for fdatasync to work (I suspect a change in a recent
11549   autoconf broke it as it relied on autoconf internal naming).
11551 * Fully updated to reflect move of libbtreecheck.la from backends/quartz
11552   to testsuite.  btreetest and quartzcheck should build correctly now.
11554 documentation:
11556 * Added first cut of documentation for Xapian::QueryParser query syntax.
11558 * Fixed incorrectly formatted doxygen documentation comments which resulted in
11559   some missing text in the collated API and internal classes documentation.
11561 * Documented --enable-maintainer-mode and problems with BSD make in HACKING.
11563 * Fixed typo in docs/scalability.html.
11565 * PLATFORMS: Updated from the tinderbox.
11567 omega:
11569 * omega: Parsing of the probabilistic query is now delayed until we need some
11570   information from it.  This means that we can now use options set by the
11571   omegascript template to control the behaviour of the query parser.
11572   $set{stemmer,...} now controls the stemming language (e.g. $set{stemmer,fr})
11573   and $setmap{prefix,...} now sets the QueryParser prefix map (e.g.
11574   $setmap{prefix,subject,XT,abstract,XA}).
11576 * omega: Fixed $setmap not to add bogus entries.
11578 * docs/omegascript.txt: Expanded documentation of $set and $setmap to list
11579   values which Omega itself makes use of.
11581 * omega: Cleaned up the start up code quite a bit.
11583 * omega: Removed the unfinished code for caching omegascript command
11584   expansions.  Added code to cache $dbsize.  The only other value correctly
11585   marked for caching is already being cached!
11587 Xapian 0.7.4 (2003-10-02):
11589 API:
11591 * Fixed small memory leak if Xapian::Enquire::set_query() is called more than
11592   once.
11594 * Xapian::ESet now has reference counted internals (library interface version
11595   bumped because of this).
11597 * Removed unused OmDocumentTerm::termfreq member variable.
11599 * OmDocumentTerm ctor now takes wdf, and replaced set_wdf() with inc_wdf() and
11600   dec_wdf().
11602 * Removed unused open_document() method from SubMatch and derived classes.
11604 * Calls made by the matcher to Document::Internal::open_document() now use the
11605   lazy flag provided for precisely this purpose, but apparently never used -
11606   this should give quite a speed boost to any matcher options which use values
11607   (e.g. sort, collapse).
11609 testsuite:
11611 * Finished off support for running tests under valgrind to check for memory
11612   leaks and access to uninitialised variables.
11614 * apitest: Sped up deldoc4.
11616 * btreetest: Removed superfluous `/'s from constructed paths.
11618 * quartztest: adddoc2 now checks that there weren't any extra values created.
11620 backends:
11622 * quartz: don't start the document's TermIterator from scratch on every
11623   iteration in replace_document().  Should be a small performance win.
11625 * quartz: Pass 0 for the lexicon/postlist table when creating a termlist just
11626   to find the doc length.
11628 * quartz: quartz_table_entries.cc: Removed rather unnecessary use of
11629   const_cast.
11631 * quartz: quartz_table.cc: Removed unused variable.
11633 * quartz: Improved encapsulation of class Btree.
11635 build system:
11637 * libbtreecheck.la now has an explicit dependency on libxapian.la.
11639 * We now set the dependencies for libxapian correctly so that linking
11640   applications will pull in other required libraries.
11642 * matcher/Makefile.am: Ship networkmatch.cc even if "make dist" is run from a
11643   tree with the remote backend disabled.
11645 * configure.in: Sorted out tests for gethostbyname and gethostbyaddr using
11646   standard autoconf macros.
11648 * configure.in: If fork is found, but socketpair isn't, automatically disable
11649   the remote backend rather than configure dying with an error.
11651 * autoconf/: Removed various unused autoconf macros.
11653 portability:
11655 * xapian-config.in: Link with libxapianqueryparser before libxapian, since
11656   that's the dependency order.
11658 * Removed or replaced uses of <iostream> and <iosfwd> in the library sources
11659   - we don't need or want the library to pull in cin and friends.
11661 * extra/queryparser.yy: Fixed to build with Sun's C++ compiler.
11663 * Make the dummy source file C++ rather than C so that automake tells libtool
11664   that this is a C++ library - vital for correct linking on some platforms.
11666 * Makefile.am: Pass -no-undefined to libtool so that we can build build a DLL
11667   on MS Windows.
11669 * configure.in: Fixed check for socketpair - we were automatically disabling
11670   the remote backend on platforms where socketpair is in libsocket
11671   (such as Solaris).
11673 * Use O_BINARY for binary I/O if it exists.
11675 * common/utils.h: mkdir() only takes one argument on mingw.
11677 * common/utils.h,testsuite/backendmanager.cc: Touch file using open() rather
11678   than system().
11680 * common/utils.cc: Fixed to compile if snprintf isn't available.
11682 documentation:
11684 * docs/scalability.html: Fixed slip (32GB should be 32TB);  Added note about
11685   Linux 2.4 and ext2 filesize limits.
11687 * PLATFORMS: Updated.
11689 * NEWS: Fixed a few typos.
11691 bindings:
11693 * xapian.i: using namespace std in SWIG parsed segment to sort out typemaps.
11695 packaging:
11697 * Updated RPM packaging.
11699 omega:
11701 * omega: $topdoc now ensures the match has been run; $date no longer ensures
11702   the match has been run.
11704 * omega: Fixed to build with Sun's C++ compiler.
11706 Xapian 0.7.3 (2003-08-08):
11708 API:
11710 * MSetIterator: Fixed MSetIterator::get_document() to work when get_mset() was
11711   called with first != 0 (regression test msetiterator3).
11713 testsuite:
11715 * internaltest: Changed test exception1 to actually test something (hopefully
11716   what was originally intended!)
11718 * Added long option support to the testsuite programs (and quartzdump).
11720 * Testsuite now builds on platforms for which we use our own stringstream
11721   implementation.
11723 * Only use \r in test output if the output is a tty.
11725 * Increased default timeout used by tests running on the remote backend from 10
11726   seconds to 5 minutes to avoid tests failing just because the machine running
11727   them is slow and/or busy.
11729 * Fixed check for broken exception handling - we were getting "Xapian::"
11730   prefixed to one version and not on the other.
11732 * tests/runtest: Set srcdir if it isn't already to make it easy to manually run
11733   test programs from a VPATH build.
11735 * apitest: Check termfreq in allterms4.
11737 backends:
11739 * quartz: Fixed allterms TermIterator to not give duplicate terms when a
11740   posting list is chunked; added regression test (allterms4).
11742 * quartz: Check for EINTR when reading or writing blocks and retry the
11743   operation.  This should mean quartz won't fail falsely if a signal is
11744   received (e.g. if alarm() is used).
11746 build system:
11748 * Renamed libomqueryparser to libxapianqueryparser - for backward compatibility
11749   we still provide a library with the old name for now.
11751 * xapian.m4: Added XO_LIB_XAPIAN to replace OM_PATH_XAPIAN.  XO_LIB_XAPIAN will
11752   automagically enable use of "xapian-config --ltlibs" if A[CM]_PROG_LIBTOOL is
11753   used in configure.in.
11755 * xapian-config: Now supports linking with libtool - using libtool means that
11756   the run-time library path is set and that you can now link with an
11757   uninstalled libxapian.  Also xapian-config will now work once xapian-core's
11758   configure has been run, rather than only after "make all".
11760 * xapian-config: Now automatically tries to link libxapianqueryparser too.
11762 * bootstrap: Removed bootstrap scripts in favour of top-level bootstrap which
11763   creates a top-level configure you can optionally use to configure all checked
11764   out Xapian modules with one command, and which creates a top level Makefile
11765   to build all checked out Xapian modules with one command.
11767 * Added versioning information to libxapian and libxapianqueryparser.
11769 * xapian-example/omega: Use libtool and XO_LIB_XAPIAN so we can link with an
11770   uninstalled Xapian, and so the run time load path gets built into the
11771   binaries (no need to set LD_LIBRARY_PATH just because you install Xapian with
11772   a non-standard prefix).
11774 * configure: Stop the API documentation from being regenerated when
11775   include/xapian/version.h changes (since it's generated by configure).
11777 * Fixed "make dist" in VPATH builds.
11779 portability:
11781 * common/getopt.h: #include <stdlib.h>, <stdio.h>, and <unistd.h> before
11782   defining getopt as a macro - this avoids problems with clobbering prototypes
11783   of getopt() in system headers.
11785 * bin/quartzcompact.cc: Need stdio.h for rename().
11787 * languages/Makefile.am: Fixed compilation for compilers other than GCC.
11789 * Moved rset serialisation into a method of RSet::Internal, so
11790   omrset_to_string() is now just glue code.  This eliminates the need for it to
11791   be a friend of RSet::Internal which Sun's C++ compiler didn't seem to be able
11792   to cope with.
11794 documentation:
11796 * Fix incorrect documentation comment for Enquire::set_set_forward().  (Looked
11797   like a cut&paste error)
11799 * COPYING: Updated FSF address, and reinstated missing section: "How to Apply
11800   These Terms to Your New Programs"
11802 * PLATFORMS: Updated some linux results: RH7.3 on x86, and Debian on alpha and
11803   arm; Updated FreeBSD success report; Updated with results from the tinderbox.
11805 * docs/mkdoc.pl: Don't choke on a comment at the end of the DIST_SUBDIRS line
11806   in a Makefile.am.
11808 * HACKING: Improved note about why libtool 1.5 is needed.
11810 * HACKING: Added note about additional tools needed for building a
11811   distribution.
11813 bindings:
11815 * Fixed VPATH builds.
11817 * python: Fixed to link with libomqueryparser.
11819 * guile,tcl8: Updated typemaps to SWIG 1.3 style.
11821 omega:
11823 * omindex.cc: Added missing `#include <errno.h>'.
11825 * omindex/scriptindex: Fixed signed character issue in accent normalisation.
11827 * omindex: fixed memory and file descriptor leak on indexing a zero-sized file.
11829 * omindex: Fixed sense of test for unreadable files.
11831 * omindex: Improved log messages to distinguish re-indexed/added.
11833 * omindex,omega,scriptindex: Fixed to compile with mingw.
11835 * omindex: Fixed to compile with GNU getopt so we can build on non-glibc
11836   platforms.
11838 examples:
11840 * msearch: Quick fix to get mingw building going.
11842 * getopt: Copied over our fixes for better C++ compatibility.
11844 * simplesearch: Stem search terms.
11846 * simpleindex: Fixed not to run words together between lines.
11848 * simpleindex: Create database if it doesn't exist.
11850 Xapian 0.7.2 (2003-07-11):
11852 testsuite:
11854 * Fixed NULL pointer dereference when a test threw an unexpected exception.
11856 backends:
11858 * Quartz: When asked to create a quartz database, try to create the directory
11859   if it doesn't already exist.  Then we don't have to do it in every single
11860   Xapian program which wants to create a database...
11862 portability:
11864 * common/getopt.h: Fixed to work better with C++ compilers on non-glibc
11865   platforms.
11867 * common/utils.h: missing #include <ctype.h>
11869 * Quartz: Defined _XOPEN_SOURCE=500 for GLIBC so we get pread() and pwrite().
11871 * common/utils.h: Improved mingw implementation of rmdir().
11873 documentation:
11875 * PLATFORMS: Added MacOS X 10.2 success report.
11877 * Improvements to doxygen-generated documentation.
11879 bindings:
11881 * Moved to separate xapian-bindings module.
11883 * Added configure check for SWIG version (require at least 1.3.14).
11885 * bindings/swig/xapian.i: Fixed over-enthusiastic automatic conversion of
11886   termname to std::string.
11888 * PHP4 bindings much closer to working once again; updated guile and tcl8
11889   somewhat.
11891 omega:
11893 * omega: If the same database is listed more than once, only search the first
11894   occurrence.
11896 * omega: use snprintf to help guard against buffer overflows.
11898 Xapian 0.7.1 (2003-07-08):
11900 testsuite:
11902 * Fixed testsuite programs to not try to use "rm -rf" under mingw.
11904 backends:
11906 * Quartz: Use pread() and pwrite() on platforms which support them.  Doing so
11907   avoids one syscall per block read/write.
11909 * Quartz block count is now unsigned, which should nearly double the size of
11910   database for a given block size.  Not tested this yet.
11912 omega:
11914 * omindex: Fixed compilation problem in 0.7.0.
11916 documentation:
11918 * Added new document discussing scalability issues.
11920 * PLATFORMS: Updated.
11922 Xapian 0.7.0 (2003-07-03):
11924 API:
11926 * Moved everything into a Xapian namespace, which the main header now being
11927   xapian.h (rather than om/om.h).
11929 * Three classes have been renamed for better naming consistency:
11930   OmOpeningError is now Xapian::DatabaseOpeningError, OmPostListIterator is
11931   now Xapian::PostingIterator, and OmPositionListIterator is now
11932   Xapian::PositionIterator.
11934 * xapian.h includes <iosfwd> rather than <iostream> - if you were relying on
11935   the implicit inclusion, you'll need to add an explicit "#include <iostream>".
11937 * Replaced om_termname with explicit use of std::string - om_termname was just
11938   a typedef for std::string and the typedef doesn't really buy us anything.
11940 * Older code can be compiled by continuing to use om/om.h which uses #define
11941   and other tricks to map the old names onto the new ones.
11943 * Define XAPIAN_VERSION (e.g. 0.7.0), XAPIAN_MAJOR_VERSION (e.g. 0), and
11944   XAPIAN_MINOR_VERSION (e.g. 7).
11946 * Updated omega and xapian-examples to use Xapian namespace.
11948 queryparser:
11950 * Xapian::QueryParser: Accent normalisation added; Improved error reporting;
11951   Fixed to handle the most common examples found in the wild which used to give
11952   "parse error".
11954 bindings:
11956 * Python bindings brought up to date - use ./configure --enable-bindings to
11957   build them.  Requires Python >= 2.0 - may require Python >= 2.1.
11959 * Enabled optional building of bindings as part of normal build process.  Old
11960   Perl and Java bindings dropped; for Perl, use Search::Xapian from CPAN; Java
11961   JNI bindings will be replaced with a SWIG-based implmentation.
11963 internal implementation changes:
11965 * Removed one wrapper layer from the internal implementation of most API
11966   classes.
11968 * Xapian::Stem now uses reference counted internals.
11970 * Internally a lot of cases of unnecessary header inclusion have been removed
11971   or replaced with forward declarations of classes.  This should speed up
11972   compilation and recompilation of the Xapian library.
11974 * Suppress warnings in Snowball generated C code.
11976 * Reworked query serialisation in the remote backend so that the code is now
11977   all in one place.  The serialisation is now rather more compact and no longer
11978   relies on flex for parsing.
11980 testsuite:
11982 * Moved all the core library tests to tests subdirectory.
11984 * apitest now allows backend to be specified with "-b" rather than having to
11985   mess with environmental variables.
11987 * Testsuite programs can now hook into valgrind for leak checking, undefined
11988   variable checking, etc.
11990 backends:
11992 * Fixed parsing of port number in remote stub databases.
11994 * Quartz: Improved error message when asked to open a pre-0.6 Quartz database.
11996 * Quartz backend: Workaround for shared_level problem turns out to
11997   be arguably the better approach, so made it permanent and tidied up
11998   code.
12000 build system:
12002 * Build system fixed to never leave partial files in place of the expected
12003   output if a build is interrupted.
12005 * quartzcheck, quartzdump, and quartzcompact are now built by "make" rather
12006   than only by "make check".
12008 * xapian-config: Removed --prefix and --exec-prefix - you can't reliably
12009   install Xapian with a different prefix to the one it was configured with,
12010   yet these options give the impression you can.
12012 miscellaneous:
12014 * Fixed sending debug output to a file with XAPIAN_DEBUG_LOG with a value which
12015   didn't contain "%%" (%% expands to the current PID).
12017 * Fixed Xapian::MSetIterator::get_collapse_count() to work as intended.
12019 omega:
12021 * omindex,scriptindex: Normalise accents in probabilistic terms.
12023 * omindex: Read output from pstotext and pdftotext via pipes rather
12024   than temporary files to side-step the whole problem of secure temporary file
12025   creation; Use pdfinfo to get the title and keywords from when indexing a PDF;
12026   Safe filename escaping tweaked to not escape common safe punctuation.
12028 * omindex: Implement an upper limit on the length of URL terms - this is a
12029   slightly conservative 240 characters.  If the URL term would be longer than
12030   this, its last few bytes are replaced by a hash of the tail of the URL.  This
12031   means that (apart from hopefully very rare collisions) urlterms should still
12032   be unique ids for documents.  This is forward and backward compatible for
12033   URLs less than 240 characters.
12035 * omindex: Clean up processing of HTML documents:
12036   - Ignore the contents of <script> and <style> tags in HTML.
12037   - Strip initial whitespace in each tag in an HTML document.
12038   - Try not to split words in half when truncating title and summary.
12040 * query.cc: Set STEM_LANGUAGE near the start of the file so it's easy
12041   for users to change until we get better configurability.
12043 * omega: Replaced half-hearted logging support with flexible OmegaScript-based
12044   approach with new $log command.  Also added $now to allow the current
12045   date/time to be logged.
12047 * templates/xml: added collapse info to xml template.
12049 documentation:
12051 * Assorted minor documentation improvements.
12053 * PLATFORMS: Updated.
12055 rpms:
12057 * Improved RPM packaging of xapian-core and omega.
12059 Xapian 0.6.5 (2003-04-10):
12061 * OmEnquire: optimised the handling when sort_bands == 1 and fixed incorrect
12062   results in this and some other sorting cases; added some sorting testcases.
12064 * OmMSetIterator: added get_collapse_count() which returns a lower bound on
12065   the number of items which were removed by collapsing onto the current item.
12067 * OmStem: added default OmStem constructor and "none" language.  Both of these
12068   give a stemmer object which leaves terms unchanged which should allow for
12069   simpler logic in programs using Xapian.  The default constructor also removes
12070   the need to mess with pointers in some cases.
12072 * Automatically disable the remote backend if we don't have fork() since the
12073   remote backend requires it in several places.
12075 * Fixed to build with debug enabled.
12077 * testsuite: fixed to still build when some backends are disabled.
12079 * extra/parsequerytest.cc: Fixed to build with GCC 2.95.
12081 * Testsuite: Added regression test for Quartz bug which caused problems with
12082   long terms on machines with signed chars.
12084 * testsuite/index_utils.cc: Handling of ^x was just downright wrong due to a
12085   typo.
12087 * Improved portability: Fix for 64 bit machines.  Fixed btreetest to build with
12088   older compilers lacking <sstream>.  Xapian is now much closer to building
12089   with Sun's CFront-based Sun Pro C++ compiler, and with a Linux to mingw
12090   cross-compiler.
12092 * PLATFORMS: Updated with the results of many test builds.
12094 * Improved RPM packaging of xapian-core and omega.
12096 * Documentation: Use http://www.doxygen.org/ as URL for doxygen; Fixed bad link
12097   to our own website in overview.html; code_structure.html now only includes
12098   directories in the build system.
12100 * HACKING: updated.
12102 * Removed bugs/todo.xml, TODO, TODO.release, docs/todo.html, and
12103   docs/todo-release.html from the distribution.  Bugs and todo items will be
12104   tracked in Bugzilla instead.
12106 * Install docs in /usr/share/doc/xapian-core instead of /usr/share/xapian-core.
12108 * omega: If xP and P are both empty, there may be a boolean query, so don't
12109   force first page of hits.
12111 * omega: Fixed off-by-one error in rounding down topdoc - it was possible to
12112   get to an empty page of hits if there were exactly a multiple of HITSPERPAGE
12113   matches and the matcher over-estimated the number of matches and Omega
12114   displayed page links.
12116 * omega: Fixed handling of multiple DB parameters to be as documented.
12118 * omega: Added $collapsed to report get_collapse_count() for the current hit.
12120 * omega: Added $transform{} which does regexp manipulation (currently disabled
12121   until configure tests for regexp library are added)
12123 * omega: Added $uniq{} to eliminate duplicates from a sorted list.
12125 * omega: Don't force page 1 for a query with repeated terms!
12127 * omega: removed duplicates from terms listed in term frequencies.
12129 * omega: Added cgi parameter COLLAPSE to collapse on key values
12131 * omega: Added $value{key[,docid]} support to omegascript
12133 * omega: Renamed DATE1, DATE2, and DAYSMINUS to the more meaningful START, END,
12134   and SPAN (NB SPAN is days before END, or after START, or before today -
12135   whereas SPAN was before *DATE1* or before today).  The old parameters names
12136   are supported (with the original semantics) for now.
12138 * omega: Actually install documentation!
12140 * templates/query: propagate B boolean filters
12142 * templates/godmode: removed link to EuroFerret image
12144 * templates/godmode: added value dumping, for values from 0-255
12146 * omindex: Report correct version number (was hard-wired to 1.0!)
12148 * scriptindex: Allow '_' in fieldnames.  Diagnose bad characters in fieldnames
12149   better.
12151 * dbi2omega: Added DBUSER and DBPASSWD environmental variable support so that
12152   password protected DBs can easily be used
12154 * scriptindex.cc: added missing "#include <stdio.h>" which caused builds
12155   to fail for some platforms.
12157 Xapian 0.6.4 (2002-12-24):
12159 * Quartz backend: Fixed double setting of position list when updating a
12160   document with term position information (overall result was correct, just
12161   inefficient); when deleting a position_list, don't check if it's empty,
12162   just ask the layer below to delete it and let it handle the case when
12163   there's nothing to delete; Fixed unpacking of termlist on platforms where
12164   char is signed.
12166 * OmQueryParser: Added support for searching probabilistic fields (using
12167   <field>:<term>); the unstem multimap now includes "." on the end of a
12168   term if it was there in the query.
12170 * Don't include "om.h" as a dependency for the api docs since it's generated
12171   a configure time and the dependency was forcing users to regenerate the
12172   documentation, which requires doxygen to be installed.
12174 * Bindings: Python bindings updated to work with the updated API (still
12175   disabled by default).
12177 * Muscat 3.6 backend: Fixed to build with the new database factory functions;
12178   fixed compilation warnings; Muscat 3.6 DA and DB databases don't support
12179   positional information.  Instead of throwing an exception when we try to
12180   access it, return an empty position list (like a quartz database with no
12181   position information would).  This allows copydatabase to be used to convert
12182   a Muscat 3.6 database to a quartz one.
12184 * Documentation: quartzdesign and todo list updated.
12186 * quartzcheck: default mode changed to "v" rather than "+", since "+" is too
12187   verbose for a btree of any size; if you pass a quartz database directory,
12188   quartzcheck will now check all the tables which make up a quartz database.
12190 * quartzcompact: new tool which makes a copy of a quartz database with full
12191   compaction turned on - this results in a smaller database which is faster
12192   to search.  The next update will result in a lot of block splitting though
12193   (since all blocks are as full as possible).
12195 * omega: Added $unstem to map a stemmed term to the form(s) used in the query;
12196   $queryterms now only includes the first occurrence of each stemmed form;
12197   $prettyterm makes use of the unstem map; prefer MINHITS to MIN_HITS and
12198   RAWSEARCH to RAW_SEARCH since none of the other CGI parameter names have
12199   _ separating words (continue to support old names for now); fixed default
12200   template to not generate topterms twice, and fixed topterms to not stick
12201   outside the green box; corrected omegascript docs - it's $setrelevant
12202   not $set_relevant.
12204 * scriptindex: index=nopos with new indexnopos action; index and indexnopos now
12205   take an optional prefix argument; index=nopos is handled specially for
12206   backwards compatibility; added new data action to generate terms for date
12207   range searching.
12209 Xapian 0.6.3 (2002-12-14):
12211 * Updated PLATFORMS and todo list.  Noted in HACKING that Bison 1.50 seems to
12212   work with Xapian.
12214 * OmQueryParser now creates an "unstem" multimap to allow probabilistic
12215   query terms to be converted back to the form the user originally typed.
12217 * Updated documentation for remote protocol description and the quickstart
12218   tutorial which were both very out of date.
12220 * No longer use OmSettings to pass matcher parameters.  This completes the
12221   removal of OmSettings.
12223 * Added workaround for problem with cursors sharing levels in the btree.
12224   This should fix sporadic problems with large databases (small databases
12225   have fewer btree levels so aren't affected).
12227 * Stub databases now work again, though with a different format.  The new
12228   format allows multiple databases to be specified in the stub file.
12230 * OmEnquire::get_eset() now takes a flags argument of bit constants |-ed
12231   together instead of 2 bools.
12233 * Applied Martin Porter's better fix for the btree sequential addition bug
12234   which Richard fixed a few months ago.  Richard's fix resulted in a correct
12235   btree, but didn't always utilise space as efficiently as possible.
12237 * Fixed the remote backend to handle weighting schemes after the OmSettings
12238   changes.  You can now even implement your own weighting scheme and use it
12239   with the remote backend provided you register it with SocketServer at
12240   runtime (this feature has been on the todo list for ages).
12242 Xapian 0.6.2 (2002-12-07):
12244 * Set env var XAPIAN_SIG_DFL to stop the testsuite installing its
12245   signal handler (may be useful with some debugging tools).
12247 * backends/quartz/btree.cc: max_item_size wasn't being set due to
12248   some over-zealous code pruning.  It was defaulting to 0, and
12249   was causing the code to write off the end of allocated memory
12250   blocks.
12252 * matcher/localmatch.cc: fixed handling of wtscheme() - we were
12253   trying to use it for the extra weights, and then double
12254   deleting it!
12256 * common/omdebug.cc,common/omdebug.h: Fixed permissions on newly
12257   created log file (was getting 000!); Simplified class internals;
12258   Renamed env vars: OM_DEBUG_FILE is now XAPIAN_DEBUG_LOG,
12259   OM_DEBUG_TYPES is now XAPIAN_DEBUG_FLAGS (old versions still work
12260   for now).
12262 * testsuite/testsuite.cc: Fixed so running "gdb .libs/apitest"
12263   finds srcdir (for an in-tree build at least).
12265 * Fixed to compile with --enable-debug=full.
12267 * docs/remote.html: Updated from OmSettings to factory functions.
12269 * PLATFORMS: ixion is actually Linux 2.2.
12271 * OmWritableDatabase now has a default constructor.
12273 * Weighting scheme now specified by passing OmWeight object to OmEnquire.
12274   This also allows user weighting schemes (just subclass OmWeight and
12275   pass in an instance of this new class).  [This doesn't currently work
12276   with the remote backend.]
12278 * No longer use OmSettings to specify parameters for constructing databases.
12279   Instead there's a factory function for each database type - temporary naming
12280   scheme is OmXxx__open(), mostly because it's easy to grep for later.
12281   Instead of create and overwrite flags, we pass in a value - a new possible
12282   opening mode is "create or open".  [At present stub databases and the
12283   machinery in InMemory to allow the multierrhandler1 test aren't working.
12284   Everything else should be.]
12286 * OmEnquire::get_eset() takes parameters instead of an OmSettings object.
12288 * Fixed reversed sense of use_query_terms (and fixed reversed sense test in
12289   apitest which meant this wasn't spotted).
12291 * Documentation: Link to annotated class lists in doxygen generated
12292   documentation instead of the rather empty index pages; added doxygen
12293   markup so that apidoc now documents header files; updated todo list.
12295 * Documentation: intro doc thing was very out of date in places - fixed.
12297 * Omega: index .php files as HTML, with the PHP code stripped out; omindex
12298   return non-zero return code if an unexpected exception is caught; fixed
12299   HTML parser to not read one character past the end of the document in
12300   some cases; updated in line with OmSettings related changes to the API;
12301   Fixed $dbname to return "default" for the default database instead of "";
12302   templates/query: Removed now unused xDEFAULTOP hidden field, and superfluous
12303   "}"; dbi2omega now more efficient and can be restricted to listed fields.
12305 Xapian 0.6.1 (2002-11-28):
12307 * Fixed to compile with GCC 3.0.
12309 * PLATFORMS: Updated.
12311 Xapian 0.6.0 (2002-11-27):
12313 * Quartz database backend: lexicon disabled (./configure CXXFLAGS=-DUSE_LEXICON
12314   to reenable it), and encoding schemes simplified and made more compact;
12315   extended and added test cases; minimum block size is now 2048 bytes (as
12316   documented before, but now we actually enforce this); btree checking code
12317   split off and only linked in when required; tidied up btreetest's output.
12319 * Replaced our stemmers with those from Snowball.  These give better results,
12320   and are actively maintained by Martin Porter (who wrote the original Xapian
12321   stemmers too).  It also means that Xapian now has stemmers for Finnish,
12322   and Russian, and an implementation of Lovins' English stemmer.
12324 * Assorted improvements to the documentation, especially the documentation
12325   of the internals of the Quartz backend.
12327 * Removed the three uses of RTTI (typeid() and dynamic_cast<>) - one was
12328   totally superfluous, and the other two easily avoided.
12330 * Omega and simpleindex example: limit probabilistic term length to 64
12331   characters to stop the index filling up with junk terms which nobody will
12332   ever search for.
12334 * Omega: Added dbi2omega perl script to dump any database which perl DBI can
12335   access into the dump format expected by scriptindex.
12337 Xapian 0.5.5 (2002-12-04):
12339 * Fixed compilation with --enable-debug.
12341 * Minor documentation updates.
12343 * Omega: Fixed paging on default database; removed xDEFAULTOP from the query
12344   template as it's no longer used; removed bogus unmatched '}' from query
12345   template; added dbi2omega perl script to dump any database which perl DBI
12346   can access into the dump format expected by scriptindex; limit length of
12347   probabilistic terms generated to 64 characters.
12349 Xapian 0.5.4 (2002-10-16):
12351 * Fixed a compilation error with "make check" when using GCC 3.2.
12353 * PLATFORMS: checked 0.5.3 works on OpenBSD and Solaris 7.
12355 Xapian 0.5.3 (2002-10-12):
12357 Notable changes: Improvements to the test suite, and internal code cleanups:
12359 * Internal code cleanups on Quartz Btree implementation.
12361 * Minor documentation updates (TODO and PLATFORMS updated; Martin Porter's
12362   stemming paper removed - see the Snowball site for background stemmer
12363   info).
12365 * Implemented QuartzAllTermsList::get_approx_size().
12367 * Removed a couple of occurrences of "using std::XXX;" from externally
12368   visible headers.
12370 * With GCC, add warning flags "-Wall -W" rather than "-Wall -Wunused" (-Wall
12371   implies -Wunused anyway).  Fixed all the warnings this throws up, except in
12372   languages/ (that code is to be replaced with Snowball soon).
12374 * Test suite: Disable colour test output if stdout isn't a terminal and
12375   reworked check for broken exception handling as the previous  version never
12376   seemed to fire.  Other assorted minor improvements.
12378 * include/om/om.h is now removed on "make distclean" rather than "make clean".
12380 Xapian 0.5.2 (2002-10-06):
12382 Further improvements to documentation and portability:
12384 * docs/: converted all text docs to HTML (except omsettings which will
12385   has odd markup (LaTeX?) and will probably soon be obsolete anyway).
12387 * remote backend: Fixed handling of timeouts which are now in the past - fixes
12388   test failures with redhat/x86.
12390 * quartz backend: now works on 64 bit platforms.
12392 * test suite: try to spot mishandled exceptions and stop them causing bogus
12393   OMEXCEPT failures.
12395 Xapian 0.5.1 (2002-10-02):
12397 This release fixes features improved documentation and some build system
12398 portability fixes.
12400 * PLATFORMS: updated with more test results.
12402 * docs/: tidied up layout of HTML documentation; converted the notes about
12403   BM25 into HTML; updated stemmer docs to reflect intention to use Snowball
12404   instead; included HTML versions of quickstart*.cc.
12406 * automake 1.6.3 and autoconf 2.54 are now required for those working
12407   from CVS to fix a problem with the generated Makefiles and Solaris
12408   make.
12410 * net/Makefile.am: Fixed building of readquery.cc from readquery.ll.
12412 * buildall script is now deprecated - use the new streamlined bootstrap script
12413   in preference.
12415 Xapian 0.5.0 (2002-09-20):
12417 The last release of the software that is now known as Xapian was Open Muscat
12418 0.4.1 on November 24th 2000, not far from 2 years ago.
12420 There's been a significant amount of development in this time, so we've
12421 summarised the most notable changes and improvements:
12423   * The project is now called "Xapian". We've renamed the modules in the light
12424     of this change:
12426       + "om" is now "xapian-core"
12427       + "om-examples" is now "xapian-examples", and now contains small,
12428         instructive examples which demonstrate how to use Xapian to implement
12429         particularly features.
12430       + Added "xapian-applications" which contains larger sample applications
12432   * Much improved build system - should now build "out of the box" on many Unix
12433     platforms. Can now VPATH build with vendor tools on most platforms. Builds
12434     as cleanly as we can achieve with GCC 2.95.* (some bogus warnings due to
12435     compiler bugs). Should build without warnings on GCC 3.0, 3.1, and 3.2.
12437   * If using GCC, om/om.h now contains a check that the compiler used to build
12438     Xapian and the compiler used to build the application have compatible C++
12439     ABIs. So you get a clear error message early from the first attempt to
12440     compile a file rather than a confusing error from the linker near the end
12441     of the build.
12443   * RPM packages are now available. We intend to prepare Debian packages in the
12444     near future too.
12446   * xapian-config no longer support "--uninst". It's hard to make this work
12447     reliably and portably, and the effort is better expended elsewhere.
12448     Configure with a prefix and install to a temporary directory instead.
12450   * Xapian can now work with files > 2Gb on OSes which support them.
12452   * Restructured and reworked documentation.
12454   * Removed thread locks. We intend to be "thread-friendly" so different
12455     threads can access different objects without problems. In the rare event
12456     that you want to concurrently call methods on the same object from
12457     different threads you need to create a mutex and lock it. Thus the thread
12458     lock overhead is only incurred when it's necessary.
12460   * Indexgraph removed from core library. It will reappear as an add-on library
12461     at some point.
12463   * Omega's query parser has now been reworked as a separate library.
12465   * Terminology change - "keys" are now known as "values" to avoid confusion,
12466     since they're not like keys in a relational database. The exception is when
12467     a value is used as a key in some operation, e.g. "match_collapse_key".
12469   * Database backends:
12471       + Auto backend: can now be used to create a new database.
12472       + Auto backend: added support for "stub" databases - a text file
12473         specifying the settings for the database to be opened (particularly
12474         useful for allowing easy access to specific remote databases).
12475       + Quartz backend: many fixes and improvements, and the code has been
12476         cleaned up a lot. Implemented deleting of items from postlists.
12477       + Remote backend: implemented term_exists() and get_termfreq();
12478       + Multi-backend: the document length is now fetched from the sub-postlist
12479         rather than the database, which provides a huge speed-up in some cases.
12480       + Sleepycat backend: this experimental backend has been removed.
12481       + Muscat 3.6 backends: now disabled by default.
12483   * Tests:
12485       + Test cases added for most bug fixes and new features.
12486       + stemtest: rewritten in C++ rather than part C++, part perl. Now 15%
12487         faster.
12488       + includetest: removed - it's no longer useful now the code has matured.
12489       + Removed problematic leak checking from testsuite. We plan to use
12490         valgrind instead soon.
12492   * Matcher:
12494       + Fixed several matcher bugs which could cause incorrect results in some
12495         situations.
12496       + Fix bug in expander due to nth_element being called on the wrong
12497         element.
12498       + Added sorting within relevance bands to the matcher.
12499       + Matcher now calculates percentages differently, such that 100%
12500         relevance is actually achievable.
12501       + Matcher now uses a min-heap rather than nth-element to maintain the
12502         proto-mset. This is cleaner and more efficient.
12503       + New operator OP_ELITE_SET replaces match_max_or_terms option.
12504       + Implemented multiple XOR queries.
12505       + Add a new query operator, OP_WEIGHT_CUTOFF, which returns only those
12506         documents from a query which have a weight greater than a specified
12507         cutoff value.
12508       + Removed OmBatchEnquire from system: it may return at a later date, but
12509         for now it is simply out of date and a maintenance liability, and
12510         gives no significant advantage.
12511       + Added experimental match bias functors.
12513   * The API has been cleaned up in various places:
12515       + OmDocumentContents and OmIndexDoc merged to become OmDocument
12516       + OmQuery interface cleaned up
12517       + OmData and OmKey removed - methods which used them now just pass a
12518         string instead
12519       + OmESetItem replaced by OmESetIterator; OmMSetItem by OmMSetIterator;
12520         om_termname_list by OmTermIterator
12521       + OmDocumentTerm and OmDocumentParams removed
12522       + OmMSet::mbound replaced by OmMSet::matches_
12523         {lower_bound,estimated,upper_bound}, giving more information
12524       + Xapian iterators now have default constructors
12525       + Most API classes now have reference counted internals, so assignment
12526         and copying are cheap
12527       + OmStem now has copy constructor and assignment operator
12528       + and more...