1 Xapian-core 1.4.19 (2021-12-31):
5 * New QueryParser::FLAG_NO_POSITIONS flag. With this flag enabled, any query
6 operations which would use positional information are replaced by the nearest
7 equivalent which doesn't (so phrase searches, NEAR and ADJ will result in
8 OP_AND). This is intended to replace the automatic conversion of OP_PHRASE,
9 etc to OP_AND when a database has no positional information, which will no
10 longer happen in the release series after 1.4.
12 * Give a compile error for code which adds a Database to WritableDatabase.
14 Prior to 1.4.19, this compiled and effectively created a "black-hole" shard
15 which quietly discarded any changes made to it.
17 In 1.4.19 it's still possible to perform this operation by assigning the
18 WritableDatabase to a Database first, which is harder to fix. This case
19 throws an exception on git master where it's easier to address.
21 Reported by David Bremner on #xapian.
23 * Fix TermIterator::skip_to() with sharded databases which sometimes was
24 failing to advance all the way to the requested term. Uncovered while
25 addressing warning from GCC's -Wduplicated-cond, reported by dcb in #816.
27 * Clamp edit distance to one less than the length of the word we've been asked
28 to correct, which makes the algorithm we use more efficient. We already
29 require suggestion to have at least one character in common, so the only
30 change to suggestions is we'll no longer suggest corrections which are
31 twice as long or longer even if the edit distance would allow it, which
32 seems like an improvement in itself.
34 * Minor optimisation expanding wildcards.
36 * PostingIterator::get_description(): For an all-docs iterator on a glass
37 database, get_description() would call get_docid() which isn't valid to
38 do once the iterator has reached the end.
42 * Expand allterms test coverage.
46 * Fetch wdf upper bound from postlist which avoids an extra postlist table
47 cursor seek per weighted query term, and also means we now use a per-shard
48 wdf upper bound for local shards which will in typically give a tighter
49 weight upper bound which will tend to make various other matcher
50 optimisations more effective. Eric Wong reported this speeds up a
51 particularly slow case from ~2 minutes to ~3 seconds.
53 With this change, OP_ELITE_SET can now select a different subset of terms for
54 each shard regardless of shard type (previously this only happened for remote
57 * Avoid triggering a pointless maximum weight recalculation if an unweighted
58 child of a MultiAndPostList prunes.
60 * Only check if the database has positional information when the query
61 uses positional information. This should help improve notmuch delete
62 performance. Thanks to andreas on #notmuch for analysis of the problem.
66 * Optimise Glass::Inverter::has_positions(). Use const auto& instead of just
67 auto for the loop variables. Reported to be faster by andreas on #notmuch.
69 * Cache result of Glass::Inverter::has_positions() since calculating it is
70 potentially very expensive, while maintaining a cached answer is very cheap.
74 * Add missing closing parenthesis to reported remote prog context, which has
75 been missing since this code was first added over 20 years ago! Spotted by
80 * Enable compiler option -fno-semantic-interposition if supported.
82 This GCC option allows the compiler to optimise essentially assuming
83 that functions/variables aren't replaced at dynamic link time.
85 Such replacement is not something that it's useful to do for Xapian
86 symbols, and we already turn on -Bsymbolic-functions by default which
87 prevents such replacement anyway by resolving references within the
88 library at build time.
90 Reduces the size of the stripped library on x86-64 Debian unstable by
91 ~1%, and likely makes it faster too.
93 * Avoid bogus deprecation warning when compiling with GCC without optimisation.
94 In this situation, GCC emits a deprecation warning for code in the definition
95 of QueryParser::add_valuerangeprocessor() which is provided for backwards
96 API compatibility even if this method is never used anywhere.
98 This isn't helpful, especially if the user is using -Werror, so disable the
99 -Wdeprecated-deprecations warning for this code.
101 Reported by starmad on #xapian.
103 * Fix GCC -Wmaybe-uninitialized warning. The warning seems bogus as it's about
104 the this pointer being passed to a method which doesn't reference the object,
105 but we can just make the method static to avoid the warning, and that's
106 arguably cleaner for a method called from the object initialiser list.
108 * Automatically enable GCC warnings -Wduplicated-cond and -Wduplicated-branches
109 if using a GCC version new enough to support them. The usefulness of
110 -Wduplicated-cond was highlighted by dcb in #816.
112 * Replace uses of obsolete autoconf macros, fixing warnings if configure is
113 regenerated with a recent release of autoconf.
115 * Simplify configure probe for sigsetjmp and siglongjmp. Just probe
116 individually with AC_CHECK_DECLS and then check that both exist with a
119 * Update XO_LIB_XAPIAN to fix warning that AC_ERROR is obsolete with modern
122 * Support linking against static libxapian with cmake. Patch from Anonymous
123 Maarten in https://github.com/xapian/xapian/pull/317
125 * Clean up handling of libs we link libxapian with - previously any libraries
126 explicitly specified to configure by the user via LIBS=... as well as -lm
127 (if configure determined it was needed) could get added to XAPIAN_LIBS
128 multiple times, as well as also getting added to the libxapian link command
129 anyway by automake/libtool standard handling.
131 Specifying a library more than once on the link line is not a problem on
132 common platforms, but may be an issue somewhere (and it's on less common
133 platforms where the user is more likely to have to specify LIBS to configure
134 and/or where -lm may be needed).
138 * configure: Add missing AC_ARG_VAR for all programs so that they are
139 documented in --help output, and so that autoconf knows they are "precious"
140 and preserves them if configure is rerun even when they're specified via an
141 environment variable.
143 * Don't use x^2 to mean x squared in API docs. This is potentially confusing
144 since in C/C++ (and some other languages), ^ means exclusive-or. Write x²
145 instead, which should be clear to all readers.
147 * Improve docs for Xapian::Stopper and SimpleStopper.
149 * docs/intro_ir.rst: Fixed an incorrect term index. Patch from Jaak Ristioja
150 in https://github.com/xapian/xapian/pull/321.
152 * Update for the IRC channel move from freenode to libera.chat.
156 * quest: Don't enable spelling correction by default. It was really only on by
157 default because the spelling correction support in quest was added before
158 --flags. It seems more helpful for the default to match the
159 Xapian::QueryParser API, and also this fixes the weird situation that
160 `--flags default` isn't the default you get without any `--flags` option.
162 * quest: Multiple `--flags` options now get combined - previously only the last
167 * Don't automatically use _FORTIFY_SOURCE on mingw-w64. Recent mingw-w64
168 versions require -lssp to be linked when _FORTIFY_SOURCE is enabled, so just
169 skip the automatic enabling. Users who want to enable it can specify it
172 Fixes #808, reported by xpbxf4.
174 * Workaround NFS issue in test harness function for deleting test databases.
175 On NFS, rmdir() can fail with EEXIST or ENOTEMPTY (POSIX allows either)
176 due to .nfs* files which are used by NFS clients to implement the Unix
177 semantics of a deleted but open file continuing to exist. We now sleep
178 and retry a few times in this situation to give the NFS client a chance
179 to process the closing of the open handle. Problem mentioned in #631.
181 * configure: Drop -lm special case for Sun C++ as this no longer seems to
182 be required. Tested with Sun C++ 5.13, which is the oldest version we
183 now support due to us now requiring C++11.
185 * Use strerrordesc_np() if available. This is a GNU-specific replacement for
186 sys_errlist and sys_nerr. It was added in glibc 2.32 since which sys_errlist
187 and sys_nerr are no longer declared in the headers.
189 * Update debug logging to use std::uncaught_exceptions() under C++17 and later
190 since this allows the debug logging to detect a function without RETURN()
191 annotation which exits normally while there's an uncaught exception
192 (previously the debug logging would think the stack was being unwound through
193 the function). This also avoids deprecation warnings - the old
194 std::uncaught_exception() (note: singular) function was deprecated by
195 C++17 and removed in C++20.
197 * Increase size of buffer passed to strerror_r() from 128 to 1024 bytes, which
198 is the size recommended by the man page on Linux.
200 * Fix -Wdeprecated-copy warning from clang 13.
202 Xapian-core 1.4.18 (2021-01-14):
206 * QueryParser::FLAG_ACCUMULATE: New flag. Previously the unstem and stoplist
207 data was always reset by a call to QueryParser::parse_query(), which makes
208 sense if you use the same QueryParser object to parse a series of independent
209 queries. If you're using the same QueryParser object to parse several fields
210 on the same query form, you may want to have the unstem and stoplist data
211 combined for all of them, in which case you can use this flag to prevent this
212 data from being reset.
214 * QueryParser::unstem_begin(): Eliminate unnecessary copying of the data.
216 * Fix typo in Swedish stopword list, syncing change made to Snowball by Daniel
219 * Remove some French stop words with other meanings, syncing change made to
220 Snowball by PhilippeOuellet.
224 * Run testcase testlock4 using backend chert, not just using glass
226 * Skip testcase testlock4 on platforms that don't allow us to implement
227 Database::locked() (which notably include GNU Hurd and Microsoft Windows).
231 * List DB_NO_TERMLIST in the WritableDatabase constructor API documentation
232 where we already list the other DB_* constants.
236 * Eliminate single use of std::mem_fun() which was deprecated in C++11 and
237 removed in C++17. Reported by Mateusz Pusz in #806.
239 * Add missing includes for std::numeric_limits<>. Reported by stac47 in #805.
241 * Work around mingw.org header issue. MSVC seems to implicitly include
242 <winerror.h> but mingw.org's headers don't, leading to ERROR_PIPE_CONNECTED
243 not being defined. Fixes https://github.com/xapian/xapian/pull/318, reported
246 * Suppress MSVC warnings about possible loss of data. The values involved are
247 the number of set bits in a value of integer type, so these warnings are
250 * Include <sys/types.h> for size_t and off_t, which is the appropriate header,
251 and needed with Android's bionic libc. Patch from Matthieu Gautier.
253 * Use a temporary file for the Doxygen configuration to work around Doxygen
254 1.8.19 bug which truncates a config file read from stdin to 4096 bytes
255 (https://github.com/doxygen/doxygen/issues/7975).
257 Xapian-core 1.4.17 (2020-08-21):
261 * Database::get_average_length(): Add this as an alias for
262 Database::get_avlen(). In git master we've added this as a preferred new
263 name - adding it to 1.4.x too will make it easier for users to update to
266 * Database::get_spelling_suggestion(): Optimise edit distance initialisation
267 loop to significantly reduce the cost of a typical edit distance calculation.
269 * Fix query expansion on sharded databases. The mechanism for passing in which
270 shard a TermList is from wasn't hooked up and as a result we'd always think
271 it's from the first shard, meaning the statistics would be wrong and that our
272 suggested terms may not have been as good as they should be in this
275 * Enquire::get_eset(): Use string::compare() to avoid 1/3 of the string compares
280 * Update doxygen HTML headers and footers to resolve issues with some
281 interactive features of the API docs not working. Reported by Enrico Zini.
283 * Stop specifying obsolete doxygen settings PERL_PATH and MSCGEN_PATH.
285 * Clarify API docs for MSet::get_termfreq() to make it clear that this
286 considers all documents in the database, not only those that matched the
287 searched (it would sometimes be useful to be able to report the number of
288 occurrences of a term in the matched documents, but it's not something we
289 currently keep track of). Reported by Tadeusz Sośnierz and Peter Salomonsen.
291 Xapian-core 1.4.16 (2020-06-08):
295 * MSet::snippet(): The snippet now includes trailing punctuation which carries
296 meaning or gives useful context. See
297 https://github.com/xapian/xapian/pull/180, reported by Robert Stepanek.
299 * MSet::snippet(): Fix segfault generating snippet from default-constructed
300 MSet. This probably isn't something you'd typically do, but it shouldn't
301 crash. Found during extended testing of #803 (which only affected git
302 master) which was reported by Robert Stepanek.
304 * Remove trailing full stop from exception messages. We conventionally don't
305 include one, but a few cases didn't follow that convention.
309 * Replace direct use of ftime() which gives deprecation warnings with recent
310 mingw. Reported by srinivasyadav22.
314 * Fix segfault in rare cases in the query optimiser. We keep a pointer to the
315 most recent posting list to use as a hint for opening the next posting list,
316 but the existing mechanism to take ownership of this hint had a flaw. We now
317 invalidate the hint in situations where it might be indirectly deleted which
318 is safe, but somewhat conservative.
320 * Improve the optimisation of an always-matching OP_VALUE_GE to also take
321 effect when the value slot's lower bound is equal to the limit of the
322 OP_VALUE_GE. Patch from boda sadalla.
326 * Report the correct errno value if commit() fails. We were potentially
327 reporting ENOENT from an unlink() call cleaning up a temporary file prior to
328 throwing the exception instead.
332 * Fix missing menus in API documentation. Newer doxygen generates .js files
333 which we also need to distribute and install. Reported by sec^nd on #xapian.
335 * Note OP_FILTER ignored subquery bug fixed in 1.4.15 as present in 1.4.14 and
340 * Use our own autoconf cache variable namespace (xo_cv_ prefix instead of
341 ac_cv_) to avoid colliding with standard autoconf macro use if config.site or
342 a shared config.cache is used. The former case caused a build failure for
343 the OpenBSD port with 1.4.15, reported by Lucas R.
345 * Use clock_gettime() and nanosleep() under modern mingw as these allow higher
346 precision than what we previously used.
348 Xapian-core 1.4.15 (2020-02-24):
352 * Database::check(): Fix checking of replication changesets. This reverts a
353 change incorrectly made in 1.3.7.
355 * Database::locked(): Return false instead of true for a closed inmemory DB.
357 * Database::commit(): If commit() failed with an exception while trying to add
358 pending changes (e.g. InvalidArgumentError due to a long term containing zero
359 bytes) then a subsequent commit() on the same object would throw the same
360 exception. Now we clear the pending changes in this situation (like we
361 already did for failure at other stages in the commit). This bug remains
362 unfixed for the chert backend as it's harder to fix there and the effort to
363 fix it and extra risk of breakage don't seem justified for a backend we
364 recommend people migrate away from.
366 * QueryParser::parse_query(): Optimise parsing of multi-word synonyms.
370 * Use 50-word synonym for qp_scale1 "large" case. 50 divides exactly into the
371 number of repetitions we do for the "small" case, which 60 (as used before)
372 doesn't. This makes the two cases a little more comparable and should help
373 make this testcase less flaky (see #764).
375 * Adjust testcase matches1 to work with remote shards where the matcher can
376 return slightly better bounds on the number of matches in some cases.
379 * The testharness get_remote_database() method is now supported for sharded
380 databases. This is needed for keepalive1 to run successfully under multi
381 test backends. Resolves 2 XFAILs of keepalive1.
383 * Improved test coverage:
385 + Test locked() on a closed WritableDatabase, which already returns false (as
386 expected) in 1.4.x (but was broken on master).
388 + Check multi databases in testsuite - this has been supported by
389 Database::check() since 1.4.12.
391 + Also test OP_SYNONYM and OP_MAX in emptydb1.
393 + Backport testcases boolorbug1, emptynot1, emptymaybe1 and
394 phraseweightcheckbug1 from git master - these are regression tests for
395 fixed bugs which only affected git master, but it's useful to confirm that
396 these bugs don't currently affect 1.4, and ensure they don't get introduced.
398 * perftest: Store memory sizes as long long since on Microsoft Windows long is
399 only 32 bits, which is less than common memory sizes.
403 * Hoist positional check above OP_FILTER.
405 * Handle OP_FILTER with more than two subqueries correctly. Previously we'd
406 only check the first two subqueries in some situations.
410 * For a remote WritableDatabase, the client now keeps track of whether there
411 are pending changes, and if there aren't then we now do nothing for commit()
412 or cancel() calls. In particular this saves a message exchange when the
413 WritableDatabase destructor is called when changes have already been
414 committed with an explicit call to commit() (which is what we recommend
415 doing, since with an explicit call to commit() you get to see any exception
418 * When closing a remote prog WritableDatabase, previously an exception could
419 leave the remote connection open with the remote server running, and we'd
420 then wait for the specified timeout before closing the connection. Now we
421 close the connection before letting the exception propagate.
423 * Don't swallow exceptions from Database::close() on a remote database. If
424 we aren't in a transaction and so try to commit() and that fails then
425 previously the caller would have no indication of the failure.
427 * Fix handling the reported term weight when remote shards are searched.
428 Fixes 5 XFAILs in the testsuite.
430 * Add missing space to mismatching protocol versions error message.
434 * Fix to build when configured with --disable-backend-remote, broken by changes
435 in 1.4.14. Fixes #797, reported by Дилян Палаузов.
437 * The clang and icc compilers both define __GNUC__, which led our ABI mismatch
438 message to report them as "g++" with a bogus version (the version of GCC that
439 these compilers advertise themselves as, which for clang is always 4.2.0) -
440 now we report clang++ or icc along with the actual version of that compiler.
444 * AUTHORS: Apply missed update to the thankyou list for 1.4.14.
446 * INSTALL: Note that MSVC 2019 works.
448 * INSTALL: Note that Xapian can use the system uuid.h on AIX and OpenBSD.
452 * Simplify probes for snprintf. The broken snprintf in libbsd in Linux libc4
453 is from ~25 years ago so way too ancient to matter now, and all callers
454 already handle the pre-ISO semantics of returning -1 for an undersize buffer
455 so we don't need to run a test program to probe for this at configure time,
456 which is more cross-compile friendly.
458 * Don't quote messages in #error - the quotes aren't required and appear in the
459 compiler output (at least with GCC and clang) making it less readable.
461 * Use a different approach for getting a 64-bit capable stat() for mingw32.
462 This means we now use the same stat variant for mingw32 and MSVC, which
465 * Work around unhelpful config.status behaviour. It comments out any #undef
466 lines in config.h, even those added via AH_TOP and AH_BOTTOM. Splitting
467 these lines means they don't match the regex hammer config.status uses.
469 * Avoid -Wdeprecated-copy warnings from clang 10.
471 * Avoid deprecation warning on recent Linux. We were including sys/sysctl.h if
472 it existed, which it does on Linux but we don't actually use it there.
473 Including it now warns that it is deprecated, so skip including it under
474 Linux. Reported on IRC by kumaran.
476 * Suppress GCC -Wduplicated-branches warning from our API headers in a
477 different way which avoids needing a compiler-specific #pragma.
479 * Workaround closefrom1 failure on macOS. It seems under macOS our fd tracking
480 can end up using fd 10 so start from 13 when testing closefrom() so we don't
481 close the fd which our fd tracking is using internally.
485 * Log RemoteConnection::read_at_least() return value.
487 Xapian-core 1.4.14 (2019-11-23):
491 * Xapian::QueryParser: Handle "" inside a quoted phrase better. In a quoted
492 boolean term, "" is treated as an escaped ", so handle it in a compatible way
493 for quoted phrases. Previously we'd drop out of the phrase and start a new
494 phrase. Fixes #630, reported by Austin Clements.
496 * Xapian::Stem: The constructor which takes a stemmer name now takes an
497 optional second bool parameter - if this is true, then an unknown stemmer
498 name falls back to using the "none" stemmer instead of throwing an exception.
499 This allows simply constructing a stemmer from an ISO language code without
500 having to worry about whether there's a stemmer for that language, and
501 without having to handle an exception if there isn't.
503 * Xapian::Stem: Fix a bug with handling 4-byte UTF-8 sequences which
504 potentially affects most of the stemmers. None of the stemmers work in
505 languages where 4-byte UTF-8 sequences are part of the alphabet, but this
506 bug could result in invalid UTF-8 sequences in terms generated from text
507 containing high Unicode codepoints such as emoji, which can cause issues (for
508 example, in some language bindings). Fix synced from Snowball git post
509 2.0.0. Reported by Ilari Nieminen in
510 https://github.com/snowballstem/snowball/issues/89.
512 * Xapian::Stem: Add a new is_none() method which tests if this is a "none"
515 * Xapian::Weight: The total length of all documents is now made available to
516 Xapian::Weight subclasses, and this is now used by DLHWeight, DPHWeight and
517 LMWeight. To maintain ABI compatibility, internally this still fetches the
518 average length and the number of documents, multiplies them, then rounds the
519 result, but in the next release series this will be handled directly.
521 * Xapian::Database::locked() on an inmemory database used to always return
522 false, but an inmemory Database is always actually a WritableDatabase
523 underneath, so now we always report true in this case because it's really
524 always report being locked for writing.
528 * Fix failing multi_glass_remoteprog_glass tests on x86. When the tests are
529 run under valgrind, remote servers should be run using the runsrv wrapper
530 script, but this wasn't happening for remote servers in multi-databases - now
531 it is. Also, previously runsrv only used valgrind for the remote for an x86
532 build that didn't use SSE, but it seems there are x87 instructions in libc
533 that are affected by valgrind not providing excess precision, so do this for
534 x86 builds which use SSE too. Together these changes fix failures of
535 topercent2, xor2, tradweight1 under backend multi_glass_remoteprog_glass on
538 * Fix C++ One-Definition Rule (ODR) violation in testsuite code. Two different
539 source files linked into apitest were each defining a different `struct
540 test`. Wrap each in an anonymous namespace to localise it to the file it is
541 defined and used in. This was probably harmless in practice, unless trying
542 to build with Link-Time Optimisation or similar (which is how it was
545 * Test all language codes in stemlangs1. The testsuite hardcodes a list of
546 supported language codes which hadn't been updated since 2008.
548 * Improve DateRangeProcessor test coverage.
552 * Handle pruning under a positional check. This used to be impossible, but
553 since 1.4.13 it can happen as we now hoist AND_NOT to just below where we
554 hoist the positional checks. The code on master already handles pruning here
555 so this bug is specific to the RELEASE/1.4 branch. Fixes #796, reported by
558 * When searching with collapsing over multiple shards, at least some of which
559 are remote, uncollapsed_upper_bound could be too low and
560 uncollapsed_lower_bound too high. This was causing assertion failures in
561 testcases msize1 and msize2 under test harness backends
562 multi_glass_remoteprog_glass and multi_remoteprog_glass.
564 * Internally we no longer calculate a bogus total_term_count as the sum of
565 total_length * doc_count for all shards. Instead we just use the sum of
566 total_length, which gives the total number of term occurrences. This change
567 should improve the estimated collection_freq values for synonyms.
569 * Several places where we might divide zero by zero in a database where wdf was
570 always zero have been fixed.
574 * configure: Stop using AC_FUNC_MEMCMP. The autoconf manual marks it as
575 "obsolescent", and it seems clear that nobody's relying on it as we're
576 missing the "'AC_LIBOBJ' replacement for 'memcmp'" which it would try to
581 * HACKING: Replace release docs with pointer to the developer guide where they
586 * Eliminate 2 uses of atoi(). These are potentially problematic in a
587 multithreaded application if setlocale() is called by another thread at the
590 * Don't check __GNUC__ in visibility.h as the configure probe before defining
591 XAPIAN_ENABLE_VISIBILITY checks that the visibility attributes work. This
592 probably makes no difference in practice, as all compilers we're aware of
593 which support symbol visibility also define __GNUC__.
595 * Document Sun C++ requires --disable-shared. Closes #631.
597 Xapian-core 1.4.13 (2019-10-14):
601 * Fix write one past end of std::vector on certain QueryParser parser errors.
602 This is undefined behaviour, but the write was always into reserved space, so
603 in practice we'd actually get away with it (it was noticed because it
604 triggers an error when running under ubsan and using libc++). Reported by
607 * MSet::get_matches_estimated(): Improve rounding of result - a bug meant we
608 would almost always round down.
610 * Optimise test for UTF-8 continuation character. Performing a signed char
611 comparison shaves an instruction or two on most architectures.
613 * Database::get_revision(): Return revision 0 for a Database with no shards
614 rather that throwing InvalidOperationError.
616 * DPHWeight: Avoid dividing by 0 when searching a sharded database when one
617 shard is empty. The result wasn't used in this case, but it's still
618 undefined behaviour. Detected by UBSan.
622 * The "singlefile" test harness backend manager now creates databases by
623 compacting the corresponding underlying backend database (creating it first
624 if need be) rather than always creating a temporary database to compact.
626 * Enable compaction testcases for multi and singlefile test harness backends.
628 * Add generated database support for remoteprog and remotetcp test harness
629 backends. Implemented by Tanmay Sachan.
631 * Add test harness support for running testcases using a multi database
632 comprised of one local and one remote shard, or two remote shards.
633 Implemented by Tanmay Sachan.
635 * Check if removing existing multi stub failed. Previously if removing an
636 existing stub failed, the test harness would create a temporary new stub and
637 then try to rename it over the old one, which will always fail on Microsoft
640 * Wait for xapian-tcpsrv processes to finish before moving on to the next
641 testcase under __WIN32__ like we already do on POSIX platforms.
645 * Optimise OP_AND_NOT better. We now combine its left argument with other
646 connected and-like subqueries, and gather up and hoist the negated subqueries
647 and apply them together above the combined and-like subqueries, just below
648 any positional filters.
650 * Optimise OP_AND_MAYBE better. We now combine its left argument with other
651 connected and-like subqueries, and gather up and hoist the optional
652 subqueries and apply them together above the combined and-like subqueries and
653 any hoisted positional filters.
655 * Treat all BoolWeight queries as scaled by 0 - we can optimise better if we
656 know the query is unweighted.
660 * Allow zlib compression to reduce size by one byte. We were specifying an
661 output buffer size one byte smaller than the input, but it appears zlib won't
662 use the final byte in the buffer, so we actually need to pass the input size
663 as the output buffer size.
665 * Only try to compress Btree item values > 18 bytes, which saves CPU time
666 without sacrificing any significant size savings.
670 * Fix match stats when searching with collapsing over multiple shards and at
671 least some shards are remote. Bug discovered by Tanmay Sachan's test harness
674 * Ignore orphaned remote protocol replies which can happen when searching with
675 a remote shard if an exception is thrown by another shard. Bug discovered
676 by Tanmay Sachan's test harness improvements.
678 * Wait for xapian-progsrv child to exit when a remote Database or
679 WritableDatabase object is closed under __WIN32__ like we already do for
684 * Correct documentation of initial messages in replication protocol.
688 * quest: Report bounds and estimate of number of matches.
690 * xapian-delve: Improve output when database revision information is not
691 available. We now specially handle the cases of a DB with multiple shards
692 and a backend which doesn't support get_revision().
696 * Fix warning from GCC 9 with -Wdeprecated-copy (which is enabled by -Wextra)
697 if a reference to an Error object is thrown.
699 * Suppress GCC warning in our API headers when compiling code using Xapian with
700 GCC and -Wduplicated-branches.
702 * Mark some internal classes as final (following GCC -Wsuggest-final-types
703 suggestions to allow some method calls to be devirtualised).
705 * Fix to build with --enable-maintainer-mode and Perl < 5.10, which doesn't
706 have the `//=` operator. It's unlikely developers will have such an old
707 Perl, but the mingw environment on appveyor CI does. The use of `//=` was
708 introduced by changes in 1.4.10.
710 Xapian-core 1.4.12 (2019-07-23):
714 * Xapian::PostingSource: When a PostingSource without a clone() method is used
715 with a Database containing multiple shards, the documented behaviour has
716 always been that Xapian::InvalidOperationError is thrown. However, since at
717 least 1.4.0, this exception hasn't been thrown, but instead a single
718 PostingSource object would get used for all the shards, typically leading to
719 incorrect results. The actual behaviour now matches what was documented.
721 * Xapian::Database: Add size() method which reports the number of shards.
723 * Xapian::Database::check(): You can now pass a stub database which will check
724 all the databases listed in it (or throw Xapian::UnimplementedError for
725 backends which don't support checking).
727 * Xapian::Document: When updating a document use a emplace_hint() to make the
728 bulk insertion O(n) instead of O(n·log(n)), and use std::move() to avoid
729 copying OmDocumentTerm objects.
731 * Xapian::Query: Add missing get_unique_terms_end() method.
733 * Xapian::iterator_valid(): Implement for Utf8Iterator
737 * Fix keepalive1 failures on some platforms. On some platforms a timeout
738 gives NetworkTimeoutError and on others NetworkError - since 1.4.10 changed
739 to checking the exact exception type, keepalive1 has been failing on the
740 former set of platforms. We now just check for NetworkError or a subclass
741 here (since NetworkTimeoutError is a subclass of NetworkError).
743 * Run cursordelbug1 testcase with multi databases too.
747 * Ownership of PostingSource objects during the match now makes use of the
748 optional reference-counting mechanism rather than a separate flag.
752 * Fix remote protocol design bug. Previously some messages didn't send a reply
753 but could result in an exception being sent over the link. That exception
754 would then get read as a response to the next message instead of its actual
755 response so we'd be out of step. Fixes #783, reported by Germán M. Bravo.
756 This fix necessitated a minor version bump in the remote protocol (to 39.1).
757 If you are upgrading a live system which uses the remote backend, upgrade the
758 servers before the clients.
760 * Fix socket leaks on errors during opening a database. Fixes
761 https://github.com/xapian/xapian/pull/237 and #781, reported by Germán M.
764 * Don't close remote DB socket on receiving EOF as the levels above won't
765 know it's been closed and may try to perform operations on it, which would be
766 problematic if that fd gets reused in the meantime. Leaving it open means
767 any further operations will also get EOF. Reported by Germán M. Bravo.
769 * We add a wrapper around the libc socket() function which deals with the
770 corner case where SOCK_CLOEXEC is defined but socket() fails if it is
771 specified (which can happen with a newer libc and older kernel).
772 Unfortunately, this wrapper wasn't checking the returned value from socket()
773 correctly, so when SOCK_CLOEXEC was specified and non-zero it would create
774 the socket() with SOCK_CLOEXEC, then leak that one and create it again
775 without SOCK_CLOEXEC. We now check the return value properly.
777 * Fix potential infinite loop in ValueCountMatchSpy::merge_results() if passed
778 serialised results with extra data appended (which shouldn't happen in normal
783 * Current versions of valgrind result in false positives on current versions of
784 macOS, so on this platform configure now only enables use of valgrind if it's
785 specified explicitly. Fixes #713, reported by Germán M. Bravo.
787 * Refactor macros to probe for compiler flags so they automatically cache
788 their results and consistently report success/failure.
790 * Rename our custom TYPE_SOCKLEN_T macro to XAPIAN_TYPE_SOCKLEN_T. The
791 AX_TYPE_SOCKLEN_T macro defines an alias of TYPE_SOCKLEN_T for itself which
792 means it can get used instead in some situations, but it isn't compatible
793 with our macro. We can't just switch to AX_TYPE_SOCKLEN_T as it doesn't
794 handle cases we need, so just rename our macro to avoid potential problems.
798 * Improve API documentation for Xapian::Query class. Add missing doc
799 comments and improve some of the existing ones. Problems highlighted by
800 Дилян Палаузов in #790.
802 * Add Unicode consortium names and codes for categories from Chapter 4, Version
803 11 of the Unicode standard. Patch from David Bremner.
805 * Improve configure --help output - drop "[default=no]" for --enable-*
806 options which default off. Fixes #791, reported by and patch from Дилян
809 * Fix API documentation typo - Query::op (the type) not op_ (a parameter name).
811 * Note which version Document::remove_postings() was added in.
813 * In the remote protocol documentation, MSG_REPLACEDOCUMENTTERM was documented
814 as not having a reply, but actually REPLY_ADDDOCUMENT is sent.
816 * Update list of <xapian/iterator.h> users.
820 * copydatabase: A change in 1.4.6 which added support for \ as directory
821 separator on platforms where that's the norm broke the code in copydatabase
822 which removes a trailing slash from input databases. Bug reported and
823 culprit commit identified by Eric Wong.
827 * Resolve crash on Windows when using clang-cl and MSVC. Reported by Christian
828 Mollekopf in https://github.com/xapian/xapian/pull/256.
830 * Add missing '#include <cstring>'. Patch from Tanmay Sachan.
832 * Fix str() helper function when converting the most negative value
833 of a signed integer type.
835 * Avoid calling close() on fd we know must actually be a WIN32 SOCKET.
837 * Include <ios> not <iomanip> for std::boolalpha.
839 * Rework setenv() compatibility handling. Now that Solaris 9 is dead we can
840 assume setenv() is provided by Unix-like platforms (POSIX requires it). For
841 other platforms, provide a compatibility implementation of setenv() which
842 so the compatibility code is encapsulated in one place rather than replicated
845 * Fix maintainer-mode builds on Solaris where /bin/tr is not POSIX compliant.
846 We now use the simple workaround suggested by the autoconf manual.
848 * Improve support for Sun C++ (see #631):
850 + Suppress unhelpful warning for lambda with multiple return statements.
852 + Enable reporting the tags corresponding to warnings, which we need
853 to know in order to suppress any new unhelpful warnings.
855 + Adjust our workaround for bug with this compiler's <cmath> header to avoid
858 + Use -xldscope=symbolic for Sun C++. This flag is roughly equivalent to
859 -Bsymbolic-functions which we've probed for with GNU ld since Xapian 1.0.0.
861 Xapian-core 1.4.11 (2019-03-02):
865 * MSet::SNIPPET_CJK_NGRAM - new flag for use with MSet::snippet() to enable
866 support for selecting and highlighting snippets which works with the
867 QueryParser and TermGenerator FLAG_CJK_NGRAM flags. This mode can also be
868 enabled by setting environment variable XAPIAN_CJK_NGRAM to a non-empty
869 value. (There was nominally already support for XAPIAN_CJK_NGRAM in
870 MSet::snippet(), but it didn't work usefully - the highlighting added was all
871 empty start/end pairs at the end of the span of CJK characters containing the
872 CJK ngram terms, which to the user would typically look like it was selecting
873 the end of the text and not highlighting anything).
875 * Deprecate XAPIAN_CJK_NGRAM environment variable. There are now flags which
876 can be used instead in all cases, and there's sadly no portable thread-safe
877 way to read an environment variable so checking environment variables is
878 problematic in library code that may be used in multithreaded programs.
880 * Query::OP_ELITE_SET currently incorrectly recursively flattens any OP_OR (or
881 OP_OR-like) subqueries into the list of subqueries it selects from - until
882 that's fixed, we now select from the full exploded list rather than the last
883 n (where n is the number of direct subqueries of the OP_ELITE_SET).
887 * Testcases which need a generated database now get run with a sharded
890 * Avoid using strerror() in the testsuite which removes an obstacle to running
891 tests in parallel in separate threads.
895 * Extend detection of cases of OP_SYNONYM with disjoint subqueries (which means
896 we don't need document length) which was added in 1.4.8 - we now detect when
897 all subqueries are different terms, or when all subqueries are
898 non-overlapping wildcards. The second case is what QueryParser produces for
899 a wildcard or partial query with a query prefix which maps to more than one
904 * Handle an empty value slot lower bound gracefully. This shouldn't happen for
905 a non-empty slot, but has been reported by a notmuch user so it seems there
906 is (or perhaps was as the database was several years old) a way it can come
907 about. We now check for this situation and set the smallest possible valid
908 lower bound instead, so other code assuming a valid lower bound will work
909 correctly. Reported by jb55.
913 * Handle an empty value slot lower bound gracefully, equivalent to the change
918 * HACKING: We no longer use auto_ptr<>.
920 * NEWS: Correct factual error in old entry - the 0.4.1 release was Open Muscat
921 not OmSee (the OmSee name was only applied after that final release was made,
922 and only used internally to BrightStation).
926 * Suppress more clang -Wself-assign-overloaded warnings in testcases which are
927 deliberately testing handling of self-assignment.
929 * Add missing includes of <cerrno>. Fixes #776, reported by Matthieu Gautier.
933 * When configured with --enable-log, the O_SYNC flag was always specified when
934 opening the logfile, with the intention that the most recent log entries
935 wouldn't get lost if there was a crash, but O_SYNC can incur a significant
936 performance overhead and most debugging is not of such crashes. So we no
937 longer specify O_SYNC by default, but you can now request synchronous logging
938 by including %! anywhere in the filename specified with XAPIAN_DEBUG_LOG
939 (the %! is replaced with the empty string). We also now use O_DSYNC if
940 available in preference to O_SYNC, since the mtime of the log file isn't
943 Xapian-core 1.4.10 (2019-02-12):
947 * DatabaseClosedError: New exception class thrown instead of DatabaseError when
948 an operation is attempted which can't be completed because it involves a
949 database which close() was previously called on. DatabaseClosedError is a
950 subclass of DatabaseError so existing code catching DatabaseError will still
951 work as before. Fixes #772, reported by Germán M. Bravo. Patch from
954 * DatabaseNotFoundError: New exception class thrown instead of
955 DatabaseOpeningError when the problem is the problem is "file not found" or
956 similar. DatabaseNotFoundError is a subclass of DatabaseOpeningError so
957 existing code catching DatabaseOpeningError will still work as before. Fixes
958 #773, reported by Germán M. Bravo. Patch from Vaibhav Kansagara.
960 * Query: Make &=, |= and ^= on Query objects opportunistically append to
961 an existing query with a matching query operator which has a reference
962 count of 1. This provides an easy way to incrementally build flatter query
965 * Query: Support `query &= ~query2` better - this now is handled exactly
966 equivalent to `query = query & ~query2` and gives `query AND_NOT query2`
967 instead of `query AND (<alldocuments> AND_NOT query2)`.
969 * QueryParser: Now uses &=, |= and ^= to produce flatter query trees. This
970 fixes problems with running out of stack space when handling Query object
971 trees built by abusing QueryParser to parse very large machine-generated
974 * Stopper: Fix incorrect accents in Hungarian stopword list. Patch from David
979 * Test MSet::snippet() with small and zero lengths. Fixes #759. Patch from
982 * Fix testcase stubdb4 annotations - this testcase doesn't need a backend.
984 * Add PATH annotation for testcases needing get_database_path() to avoid having
985 to repeatedly list the backends where this is supported in testcase
988 * TEST_EXCEPTION helper macro now checks that the exact specified exception
989 type is thrown. Previously it would allow a subclass of the specified
990 exception type, but in testcases we really want to be able to test for an
991 exact type. Issue noted by Vaibhav Kansagara on IRC.
995 * Map OP_VALUE_GE/OP_VALUE_LE on an empty slot to EmptyPostList. We already do
996 this for OP_VALUE_RANGE, and it's a little more efficient than creating a
997 postlist object which checks the empty value slot.
1001 * We no longer flush all pending positional changes when a postlist, termlist
1002 or all-terms is opened on a modified WritableDatabase. Doing so was
1003 incurring a significant performance cost, and the first of these happens
1004 internally when `replace_document(term, doc)` is used, which is the usual way
1005 to support non-numeric unique ids. We now only flush pending positional
1006 changes when committing. Reported and diagnosed by Germán M. Bravo.
1010 * Use poll() where available instead of select(). poll() is specified by
1011 POSIX.1-2001 so should be widely available by now, and it allows watching any
1012 fd (select() is limited to watching fds < FD_SETSIZE). For any platforms
1013 which still lack poll() we now workaround this select() limitation when a
1014 high numbered fd needs to be watched (for example, by trying a non-blocking
1015 read or write and on EAGAIN sleeping for a bit before retrying).
1017 * Stop watching fds for "exceptional conditions" - none of these are relevant
1020 * Remove 0.1s timeout in ready_to_read(). The comment says this is to avoid a
1021 busy loop, but that's out of date - the matcher first checks which remotes
1022 are ready to read and then does a second pass to handle those which weren't
1023 with a blocking read.
1027 * Stop probing for header sys/errno.h which is no longer used - it was only
1028 needed for Compaq C++, support for which was dropped in 1.4.8.
1032 * docs/valueranges.html: Update to document RangeProcessor instead of
1033 ValueRangeProcessor - the latter is deprecated and will be gone in the next
1036 * Document RangeProcessor::operator()() returns OP_INVALID to signal it doesn't
1039 * Update some URLs for pages which have moved.
1041 * Use https for URLs where available.
1043 * HACKING: Update "empty()" section for changes in C++11.
1047 * Suppress clang warnings for self-assignment tests. Some testcases trigger
1048 this new-ish clang warning while testing that self-assignment works, which
1049 seems a useful thing to be testing - at least one of these is a regression
1052 * Add std::move to fix clang -Wreturn-std-move warning (which is enabled by
1055 * Add casts to fix ubsan warnings. These cases aren't undefined behaviour, but
1056 are reported by ubsan extra checks implicit-integer-truncation and/or
1057 implicit-conversion which it is useful to be able to enable to catch
1060 * Fix check for when to use _byteswap_ulong() - in practice this would only
1061 have caused a problem if a platform provided _byteswap_ushort() but not
1062 _byteswap_ulong(), but we're not aware of any which do.
1064 * Fix return values of do_bswap() helpers to match parameter types (previously
1065 we always returned int and only supported swapping types up to 32 bits, so
1066 this probably doesn't result in any behavioural changes).
1068 * Only include <intrin.h> if we'll use it instead of always including it when
1069 it exists. Including <intrin.h> can result in warnings about duplicate
1070 declarations of builtin functions under mingw.
1072 * Remove call to close()/closesocket() when the argument is always -1 (since
1073 the change to use getaddrinfo() in 1.3.3).
1075 Xapian-core 1.4.9 (2018-11-02):
1079 * Document::add_posting(): Fix bugs with the change in 1.4.8 to more
1080 efficiently handle insertion of a batch of extra positions in ascending
1081 order. These could lead to missing positions and corrupted encoded
1086 * Avoid hang if remote connection shutdown fails by not waiting for the
1087 connection to close in this situation. Seems to fix occasional hangs seen on
1088 macOS. Patch from Germán M. Bravo.
1090 Xapian-core 1.4.8 (2018-10-25):
1094 * QueryParser,TermGenerator: Add new stemming mode STEM_SOME_FULL_POS.
1095 This stores positional information for both stemmed and unstemmed terms,
1096 allowing NEAR and ADJ to work with stemmed terms. The extra positional
1097 information is likely to take up a significant amount of extra disk space so
1098 the default STEM_SOME is likely to be a better choice for most users.
1100 * Database::check(): Fetch and decompress the document data to catch problems
1101 with the splitting of large data into multiple entries, corruption of the
1102 compressed data, etc. Also check that empty document data isn't explicitly
1105 * Fix an incorrect type being used for term positions in the TermGenerator API.
1106 These were Xapian::termcount but should be Xapian::termpos. Both are
1107 typedefs for the same 32-bit unsigned integer type by default (almost always
1108 "unsigned int") so this change is entirely compatible, except that if you
1109 were configuring 1.4.7 or earlier with --enable-64bit-termcount you need to
1110 also use the new --enable-64bit-termpos configure option with 1.4.8 and up or
1111 rebuild your applications. This change was necessary to make
1112 --enable-64bit-termpos actually useful.
1114 * Add Document::remove_postings() method which removes all postings in a
1115 specified term position range much more efficiently than by calling
1116 remove_posting() repeatedly. It returns the number of postings removed.
1118 * Fix bugs with handling term positions >= 0x80000000. Reported by Gaurav
1121 * Document::add_posting(): More efficiently handle insertion of a batch of
1122 extra positions in ascending order.
1124 * Query: Simplify OP_SYNONYM with single OP_WILDCARD subquery by converting to
1125 OP_WILDCARD with combiner OP_SYNONYM, which means such cases can take
1126 advantage of the new matcher optimisation in this release to avoid needing
1127 document length for OP_WILDCARD with combiner OP_SYNONYM.
1131 * Catch and report std::exception from the test harness itself.
1133 * apitest: Drop special case for not storing doc length in testcase postlist5 -
1134 all backends have stored document lengths for a long time.
1136 * test_harness: Create directories in a race-free way.
1140 * Avoid needing document length for an OP_WILDCARD with combiner OP_SYNONYM.
1141 We know that we can't get any duplicate terms in the expansion of a wildcard
1142 so the sum of the wdf from them can't possibly exceed the document length.
1144 * OP_SYNONYM: No longer tries to initialise weights for its subquery, which
1145 should reduce the time taken to set up a large wildcard query.
1147 * OP_SYNONYM: Fix frequency estimates when OP_SYNONYM is used with a
1148 subquery containing OP_XOR or OP_MAX - in such cases the frequency
1149 estimates for the first subquery of the OP_XOR/OP_MAX were used for
1150 all its subqueries. Also the estimated collection frequency is
1151 now rounded to the nearest integer rather than always being rounded
1156 * Revert change made in 1.4.6:
1158 Enable glass's "open_nearby_postlist" optimisation (which especially helps
1159 large wildcard queries) for writable databases without any uncommitted
1162 The amended check isn't conservative enough as there may be postlist changes
1163 in the inverter while the table is unmodified. This breaks testcase
1164 T150-tagging.sh in notmuch's testsuite, reported by David Bremner.
1166 * When indexing a document without any terms we now avoid some unnecessary work
1167 when storing its termlist.
1171 * New --enable-64bit-termpos configure option which makes Xapian::termpos a
1172 64-bit type and enables support for storing 64-bit termpos values in the
1173 glass backend in an upwardly compatible way. Few people will actually want
1174 to index documents more than 4 billion words long, but the extra numbering
1175 space can be helpful if you want to use term positions in "interesting" ways.
1177 * Hook up configure --disable-sse/--enable-sse=sse options for MSVC.
1179 * Fix configure probes for builtin functions for clang. We need to specify the
1180 argument types for each builtin since otherwise AC_CHECK_DECLS tries to
1181 compile code which just tries to take a pointer to the builtin function
1182 causing clang to give an error saying that's not allowed. If the argument
1183 types are specified then AC_CHECK_DECLS tries to compile a call to the
1184 builtin function instead.
1188 * Fix documentation comment typo.
1192 * xapian-delve: Test for all docs empty using get_total_length() which is
1193 slightly simpler internally than get_avlength(), and avoids an exact floating
1194 point equality check.
1198 * quest: Support --weight=coord.
1200 * xapian-pos: New tool to show term position info to help debugging when using
1201 positional information in more complex ways.
1205 * Fix undefined behaviour from C++ ODR violation due to using the same name
1206 two different non-static inline functions. It seems that with current GCC
1207 versions the desired function always ends up being used, but with current
1208 clang the other function is sometimes used, resulting in database corruption
1209 when using value slots in docid 16384 or higher with the default glass
1210 backend. Patch from Germán M. Bravo.
1212 * Suppress alignment cast warning on sparc Linux. The pointer being cast is to
1213 a record returned by getdirentries(), so it should be suitable aligned.
1215 * Drop special handling for Compaq C++. We never actually achieved a working
1216 build using it, and I can find no evidence that this compiler still exists,
1217 let alone that it was updated for C++11 which we now require.
1219 * Create new database directories in race-free way.
1221 * Avoid throwing and handling an exception in replace_document() when
1222 adding a document with a specified docid which is <= last_docid but currently
1225 * Use our portable code for handling UUIDs on all platforms, and only use
1226 platform-specific code for generating a new UUID. This fixes a bug with
1227 converting UUIDs to and from string representation on FreeBSD, NetBSD and
1228 OpenBSD on little-endian platforms which resulted in reversed byte order in
1229 the first three components, so the same database would report a different
1230 UUID on these platforms compared to other platforms. With this fix, the
1231 UUIDs of existing databases will appear to change on these platforms
1232 (except in rare "palindronic" cases). Reported by Germán M. Bravo.
1234 * Fix to build with a C++17 compiler. Previously we used a "byte" type
1235 internally which clashed with "std::byte" in source files which use
1236 "using namespace std;". Fixes #768, reported by Laurent Stacul.
1238 * Adjust apitest testcase stubdb2 to allow for NetBSD oddity: NetBSD's
1239 getaddrinfo() in IPv4 mode seems to resolve ::1 to an IPv4 address on the
1242 * Avoid timer_create() on OpenBSD and NetBSD. On OpenBSD it always fails with
1243 ENOSYS (and there's no prototype in the libc headers), while on NetBSD it
1244 seems to work, but the timer never seems to fire, so it's useless to us (see
1247 * Use SOCK_NONBLOCK if available to avoid a call to fcntl(). It's supported by
1248 at least Linux, FreeBSD, NetBSD and OpenBSD.
1250 * Use O_NOINHERIT for O_CLOEXEC on Windows. This flag has essentially the same
1251 effect, and it's common in other codebases to do this.
1253 * On AIX O_CLOEXEC may be a 64-bit constant which won't fit in an int. To
1254 workaround this stupidity we now call the non-standard open64x() instead
1255 of open() when the flags don't fit in an int.
1257 * Add functions to add/multiply with overflow check. These are implemented
1258 with compiler builtins or equivalent where possible, so the overflow check
1259 will typically just require a check of the processor's overflow or carry
1262 Xapian-core 1.4.7 (2018-07-19):
1266 * Database::check(): Fix bogus error reports for documents with length zero
1267 due to a new check added in 1.4.6 that the doclength was between the stored
1268 upper and lower bounds, which failed to allow for the lower bound ignoring
1269 documents with length zero (since documents indexed only by boolean terms
1270 aren't involved in weighted searches). Reported by David Bremner.
1272 * Query: Use of Query::MatchAll in multithreaded code causes problems because
1273 the reference counting gets messed up by concurrent updates. Document that
1274 Query(string()) should be used instead of MatchAll in multithreaded code, and
1275 avoid using it in library code. Reported by Germán M. Bravo.
1279 + Stemming algorithms added for Irish, Lithuanian, Nepali and Tamil.
1281 + Merge Snowball compiler changes which improve code generation.
1283 + Merge optimisations to the Arabic and Turkish stemmers.
1287 + Fix duplicate test in apitest closedb10 testcase. Patch from Guruprasad
1292 * A long-lived cursor on a table in a WritableDatabase could get into
1293 an invalid state, which typically resulted in a DatabaseCorruptError
1294 being thrown with the message:
1296 Db block overwritten - are there multiple writers?
1298 But in fact the on-disk database is not corrupted - it's just that
1299 the cursor in memory has got into an inconsistent state. It looks
1300 like we'll always detect the inconsistency before it can cause on-disk
1301 corruption but it's hard to be completely certain.
1303 The bug is in code to rebuild the cursor when the underlying table
1304 changes in ways which require that, which is a fairly rare occurrence
1305 to start with, and only triggers when a block in the cursor has been
1306 released, reallocated, and we tried to load it in the cursor at the
1307 same level - the cursor wrongly assumes it has the current version
1310 Reported with a reproducer by Sylvain Taverne. Confirmed by David
1311 Bremner as also fixing a problem in notmuch for which he hadn't managed
1312 to find a reduced reproducer.
1316 * INSTALL: Document need to have MSVC command line tools on PATH.
1320 * Cygwin: Work around oddity where unlink() sometimes seems to indicate failure
1321 with errno set to ECHILD.
1323 Xapian-core 1.4.6 (2018-07-02):
1327 * API classes now support C++11 move semantics when using a compiler which
1328 we are confident supports them (currently compilers which define
1329 __cplusplus >= 201103 plus a special check for MSVC 2015 or later).
1330 C++11 move semantics provide a clean and efficient way for threaded code to
1331 hand-off Xapian objects to worker threads, but in this case it's very
1332 unhelpful for availability of these semantics to vary by compiler as it
1333 quietly leads to a build with non-threadsafe behaviour. To address this,
1334 user code can #define XAPIAN_MOVE_SEMANTICS before #include <xapian.h> to
1335 force this on, and will then get a compilation failure if the compiler lacks
1340 + We were only escaping output for HTML/XML in some cases, which would
1341 potentially allow HTML to be injected into output (this has been assigned
1344 + Include certain leading non-word characters in snippets. Previously we
1345 started the snippet at the start of the first actual word, but there are
1346 various cases where including non-word characters in front of the actual
1347 word adds useful context or otherwise aids comprehension. Reported by
1348 Robert Stepanek in https://github.com/xapian/xapian/pull/180
1350 * Add MSetIterator::get_sort_key() method. The sort key has always been
1351 available internally, but wasn't exposed via the public API before, which
1352 seems like an oversight as the collapse key has long been available.
1353 Reported by 张少华 on xapian-discuss.
1355 * Database::compact():
1357 + Allow Compactor::resolve_duplicate_metadata() implementations to delete
1358 entries. Previously if an implementation returned an empty string this
1359 would result in a user meta-data entry with an empty value, which isn't
1360 normally achievable (empty meta-data values aren't stored), and so will
1361 cause odd behaviour. We now handle an empty returned value by interpreting
1362 it in the natural way - it means that the merged result is to not set a
1363 value for that key in the output database.
1365 + Since 1.3.5 compacting a WritableDatabase with uncommitted changes throws
1366 Xapian::InvalidOperationError when compacting to a single-file glass
1367 database. This release adds similar checks for chert and when compacting
1368 to a multiple-file glass database.
1370 + In the unlikely event that the total number of documents or the total
1371 length of all documents overflow when trying to compact a multi-database,
1372 we throw an exception. This is now a DatabaseError exception instead of a
1373 const char* exception (a hang-over from before this code was turned into a
1374 public API in the library).
1376 * Document::remove_term(): Handle removing term at current TermIterator
1377 position - previously the underlying iterator was invalidated, leading to
1378 undefined behaviour (typically a segmentation fault). Reported by Gaurav
1381 * TermIterator::get_termfreq() now always returns an exact answer. Previously
1382 for multi-databases we approximated the result, which is probably either a
1383 hang-over from when this method was used during Enquire::get_eset(), or else
1384 due to a thinking that this method would be used in that situation (it
1385 certainly is not now). If the user creates a TermIterator object and asks it
1386 for term frequencies then we really should give them the correct answer - it
1387 isn't hugely costly and the documentation doesn't warn that it might be
1390 * QueryParser::parse_query():
1392 + Now adds a colon after the prefix when prefixing a boolean term which
1393 starts with a colon. This means the mapping is reversible, and matches
1394 what omega actually does in this case when it tries to reverse the mapping.
1395 Thanks to Andy Chilton for pointing out this corner case.
1397 + The parser now makes use of newer features in the lemon parser generator to
1398 make parsing faster and use less memory.
1400 * Enquire::get_mset(): Fix bug with get_mset(0, 0, X) when X > 0 which was
1401 causing an attempt to access an element in an empty vector. Reported by
1402 sielicki in #xapian.
1406 + Add Indonesian stemming algorithm.
1408 + Small optimisations to almost all stemming algorithms.
1412 + Add Indonesian stopword list.
1414 + The installed version of the Finnish stopword list now has one word per
1415 line. Previously it had several space-separated words on some lines, which
1416 works with C++'s std::istream_iterator but may be inconvenient for use from
1417 some other languages.
1419 + The installed versions of stopword lists are now sorted in byte order
1420 rather than whatever collation order is specified by LC_COLLATE or similar
1421 at build time. This makes the build more reproducible, and also may be
1422 more efficient for loading into some data structures.
1424 * WritableDatabase::replace_document(term, doc): Check for last_docid wrapping
1425 when used on a sharded database.
1427 * Database::locked(): Consistently throw FeatureUnavailableError on platforms
1428 where we can't test for a database lock without trying to take it.
1429 Previously GNU Hurd threw DatabaseLockError while platforms where we don't
1430 use fcntl() locking at all threw UnimplementedError.
1432 * Database and WritableDatabase constructors: Fix handling of entries for
1433 disabled backends in stub database files to throw FeatureUnavailableError
1434 instead of DatabaseError.
1436 * Database::get_value_lower_bound() now works correctly for sharded databases.
1437 Previously it returned the empty string if any shard had no values in the
1440 * PostingIterator was failing to keep an internal reference to the parent
1441 Database object for sharded databases.
1443 * ValueIterator::skip_to() and check() had an off-by-one error in their docid
1444 calculations in some cases with sharded databases.
1450 + Enable testcases flagged metadata, synonym and/or writable to run on
1453 + Enable testcases flagged writable to run on sharded databases. Writing to
1454 a sharded WritableDatabase has been supported since 1.3.2, but the test
1455 harness wasn't running many of the tests that could be with a sharded
1456 WritableDatabase. This uncovered three bugs which are fixed in this
1459 + Support "generated" testcases for the inmemory backend, which uncovered a
1460 bug which is fixed in this release.
1462 + Skip testcase testlock1 on platforms that don't allow us to implement
1463 Database::locked() (which notably include GNU Hurd and Microsoft Windows).
1465 + Disable testlock2 on sharded databases as it fails for platforms which
1466 don't actually support testing the lock.
1468 + Extend tests of behaviour after database close. Patch from Guruprasad
1469 Hegde. Fixes https://trac.xapian.org/ticket/337
1471 + Enable testcase closedb5 for remote backends. This testcase failed for
1472 remote backends when it was added and the cause wasn't clear, but it turns
1473 out it was actually a bug in the disk based backends, which was fixed way
1474 back in 2010. Reported by Guruprasad Hegde.
1476 + Check for select() failing in retrylock1 testcase. Retry on EINTR or
1477 EAGAIN, and report other errors rather than trying the read() anyway.
1478 Previously the read() would likely fail for the same reason the select()
1479 did, but at best this is liable to make what's going on less clear if the
1482 * Report bool values as true/false not 1/0.
1484 * Assorted minor testcase improvements.
1486 * The test harness now supports testcases which are expected to fail (XFAIL).
1487 Based on patch from Richard Boulton in https://trac.xapian.org/ticket/156.
1489 * Fix demangling of std::exception subclass names which wasn't happening due
1490 to a typo in the preprocessor check for the required header. This was broken
1491 by changes in 1.4.2.
1493 * Make TEST_EQUAL() arguments side-effect free. The TEST_EQUAL() macro
1494 evaluates its arguments a second time if the test fails in order to report
1495 their values. This isn't ideal and really ought to be addressed, but for now
1496 fix uses where the argument has side-effect (e.g. *i++) such that the
1497 reported value should match the tested value.
1499 * runtest: Show usage if first option starts '-'. Previously we ended up
1500 passing such options to libtool, so putting -v on runtest instead of apitest
1501 would run the tests but -v would effectively do nothing (it would make
1502 libtool verbose, but that doesn't make any difference in this case):
1503 ./runtest -v ./apitest
1505 * Suppress output from xcopy on MS Windows.
1507 * The test harness machinery for detecting file descriptor leaks should now
1508 work on any platform which has /dev/fd.
1510 * Implement recursive delete of a database directory in the test harness
1511 using nftw() if available (and not buggy like mingw64's seems to be), rather
1512 than running "rm -rf" as an external command. This avoids the overhead of
1513 starting a new process each time we clean up a test database, which happens a
1514 lot during a test run.
1516 * Speed up generated test databases a little by adding a stat() check to avoid
1517 throwing and catching an exception when the database doesn't yet exist.
1519 * Skip timed tests when configured with --enable-log. The logging can easily
1520 turn O(1) operations into O(n), and that's hard to avoid. Fixes
1521 https://trac.xapian.org/ticket/757, reported by Guruprasad Hegde.
1525 * OP_VALUE_*: When a value slot's lower and upper bound are equal, we know
1526 that exactly how many documents the subquery can match (either 0 or those
1527 bounds). This also avoids a division by zero which previously happened
1528 when trying to calculate the estimate.
1530 * Speed up sorting by keys. Use string::compare() to avoid having to call
1531 operator< if operator> returns false.
1533 * Fix clamping of maxitems argument to get_mset() - it was being clamped
1534 to db.get_doccount(), now it's clamped to db.get_doccount() - first. In
1535 practice this doesn't actually seem to cause any issues.
1537 * If a match time limit is in effect, when it expires we now clamp
1538 check_at_least to first + maxitems instead of to maxitems. In practice this
1539 also doesn't seem to actually cause any issues (at least we've failed to
1540 construct a testcase where it actually makes an observable difference).
1542 * Fix percentages when only some shards have positions. If the final shard
1543 didn't have positions this would lead to under-counting the total number leaf
1544 of subqueries which would lead to incorrect positional calculations (and a
1545 division by zero if the top level of the query was positional. This bug was
1546 introduced in 1.4.3.
1548 * OP_NEAR: Fix "phantom positions", where OP_NEAR would think a term without
1549 positional information occurred at position 1 if it had the lowest term
1550 frequency amongst the OP_NEAR's subqueries.
1552 * Fix termfreq used in weight calculations for a term occurring more than once
1553 in the query. Previously the termfreq for such terms was multiplied by the
1554 number of different query positions they appeared at.
1556 * OP_SYNONYM: We use the doclength upper bound for the wdf upper bound of a
1557 synonym - now we avoid fetching it twice when the doclength upper bound is
1560 * Short-cut init() when factor is 0 in most Weight subclasses. This indicates
1561 the object is for the term-independent weight contribution, which is always 0
1562 for most schemes, so there's no point fetching any stats or doing any
1563 calculations. This fixes a divide by zero for TfIdfWeight, detected by
1566 * OP_OR: Fix bug which caused orcheck1 to fail once hooked up to run with the
1571 * Fix glass freelist bug when changes to a new database which didn't modify the
1572 termlist table were committed. In this corner case, a block which had been
1573 allocated to be the root block in the termlist table was leaked. This was
1574 largely harmless, except that it was detected by Database::check() and caused
1575 it to report an error. Reported by Antoine Beaupré and David Bremner.
1577 * Fix glass freelist bug with cancel_transaction(). The freelist wasn't
1578 reset to how it was before the transaction, resulting in leaked blocks.
1579 This was largely harmless, except that it was detected by Database::check()
1580 and caused it to report an error.
1582 * Improve the per-term wdf upper bound. Previously we used min(cf(term),
1583 wdf_upper_bound(db)) which is tight for any terms which attain that
1584 upper bound, and also for terms with termfreq == 1 (the latter are common
1585 in the database (e.g. 66% for a database of wikipedia), but probably
1586 much less common in searches). When termfreq > 1 we now use
1587 max(first_wdf(term), cf(term) - first_wdf(term)), which means terms with
1588 termfreq == 2 will also attain their bound (another 11% for the same
1589 database) while terms with higher termfreq but below the global bound will
1590 get a tighter bound.
1592 * Fix Database::locked() on single-file glass db to just return false (such
1593 databases can't be opened as a WritableDatabase so there can't be a write
1594 lock). Previously this failed with: "DatabaseLockError: Unable to get write
1595 lock on /flintlock: Testing lock"
1597 * Fix compaction when both the input and output are specified as a file
1598 descriptor. Previously this threw an exception due to an overeager check
1599 that destination != source.
1601 * Use O_TRUNC when compacting to single file. If the output already exists but
1602 is larger than our output we don't want to just overwrite the start of it.
1603 This case also used to result in confusing compaction percentages.
1605 * Enable glass's "open_nearby_postlist" optimisation (which especially helps
1606 large wildcard queries) for writable databases without any uncommitted
1609 * Make get_unique_terms() more efficient for glass. We approximate
1610 get_unique_terms() by the length of the termlist (which counts boolean terms
1611 too) but clamp this to be no larger than the document length. Since we need
1612 to open the termlist to get its length, it makes more sense to get the
1613 document length from that termlist for no extra cost rather than looking it
1614 up in the postlist table.
1616 * Database::check() now checks document lengths against the stored document
1617 length lower and upper bounds. Patch from Uppinder Chugh. Fixes
1618 https://trac.xapian.org/ticket/617.
1620 * Fix bogus handling of most-recently-read value slot statistics. It seems
1621 that we get lucky and this can't actually cause a problem in practice due
1622 to another layer of caching above, but if nothing else it's a bug waiting to
1625 * If we fail to create the directory for a new database because the path
1626 already exists, the exception now reports EEXIST as the errno value rather
1627 than whatever errno value happened to be set from an earlier library call.
1631 * xapian-tcpsrv --one-shot no longer forks. We need fork to handle multiple
1632 concurrent connections, but when handling a single connection forking just
1633 adds overhead and potentially complicates process management for our caller.
1634 This aligns with the behaviour under __WIN32__ where we use threads instead
1635 of forking, and service the connection from the main thread with --one-shot.
1637 * Fix repeat call to ValueIterator::check() on the same docid to not always
1638 set valid to true for remote backend.
1642 * Fix repeat call to ValueIterator::check() on the same docid to not always
1643 set valid to true for inmemory backend.
1647 * configure: Fix potentially confusing messages suggesting snprintf was added
1648 in C90 - it was actually standardised in C99.
1650 * Eliminate configure probes related to off_t by using C++11 features.
1652 * The installed xapian-config script is now cleaned up by removing code to
1653 handle use before installation. This extra code contained build paths
1654 which meant the build wasn't bit-for-bit reproducible unless the same
1655 build directory name was used. This change also eliminates use of
1656 automake's $(transform) (which seems to be intended an internal mechanism)
1657 and fixes "make uninstall" to remove xapian-config when a program-prefix or
1658 -suffix is in use (e.g. there's a default -1.5 suffix for git master
1661 * Directory separator knowledge is now factored out into configure, based on
1662 $host_os and __WIN32__ (it seems hard to probe for this in a way which works
1663 when cross-compiling).
1665 * Fix build with --disable-backend-remote.
1667 * In an out-of-tree build configured with --enable-maintainer-mode
1668 and --disable-dependency-tracking we would fail to create the
1669 "tests/soaktest" and "unicode" directories in the build directory.
1670 Patch from Gaurav Arora.
1672 * Improve handling of multitarget rule stamp files. Clean them on "make
1673 maintainer-clean" and ship them so that --enable-maintainer-mode when
1674 building from a tarball doesn't needlessly rerun the multitarget rules.
1676 * Split out allsnowballheaders.h again to avoid include path issues with
1677 unittest in out-of-tree maintainer-mode builds.
1679 * xapian-core.pc: Both the Name and Description were too long compared to
1680 pkg-config norms, and the Description was trying to be multi-line which it
1681 seems pkg-config doesn't support. Fixes
1682 https://github.com/xapian/xapian/pull/203, reported by orbea.
1686 * Stop describing Xapian as "Probabilistic" - we've also had non-probabilistic
1687 weighting schemes since 1.3.2.
1689 * Improve API docs for MSet::snippet().
1691 * Correct some class names in doxygen file documentation comments.
1693 * Mark up shell command as code-block:: sh.
1699 + Document values can contain binary data, so escape them by default for
1700 output. Other options now supported are to decode as a packed integer
1701 (like omindex uses for last modified), decode using
1702 Xapian::sortable_unserialise(), and to show the raw form (which was the
1703 previous behaviour).
1705 + Report current database revision.
1709 + Report entry count when opening table
1711 + Support inspecting single file DBs via a new --table option (which can also
1712 be used with a non-single-file DB instead of specifying the path to the
1715 + Add "first" and "last" commands which jump to the first/last entry in the
1716 current table respectively.
1718 + "until" now counts and reports the number of entries advanced by.
1720 + Document "until" with no arguments - this advances to the end of the table,
1721 but wasn't mentioned in the help.
1723 + Commands "goto" and "until" which take a key as an argument now expect the
1724 key in the same escaped form that's used for display. This makes it much
1725 simpler to interact with tables with binary keys.
1727 + Fix to expect .glass not .DB extension of glass tables.
1731 * Sort out building using MSVC with the standard build system, and fix assorted
1732 problems. MSVC 2015 or later is required for decent C++11 support. Both 32-
1733 and 64-bit builds are now supported.
1735 * Remove code specific to old MSVC nmake build system. The latter has been
1738 * Don't use WIN32 API to parse/unparse UUIDs. So much glue code is needed that
1739 it's simpler to just do the parsing and unparsing ourselves, and we already
1740 have an implementation which is used when generating UUIDs using /proc on
1741 Linux. We still use UuidCreate() to generate a new UUID.
1743 * Improve compiler visibility attribute detection to check that using the
1744 attributes doesn't result in a warning - previously we'd enable them even on
1745 platforms which don't support them, which would result in a compiler warning
1746 for every file compiled. We now probe for -fvisibility=hidden and
1747 -fvisibility-inlines-hidden together as it seems all compilers implement both
1748 or neither, and it's faster to do one probe instead of two.
1750 * Don't pass the same FDSET twice in same select() - this appears not to be
1751 allowed by current POSIX, and causes warnings with GCC8.
1753 * Fix compacttofd testcases to specify O_BINARY so they pass on platforms
1754 where O_BINARY matters.
1756 * configure: Probe for declaration of _putenv_s. It seems that the symbol is
1757 always present in the MSVCRT DLL, but older mingw may not provide a
1760 * Fix "may be used uninitialised" warning with GCC 4.9.2 and -Os.
1762 * Suppress mingw32 deprecation warning for useconds_t. We've already switched
1763 away from useconds_t on git master, but it's not easy to do for 1.4.x without
1766 * Fix signed vs unsigned warnings with assertions on.
1768 * Use $(SED) instead of hard-coding "sed". The rules concerned are all ones
1769 that only maintainers currently need to run, but we're likely to enable
1770 maintainer-mode by default at some point and then portability here will
1773 * Add missing explicit <algorithm> for std::max()/std::min().
1775 * Check for EAGAIN as well as EINTR from select(). The Linux select(2) man
1776 page says: "Portable programs may wish to check for EAGAIN and loop, just as
1777 with EINTR" and that seems to be necessary for Cygwin at least.
1779 * Probe for exp10() declaration as Cygwin seems to have the symbol but lacks a
1780 declaration in the headers. Just ignoring it is simplest and we'll use GCC's
1781 __builtin_exp10() instead.
1783 * Fix warnings when building Snowball compiler with recent GCC.
1785 * Fix Perl script used during maintainer builds to work with Perl < 5.10. Such
1786 old perl versions shouldn't really be relevant for maintainer builds at this
1787 point, but appveyor's mingw install has such a Perl version.
1789 * Remove unused macro STATIC_ASSERT_TYPE_DOMINATES (unused, except by
1790 internaltest unit test for it, since the flint backend was removed in 2011)
1791 and replace uses of STATIC_ASSERT_UNSIGNED_TYPE with C++11 features
1792 static_assert and std::is_unsigned instead.
1794 * Don't retry on (errno == EINTR) when read() or pread() indicates end-of-file.
1795 This could potentially have put us into an infinite loop if we encountered
1796 this situation and errno happened to be EINTR from a previous library call.
1798 * Make read-only data arrays consistently static and const.
1800 * Avoid casting invalid value to enum reply_type if an invalid reply code is
1801 received from a remote server. This is technically undefined behaviour,
1802 though in practice probably not a problem.
1804 * Eliminate an array of function pointers and some char* array members in
1805 library, reducing the number of relocations needed at shared library load
1806 time, which reduces the total time to load the library.
1810 * Use https for tarball URLs in .spec files. This provides protection against
1811 MITM attacks on people building packages using these spec files, and is also
1812 slightly more efficient as the http: URLs redirect to the https: versions
1817 * Fix build when configured with --enable-log due to bugs in debug logging
1818 annotations. Patch from Uppinder Chugh.
1820 * Fix assertion for value range on empty slot.
1822 * Use AssertEq() rather than Assert with ==, the former reports the two
1823 values if the assertion fails.
1825 Xapian-core 1.4.5 (2017-10-16):
1829 * Add Database::get_total_length() method. Previously you had to calculate
1830 this from get_avlength() and get_doccount(), taking into account rounding
1831 issues. But even then you couldn't reliably get the exact value when total
1832 length is large since a double's mantissa has more limited precision than an
1835 * Add Xapian::iterator_rewound() for bidirectional iterators, to test if the
1836 iterator is at the start (useful for testing whether we're done when
1837 iterating backwards).
1839 * DatabaseOpeningError exceptions now provide errno via get_error_string()
1840 rather than turning it into a string and including it in the exception
1843 * WritableDatabase::replace_document(): when passed a Document object which
1844 came from a database and has unmodified values, we used to always read
1845 those values into a memory structure. Now we only do this if the document
1846 is being replaced to the same document ID which it came from, which should
1847 make other cases a bit more efficient.
1849 * Enquire::get_eset(): When approximating term frequencies we now round to the
1850 nearest integer - previously we always rounded down.
1854 * Improve Xapian::Document test coverage.
1856 * Pass --child-silent-after-fork=yes to valgrind which stops us creating a
1857 .valgrind.log.* file for every remote testcase run. This option was added in
1858 valgrind 3.3.0 which is already the minimum version we support.
1860 * Open and unlink valgrind log before option parsing so we no longer leave a
1861 log file behind if there's an error parsing options or for options like
1862 --help which report and exit.
1864 * Delete .valgrind.log.* on "make clean" - if tests are run under valgrind and
1865 the test is killed at just the wrong moment then a log file may be left
1868 * Fix the NetworkError with ECHILD check added in 1.4.4 - this will no longer
1869 segfault if the test harness catches a NetworkError without an error string.
1873 * Iterating of positions has been sped up, which means phrase matching is now
1874 faster (by a little over 5% in some simple tests).
1876 * Fix use after free of QueryOptimiser hint in certain cases involving
1877 multiple databases only some of which have positional information.
1878 This bug was introduced by changes in xapian-core 1.4.3. Fixes #752,
1879 reported and analysed by Robert Stepanek.
1881 * An unweighted OP_AND_MAYBE is now optimised to just its left branch - the
1882 other branch or branches only contribute weight, so can be completely ignored
1883 when the operator is unweighted.
1887 * Use binary chop instead of linear search in all places where we're searching
1888 for a term or document - we weren't taking advantage of the sorted order
1893 * xapian-core.pc: Specify Libs.private in pkgconfig file, which is needed for
1894 static linking, and probably also for shared libraries on platforms without
1895 DT_NEEDED or something equivalent. Fixes #751, reported by Matthieu Gautier.
1899 * Document that QueryParser::set_default_op() supports OP_MAX - this
1900 has been the case since OP_MAX was added, but the API docs for
1901 set_default_op() weren't updated to reflect this.
1903 * Document OP_MAX and OP_WILDCARD.
1905 * Fix documentation of TermGenerator stop_strategy values STOP_ALL and
1906 STOP_STEMMED. Reported by Matthieu Gautier in #750. Thanks to Gaurav Arora
1907 for additional investigation.
1909 * net/remote_protocol.rst: Update the current version of the remote protocol
1910 version (39 not 38). The differences between the two are only in the Query
1911 and MSet serialisations which aren't documented in detail here.
1913 * Link get_unique_terms_begin() and get_terms_begin() API documentation -
1914 the cross-referencing is useful in itself, but also helps to highlight
1915 the difference between the two.
1917 * Fix "IPv5" -> "IPv6" comment typo. Noted by James Clarke
1921 + Add deprecated Enquire::get_eset() overload - this was marked as deprecated
1922 in the header file, but hadn't been added here.
1924 + Move deprecated typedefs to the "to be removed" list - they'd been
1925 accidentally added to the "removed" list.
1927 + Improve descriptions of several deprecated features.
1929 * QueryParser::set_max_expansion() is now discussed in the API documentation
1930 instead of the deprecated set_max_wildcard_expansion().
1932 * Clarify PostList::check() API documentation: If valid is set to false, then
1933 NULL must be returned (pruning in this situation doesn't make sense) and
1934 at_end() shouldn't be called (because it implicitly depends on the current
1935 position being valid).
1939 + Update re -Wold-style-cast which we enabled and then had to disable again.
1941 + Update links to C++ FAQ and libstdc++'s debug mode.
1943 + Update several URLs to use https.
1945 + The 1.2 release branch has now been retired, so remove 1.2-specific
1950 * Also check <errno.h> for sys_nerr and sys_errlist. This is probably a more
1951 common location for them than Linux's <stdio.h> (even on Linux the man page
1952 says they're in <errno.h> but that doesn't match reality).
1954 * Use $(CC) not $(CC_FOR_BUILD) to build zlib-vg.so. The test for whether we
1955 need it is based on the host OS, so it makes more sense to use the host
1956 compiler to build it when cross compiling.
1958 * On Hurd F_GETLK currently always fails with errno set to ENOSYS - treat this
1959 the same way as ENOLCK. This fixes the testsuite on GNU Hurd, broken since
1960 the addition on Database::locked() in 1.4.3.
1962 * Add missing #include "safesyssocket.h", needed on at least FreeBSD to get
1963 AF_INET and SOCK_STREAM defined. Fixes
1964 https://github.com/xapian/xapian/pull/154, reported by Po-Chuan Hsieh
1965 (alternative fix applied was suggested by James Aylett).
1967 * configure: Fixed the probe for whether the test harness can use RTTI with
1968 IBM's xlC compiler (which defaults to not generating RTTI). Previously the
1969 probe would always think RTTI was available.
1973 * Fix some incorrect class/method names in debug logging.
1975 * Stop disabling ccache for coverage builds as ccache 3.2.2 now supports
1976 caching compilations with --coverage, and they work as far back as ccache 3.0
1977 (caching is automatically disabled by these older versions).
1979 * Drop --enable-quiet from in COVERAGE_CONFIGURE - this option no longer does
1980 anything since 1.3.1.
1982 Xapian-core 1.4.4 (2017-04-19):
1986 * Database::check():
1988 + Fix checking a single table - changes in 1.4.2 broke such checks unless you
1989 specified the table without any extension.
1991 + Errors from failing to find the file specified are now thrown as
1992 DatabaseOpeningError (was DatabaseError, of which DatabaseOpeningError is
1993 a subclass so existing code should continue to work). Also improved the
1994 error message when the file doesn't exist is better.
1996 * Drop OP_SCALE_WEIGHT over OP_VALUE_RANGE, OP_VALUE_GE and OP_VALUE_LE in the
1997 Query constructor. These operators always return weight 0 so OP_SCALE_WEIGHT
1998 over them has no effect. Eliminating it at query construction time is cheap
1999 (we only need to check the type of the subquery), eliminates the confusing
2000 "0 * " from the query description, and means the OP_SCALE_WEIGHT Query object
2001 can be released sooner. Inspired by Shivanshu Chauhan asking about the query
2004 * Drop OP_SCALE_WEIGHT on the right side of OP_AND_NOT in the Query
2005 constructor. OP_AND_NOT takes no weight from the right so OP_SCALE_WEIGHT
2006 has no effect there. Eliminating it at query construction time is cheap
2007 (just need to check the subquery's type), eliminates the confusing "0 * "
2008 from the query description, and means the OP_SCALE_WEIGHT object can be
2013 * Add more tests of Database::check(). Fixes #238, reported by Richard
2016 * Make apitest testcase nosuchdb1 fail if we manage to open the DB.
2018 * Skip testcases which throw NetworkError with errno value ECHILD - this
2019 indicates system resource starvation rather than a Xapian bug. Such failures
2020 are seen on Debian buildds from time to time, see:
2021 https://bugs.debian.org/681941
2025 * Fix incorrect results due to uninitialised memory. The array holding max
2026 weight values in MultiAndPostList is never initialised if the operator is
2027 unweighted, but the values are still used to calculate the max weight to pass
2028 to subqueries, leading to incorrect results. This can be observed with an OR
2029 under an unweighted AND (e.g. OR under AND on the right side of AND_NOT).
2030 The fix applied is to simply default initialise this array, which should lead
2031 to a max weight of 0.0 being passed on to subqueries. Bug reported in
2032 notmuch by Kirill A. Shutemov, and forwarded by David Bremner.
2036 * Correct "Query::feature_flag" -> "QueryParser::feature_flag". Fixes #747,
2037 reported by James Aylett.
2039 * Rename set_metadata() `value` parameter to `metadata`. This change is
2040 particularly motivated by making it easier to map this case specially in SWIG
2041 bindings, but the new name is also clearer and better documents its purpose.
2043 * Rename value range parameters. The new names (`range_limit` instead of
2044 `limit`, `range_lower` instead of `begin` and `range_upper` instead of `end`)
2045 are particularly motivated by making it easier to map them specially in SWIG
2046 bindings, but they're also clearer names which better document their
2049 * Change "(key, tag)" to "(key, value)" in user metadata docs. The user
2050 metadata is essentially what's often called a "key-value store" so users
2051 are likely to be familiar with that terminology.
2053 * Consistently name parameter of Weight::unserialise() overridden forms.
2054 In xapian/weight.h it was almost always named `serialised`, but LMWeight
2055 named it `s` and CoordWeight omitted the name.
2057 * Fix various minor documentation comment typos.
2061 * Fix configure probe for __builtin_exp10() to work around bug on mingw - there
2062 GCC generates a call to exp10() for __builtin_exp10() but there is no exp10()
2063 function in the C library, so we get a link failure. Use a full link test
2064 instead to avoid this issue. Reported by Mario Emmenlauer on xapian-devel.
2066 * Fix configure probe for log2() which was failing on at least some platforms
2067 due to ambiguity between overloaded forms of log2(). Make the probe
2068 explicitly check for log2(double) to avoid this problem.
2070 * Workaround the unhelpful semantics of AI_ADDRCONFIG on platforms which follow
2071 the old RFC instead of POSIX (such as Linux) - if only loopback networking is
2072 configured, localhost won't resolve by name or IP address, which causes
2073 testsuites using the remote backend over localhost to fail in auto-build
2074 environments which deliberately disable networking during builds. The
2075 workaround implemented is to check if the hostname is "::1", "127.0.0.1" or
2076 "localhost" and disable AI_ADDRCONFIG for these. This doesn't catch all
2077 possible ways to specify localhost, but should catch all the ways these might
2078 be specified in a testsuite. Fixes https://bugs.debian.org/853107, reported
2079 by Daniel Schepler and the root cause uncovered by James Clarke.
2083 * Adjust assertion in InMemoryPostList. Calling skip_to() is fine when the
2084 postlist hasn't been started yet (but the assertion was failing for a term
2085 not in the database). Latent bug, triggered by testcases complexphrase1 and
2086 complexnear1 as updated for addition of support for OP_OR subqueries of
2089 Xapian-core 1.4.3 (2017-01-25):
2093 * MSet::snippet(): Favour candidate snippets which contain more of a diversity
2094 of matching terms by discounting the relevance of repeated terms using an
2095 exponential decay. A snippet which contains more terms from the query is
2096 likely to be better than one which contains the same term or terms multiple
2097 times, but a repeated term is still interesting, just less with each
2098 additional appearance. Diversity issue highlighted by Robert Stepanek's
2099 patch in https://github.com/xapian/xapian/pull/117 - testcases taken from his
2102 * MSet::snippet(): New flag SNIPPET_EMPTY_WITHOUT_MATCH to get an empty snippet
2103 if there are no matches in the text passed in. Implemented by Robert
2106 * Round MSet::get_matches_estimated() to an appropriate number of significant
2107 figures. The algorithm used looks at the lower and upper bound and where the
2108 estimate sits between them, and then picks an appropriate number of
2109 significant figures. Thanks to Sébastien Le Callonnec for help sorting out a
2110 portability issue on OS X.
2112 * Add Database::locked() method - where possible this non-invasively checks if
2113 the database is currently open for writing, which can be useful for
2114 dashboards and other status reporting tools.
2118 * Use terms that exist in the database for most snippet tests. It's good to
2119 test that snippet highlighting works for terms that aren't in the database,
2120 but it's not good for all our snippet tests to feature such terms - it's
2121 not the common usage.
2125 * Improve value range upper bound and estimated matches. The value slot
2126 frequency provides a tighter upper bound than Database::get_doccount().
2127 The estimate is now calculated by working out the proportion of possible
2128 values between the slot lower and upper bounds which the range covers
2129 (assuming a uniform distribution). This seems to work fairly well in
2130 practice, and is certainly better than the crude estimate we were using:
2131 Database::get_doccount() / 2
2133 * Handle arbitrary combinations of OP_OR under OP_NEAR/OP_PHRASE, partly
2134 addressing #508. Thanks to Jean-Francois Dockes for motivation and testing.
2136 * Only convert OP_PHRASE to OP_AND if full DB has no positions. Until now the
2137 conversion was done independently for each sub-database, but being consistent
2138 with the results from a database containing all the same documents seems more
2141 * Avoid double get_wdf() call for first subquery of OP_NEAR and OP_PHRASE,
2142 which will speed them up by a small amount.
2146 * INSTALL: Update section about -Bsymbolic-functions which is not a new
2147 GNU ld feature at this point.
2151 * xapian-delve: Uses new Database::locked() method to report if the database
2152 is currently locked.
2156 * Fix build failure cross-compiling for android due to not pulling in header
2159 * Fix compiler warnings.
2161 Xapian-core 1.4.2 (2016-12-26):
2165 * Add XAPIAN_AT_LEAST(A,B,C) macro.
2167 * MSet::snippet(): Optimise snippet generation - it's now ~46% faster in a
2170 * Add Xapian::DOC_ASSUME_VALID flag which tells Database::get_document() that
2171 it doesn't need to check that the passed docid is valid. Fixes #739,
2172 reported by Germán M. Bravo.
2174 * TfIdfWeight: Add support for the L wdf normalisation. Patch from Vivek Pal.
2176 * BB2Weight: Fix weights when database has just one document. Our existing
2177 attempt to clamp N to be at least 2 was ineffective due to computing
2178 N - 2 < 0 in an unsigned type.
2180 * DPHWeight: Fix reversed sign in quadratic formula, making the upper bound a
2183 * DLHWeight: Correct upper bound which was a bit too low, due to flawed logic
2184 in its derivation. The new bound is slightly less tight (by a few percent).
2186 * DLHWeight,DPHWeight: Avoid calculating log(0) when wdf is equal to the
2189 * TermGenerator: Handle stemmer returning empty string - the Arabic stemmer
2190 can currently do this (e.g. for a single tatweel) and user stemmers can too.
2191 Fixes #741, reported by Emmanuel Engelhart.
2193 * Database::check(): Fix check that the first docid in each doclength chunk is
2194 more than the last docid in the previous chunk - this code was in the wrong
2195 place so didn't actually work.
2197 * Database::get_unique_terms(): Clamp returned value to be <= document length.
2198 Ideally get_unique_terms() ought to only count terms with wdf > 0, but that's
2199 expensive to calculate on demand.
2203 * When compacting we now only write the iamglass file out once, and we write it
2204 before we sync the tables but sync it after, which is more I/O friendly.
2206 * Database::check(): Fix in SEGV when out == NULL and opts != 0.
2208 * Fix potential SEGV with corrupt value stats.
2212 * Fix potential SEGV with corrupt value stats.
2216 * Add XO_REQUIRE autoconf macro to provide an easy way to handle version checks
2217 in user configure scripts.
2221 * quest: Support BM25+, LM and PL2+ weighting schemes.
2223 * xapian-check: Fix when ellipses are shown in 't' mode. They were being shown
2224 when there were exactly 6 entries, but we only start omitting entries when
2225 there are *more* than 6. Fix applies to both glass and chert.
2229 * Avoid using opendir()/readdir() in our closefrom() implementation as these
2230 functions can call malloc(), which isn't safe to do between fork() and exec()
2231 in a multi-threaded program, but after fork() is exactly where we want to
2232 use closefrom(). Instead we now use getdirentries() on Linux and
2233 getdirentriesattr() on OS X (OS X support bugs shaken out with help from
2236 * Support reading UUIDs from /proc/sys/kernel/random/uuid which is especially
2237 useful when building for Android, as it avoids having to cross-build a UUID
2240 * Disable volatile workaround for excess precision SEGV for SSE - previously it
2241 was only being disabled for SSE2.
2243 * When building for x86 using a compiler where we don't know how to disable
2244 use of 387 FP instructions, we now run remote servers for the testsuite under
2245 valgrind --tool=none, like we do when --disable-sse is explicitly specified.
2247 * Add alignment_cast<T> which has the same effect as reinterpret_cast<T> but
2248 avoids warnings about alignment issues.
2250 * Suppress warnings about unused private members. DLHWeight and DPHWeight
2251 have an unused lower_bound member, which clang warns about, but we need to
2252 keep them there in 1.4.x to preserve ABI compatibility.
2254 * Remove workaround for g++ 2.95 bug as we require at least 4.7 now.
2256 * configure: Probe for <cxxabi.h>. GCC added this header in GCC 3.1, which
2257 is much older than we support, so we've just assumed it was available if
2258 __GNUC__ was defined. However, clang lies and defines __GNUC__ yet doesn't
2259 seem to reliably provide <cxxabi.h>, so we need to probe for it.
2261 * Fix "unused assignment" warning.
2263 * configure: Probe for __builtin_* functions. Previously we just checked for
2264 __GNUC__ being defined, but it's cleaner to probe for them properly -
2265 compilers other than GCC and those that pretend to be GCC might provide these
2268 * Use __builtin_clz() with compilers which support it to speed up encoding
2269 and especially decoding of positional data. This speeds up phrase searching
2270 by ~0.5% in a simple test.
2272 * Check signed right shift behaviour at compile time - we can use a test on a
2273 constant expression which should optimise away to just the required version
2274 of the code, which means that on platforms which perform sign-extension
2275 (pretty much everything current it seems) we don't have to rely on the
2276 compiler optimising a portable idiom down to the appropriate right shift
2279 * Improve configure check for log2(). We include <cmath> so the check really
2280 should succeed if only std::log2() is declared.
2282 * Enable win32-dll option to LT_INIT.
2288 + Support glass instead of chert.
2290 + Allow control of showing keys/tags.
2292 + Use more mnemonic letters than X for command arguments in help.
2294 Xapian-core 1.4.1 (2016-10-21):
2298 * Constructing a Query for a non-reference counted PostingSource object will
2299 now try to clone the PostingSource object (as happened in 1.3.4 and
2300 earlier). This clone code was removed as part of the changes in 1.3.5 to
2301 support optional reference counting of PostingSource objects, but that breaks
2302 the case when the PostingSource object is on the stack and goes out of scope
2303 before the Query object is used. Issue reported by Till Schäfer and analysed
2304 by Daniel Vrátil in a bug report against Akonadi:
2305 https://bugs.kde.org/show_bug.cgi?id=363741
2307 * Add BM25PlusWeight class implementing the BM25+ weighting scheme, implemented
2308 by Vivek Pal (https://github.com/xapian/xapian/pull/104).
2310 * Add PL2PlusWeight class implementing the PL2+ weighting scheme, implemented
2311 by Vivek Pal (https://github.com/xapian/xapian/pull/108).
2313 * LMWeight: Implement Dir+ weighting scheme as DIRICHLET_PLUS_SMOOTHING.
2314 Patch from Vivek Pal.
2316 * Add CoordWeight class implementing coordinate matching. This can be useful
2317 for specialised uses - e.g. to implement sorting by the number of matching
2320 * DLHWeight,DPHWeight,PL2Weight: With these weighting schemes, the formulae
2321 can give a negative weight contribution for a term in extreme cases. We
2322 used to try to handle this by calculating a per-term lower bound on the
2323 contribution and subtracting this from the contribution, but this idea
2324 is fundamentally flawed as the total offset it adds to a document depends on
2325 what combination of terms that document matches, meaning in general the
2326 offset isn't the same for every matching document. So instead we now clamp
2327 each term's weight contribution to be >= 0.
2329 * TfIdfWeight: Always scale term weight by wqf - this seems the logical
2330 approach as it matches the weighting we'd get if we weighted every non-unique
2331 term in the query, as well as being explicit in the Piv+ formula.
2333 * Fix OP_SCALE_WEIGHT to work with all weighting schemes - previously it was
2334 ignored when using PL2Weight and LMWeight.
2336 * PL2Weight: Greatly improve upper bound on weight:
2337 + Split the weight equation into two parts and maximise each separately as
2338 that gives an easily solvable problem, and in common cases the maximum is
2339 at the same value of wdfn for both parts. In a simple test, the upper
2340 bounds are now just over double the highest weight actually achieved -
2341 previously they were several hundred times. This approach was suggested by
2342 Aarsh Shah in: https://github.com/xapian/xapian/pull/48
2343 + Improve upper bound on normalised wdf (wdfn) - when wdf_upper_bound >
2344 doclength_lower_bound, we get a tighter bound by evaluating at
2345 wdf=wdf_upper_bound. In a simple test, this reduces the upper bound on
2346 wdfn by 36-64%, and the upper bound on the weight by 9-33%.
2348 * PL2Weight: Fix calculation of upper_bound when P2>0. P2 is typically
2349 negative, but for a very common term it can be positive and then we should
2350 use wdfn_lower not wdfn_upper to adjust P_max.
2352 * Weight::unserialise(): Check serialised form is empty when unserialising
2353 parameter-free schemes BoolWeight, DLHWeight and DPHWeight.
2355 * TermGenerator::set_stopper_strategy(): New method to control how the Stopper
2356 object is used. Patch from Arnav Jain.
2358 * QueryParser: Fix handling of CJK query over multiple prefixes. Previously
2359 all the n-gram terms were AND-ed together - now we AND together for each
2360 prefix, then OR the results. Fixes #719, reported by Aaron Li.
2362 * Add Database::get_revision() method which provides access to the database
2363 revision number for chert and glass, intended for use by xapiand. Marked
2364 as experimental, so we don't have to go through the usual deprecation cycle
2365 if this proves not to be the approach we want to take. Fixes #709,
2366 reported by Germán M. Bravo.
2368 * Mark RangeProcessor constructor as `explicit`.
2372 * OP_SCALE_WEIGHT: Check top weight is non-zero - if it is zero, tests which
2373 try to check that OP_SCALE_WEIGHT works will always pass.
2375 * testsuite: Check SerialisationError descriptions from Xapian::Weight
2376 subclasses mention the weighting scheme name.
2380 * Fix stats passed to Weight with OP_SYNONYM. Previously the number of
2381 unique terms was never calculated, and a term which matched all documents
2382 would be optimised to an all-docs postlist, which fails to supply the
2385 * Use floating point calculation for OR synonym freq estimates. The division
2386 was being done as an integer division, which means the result was always
2387 getting rounded down rather than rounded to the nearest integer.
2391 * Fix allterms with prefix on glass with uncommitted changes. Glass aims to
2392 flush just the relevant postlist changes in this case but the end of the
2393 range to flush was wrong, so we'd only actually flush changes for a term
2394 exactly matching the prefix. Fixes #721.
2398 * Improve handling of invalid remote stub entries: Entries without a colon now
2399 give an error rather than being quietly skipped; IPv6 isn't yet supported,
2400 but entries with IPv6 addresses now result in saner errors (previously the
2401 colons confused the code which looks for a port number).
2405 * XO_LIB_XAPIAN: Check for user trying to specify configure for XAPIAN_CONFIG
2406 and give a more helpful error.
2408 * Fix XO_LIB_XAPIAN to work without libtool. Modern versions of GNU m4 error
2409 out when defn is used on an undefined macro. Uncovered by Amanda Jayanetti.
2411 * Clean build paths out of installed xapian-config, mostly in the interests of
2412 facilitating reproducible builds, but it is also a little more robust as the
2413 "uninstalled tree" case can't then accidentally be triggered.
2415 * Drop compiler options that are no longer useful:
2416 + -fshow-column is the default in all GCC versions we now support
2417 (checked as GCC 4.6).
2418 + -Wno-long-long is no longer necessary now that we require C++11 where
2419 "long long" is a standard type.
2423 * Add API documentation comments for all classes, methods, constants, etc which
2424 were lacking them, and improve the content of some existing comments.
2426 * Stop hiding undocumented classes and members. Hiding them silences doxygen's
2427 warnings about them, so it's hard to see what is missing, and the stub
2428 documentation produced is perhaps better than not documenting at all.
2429 Fixes #736, reported by James Aylett.
2431 * xapian-check: Make command line syntax consistent with other tools.
2433 * Note when MSet::snippet() was added.
2435 * deprecation.rst: Recommend unsigned over useconds_t for timeout values (but
2436 leave the API using useconds_t for 1.4.x for ABI compatibility. The type
2437 useconds_t is now obsolete and anyway was intended to represent a time in
2438 microseconds (confusing when Xapian's timeouts are in milliseconds). The
2439 Linux usleep man page notes: "Programs will be more portable if they never
2440 mention this type explicitly."
2444 * Suppress compiler warnings about pointer alignment on some architectures.
2445 We know the data is aligned in these cases.
2447 * Fix replicate7 under Cygwin.
2451 * Add missing forward declaration needed by --enable-log build.
2453 Xapian-core 1.4.0 (2016-06-24):
2457 * Update to Unicode 9.0.0.
2461 * Fix build on big-endian architectures. The new unaligned word access
2462 functions expect WORDS_BIGENDIAN to be set, but configure.ac wasn't invoking
2463 AC_C_BIGENDIAN to arrange for this to be set.
2465 * Suppress compiler warnings about pointer alignment. We know the data is
2466 suitably aligned, because the whole point of these functions is to allow
2467 reading an aligned word.
2469 Xapian-core 1.3.7 (2016-06-01):
2473 * Reimplement ESet and ESetIterator as we did for MSet and MSetIterator in
2474 1.3.5. ESetIterator internally now counts down to the end of the ESet, so
2475 the end test is now against 0, rather than against eset.size(). And more of
2476 the trivial methods are now inlined, which reduces the number of relocations
2477 needed to load the library, and should give faster code which is a very
2478 similar size to before.
2480 * MSetIterator and ESetIterator are now STL-compatible random_access_iterators
2481 (previously they were only bidirectional_iterators).
2485 * Merge queryparsertest and termgentest into apitest. Their testcases now use
2486 the backend manager machinery in the testharness, so we don't have to
2487 hard-code use of inmemory and chert backends, but instead run them under all
2488 backends which support the required features. This fixes some test failures
2489 when both chert and glass are disabled due to trying to run spelling tests
2490 with the inmemory backend.
2492 * Avoid overflowing collection frequency in totaldoclen1. We're trying to test
2493 total document length doesn't wrap, so avoid collection freq overflowing in
2494 the process, as that triggers errors when running the testsuite under ubsan.
2495 We should handle collection frequency overflow better, but that's a separate
2498 * Add some test coverage for ESet::get_ebound().
2502 * Fix upper bound on matches for OP_XOR. Due to a reversed conditional, the
2503 estimate could be one too low in some cases where the XOR matched all the
2504 documents in the database.
2506 * Improve lower bound on matches for OP_XOR. Previously the lower bound was
2507 always set to 0, which is valid, but we can often do better.
2511 * Fix Database::check() parsing of glass changes file header. In practice this
2512 was unlikely to actually cause problems.
2516 * --disable-backend-remote now disables replication too which makes it
2517 actually usable (currently replication and the remote backend share most of
2518 their network code, so disabling them together probably makes sense anyway).
2520 * Improve builds with various combinations of backends disabled (see #361).
2524 * Revert change to handle a self-initialised PIMPL object (e.g. Xapian::Query
2525 q(q);), added in 1.3.6. It seems this case is actually undefined behaviour,
2526 so there's not much point trying to do anything about it. Clang warns about
2527 the testcase for it (tested with 3.5), but sadly current GCC doesn't (tested
2530 * Use <cstdint> for integer types of known widths now we require C++11.
2532 * Replace unaligned word access functions with optimised versions which use
2533 memcpy() and (on little-endian platforms) a byte-swap (via compiler builtins
2534 where available). Access revision numbers in database blocks with an aligned
2535 load, since we know they are suitably aligned.
2537 * Simplify handling of platforms where timer_create() exists but isn't
2538 suitable for our needs - AIX and GNU Hurd both have timer_create() but it
2539 always seems to fail (on Hurd this is because there's a dummy implementation
2540 in glibc which always fails with ENOSYS). Trying a call at runtime which
2541 will never succeed is a waste of time, so we want to avoid defining
2542 HAVE_TIMER_CREATE in such cases. Probing for this properly in configure
2543 would need us to compile and run a test program, which is unhelpful when
2544 cross-compiling, so for now just test against a blacklist of platforms we
2545 know don't provide a suitable timer_create() function.
2547 * Check _POSIX_MONOTONIC_CLOCK and if it's not defined, use CLOCK_REALTIME
2548 instead of CLOCK_MONOTONIC. The existing hard-coded platform checks still
2549 seem to be needed, as on these platforms CLOCK_MONOTONIC is available for
2550 some functions, but doesn't work with timer_create() for one reason or
2551 another. But the new check should avoid failures on platforms without any
2552 monotonic clock support.
2554 * Make opt_intrusive_base symbols visible to avoid UBSAN warnings.
2556 * Avoid potential set-but-unused warning - with both chert and glass disabled,
2557 last_docid's final set value isn't used, which GCC doesn't warn about, but
2558 other compilers might.
2560 * Avoid explicit recursive return of void - we've had warnings for such cases
2561 from some compilers in the past, and it's an odd thing to do outside of a
2564 Xapian-core 1.3.6 (2016-05-09):
2568 * TfIdfWeight: Support freq and squared IDF normalisations. Patch from Vivek
2571 * New Xapian::Query::OP_INVALID to provide an "invalid" query object.
2573 * Reject OP_NEAR/OP_PHRASE with non-leaf subqueries early to avoid a
2574 potential segmentation fault if the non-leaf subquery decayed at
2575 just the wrong moment. See #508.
2577 * Reduce positional queries with a MatchAll or PostingSource subquery to
2578 MatchNothing (since these subqueries have no positional information, so
2579 the query can't match).
2581 * Deprecate ValueRangeProcessor and introduce new RangeProcessor class as
2582 a replacement. RangeProcessor()::operator()() method returns Xapian::Query,
2583 so a range can expand to any query. OP_INVALID is used to signal that
2584 a range is not recognised. Fixes #663.
2586 * Combining of ranges over the same quantity with OP_OR is now handled by
2587 an explicit "grouping" parameter, with a sensible default which works
2588 for value range queries. Boolean term prefixes and FieldProcessor now
2589 support "grouping" too, so ranges and other filters can now be grouped
2592 * Formally deprecate WritableDatabase::flush(). The replacement commit()
2593 method was added in 1.1.0, so code can be switched to use this and still
2596 * Fix handling of a self-initialised PIMPL object (e.g. Xapian::Query q(q);).
2597 Previously the uninitialised pointer was copied to itself, resulting in
2598 undefined behaviour when the object was used. This isn't something you'd see
2599 in normal code, but it's a cheap check which can probably be optimised away
2600 by the compiler (GCC 6 does).
2604 * Fix testcase notermlist1 to check correct table extension - ".glass" not
2605 ".DB" (chert doesn't support DB_NO_TERMLIST).
2609 * Bootstrap with autoconf 2.69. This requires GNU m4 >= 4.6, but that should
2610 no longer be an issue on developer machines.
2612 * Fix build with --enable-log. Debug logging was trying to log
2613 compress_strategy parameter which was removed recently. Reported by Ankit
2614 Paliwal on xapian-devel.
2618 * Fix misfiled deprecation notes. Various things marked as deprecated and
2619 removed in 1.3.x have in fact been deprecated but not removed (they were just
2620 added to the wrong list). One instance queried by David Bremner on #xapian,
2621 and a review found several more.
2623 * Improve docs for lcov makefile targets - say that these are targets in the
2624 xapian-core directory (noted by poe_ on #xapian), document
2625 coverage-reconfigure-maintainer-mode target, and clarify what the example of
2626 how to use GENHTML_ARGS actually does.
2628 * Note that Java bindings use xapian/iterator.h.
2630 * Update release checklist. The script to build the release tarballs now
2631 automates some of the changes needed in trac.
2635 * Fix build with Android NDK which declares sys_errlist and sys_nerr in the
2636 C library headers, but doesn't actually define them in the library itself.
2637 The configure test now tries to link a trivial program which uses these
2638 symbols. Patch from Tejas Jogi.
2640 Xapian-core 1.3.5 (2016-04-01):
2642 This release includes all changes from 1.2.23 which are relevant.
2646 * The Snipper class has been replaced with a new MSet::snippet() method.
2647 The implementation has also been redone - the existing implementation was
2648 slower than ideal, and didn't directly consider the query so would sometimes
2649 selects a snippet which doesn't contain any of the query terms (which users
2650 quite reasonably found surprising). The new implementation is faster, will
2651 always prefer snippets containing query terms, and also understands exact
2652 phrases and wildcards. Fixes #211.
2654 * Add optional reference counting support for ErrorHandler, ExpandDecider,
2655 KeyMaker, PostingSource, Stopper and TermGenerator. Fixes #186, reported
2656 by Richard Boulton. (ErrorHandler's reference counting isn't actually used
2657 anywhere in xapian-core currently, but means we can hook it up in 1.4.x if
2658 ticket #3 gets addressed).
2660 * Deprecate public member variables of PostingSource. The new getters and/or
2661 setters added in 1.2.23 and 1.3.5 are preferred. Fixes #499, reported by
2664 * Reimplement MSet and MSetIterator. MSetIterator internally now counts down
2665 to the end of the MSet, so the end test is now against 0, rather than against
2666 mset.size(). And more of the trivial methods are now inlined, which reduces
2667 the number of relocations needed to load the library, and should give faster
2668 code which is a very similar size to before.
2670 * Only issue prefetch hints for documents if MSet::fetch() is called. It's not
2671 useful to send the prefetch hint right before the actual read, which was
2672 happening since the implementation of prefetch hints in 1.3.4. Fixes #671,
2673 reported by Will Greenberg.
2675 * Fix OP_ELITE_SET selection in multi-database case - we were selecting
2676 different sets for each subdatabase, but removing the special case check for
2677 termfreq_max == 0 solves that.
2679 * Remove "experimental" marker from FieldProcessor, since we're happy with the
2680 API as-is. Reported by David Bremner on xapian-discuss.
2682 * Remove "experimental" marker from Database::check(). We've not had any
2683 negative feedback on the current API.
2685 * Databse::check() now checks that doccount <= last_docid.
2687 * Database::compact() on a WritableDatabase with uncommitted changes could
2688 produce a corrupted output. We now throw Xapian::InvalidOperationError in
2689 this case, with a message suggesting you either commit() or open the database
2690 from disk to compact from. Reported by Will Greenberg on #xapian-discuss
2692 * Add Arabic stemmer. Patch from Assem Chelli in
2693 https://github.com/xapian/xapian/pull/45
2695 * Improve the Arabic stopword list. Patch from Assem Chelli.
2697 * Make functions defined in xapian/iterator.h 'inline'.
2699 * Don't force the user to specify the metric in the geospatial API -
2700 GreatCircleMetric is probably what most users will want, so a sensible
2703 * Xapian::DBCHECK_SHOW_BITMAP: This was added in 1.3.0 (so has never been in
2704 a stable release) and was superseded by Xapian::DBCHECK_SHOW_FREELIST in
2705 1.3.2, so just remove it.
2707 * Make setting an ErrorHandler a no-op - this feature is deprecated and we're
2708 not aware of anyone using it. We're hoping to rework ErrorHandler in 1.4.x,
2709 which will be simpler without having to support the current behaviour as well
2714 * unittest: We can't use Assert() to unit test noexcept code as it throws an
2715 exception if it fails. Instead set up macros to set a variable and return if
2716 an assertion fails in a unittest testcase, and check that variable in the
2721 * Make glass the default backend. The format should now be stable, except
2722 perhaps in the unlikely event that a bug emerges which requires a format
2725 * Don't explicitly store the 2 byte "component_of" counter for the first
2726 component of every Btree entry in leaf blocks - instead use one of the upper
2727 bits of the length to store a "first component" flag. This directly saves 2
2728 bytes per entry in the Btree, plus additional space due to fewer blocks and
2729 fewer levels being needed as a result. This particularly helps the position
2730 table, which has a lot of entries, many of them very small. The saving would
2731 be expected to be a little less than the saving from the change which shaved
2732 2 bytes of every Btree item in 1.3.4 (since that saved 2 bytes multiple times
2733 for large entries which get split into multiple items). A simple test
2734 suggests a saving of several percent in total DB size, which fits that. This
2735 change reduces the maximum component size to 8194, which affects tables
2736 with a 64KB blocksize in normal use and tables with >= 16KB blocksize with
2739 * Refactor glass backend key comparison - == and < operations are replaced by
2740 a compare() function returns negative, 0 or positive (like strcmp(), memcmp()
2741 and std::string::compare()). This allows us to avoid a final compare to
2742 check for equality when binary chopping, and to terminate early if the binary
2743 chop hits the exact entry.
2745 * If a cursor is moved to an entry which doesn't exist, we need to step back to
2746 the first component of previous entry before we can read its tag. However we
2747 often don't actually read its tag (e.g. if we only wanted the key), so make
2748 this stepping back lazy so we can avoid doing it when we don't want to read
2751 * Avoid creating std::string objects to hold data when compressing and
2752 decompressing tags with zlib.
2754 * Store minimum compression length per table in the version file, with 0
2755 meaning "don't compress". Currently you can only change this setting with a
2756 hex editor on the file, but now it is there we can later make use of it
2757 without needing a database format change.
2759 * Database::check() now performs additional consistency checks for glass.
2760 Reported by Jean-Francois Dockes and Bob Cargill via xapian-discuss.
2762 * Database::check(): check docids don't exceed db_last_docid when checking
2763 a single glass table.
2765 * We now throw DatabaseCorruptError in a few cases where it's appropriate
2766 but we didn't previously, in particular in the case where all the files in a
2767 DB have been truncated to zero size (which makes handling of this case
2768 consistent with chert).
2770 * Fix compaction to a single file which already exists. This was hanging.
2771 Noted by Will Greenberg on #xapian.
2775 * When using 64-bit Xapian::docid, consistently use the actual maximum valid
2776 docid value rather instead of the maximum value the type can hold.
2780 * Default to only building shared libraries. Building both shared and static
2781 means having to compile the files which make up the library twice on most
2782 platforms. Shared libraries are the better option for most users, and if
2783 anyone really wants static libraries they can configure with --enable-static
2784 (or --enable-static=xapian-core if configuring a combined tree with the
2787 * Fix XAPIAN_TEST_LINKER_FLAG macro to actually test if it's possible to link
2788 with the option in LDFLAGS - previously we attempted to guess based on
2789 whether the error message from $CXX $flag contained the option name, which
2790 doesn't actually work very well.
2794 * Document that OP_WILDCARD expansion limits currently work per sub-db.
2796 * Remove reference to ChangeLog files, as we are no longer updating them.
2798 * Remove link to apidoc.pdf which we no longer generate this by default.
2800 * Clarify LatLongCoord::operator< purpose in API documentation.
2802 * Fix documentation comment typo - LatLongDistancePostingSource is a posting
2803 source, not a match decider!
2805 * HACKING: Recommend lcov 1.11 as it uses much less memory
2809 * xapian-replicate: Obviously corrupt replicas now self-heal. If a replica
2810 database fails to open with DatabaseCorruptError then a full copy is now
2815 * Eliminate arrays of C strings, which result in relocations at library load
2816 time, slowing startup and making pages containing them unsharable.
2818 * Refactor MSet::fetch() to reduce load time relocations.
2822 * Fix to build when configured with --enable-assertions.
2824 * Fix to build when configured with --enable-log. Reported by Tim McNamara
2827 Xapian-core 1.3.4 (2016-01-01):
2829 This release includes all changes from 1.2.22 which are relevant.
2833 * Update to Unicode 8.0.0. Fixes #680.
2835 * Overhaul database compaction API. Add a Xapian::Database::compact() method,
2836 with the Database object specifying the source database(s).
2837 Xapian::Compactor is now just a functor to use if you want to control
2838 progress reporting and/or the merging of user metadata. The existing API
2839 has been reimplemented using the new one, but is marked as deprecated.
2841 * Add support for a default value when sorting. Fixes #452, patch from
2844 * Make all functor objects non-copyable. Previously some were, some weren't,
2845 but it's hard to correctly make use of this ability. Fixes #681.
2847 * Fix use after free with WILDCARD_LIMIT_MOST_FREQUENT. If we tried to open a
2848 postlist after processing such a wildcard, the postlist hint could be
2849 pointing to a PostList object which had been deleted. Fixes #696, reported
2852 * Add support for optional reference counting of MatchSpy objects.
2854 * Improve Document::get_description() - the output is now always valid UTF-8,
2855 doesn't contain implementation details like "Document::Internal", and more
2856 clearly reports if the document is linked to a database.
2858 * Remove XAPIAN_CONST_FUNCTION marker from sortable_serialise_() helper, as it
2859 writes to the passed in buffer, so it isn't const or pure. Fixes
2860 decvalwtsource2 testcase failure when compiled with clang.
2862 * Make PostingSource::set_maxweight() public - it's hard to wrap for the
2863 bindings as a protected method. Fixes #498, reported by Richard Boulton.
2867 * Add unit test for internal C_isupper(), etc functions.
2871 * Optimise value range which is a superset of the bounds. If the value
2872 frequency is equal to the doccount, such a range is equivalent to MatchAll,
2873 and we now avoid having to read the valuestream at all.
2875 * Optimise OP_VALUE_RANGE when the upper bound can't be exceeded. In this
2876 case, we now use ValueGePostList instead of ValueRangePostList.
2880 * Shave 2 bytes of every Btree item (which will probably typically reduce
2881 database size by several percent).
2883 * More compact item format for branch blocks - 2 bytes per item smaller. This
2884 means each branch block can branch more ways, reducing the number of Btree
2885 levels needed, which is especially helpful for cold-cache search times.
2887 * Track an upper bound on spelling word frequency. This isn't currently used,
2888 but will be useful for improving the spelling algorithm, and we want to
2889 stabilise the glass backend format. See #225, reported by Philip Neustrom.
2891 * Support 64-bit docids in the glass backend on-disk format. This changes the
2892 encoding used by pack_uint_preserving_sort() to one which supports 64 bit
2893 values, and is a byte smaller for values 16384-32767, and the same size for
2894 all other 32 bit values. Fixes #686, from original report by James Aylett.
2896 * Use memcpy() not memmove() when no risk of overlap.
2898 * Store length of just the key data itself, allowing keys to be up to 255 bytes
2899 long - the previous limit was 252.
2901 * Change glass to store DB stats in the version file. Previously we stored
2902 them in a special item in the postlist table, but putting them in the version
2903 file reduces the number of block reads required to open the database, is
2904 simpler to deal with, and means we can potentially recalculate tight upper
2905 and lower bounds for an existing database without having to commit a new
2908 * Add support for a single-file variant for glass. Currently such databases
2909 can only be opened for reading - to create one you need to use
2910 xapian-compact (or its API equivalent). You can embed such databases within
2911 another file, and open them by passing in a file descriptor open on that file
2912 and positioned at the offset the database starts at). Database::check() also
2913 supports them. Fixes #666, reported by Will Greenberg (and previously
2914 suggested on xapian-discuss by Emmanuel Engelhart).
2916 * Avoid potential DB corruption with full-compaction when using 64K blocks.
2918 * Where posix_fadvise() is available, use it to prefetch postlist Btree blocks
2919 from the level below the root block which will be needed for postlists of
2920 terms in the query, and similarly for the docdata table when MSet::fetch() is
2921 called. Based on patch by Will Greenberg in #671.
2925 * Where posix_fadvise() is available, use it to prefetch postlist Btree blocks
2926 from the level below the root block which will be needed for postlists of
2927 terms in the query, and similarly for the record table when MSet::fetch() is
2928 called. Based on patch by Will Greenberg in #671.
2932 * Fix hook for remote support of user weighting schemes. The commented-out
2933 code used entirely the wrong class - now we use the server object we have
2934 access to, and forward the method to the class which needs it.
2938 * New configure options --enable-64bit-docid and --enable-64bit-termcount,
2939 which control the size of these types. Because these types are used in
2940 the API, libraries built with different combinations of them won't be ABI
2941 compatible. Based heavily on patch from James Aylett and Dylan Griffith.
2944 * Sort out hiding most of the internal symbols which had public visibility
2945 for various reason. Mostly addresses #63.
2949 * xapian-inspect: We no longer install this - it's really an aid to Xapian
2950 development rather than a user tool.
2954 * Minimum supported GCC version is now documented as GCC 4.7, for C++11
2955 support. Previously we documented 4.7 as the oldest known to work.
2957 * Use CLOCK_REALTIME with timer_create() on Cygwin.
2959 * Don't include winsock headers on Cygwin. Instead include <arpa/inet.h> for
2960 htons() and htonl().
2962 * Handle AI_ADDRCONFIG not being defined by some mingw versions.
2964 * Fix to handle mingw now providing a nanosleep() function.
2966 * Use WSAAddressToString instead of inet_ntop under __WIN32__ - at least under
2967 mingw we don't seem to have inet_ntop().
2969 * Fix testsuite to compile when S_ISSOCK() isn't defined.
2973 * Add missing parameters to debug logging for a few methods.
2975 Xapian-core 1.3.3 (2015-06-01):
2977 This release includes all changes from 1.2.20-1.2.21 which are relevant.
2983 + Add new flag Xapian::DB_RETRY_LOCK which allows opening a database for
2984 writing to wait until it can get a write lock. (Fixes #275, reported by
2987 + Fix Database::get_doclength_lower_bound() over multiple databases when some
2988 are empty or consist only of zero-length documents. Previously this would
2989 report a lower bound of zero, now it reports the same lowest bound as a
2990 single database containing all the same documents.
2992 + Database::check(): When checking a single table, handle the ".glass"
2993 extension on glass database tables, and use the extension to guide the
2994 decision of which backend the table is from.
2998 + Add new OP_WILDCARD query operator, which expands wildcards lazily, so now
2999 we create the PostList tree for a wildcard directly, rather than creating
3000 an intermediate Query tree. OP_WILDCARD offers a choice of ways to limit
3001 wildcard expansion (no limit, throw an exception, use the first N by term
3002 name, or use the most frequent N). (See tickets #48 and #608).
3006 + Add new set_max_expansion() method which provides access to OP_WILDCARD's
3007 choice of ways to limit expansion and can set limits for partial terms as
3008 well as for wildcards. Partial terms now default to the 100 most frequent
3009 matching terms. (Completes #608, reported by boomboo).
3011 + Deprecate set_max_wildcard_expansion() in favour of set_max_expansion().
3013 * Add support for optional reference counting of FieldProcessor and
3014 ValueRangeProcessor objects.
3018 * If command line option --verbose/-v isn't specified, set the verbosity level
3019 from environmental variable VERBOSE.
3021 * Re-enable replicate3 for glass, as it no longer fails.
3023 * Add more test coverage for get_unique_terms().
3025 * Don't leave an extra fd open when starting xapian-tcpsrv for remotetcp tests.
3029 * When reporting freelist errors during a database check, distinguish between a
3030 block in use and in the freelist, and a block in the freelist more than once.
3032 * Fix compaction and database checking for the change to the format of keys
3033 in the positionlist table which happened in 1.3.2.
3035 * After splitting a block, we always insert the new block in the parent right
3036 after the block it was split from - there's no need to binary chop.
3038 * Avoid infinite recursion when we hit the end of the freelist block we're
3039 reading and the end of the block we're writing at the same time.
3041 * Fix freelist handling to allow for the newly loaded first block of the
3042 freelist being already used up.
3046 * Fix problems with get_unique_terms() on a modified chert database.
3048 * Fix xapian-check on a single chert table, which seg faulted in 1.3.2.
3052 * Avoid dividing zero by zero when calculating the average length for an empty
3057 * Merge generate-allsnowballheaders script into collate-sbl.
3061 * A compiler with good support for C++11 is now required to build Xapian.
3062 Most of the actively developed C++ compilers already have decent support,
3063 or are close to having it, and it makes development easier and more
3064 efficient. Currently known to work: GCC >= 4.7, recent versions of clang
3065 (3.5 works). Solaris Studio 12.4 compiles the code, but tests currently
3066 fail. IBM's xlC doesn't support enough of C++11 yet. HP's aCC hasn't
3067 been tested, but its documentation suggests it also doesn't support enough
3070 * Drop workarounds and special cases for old versions of various compilers
3071 which don't support C++11.
3073 * Use C++11's static_assert() and unique_ptr instead of custom implementations
3074 of equivalent functionality.
3076 * Building on OS/2 with EMX is no longer supported - EMX was last updated in
3077 2001 and comes with GCC 3.2.1, which is much too old to support C++11.
3079 * Building with SGI's and Compaq's C++ compilers is no longer supported -
3080 both seem to have ceased development, and don't support C++11.
3082 * Building with STLport is no longer supported - STLport was last released in
3083 2008, so it's no longer actively developed and won't support C++11.
3085 * Building on IRIX is no longer supported, because IRIX has reached end of
3088 * Disable "<FUNCTION> is expected to return a value" warning from Sun's C++
3089 compiler, as it fires for functions which end in a "throw" statement.
3090 Genuine instances of missing return values will be caught by compilers with
3091 superior warning machinery.
3093 * Fix warning from GCC 5.1 where template expansion leads to the comparison
3094 (bool_value < 255) which is always true. Warning introduced by changes in
3097 * Use getaddrinfo() instead of gethostbyname(), since the latter may not be
3098 thread-safe, and as a step towards IPv6 support (see #374), but currently we
3099 still only look for IPv4 addresses.
3101 * timer_create() seems to always fail on AIX with EAGAIN, so just skip the
3102 matchtimelimit1 testcase there.
3104 * Under __WIN32__, we need to specify Vista as the minimum supported version to
3105 get the AI_ADDRCONFIG flag. Older versions seem to all be out of support
3108 * Change configure probe for log2() to check for a declaration in <cmath>
3109 to get it to fix build on Solaris with Sun C++. C++11 compilers should all
3110 provide log2(), but let's not rely on that just yet as it's easy to provide a
3111 fallback implementation.
3113 * Use scalbn() instead of ldexp() where possible (which we can in all cases
3114 when FLT_RADIX == 2, as it is on pretty much all current platforms). On
3115 overflow and underflow ldexp() sets errno, which it seems better to avoid
3118 * The list of stemmers is now in the same static const struct as the version
3119 info, and Stem::get_available_languages() is just an inlined wrapper which
3120 fetches this structure and returns the appropriate member. This saves a
3121 relocation, reducing library load time a little.
3123 * Remove "pure" attribute from API functions which could throw an exception.
3124 These functions aren't really pure, and while we're happy for calls to them
3125 to be CSE-ed or eliminated entirely, the compiler might make more assumptions
3126 than that about a pure function - clang seems to assume pure => nothrow and
3127 an exception from such a function can't be caught.
3129 * Remove "pure" attribute from sortable_unserialise(), which can raise floating
3130 point exceptions FE_OVERFLOW and FE_UNDERFLOW.
3132 * Add "nothrow" attribute to more API functions which will never throw an
3135 * Make sortable_serialise() an inlined wrapper around a function which won't
3136 throw and can be flagged with attribute 'const'.
3138 * Tweak sortable_unserialise() not to compare with a fixed string by
3139 constructing a temporary std::string object (which could throw
3140 std::bad_alloc), and mark it as XAPIAN_NOTHROW.
3144 * Only enable assertions in sortable_serialise() and sortable_unserialise() in
3145 the testsuite (since these functions shouldn't throw exceptions), and move
3146 the tests of these functions from queryparsertest to unittest to facilitate
3149 * Add more assertions to the glass backend code.
3151 Xapian-core 1.3.2 (2014-11-24):
3153 This release includes all changes from 1.2.16-1.2.19 which are relevant.
3157 * Update Unicode character database to Unicode 7.0.0.
3159 * New Xapian::Snipper class from Mihai Bivol's GSOC 2012 project. (mostly
3162 * Fix all get_description() methods to always return UTF-8 text. (fixes #620)
3164 * Database::check():
3166 + Alter to take its "out" parameter as a pointer to std::ostream instead of a
3167 reference, and make passing NULL mean "do not produce output", and make
3168 the second and third parameters optional, defaulting to a quiet check.
3170 + Escape invalid UTF-8 data in keys and tags reported by xapian-check, using
3171 the same code we use to clean up strings returned by get_description()
3174 + Correct failure message which talks above the root block when it's actually
3177 + Rename DBCHECK_SHOW_BITMAP to DBCHECK_SHOW_FREELIST (old name still
3178 provided for now, but flagged as deprecated - DBCHECK_SHOW_BITMAP was new
3179 in 1.3.0, so will likely be removed before 1.4.0).
3181 * Methods and functions which take a string to unserialise now consistently
3182 call that parameter "serialised".
3184 * Weight: Make number of distinct terms indexing each document and the
3185 collection frequency of the term available to subclasses. Patch from
3186 Gaurav Arora's Language Modelling branch.
3188 * WritableDatabase: Add support for multiple subdatabases, and support opening
3189 a stub database containing multiple subdatabases as a WritableDatabase.
3191 * WritableDatabase can now be constructed from just a pathname (defaulting to
3192 opening the database with DB_CREATE_OR_OPEN).
3194 * WritableDatabase: Add flags which can be bitwise OR-ed into the second
3195 argument when constructing:
3197 + Xapian::DB_NO_SYNC: to disable use of fsync, etc
3199 + Xapian::DB_DANGEROUS: to enable in-place updates
3201 + Xapian::DB_BACKEND_CHERT: if creating, create a chert database
3203 + Xapian::DB_BACKEND_GLASS: if creating, create a glass database
3205 + Xapian::DB_NO_TERMLIST: create a database without a termlist (see #181)
3207 + Xapian::DB_FULL_SYNC flag - if this is set for a database, we use the Mac
3208 OS X F_FULL_SYNC instead of fdatasync()/fsync()/etc on the version file
3211 * Database: Add optional flags argument to constructor - the following can be
3212 bitwise OR-ed into it:
3214 + Xapian::DB_BACKEND_CHERT (only open a chert database)
3216 + Xapian::DB_BACKEND_GLASS (only open a glass database)
3218 + Xapian::DB_BACKEND_STUB (only open a stub database)
3220 * Xapian::Auto::open_stub() and Xapian::Chert::open() are now deprecated in
3221 favour of these new flags.
3223 * Add LMWeight class, which implements the Unigram Language Modelling weighting
3224 scheme. Patch from Gaurav Arora.
3226 * Add implementations of a number of DfR weighting schemes (BB2, DLH, DPH,
3227 IfB2, IneB2, InL2, PL2). Patches from Aarsh Shah.
3229 * Add support for the Bo1 query expansion scheme. Patch from Aarsh Shah.
3231 * Add Enquire::set_time_limit() method which sets a timelimit after which
3232 check_at_least will be disabled.
3234 * Database: Trying to perform operations on a database with no subdatabases now
3235 throws InvalidOperationError not DocNotFoundError.
3237 * Query: Implement new OP_MAX query operator, which returns the maximum weight
3238 of any of its subqueries. (see #360)
3240 * Query: Add methods to allow introspection on Query objects - currently you
3241 can read the leaf type/operator, how many subqueries there are, and get a
3242 particular subquery. For a query which is a term, Query::get_terms_begin()
3243 allows you to get the term. (see #159)
3245 * Query: Only simplify OP_SYNONYM with a single subquery if that subquery is a
3248 * Avoid two vector copies when storing term positions in most common cases.
3250 * Reimplement version functions to use a single function in libxapian which
3251 returns a pointer to a static const struct containing the version
3252 information, with inline wrappers in the API header which call this. This
3253 means we only need one relocation instead of 4, reducing library load time a
3256 * Make TermGenerator flags an anonymous enum, and typedef TermGenerator::flags
3257 to int for backward compatibility with existing user code which uses it.
3259 * Stem: Fix incorrect Unicode codepoints for o-double-acute and u-double-acute
3260 in the Hungarian Snowball stemmer. Reported by Tom Lane to snowball-discuss.
3262 * Stem: Add an early english stemmer.
3264 * Provide the stopword lists from Snowball plus an Arabic one, installed in
3265 ${prefix}/share/xapian-core/stopwords/. Patch from Assem Chelli, fixes #269.
3267 * Improve check for direct inclusion of Xapian subheaders in user code to
3270 * Add simple API to help with creating language-idiomatic iterator wrappers
3271 in <xapian/iterator.h>.
3275 * Extend checkstatsweight1 to check that Weight::get_collection_freq() returns
3276 the same number as Database::get_collection_freq().
3278 * queryparsertest: Add testcase for FieldProcessor on boolean prefix with
3281 * queryparsertest: Enable some disabled cases which actually work (in some
3282 cases with slightly tweaked expected answers which are equivalent to those
3285 * Make use of the new writable multidatabase feature to simplify the
3286 multi-database handling in the test harness.
3288 * Change querypairwise1_helper to repeat the query build 100 times, as with a
3289 fast modern machine we were sometimes trying with so many subqueries that we
3290 would run out of stack.
3292 * apitest: Use Xapian::Database::check() in cursordelbug1. (partly addresses
3295 * apitest: Test Query ops with a single MatchAll subquery.
3297 * apitest: New testcase readonlyparentdir1 to ensure that commit works with a
3298 read-only parent directory.
3302 * Streamline collation of statistics for use by weighting schemes - tests show
3303 a 2% or so increase in speed in some cases.
3305 * If a term matches all documents and its weight doesn't depend on its wdf, we
3306 can optimise it to MatchAll (the previous requirement that maxpart == 0 was
3307 unnecessarily strict).
3309 * Fix the check for a term which matches all documents to use the sub-db
3310 termfreq, not the combined db termfreq.
3312 * When we optimise a postlist for a term which matches all documents to use
3313 MatchAll, we still need to set a weight object on it to get percentages
3314 calculated correctly.
3318 * 'brass' backend renamed to 'glass' - we decided to use names in ascending
3319 alphabetical order to make it easier to understand which backend is newest,
3320 and since 'flint' was used recently, we skipped over 'd', 'e' and 'f'.
3322 * Change positionlist keys to be ordered by term first rather than docid first,
3323 which helps phrase searching significantly. For more efficient indexing,
3324 positionlist changes are now batched up in memory and written out in key
3327 * Use a separate cursor for each position list - now we're ordering the
3328 position B-tree by term first, phrase matching would cause a single cursor
3329 to cycle between disparate areas of the B-tree and reread the same blocks
3332 * Reference count blocks in the btree cursor, so cursors can cheaply share
3333 blocks. This can significantly reduce the amount of memory used by cursors
3334 for queries which contain a lot of terms (e.g. wildcards which expand to a
3337 * Under glass, optimise the turning of a query into a postlist to reuse the
3338 cursor blocks which are the same as the previous term's postlist. This is
3339 particularly effective for a wildcard query which expands to a lot of terms.
3341 * Keep track of unused blocks in the Btrees using freelists rather than
3342 bitmaps. (fixes #40)
3344 * Eliminate the base files, and instead store the root block and freelist
3345 pointers in the "iamglass" file.
3347 * When compacting, sync all the tables together at the end.
3349 * In DB_DANGEROUS mode, update the version file in-place.
3351 * Only actually store the document data if it is non-empty. The table which
3352 holds the document data is now lazily created, so won't exist if you never
3353 set the document data.
3357 * Improve DBCHECK_FIX:
3359 + if fixing a whole database, we now take the revision from the first table
3360 we successfully look at, which should be correct in most cases, and is
3361 definitely better than trying to determine the revision of each broken
3362 table independently.
3364 + handle a zero-sized .DB file.
3366 + After we successfully regenerate baseA, remove any empty baseB file to
3367 prevent it causing problems. Tracked down with help from Phil Hands.
3371 * Bump remote protocol version to 38.0, due to extra statistics being tracked
3374 * Make Weight::Internal track if any max_part values are set, so we don't need
3375 to serialise them when they've not been set.
3379 * Fix conditional for enabling replication code - if chert is disabled but
3380 glass isn't, we should still enable it.
3382 * configure: Add hint for which package to install for rst2html
3386 * Don't build, ship or install PDF versions of the API docs by default, but
3387 provide an easy way for people to build it for themselves if they want it.
3389 * Convert equations in rst docs to use LaTeX via the math role and directive.
3391 * Actually ship, process and install geospatial.rst.
3393 * postingsource.rst: Use a modern class in postingsource example. (Noted by
3396 * Move the protocol docs for the remote and replication protocols into the net/
3399 * Remove the dir_contents files and all the machinery to handle them.
3401 * HACKING: Note we now use doxygen 1.8.8 for 1.3.x snapshots and releases.
3403 * HACKING: Now using libtool 2.4.3 to bootstrap snapshots and 1.3.x releases.
3405 * HACKING: Now using automake 1.14.1 to bootstrap snapshots and 1.3.x releases.
3407 * HACKING: Drop note about needing git-svn if you're using git - bootstrap now
3408 only uses git-svn if your Xapian tree was checked out using git-svn.
3410 * HACKING: Need sphinx-doc to generate API docs for Python and Python 3 bindings.
3412 * HACKING: Note that MacTeX seems to be the best option if using homebrew.
3416 * Don't pass an integer argument to log(), to avoid ambiguity errors with xlC
3417 and Sun's C++ compiler. (fixes #627)
3419 * Fix compilations issues with Sun's C++ compiler (mostly missing library
3422 * Implement RealTime::now() using clock_gettime() where it's available, since
3423 it can provide nanosecond resolution.
3425 * Implement RealTime::sleep() using nanosleep() where it's available, since it
3426 has a simpler API and a finer resolution than select().
3428 * Use lround() instead of round() in geospatial code, since we want the result
3429 as an int. GCC 4.4.3 seems to optimise to use lround() anyway, but other
3432 * Include <math.h> for lround()/round(). (fixes #628)
3434 * Drop code supporting Microsoft Windows 9x which reached EOL in 2006.
3436 * Under C++11, use unique_ptr for AutoPtr.
3438 * Stop using a reference where we may end up passing *NULL, as that's invalid.
3439 Thanks Nick Lewycky and ubsan for helping track this down.
3441 * In DLHWeight and DPHWeight, avoid dividing by zero when the collection size
3446 * Fix assertion failure when built with --enable-assertions. The behaviour
3447 when built without assertions happened to be correct.
3449 * Fix assertion in BitReader::decode(), and remove 'Assert(rd);' in two places
3450 where rd is no longer a pointer.
3452 Xapian-core 1.3.1 (2013-05-03):
3454 This release includes all changes from 1.2.10-1.2.15 which are relevant.
3458 * Give an compilation error if user code tries to include API headers other
3459 than xapian.h directly - these other headers are an internal implementation
3460 detail, but experience has shown that some people try to include them
3461 directly. Please just use '#include <xapian.h>' instead.
3463 * Update Unicode character database to Unicode 6.2.0.
3465 * Add FieldProcessor class (ticket#128) - currently marked as an experimental
3466 API while we sort out how best to sort out exactly how it interacts with
3467 other QueryParser features.
3469 * Add implementation of several TF-IDF weighting schemes via a new TfIdfWeight
3472 * Add ExpandDeciderFilterPrefix class which only return terms with a particular
3473 prefix. (fixes #467)
3475 * QueryParser: Adjust handling of Unicode opening/closing double quotes - if a
3476 quoted boolean term was started with ASCII double quote, then only ASCII
3477 double quote can end it, as otherwise it's impossible to quote a term
3478 containing Unicode double quotes.
3480 * Database::check(): If the database can't be opened, don't emit a bogus
3481 warning about there being too many documents to cross-check doclens.
3483 * TradWeight,BM25Weight: Throw SerialisationError instead of NetworkError if
3484 unserialise() fails.
3486 * QueryParser: Change the default stemming strategy to STEM_SOME, to eliminate
3487 the API gotcha that setting a stemmer is ignored until you also set a
3490 * Deprecate Xapian::ErrorHandler. (ticket#3)
3492 * Stem: Generate a compact and efficient table to decode language names. This
3493 is both faster and smaller than the approach we were using, with the added
3494 benefit that the table is auto-generated.
3498 + Add check for Qt headers being included before us and defining
3499 'slots' as a macro - if they are, give a clear error advising how to work
3500 around this (previously compilation would fail with a confusing error).
3502 + Add a similar check for Wt headers which also define 'slots' as a macro
3507 * tests/generate-api_generated: Test that the string returned by a
3508 get_description() method isn't empty.
3510 * Use git commit hash in title of test coverage reports generated from a git
3515 * Drop MatchNothing subqueries in OR-like situations in add_subquery() rather
3516 than adding them and then handling it later.
3518 * Handle the left side of AND_NOT and AND_MAYBE being MatchNothing in
3519 add_subquery() rather than in done().
3521 * Handle QueryAndLike with a MatchNothing subquery in add_subquery() rather
3524 * Query: Multi-way operators now store their subquery pointers in a custom
3525 class rather than std::vector<Xapian::Query>. The custom class take the
3526 same amount of space, or often less. It's particularly efficient when
3527 there are two subqueries, which is very desirable as we no longer flatten a
3528 subtree of the same operator as we build the query.
3530 * Optimise an unweighted query term which matches all the documents in a
3531 subdatabase to use the "MatchAll" postlist. (ticket#387)
3535 * Iterating positional data now decodes it lazily, which should speed up
3536 phrases which include common words.
3538 * Compress changesets in brass replication. Increments the changeset version.
3541 * Restore two missing lines in database checking where we report a block with
3544 * When checking if a block was newly allocated in this revision, just look
3545 at its revision number rather than consulting the base file's bitmap.
3549 * Iterating positional data now decodes it lazily, which should speed up
3550 phrases which include common words.
3554 * Prefix compress list of terms and metadata keys in the remote protocol.
3555 This requires a remote protocol major version bump.
3559 * Fix the 'libxapian' to be 'libxapian-1.3' and 'xapian.m4' to be
3560 'xapian-1.3.m4' (this was supposed to be the case for 1.3.0, but the
3561 change wasn't made correctly).
3563 * Remove support for 'configure --enable-quiet', 'make QUIET=' and 'make
3564 QUIET=y' - automake now supports 'configure --enable-silent-rules', 'make
3565 V=1' and 'make V=0' which are broadly equivalent and more standard.
3567 * configure: If we fail to find a function needed for the remote backend, don't
3568 autodisable it - it's more helpful to error out so the use can decide if they
3569 want to pass --disable-backend-remote to disable it, or work out what values
3570 to pass for LIBS, etc to make it work. This also matches what we do for the
3571 disk based backends.
3573 * automake 1.13.1 is now used to generate snapshots and releases.
3575 * Add check-syntax make target to support editor syntax checks.
3577 * Fix to build when configured with --disable-backend-brass
3578 --disable-backend-chert. (ticket#586)
3580 * Generate a check for compatible _DEBUG settings if built with MSVC.
3583 * If you run "make coverage-check" by hand, the previous default of compressed
3584 HTML is unhelpful, so don't default to passing --html-gzip to genhtml, but
3585 instead add support for GENHTML_ARGS.
3587 * API methods and functions are now marked as 'const', 'pure', or 'nothrow'
3588 allowing compilers which support such annotations to generate more efficient
3589 code. (tickets #151, #454)
3593 * HACKING: Note which MacPorts are needed for development work.
3595 * docs/remote_protocol.rst: Correct error in documentation of REPLY_DOCDATA
3600 * xapian-check: Add "fix" option, which currently will regenerate iamchert if
3601 it isn't valid, and will regenerate base files from the .DB files (only
3602 really tested on databases which have just been compacted).
3606 * Fix warning with GCC in build with assertions enabled.
3608 * common/fileutils.cc: Add safeunistd.h for mkdir, required by GCC 4.7
3609 (reported by Gaurav Arora).
3611 * backends/brass/brass_databasereplicator.cc: Use new/delete to avoid variable
3612 length array gcc extension and comply with c++98
3614 * Mark file descriptors as close-on-exec where supported.
3616 * api/queryinternal.cc: Need <functional> for mem_fun().
3618 * Work around Apple's OS X SDK defining a check() macro.
3620 * Add an option to use a flock() based locking implementation for brass and
3621 chert - this is much simpler than using fcntl() due to saner semantics around
3622 releasing locks when closing other descriptors on the same file (at least on
3623 platforms where flock() isn't just a compatibility wrapper around fcntl()).
3624 Sadly we can't simply switch to this without breaking locking compatibility
3625 with previous releases, but it's useful for platforms without fcntl()
3626 locking (it's enabled for DJGPP) and may be useful for custom builds for
3631 * xapian-core.spec: Remove xapian-chert-update.
3635 * Building with --enable-log works once again.
3637 Xapian-core 1.3.0 (2012-03-14):
3641 * Update Unicode character database to Unicode 6.1.0. (ticket#497)
3643 * TermIterator returned by Enquire::get_matching_terms_begin(),
3644 Query::get_terms_begin(), Database::synonyms_begin(),
3645 QueryParser::stoplist_begin(), and QueryParser::unstem_begin() now stores the
3646 list of terms to iterate much more compactly.
3650 + Allow Unicode curly double quote characters to start and/or end phrases.
3652 + The set_default_op() method will now reject operators which don't make
3653 sense to set. The operators which are allowed are now explicitly
3654 documented in the API docs.
3656 * Query: The internals have been completely reimplemented (ticket#280). The
3657 notable changes are:
3659 + Query objects are smaller and should be faster.
3661 + More readable format for Query::get_description().
3663 + More compact serialisation format for Query objects.
3665 + Query operators are no longer flattened as you build up a tree (but the
3666 query optimiser still combines groups of the same operator). This means
3667 that Query objects are truly immutable, and so we don't need to copy Query
3668 objects when composing them. This should also fix a few O(n*n) cases when
3669 building up an n-way query pair-wise. (ticket#273)
3671 + The Query optimiser can do a few extra optimisations.
3673 * There's now explicit support for geospatial search (this API is currently
3674 marked as experimental). (ticket#481)
3676 * There's now an API (currently experimental) for checking the integrity of
3677 databases (partly addresses ticket#238).
3679 * Database::reopen() now returns true if the database may have been reopened
3680 (previously it returned void). (ticket#548)
3682 * Deprecate Xapian::timeout in favour of POSIX type useconds_t.
3684 * Deprecate Xapian::percent and use int instead in the API and our own code.
3686 * Deprecate Xapian::weight typedef in favour of just using double and change
3687 all uses in the API and our own code. (ticket#560)
3689 * Rearrange members of Xapian::Error to reduce its size (from 48 to 40 bytes on
3692 * Assignment operators for PositionIterator and TermIterator now return *this
3695 * PositionIterator, PostingIterator, TermIterator and ValueIterator now
3696 handle their reference counts in hand-crafted code rather than using
3697 intrusive_ptr/RefCntPtr, which means the compiler can inline the destructor
3698 and default constructor, so a comparison to an end iterator should now
3699 optimise to a simple NULL pointer check, but without the issues which the
3700 ValueIteratorEnd_ proxy class approach had (such as not working in templates
3701 or some cases of overload resolution).
3705 + Previously, Enquire::get_matching_terms_begin() threw InvalidArgumentError
3706 if the query was empty. Now we just return an end iterator, which is more
3707 consistent with how empty queries behave elsewhere.
3709 + Remove the deprecated old-style match spy approach of using a MatchDecider.
3711 * Remove deprecated Sorter class and MultiValueSorter subclass.
3715 + Add stemmers for Armenian (hy), Basque (eu), and Catalan (ca).
3717 + Stem::operator= now returns a reference to the assigned-to object.
3721 * Make unittest use the test harness, so it gets all the valgrind and fd leak
3722 checks, and other handy features all the other tests have.
3724 * Improve test coverage in several places.
3726 * Compress generated HTML files in coverage report.
3730 * Remove flint backend.
3734 * When propagating exceptions from a remote backend server, the protocol now
3735 sends a numeric code to represent which exception is being propagated, rather
3736 than the name of the type, as a number can be turned back into an exception
3737 with a simple switch statement and is also less data to transfer.
3740 * Remote protocol (these changes require a protocol major version bump):
3742 + Unify REPLY_GREETING and REPLY_UPDATE.
3744 + Send (last_docid - doccount) instead of last_docid and (doclen_ubound -
3745 doclen_lbound) instead of doclen_ubound.
3747 * Remove special check which gives a more helpful error message when a modern
3748 client is used against a remote server running Xapian <= 0.9.6.
3752 * Various changes allow us to now remove XAPIAN_VISIBILITY_DEFAULT from a
3753 number of functions which aren't in the public API (partly addresses
3756 * configure: For this development series, the library gets a -1.3 suffix and
3757 include files are installed with an extra /xapian-1.3 component to make
3758 parallel installs easier.
3760 * configure: Enable -fshow-column for GCC - things like vim's quickfix mode
3761 will then jump to the appropriate column for a compiler error or warning, not
3762 just the appropriate line.
3764 * Snowball compiler now reports "FILE:LINE:" before each error so tools like
3765 vim's quickfix mode can parse this and bring up the line with the error
3768 * docs/doxygen_api.conf.in: Don't generate XML from doxygen for the bindings -
3769 the bindings now do this for themselves. (ticket#262)
3773 * INSTALL: Update GCC details - we now recommend 4.3 or newer (was 4.1), and
3774 note that while 3.1 is the hard minimum requirement, the oldest we've tested
3775 with at all recently was 3.3.
3777 * docs/deprecation.rst: Updated.
3783 + Move delve from examples to bin and rename to xapian-delve.
3785 + Send errors to stderr not stdout.
3787 * xapian-check: Now reports useful descriptions rather than cryptic numeric
3788 codes for B-tree errors.
3792 * Add assertions that the index is in range when dereferencing MSetIterator and
3795 * Fix various errors in debug logging statements.
3797 * Add QUERY category for debug logging.
3799 Xapian-core 1.2.23 (2016-03-28):
3803 * PostingSource: Public member variables are now wrapped by methods (mostly
3804 getters and/or setters, depending on whether they should be readable,
3805 writable or both). In 1.3.5, the public members variables have been
3806 deprecated - we've added the replacement methods in 1.2.23 as well to make
3807 it easier for people to migrate over.
3811 * xapian-check now performs additional consistency checks for chert. Reported
3812 by Jean-Francois Dockes and Bob Cargill via xapian-discuss.
3816 * Update links to Xapian website and trac to use https, which is now supported,
3817 thanks to James Aylett.
3821 * On older Linux kernels, rename() of a file within a directory on NFS can
3822 sometimes erroneously fail with EXDEV. This should only happen if you
3823 try to rename a file across filing systems, so workaround this issue by
3824 retrying up to 5 times on EXDEV (which should be plenty to avoid this
3825 bug, and we don't want to risk looping forever). Fixes #698, reported by
3828 Xapian-core 1.2.22 (2015-12-29):
3832 * Add FLAG_CJK_NGRAM for QueryParser and TermGenerator. Has the same effect as
3833 setting the environment variable XAPIAN_CJK_NGRAM. Fixes #180, reported by
3834 Richard Boulton, with contributions from Pavel Strashkin, Mikkel Kamstrup
3835 Erlandsen and Brandon Schaefer.
3837 * Fix bug parsing multiple non-exclusive filter terms - previously this could
3838 result in such filters effectively being ignored.
3840 * Fix Database::get_doclength_lower_bound() over multiple databases when some
3841 are empty or consist only of zero-length documents. Previously this would
3842 report a lower bound of zero, now it reports the same lowest bound as a
3843 single database containing all the same documents.
3845 * Make Database::get_wdf_upper_bound("") return 0.
3847 * Mark constructors taking a single argument as "explicit" to avoid unwanted
3848 implicit conversions.
3852 * If command line option --verbose/-v isn't specified, set the verbosity level
3853 from environmental variable VERBOSE.
3855 * Skip timed tests if $AUTOMATED_TESTING is set. Fixes #553, reported by
3858 * Don't leave an extra fd open when starting xapian-tcpsrv for remotetcp tests.
3860 * apitest: Revert disabling of part of adddoc5 for clang - the test failure was
3861 in fact due to a bug in 1.3.x, and 1.2.x was never affected.
3863 * apitest: Tweak bounds checks in dbstats1 testcase - multi backends should
3868 * Format limit on docid now correctly imposed when sizeof(int) > 4.
3870 * Avoid potential DB corruption with full-compaction when using 64K blocks.
3874 * Format limit on docid now correctly imposed when sizeof(int) > 4.
3876 * Avoid potential DB corruption with full-compaction when using 64K blocks.
3880 * Format limit on docid now correctly imposed when sizeof(int) > 4.
3882 * Avoid potential DB corruption with full-compaction when using 64K blocks.
3886 * Fix to handle total document length exceeding 34,359,738,368. (Fixes #678,
3889 * Avoid dividing by zero when getting the average length for an empty database.
3891 * Stop apparent error from remote server when read-only client disconnects. A
3892 read-only client just closes the connection when done, but the server
3893 previously reported "Got exception NetworkError: Received EOF", which sounds
3894 like there was a problem. Now we just say "Connection closed" here, and
3895 "Connection closed unexpectedly" if the client connects in the middle of an
3896 exchange. Possibly fixes #654, reported by Germán M. Bravo.
3898 * Give a clearer error message when the client and server remote protocol
3899 versions aren't compatible.
3901 * Check length of key in MSG_SETMETADATA.
3905 * pkg-config: Fix library name in .pc file to say "xapian" not "xapian-core".
3906 Reported by Eric Lindblad to the xapian-devel list.
3908 * Private symbol decode_length() is no longer visible outside the library.
3912 * Stop maintaining ChangeLog files. They make merging patches harder, and stop
3913 'git cherry-pick' from working as it should. The git repo history should be
3914 sufficient for complying with GPLv2 2(a).
3916 * Strip out "quickstart" examples which are out of date and rather redundant
3917 with the "simple" examples.
3919 * Correct documentation of Enquire::get_query(). If no query has been set,
3920 the documentation said Xapian::InvalidArgumentError was thrown, but in
3921 fact we just return a default initialised Query object (i.e. Query()). This
3922 seems reasonable behaviour and has been the case since Xapian 0.9.0.
3924 * Document xapian-compact --blocksize takes an argument.
3926 * Update snowball website link to snowballstem.org.
3930 * xapian-replicate: Fix replication for files > 4GB on 32-bit platforms.
3931 Previously replication would fail to copy a file whose size didn't fit in
3932 size_t. Fixes #685, reported by Josh Elsasser.
3934 * xapian-tcpsrv: Better error if -p/--port not specified
3936 * quest: Support `-f cjk_ngram`.
3940 * xapian-metadata: Extend "list" subcommand to take optional key prefix.
3944 * Fix new warnings from recent versions of GCC and clang.
3946 * Add spaces between literal strings and macros which expand to literal strings
3947 for C++11 compatibility in __WIN32__-specific code.
3949 * Need <unistd.h> for unlink() on FreeBSD, reported by Germán M. Bravo via
3952 * Fix testsuite to build when S_ISSOCK() isn't defined.
3954 * Don't provide our own implementation of sleep() under __WIN32__ if there
3955 already is one - mingw provides one, and in some situations it seems to clash
3956 with ours. Reported to xapian-discuss by John Alveris.
3958 * Add missing '#include <arpa/inet.h>' to htons(). Seems to be implicitly
3959 included on most platforms, but Interix needs it. Reported by Eric Lindblad
3962 * Disable "<FUNCTION> is expected to return a value" warning from Sun's C++
3963 compiler, as it fires for functions ending in a "throw" statement. Genuine
3964 instances will be caught by compilers with superior warning machinery.
3966 * Prefer scalbn() to ldexp() where possible, since the former doesn't ever set
3969 * '#include <config.h>' in the "simple" examples, as when compiling with xlC on
3970 AIX, _LARGE_FILES gets defined by AC_SYS_LARGEFILE to enable large file
3971 support, and defining this changes the ABI of std::string, so it also needs
3972 to be defined when compiling code using Xapian.
3974 * On cygwin, include <arpa/inet.h> instead of winsock headers for htons() and
3977 * Include <cygwin/version.h> for CYGWIN_VERSION_API_MAJOR.
3979 * Avoid referencing static members via an object in that object's own
3980 definition, as this doesn't work with all compilers (noted with GCC 3.3), and
3981 is a bit of an odd construct anyway. Reported by Eric Lindblad on
3984 * GCC < 3.4.2 lacks operator<< overloads for unsigned long long on some
3985 platforms, so simply work around this by using str(), as this isn't
3986 performance sensitive code. Reported by Eric Lindblad on xapian-discuss.
3988 * Fix delete which should be delete[] in brass backend cursor code.
3990 Xapian-core 1.2.21 (2015-05-20):
3994 * QueryParser: Extend the set of characters allowed in the start of a range to
3995 be anything except for '(' and characters <= ' '. This better matches what's
3996 accepted for a range end (anything except for ')' and characters <= ' ').
3997 Reported by Jani Nikula.
4001 * Reimplement OP_PHRASE for non-exact phrases. The previous implementation was
4002 buggy, giving both false positives and false negatives in rare cases when
4003 three or more terms were involved. Fixes #653, reported by Jean-Francois
4006 * Reimplement OP_NEAR - the new implementation consistently requires the terms
4007 to occur at different positions, and fixes some previously missed matches.
4009 * Fix a reversed check for picking the shorter position list for an exact
4010 phrase of two terms. The difference this makes isn't dramatic, but can be
4011 measured (at least with cachegrind). Thanks to kbwt for spotting this.
4013 * When matching an exact phrase, if a term doesn't occur where we want, use
4014 its actual position to advance the anchor term, rather than just checking
4015 the next position of the anchor term.
4019 * Fix cursor versioning to consider cancel() and reopen() as events where
4020 the cursor version may need incrementing, and flag the current cursor version
4021 as used when a cursor is rebuilt. Fixes #675, reported by Germán M. Bravo.
4023 * Avoid using file descriptions < 3 for writable database tables, as it risks
4024 corruption if some code in the same process tries to write to stdout or
4025 stderr without realising it is closed. (Partly addresses #651)
4029 * Fix cursor versioning to consider cancel() and reopen() as events where
4030 the cursor version may need incrementing, and flag the current cursor version
4031 as used when a cursor is rebuilt. Fixes #675, reported by Germán M. Bravo.
4033 * Avoid using file descriptions < 3 for writable database tables, as it risks
4034 corruption if some code in the same process tries to write to stdout or
4035 stderr without realising it is closed. (Partly addresses #651)
4039 * Fix cursor versioning to consider cancel() and reopen() as events where
4040 the cursor version may need incrementing, and flag the current cursor version
4041 as used when a cursor is rebuilt. Fixes #675, reported by Germán M. Bravo.
4045 * Fix sort by value when multiple databases are in use and one or more are
4046 remote. This change necessitated a minor version bump in the remote
4047 protocol. Fixes #674, reported by Dylan Griffith. If you are upgrading a
4048 live system which uses the remote backend, upgrade the servers before the
4053 * The compiler ABI check in the public API headers now issues a warning
4054 (instead of an error) for an ABI mismatch for ABI versions 2 and later
4055 (which means GCC >= 3.4). The changes in these ABI versions are bug fixes
4056 for corner cases, so there's a good chance of things working - e.g. building
4057 xapian-bindings with GCC 5.1 (which defaults to ABI version 8) against
4058 xapian-core built with GCC 4.9 (which defaults to ABI version 2) seems to
4059 work OK. A warning is still useful as a clue to what is going on if linking
4060 fails due to a missing symbol.
4062 * xapian-config,xapian-core.pc: When compiling with xlC on AIX, the reported
4063 --cxxflags/--cflags now include -D_LARGE_FILES=1 as this is defined for the
4064 library, and defining it changes the ABI of std::string with this compiler,
4065 so it must also be defined when building code using the Xapian API.
4067 * xapian-core.pc: Include --enable-runtime-pseudo-reloc in --libs output for
4068 mingw and cygwin, like xapian-config does.
4070 * xapian-core.pc: Fix include directory reported by `pkg-config --cflags`.
4071 This bug was harmless if xapian-core was installed to a directory which was
4072 on the default header search path (such as /usr/include).
4074 * xapian-config: Fix typo so cached result of test in is_uninstalled() is
4075 actually used on subsequent calls. Fixes #676, reported (with patch) by Ryan
4078 * configure: Changes in 1.2.19 broke the custom macro we use to probe for
4079 supported compiler flags such that the flags never got used. This release
4082 * configure: Set default value for AUTOM4TE before AC_OUTPUT so the default
4083 will actually get used. Only relevant when building in maintainer mode
4086 * soaktest: Link with libtool's '-no-install' or '-no-fast-install', like we
4087 already do for other test programs, which means that libtool doesn't need to
4088 generate shell script wrappers for them on most platforms.
4092 * API documentation: Minor wording tweaks and formatting improvements.
4094 * docs/deprecation.rst: Add deprecation of omindex --preserve-nonduplicates
4095 which happened in 1.2.4.
4097 * HACKING: Update URL.
4099 * HACKING: libtool 2.4.6 is now used for bootstrapping snapshots and releases.
4103 * xapian-compact: Make sure we open all the tables of input databases at the
4104 same revision. (Fixes #649)
4106 * xapian-metadata: Add 'list' subcommand to list all the metadata keys.
4108 * xapian-replicate: Fix connection timeout to be 10 seconds rather than 10000
4109 seconds (the incorrect timeout has been the case since 1.2.3).
4111 * xapian-replicate: Set SO_KEEPALIVE for xapian-replicate's connection to the
4112 master, and add command line option to allow setting socket-level timeouts
4113 (SO_RCVTIMEO and SO_SNDTIMEO) on platforms that support them. Fixes #546,
4116 * xapian-replicate-server: Avoid potentially reading uninitialised data if a
4117 changeset file is truncated.
4121 * Add spaces between literal strings and macros which expand to literal strings
4122 for C++11 compatibility.
4124 * ValueCountMatchSpy::top_values_begin(): Fix the comparison function not to
4125 return true for two equal elements, which manifests as incorrect sorting in
4126 some cases when using clang's libc++ (which recent OS X versions do).
4128 * apitest: The adddoc5 testcase fails under clang due to an exception handling
4129 bug, so just #ifdef out the problematic part of the testcase when building
4132 * Fix clang warnings on OS X. Reported by Germán M. Bravo.
4134 * Fix examples to build with IBM's xlC compiler on AIX - they were failing due
4135 to _LARGE_FILES being defined for the library build but not for the examples,
4136 and defining this changes the ABI of std::string with this compiler.
4138 * configure: Improve the probe for whether the test harness can use RTTI to
4139 work for IBM's xlC compiler (which defaults to not generating RTTI).
4141 * Fix to build with Sun's C++ compiler.
4143 * Use F_DUPFD where available to dup to a file descriptor which is >= 2, rather
4144 than calling dup() until we get one.
4146 * When unserialising a double, avoid reading one byte past the end of the
4147 serialised value. In practice this was harmless on most platforms, as
4148 dbl_max_mantissa is 255 for IEEE-754 format doubles, and at least GCC's
4149 std::string keeps the buffer nul-terminated. Reported by Germán M. Bravo in
4152 * When unserialising a double, add missing cast to unsigned char when we check
4153 if the value will fit in the double type. On machines with IEEE-754 doubles
4154 (which is most current platforms) this happened to work OK before. It would
4155 also have been fine on machines where char is unsigned by default.
4157 * Fix incorrect use of "delete" which should be "delete []". This is
4158 undefined behaviour in C++, though the type is POD, so in practice this
4159 probably worked OK on many platforms.
4163 * Fix some overly strict assertions in flint, which caused apitest's
4164 cursordelbug1 to fail with assertions on.
4166 Xapian-core 1.2.20 (2015-03-04):
4170 * After splitting a block, we always insert the new block in the parent right
4171 after the block it was split from - there's no need to binary chop.
4175 * Generate and install a file for pkg-config. (Fixes#540)
4177 * configure: Update link to cygwin FAQ in error message.
4181 * include/xapian/weight.h: Document the enum stat_flags values.
4183 * docs/postingsource.rst: Use a modern class in postingsource example. (Noted
4186 * docs/deprecation.rst,docs/replication.rst: Fix typos.
4188 * Update doxygen configuration files to avoid warnings about obsolete tags from
4189 newer doxygen versions.
4191 * HACKING: Update details of building Xapian packages.
4195 * xapian-check: For chert and brass, cross-check the position and postlist
4196 tables to detect positional data for non-existent documents.
4200 * When locking a database for writing, use F_OFD_SETLK where available, which
4201 avoids having to fork() a child process to hold the lock. This currently
4202 requires Linux kernel >= 3.15, but it has been submitted to POSIX so
4203 hopefully will be widely supported eventually. Thanks to Austin Clements for
4204 pointing out this now exists.
4206 * Fix detection of fdatasync(), which appears to have been broken practically
4207 forever - this means we've probably been using fsync() instead, which
4208 probably isn't a big additional overhead. Thanks to Vlad Shablinsky for
4209 helping with Mac OS X portability of this fix.
4211 * configure: Define MINGW_HAS_SECURE_API under mingw to get _putenv_s()
4212 declared in stdlib.h.
4214 * Use POSIX O_NONBLOCK in preference to O_NDELAY - the semantics of the latter
4215 differ between BSD and System V.
4217 * According to POSIX, strerror() may not be thread safe, so use alternative
4218 thread-safe ways to translate errno values where possible.
4220 * On Microsoft Windows, avoid defining EADDRINUSE, etc if they're already
4221 defined, and use WSAE* constants un-negated - they start from a high value
4222 so won't collide with E* constants.
4226 * Add more assertions to the chert backend code.
4228 Xapian-core 1.2.19 (2014-10-21):
4232 * Xapian::BM25Weight:
4234 + Improve BM25 upper bound in the case when our wdf upper bound > our
4235 document length lower bound. Thanks to Craig Macdonald for pointing out
4238 + Pre-multiply termweight by (param_k1 + 1) rather than doing it for
4239 every weighted term in every document considered.
4243 * Don't report apparent leaks of fds opened on /dev/urandom - at least on
4244 Linux, something in the C library seems to lazily open it, and the report of
4245 a possible leak followed by assurance that it's OK really is just noise we
4250 * Fix false matches reported for non-exact phrases in some cases. Fixes the
4251 reduced testcase in #657, reported by Jean-Francois Dockes.
4255 * Only full sync after writing the final base file (only affects Max OS X).
4259 * Only full sync after writing the final base file (only affects Max OS X).
4263 * Only full sync after writing the final base file (only affects Max OS X).
4267 * For Sun's C++ compiler, pass -library=Crun separately since libtool looks for
4268 " -library=stlport4 " (with the spaces). (fixes#650)
4270 * Remove .replicatmp (created by the test suite) upon "make clean".
4274 * include/xapian/compactor.h: Fix formatting of doxygen comment.
4276 * HACKING: freecode no longer accepts updates, so drop that item from the
4279 * docs/overview.rst: Add missing database path to example of using
4280 xapian-progsrv in a stub database file.
4284 * Suppress unused typedef warnings from debugging logging macros, which occur
4285 in functions which always exit via throwing an exception when compiling with
4286 recent versions of GCC or clang.
4288 * Fix debug logging code to compile with clang. (fixes #657, reported by
4293 * Add missing RETURN() markup for debug logging in a few places, highlighted by
4294 warnings from recent GCC.
4296 * Fix incorrect return types in debug logging annotations so that code compiles
4297 when configured with --enable-log.
4299 Xapian-core 1.2.18 (2014-06-22):
4303 * Document: Fix get_docid() to return the docid for the sub-database (as it
4304 is explicitly documented to) for Document objects passed to functors like
4305 KeyMaker during the match. (fixes#636, reported by Jeff Rand).
4307 * Document: Don't store the termname in OmDocumentTerm - we were only using it
4308 in get_description() output and an exception message. Speeds up indexing
4309 etext.txt using simpleindex by 0.4%, and should reduce memory usage a bit
4310 too. (Change inspired by comments from Vishesh Handa on xapian-devel).
4312 * Database: Iterating the values in a particular slot is now a bit more
4313 efficient for inmemory and remote backends (but still slow compared to
4314 flint, chert and brass).
4318 * apitest: Expand crashrecovery1 to check that the expected base files exist
4319 and ones which shouldn't exist don't.
4321 * queryparsertest: Fix testcase for empty wildcard followed by negation to
4322 enable FLAG_LOVEHATE so the negation is actually parsed. Fortunately the
4323 fixed testcase passes.
4327 * OP_SYNONYM: avoid fetching the doclength if the weighting scheme doesn't
4328 need it and the calculated wdf for the synonym is <= doclength_lower_bound
4329 for the current subdatabase. (fixes #360)
4333 * Releases are now bootstrapped with libtool 2.4.2 instead of 2.4, and with
4334 config.guess and config.sub updated to the latest versions.
4338 * Add an example of initializing SimpleStopper using a file listing stopwords.
4339 (Patch from Assem Chelli)
4341 * Improve the descriptions of the stem_strategy values in the API docs.
4342 (Reported by "oilap" on #xapian)
4344 * docs/sorting.rst: Fix incorrect parameter types in Xapian::Weight
4347 * docs/glossary.rst: Add definition of "collection frequency".
4351 + makeindex is now in Debian package texlive-binaries.
4353 + Replace a link to the outdated autotools "goat book" with a link to the
4354 "Portable Shell" chapter of the autoconf manual.
4356 * include/xapian/base.h: Remove very out of date comments talking about atomic
4357 assignment and locking - since 0.5.0 we've adopted a "user locks" policy.
4358 (Reported by Jean-Francois Dockes)
4364 + Add -A <prefix> option to list all terms with a particular prefix.
4366 + Send errors to stderr not stdout.
4368 + If -v is specified more than once, show even more info in some cases.
4369 (NEWS file claimed this was backported in 1.2.15, but it actually wasn't).
4373 + Add --default-op option.
4375 + Add --weight option to allow the weighting scheme to be specified.
4379 * Explicitly '#include <algorithm>' for std::max(), fixing build with VS2013.
4380 (Fixes#641, reported by "boomboo").
4382 * Fix testcase blocksize1 not to try to delete an open database, which isn't
4383 possible under Windows. (Fixes #643, reported by Chris Olds)
4385 * docs/quickstart.rst: Split --cxxflags and --libs for portability (noted by
4386 "Hurricane Tong" on xapian-devel).
4388 * Fix warnings with clang 5.0.
4392 * Add assertions that weighting scheme upper bounds aren't exceeded.
4394 Xapian-core 1.2.17 (2014-01-29):
4398 * Enquire::set_sort_by_relevance_then_value() and
4399 Enquire::set_sort_by_relevance_then_key(): Fix sense of reverse parameter.
4400 Reported by "boomboo" on IRC.
4402 * BM25Weight: Fix case where (k1 == 0 || b == 0) but k2 != 0. Reported by
4405 * Unicode::tolower(): Fix to give correct results for U+01C5, U+01C8, U+01CB,
4406 and U+01F2 (previously these were left unchanged).
4410 * Automatically probe for and hook in eatmydata to the testsuite using the
4411 wrapper script it now includes.
4413 * Fix apitest to build when brass, chert or flint are disabled.
4417 * Fix handling of invalid block sizes passed to Xapian::Brass::open() - the
4418 size gets fixed as documented, but the uncorrected size was passed to the
4419 base file (and abort() was called if 0 was passed).
4421 * Validate "dir_end" when reading a block. (fixes #592)
4425 * Fix handling of invalid block sizes passed to Xapian::Chert::open() - the
4426 size gets fixed as documented, but the uncorrected size was passed to the
4427 base file (and abort() was called if 0 was passed).
4429 * Validate "dir_end" when reading a block. (fixes #592)
4433 * Fix handling of invalid block sizes passed to Xapian::Flint::open() - the
4434 size gets fixed as documented, but the uncorrected size was passed to the
4435 base file (and abort() was called if 0 was passed).
4437 * Validate "dir_end" when reading a block. (fixes #592)
4441 * configure: Improve reporting of GCC version.
4443 * Use -no-fast-install on platforms where -no-install causes libtool to emit a
4446 * docs/Makefile.am: Fix handling of MAINTAINER_NO_DOCS.
4448 * Include UnicodeData.txt and the script to generate the unicode tables from
4453 * postingsource.rst: Clarify a couple of points (reported by "vHanda" on IRC).
4457 * Protect the ValueIterator::check() method against Mac OS X SDK headers
4458 which define a check() macro.
4460 * Fix warning from xlC compiler.
4462 * Avoid use of grep -e in configure, as /usr/bin/grep on Solaris doesn't
4465 * Fix check for flags which might be needed for ANSI mode for compilers called
4468 * configure: Improve handling of Sun's C++ compiler - trick libtool into not
4469 adding -library=Cstd, and prefer -library=stdcxx4 if supported. Explicitly
4470 add -library=Crun which seems to be required, even though the documentation
4473 Xapian-core 1.2.16 (2013-12-04):
4477 * PositionIterator,PostingIterator,TermIterator,ValueIterator: Don't segfault
4478 if skip_to() or check() is called on an iterator which is already at_end().
4479 Reported by David Bremner.
4481 * ValueCountMatchSpy: get_description() on a default-constructed
4482 ValueCountMatchSpy object no longer fails when xapian-core is built with
4485 * ValueCountMatchSpy: get_total() on a default-constructed ValueCountMatchSpy
4486 object now returns 0 rather than segfaulting.
4490 * If -v/--verbose is specified more than once to a test program, show the
4491 diagnostic output for passing tests as well as failing/skipped ones.
4493 * queryparsertest: Change qp_scale1 to time 5 repetitions of the large query to
4494 help average out variations.
4496 * queryparsertest: Add test coverage for explicit synonym of a term with a
4497 prefix (e.g. ~foo:search).
4499 * apitest: Remove code from registry* testcases which tries to test the
4500 consequences of throwing an exception from a destructor - it's complex to
4501 ensure we don't leak memory while doing this (it seems GCC doesn't release
4502 the object in this case, but clang does), and it's generally frowned upon,
4503 plus C++11 makes destructors noexcept by default.
4505 * Fix "make check" to actually removed cached databases first, as is
4510 * When moving a cursor on a read-only table, check if the block we want is in
4511 the internal cursor. We already do this for a writable table, as it is
4512 necessary for correctness, but it's a cheap check and may avoid asking the
4513 OS for a block we actually already have.
4515 * Correctly report the database as closed rather than 'Bad file descriptor'
4518 * Reuse a cursor for reading values from valuestreams rather than creating
4519 a new one each time. This can dramatically reduce the number of blocks
4520 redundantly reread when sorting by value. The rereads will generally get
4521 served from VM cache, but there's still an overhead to that.
4525 * When moving a cursor on a read-only table, check if the block we want is in
4526 the internal cursor. We already do this for a writable table, as it is
4527 necessary for correctness, but it's a cheap check and may avoid asking the
4528 OS for a block we actually already have.
4530 * Correctly report the database as closed rather than 'Bad file descriptor'
4533 * Reuse a cursor for reading values from valuestreams rather than creating
4534 a new one each time. This can dramatically reduce the number of blocks
4535 redundantly reread when sorting by value. The rereads will generally get
4536 served from VM cache, but there's still an overhead to that.
4540 * When moving a cursor on a read-only table, check if the block we want is in
4541 the internal cursor. We already do this for a writable table, as it is
4542 necessary for correctness, but it's a cheap check and may avoid asking the
4543 OS for a block we actually already have.
4545 * Correctly report the database as closed rather than 'Bad file descriptor'
4550 * Compress source tarballs with xz instead of gzip.
4552 * Split XAPIAN_LIBS out of XAPIAN_LDFLAGS so that -l flags for libraries
4553 configure detects are needed appear after -L flags specified by the user
4554 that may be needed to find such libraries. (fixes#626)
4556 * XO_LIB_XAPIAN now handles the user specifying a relative path in
4557 XAPIAN_CONFIG, e.g.: "./configure XAPIAN_CONFIG=../xapian-core/xapian-config"
4559 * Adjust XO_LIB_XAPIAN to strip _gitNNN suffix from snapshot versions.
4561 * configure: Handle git snapshot naming when calculating REVISION.
4563 * configure: Enable -fshow-column for GCC - things like vim's quickfix mode
4564 will then jump to the appropriate column for a compiler error or warning, not
4565 just the appropriate line.
4567 * configure: Report GCC version in configure output.
4571 * The API documentation shipped with the release is now generated with
4572 doxygen 1.8.5 instead of 1.5.9, which is most evident in the different
4573 HTML styling newer doxygen uses.
4575 * Document how Utf8Iterator handles invalid UTF-8 in API documentation.
4577 * Improve how descriptions of deprecated features appear in the API
4580 * docs/remote_protocol.rst: Correct error in documentation of REPLY_DOCDATA
4583 * docs/overview.rst: Correct documentation for how to specify "prog" remote
4584 databases in stub files.
4586 * Direct users to git in preference to SVN - we'll be switching entirely in
4591 * xapian-chert-update: Fix -b to work rather than always segfaulting (reported
4592 in https://bugs.debian.org/716484).
4594 * xapian-chert-update: The documented alias --blocksize for -b has never
4595 actually been supported, so just drop mentions of it from --help and the man
4600 + Fix chert database check that first docid in each doclength chunk is more
4601 than the last docid in the previous chunk - previously this didn't actually
4604 + Fix database check not to falsely report "position table: Junk after
4605 position data" whenever there are 7 unused bits (7 is OK, *more* than 7
4608 + Fix to report block numbers correctly for links within the B-tree.
4610 + If the METAINFO key is missing, only report it once per table.
4612 + Fix database consistency checking to always open all the tables at the same
4613 revision - not doing this could lead to false errors being reported after a
4614 commit interrupted by the process being killed or the machine crashing.
4615 Reported by Joey Hess in https://bugs.debian.org/724610
4619 * quest: Add --check-at-least option.
4623 * configure: clang doesn't support -Wstrict-null-sentinel or -Wlogical-op, so
4624 don't pass it these options.
4626 * Fix build errors and warnings with mingw.
4628 * Suppress "unused local typedef" warnings from GCC 4.8.
4630 * If the compiler supports C++11, use static_assert to implement
4633 * tests/zlib-vg.c: Fix two warnings when compiled with clang.
4635 * Fix failure when built with -D_GLIBCXX_DEBUG - we were modifying the top()
4636 element of a heap before calling pop(), such that the heap comparison
4637 operation (which is called when -D_GLIBCXX_DEBUG is on to verify the heap is
4638 valid) would read off the end of the data. In a normal build, this issue
4639 would likely never manifest.
4641 * configure: When generating ABI compatibility checks in xapian/version.h, pass
4642 $CXXFLAGS and $CPPFLAGS to $CXXCPP as they could contain options which affect
4643 the ABI (such as -fabi-version for GCC). (Fixes #622)
4645 * Microsoft GUIDs in binary form have reversed byte order in the first three
4646 components compared to standard UUIDs, so the same database would report a
4647 different UUID on Windows to on other platforms. We now swap the bytes to
4648 match the standard order. With this fix, the UUIDs of existing databases
4649 will appear to change on Windows (except in rare "palindronic" cases).
4651 * Fix a couple of issues to get Xapian to build and work on AIX.
4653 * common/safeuuid.h: Remove bogus take-address-of from uuid handling code for
4656 * Under cygwin, use cygwin_conv_path() if using a new enough cygwin version,
4657 rather than the now deprecated cygwin_conv_to_win32_path(). Reported by
4658 "Haroogan" on the xapian-devel mailing list.
4660 * common/safeuuid.h: Add missing '#include <cstdlib>' and qualify free with std.
4662 * Fix 'unused label' warning when chert backend is disabled.
4664 * xapian.h: Add check for Wt headers being included before us and defining
4665 'slots' as a macro - if they are, give a clear error advising how to work
4666 around this (previously compilation would fail with a confusing error).
4670 * Fix assertion failure for when an OrPostList decays to an AndPostList - the
4671 ordering of the subqueries by estimated termfreq may not be the same as it
4672 was when the OrPostList was constructed, as the subqueries may themselves
4673 have decayed. Reported by Michel Pelletier.
4675 * Fix -Wcast-qual warning from GCC 4.7 when configured with --enable-log.
4677 Xapian-core 1.2.15 (2013-04-16):
4681 * QueryParser/TermGenerator: Don't include CJK codepoints which are
4682 punctuation in N-grams.
4684 * TermGenerator: Fix bug where we failed to generate the first bigram
4685 from the second sequence of N-grammable CJK characters in a piece of text.
4689 * Call fdatasync()/fsync() when creating the "iambrass" file.
4693 * Call fdatasync()/fsync() when creating the "iamchert" file.
4697 * Call fdatasync()/fsync() when creating the "iamflint" file.
4701 * XO_LIB_XAPIAN now handles the user specifying XAPIAN_CONFIG without a path,
4702 for example: ./configure XAPIAN_CONFIG=xapian-config-1.3
4706 * delve: If -v is specified more than once, show even more info in some cases.
4710 * Fix warning due to needlessly casting away const-ness in debug logging.
4712 * Fix pointer truncation bug in lemon parser generator, which probably affects
4713 regenerating the query parser on WIN64.
4717 * Fix to build when configured with --enable-log.
4719 Xapian-core 1.2.14 (2013-03-14):
4723 * MSet::get_document(): Don't cache retrieved Document objects unless they
4724 were requested with fetch(). This avoids using a lot of memory when many
4725 MSet entries are retrieved. (Fixes #604)
4729 * apitest: Improved test coverage.
4733 * Check if a candidate document has at least the minimum weight needed
4734 before checking positional information, which speeds up slow phrase
4735 searches (partly addresses #394).
4739 * Fix multipass compaction not to damage document values, and to merge the
4740 database stats correctly. (fixes #615)
4744 * Fix multipass compaction not to damage document values, and to merge the
4745 database stats correctly. (fixes #615)
4749 * Fix multipass compaction bug. (fixes #615)
4755 + Fix handling of delays between replication events - the subtraction of the
4756 target time and the current time was reversed, so we wouldn't sleep when
4757 before the deadline, but would sleep after it for the amount we'd missed it
4760 + On Microsoft Windows, we no longer sleep for more than 43 years if the
4761 target time for a replication event had already passed. (Fixes #472)
4765 * matcher/queryoptimiser.cc: Need <functional> for mem_fun().
4767 * tests/harness/testsuite.cc: Don't provide explicit template types to
4768 make_pair - it isn't useful, and breaks with C++11. Fixes build error with
4771 * examples/quest.cc: Fix to build with Sun Studio 12 compiler. (ticket#611)
4773 Xapian-core 1.2.13 (2013-01-09):
4777 * TermGenerator: Add new method TermGenerator::set_max_word_length() to allow
4778 this limit to be adjusted by the user.
4780 * QueryParser: Implicitly close any unclosed brackets at the end of the query
4781 string. Patch from Sehaj Singh Kalra.
4783 * DateValueRangeProcessor: Add extra constructor overloaded form so that in
4784 DateValueRangeProcessor(1, "date:"), the const char * gets interpreted as
4785 std::string rather than bool.
4789 * apitest: Assorted test coverage improvements.
4791 * When reporting valgrind errors, skip any warnings before the error in the
4796 * Improved fix for #590 - count all matching LeafPostList objects with a Weight
4797 object rather than trying to prune at the MultiAndPostList level based on
4798 max_wt (if wdf is always zero for a term, BM25 gives max_wt of 0, which lead
4799 to us never counting that subquery.
4801 * Fix calculation of 0.0/0.0 in some cases. This then got used as a minimum
4802 weight, but it seems this gives -nan (at least on x86-64 Linux) so it may
4803 have been harmless in practice.
4805 * We no longer use the highest weighted MSet entry to calculate percentages, so
4806 remove code which finds it.
4810 * Close excess file handles before we get the fcntl lock, which avoids the
4811 lock being released again if one is open on the lock file. Notably this
4812 avoids a situation where multiple threads in the same process could succeed
4813 in locking a database concurrently.
4817 * Close excess file handles before we get the fcntl lock, which avoids the
4818 lock being released again if one is open on the lock file. Notably this
4819 avoids a situation where multiple threads in the same process could succeed
4820 in locking a database concurrently.
4824 * Close excess file handles before we get the fcntl lock, which avoids the
4825 lock being released again if one is open on the lock file. Notably this
4826 avoids a situation where multiple threads in the same process could succeed
4827 in locking a database concurrently.
4831 * Improve the UnimplementedError message for a MatchSpy subclass which doesn't
4832 implement name() so it's clearer that it is this particular subclass which
4833 can't be used remotely, rather than all MatchSpy objects.
4837 * The build system is now generated with automake 1.11.6 rather than 1.11.1,
4838 which fixes a security issue in "make distcheck" (not something users will
4839 usually run, but it seems worth addressing).
4841 * Use user-specified LIBS for configure tests, which is what you'd expect to
4842 happen, and provides a way for the user to tell configure where to find
4843 library functions which configure can't find for itself.
4845 * INCLUDES is now deprecated in automake, so use AM_CPPFLAGS instead.
4847 * Test coverage rules now assume lcov 1.10 which allows them to be simpler
4848 and not to require a patched version of lcov.
4852 * valueranges.html: Update documentation to reflect change in Xapian 1.1.2 -
4853 DateValueRangeProcessor and StringValueRangeProcessor now support a prefix or
4856 * Clarify that the "reverse" parameter of set_sort_by_relevance_then_value()
4857 and set_sort_by_relevance_then_key() only affects the ordering of the
4858 value/key part of the sort.
4860 * docs/quickstart.html: Fix seriously outdated statement that Xapian doesn't
4861 create the database directory - that changed in 0.7.2 (released 2003-07-11).
4863 * HACKING: Try to make it clearer we're looking for a dual-licence on submitted
4870 + Add a --full-copy option to force a full copy to be sent. (ticket#436)
4872 + Add --quiet option, and be a little more verbose by default.
4874 + Allow files > 32G to be be copied by replication.
4876 + Fix "if (fd > 0)" tests in some replication code to be "if (fd >= 0)".
4877 In practice this is unlikely to actually have caused problems since
4878 stdin is typically still open and using fd 0.
4880 + Simplify how we open the .DB file on the replication slave to just call
4881 open() once with O_CREAT, rather than once without, than stat() if that
4882 fails, and then again with O_CREAT|O_TRUNC if stat() doesn't show an
4883 ordinary file exists.
4889 + New --flags command line option to allow setting arbitrary QueryParser
4892 + Align option descriptions in --help output, and make the initial letter of
4893 such descriptions consistently lowercase.
4897 * Fix testsuite harness to compile with GCC 4.7.
4899 * On platforms with the F_MAXFD fcntl but without closefrom(), we were failing
4900 to close the highest numbered open fd in our closefrom() replacement.
4902 * Our closefrom() replacement on Linux now works around valgrind not hiding
4903 some extra fds it has open, but then complaining if we try to close them.
4905 + Pass O_BINARY when opening replication related files in some cases where we
4906 weren't before, which will probably help solve ticket #472.
4908 * configure: socketpair() needs -lnetwork on Haiku.
4910 * Micro-optimisation in Unicode handling - GCC doesn't currently optimise the
4911 arithmetic shift right idiom we use, but it documents that signed right shift
4912 does sign extension so we now just use a right shift for GCC.
4916 * Preserve errno over debug logging calls, so they can safely be added to code
4917 which expects errno not to change.
4919 Xapian-core 1.2.12 (2012-06-27):
4923 * 1.2.11 had its library version information incorrectly set. This resulted in
4924 the shared library having an incorrect SONAME - e.g. on Linux,
4925 libxapian.so.21 instead of libxapian.so.22. This release has been made to
4930 * AUTHORS: Add the GSoC students.
4932 Xapian-core 1.2.11 (2012-06-26):
4936 * Add new QueryParser::STEM_ALL_Z stemming strategy, which stems all terms and
4937 adds a Z prefix. (Patch from Sehaj Singh Kalra, fixes ticket#562)
4939 * Add TermGenerator::set_stemming_strategy() method, with strategies which
4940 correspond to those of QueryParser. Based on patch from Sehaj Singh Kalra,
4941 with some tweaks for adding term positions in more cases. (Fixes ticket#563)
4943 * Correct "BM25Weight" to "TradWeight" in exception message from TradWeight.
4945 * We were failing to call init() for user-defined Weight objects providing the
4946 term-independent weight. These now get called with init(0.0).
4948 * Xapian::Auto::open_stub() now throws a Xapian::DatabaseOpeningError exception
4949 if the stub file can't be opened. Previously we failed to check for this
4950 condition, which resulted in us treating the file as empty.
4954 * When the testsuite is using valgrind, we used to run remote servers under
4955 valgrind too (but with --tool=none) to get consistent behaviour as valgrind's
4956 emulation of x87 excess precision isn't exact. Now we only do this if x87 FP
4957 instructions are actually in use (which means x86 architecture and configure
4958 run with --disable-sse).
4960 * Make sure XAPIAN_MAX_CHANGESETS gets unset after replication testcases which
4961 set it, so further testcases don't waste time generating changesets.
4963 * Improved test coverage (including more tests for closed databases -
4968 * After closing the database, methods which try to use the termlist would throw
4969 FeatureUnavailableError with message "Database has no termlist", assuming
4970 that the termlist table not being open meant it wasn't present. Fix to check
4971 if the postlist_table is open to determine which case we're in.
4975 * After closing the database, methods which try to use the termlist would throw
4976 FeatureUnavailableError with message "Database has no termlist", assuming
4977 that the termlist table not being open meant it wasn't present. Fix to check
4978 if the postlist_table is open to determine which case we're in.
4982 * Check if the database is closed in metadata_keys_begin() for InMemory
4987 * xapian-config: Don't interpret a missing .la file as meaning that we only
4988 have static libraries.
4992 * Fix API documentation for Query constructors - both XOR and ELITE_SET can
4993 take any number of subqueries, not only exactly two.
4995 * Backport missing API documentation comments for operator++ and operator*
4996 methods or PositionIterator, PostingIterator and TermGenerator.
4998 * docs/replication.rst: Update documentation - since 1.2.5, the value of
4999 XAPIAN_MAX_CHANGESETS determines how many changesets we keep.
5001 * docs/admin_notes.rst: Correction - we don't "create a lock file", we "lock a
5004 * Fix API documentation for TradWeight constructor - "k1" should be "k".
5008 * configure: Overhaul handling of compilers which pretend to be GCC. Clang
5009 is now detected, and we only pass it warning flags it actually understands.
5010 And we now check for symbol visibility support with Intel's compiler.
5012 * configure: Solaris automatically pulls in library dependencies, so set
5013 link_all_deplibs_CXX=no there.
5015 * configure: We now check -Bsymbolic-functions for all compilers.
5017 * configure: Enable -Wdouble-promotion for GCC >= 4.6.
5019 * Pass -ldl last when compiling zlib-vg.so, as that seems to be needed on
5022 * Fix incorrect use of "delete" which should be "delete []". This is
5023 undefined behaviour in C++, though the type is POD, so in practice this
5024 probably worked OK on many platforms.
5026 * In BM25Weight when k1 or b is zero (not the default), we used to multiply
5027 an uninitialised double by zero, which is undefined behaviour, but in
5028 practice will often give zero, leading to the desired results.
5030 * xapian.h: Add check for Qt headers being included before us and defining
5031 'slots' as a macro - if they are, give a clear error advising how to work
5032 around this (previously compilation would fail with a confusing error).
5034 Xapian-core 1.2.10 (2012-05-09):
5038 * apitest: Extend tradweight1 to test that TradWeight(0) means that wdf and
5039 document length don't affect the weight of a term.
5041 * termgentest: Check that TermGenerator discards words > 64 bytes.
5045 * Don't count unweighted subqueries of MultiAndPostList in percentage
5046 calculations, as OP_FILTER maps to MultiAndPostList now. (ticket#590)
5050 * When compacting, if the output database is empty, don't write out a metainfo
5051 tag. Take care not to divide by zero when computing the percentage size
5056 * When compacting, if the output database is empty, don't write out a metainfo
5057 tag. Take care not to divide by zero when computing the percentage size
5062 * API documentation:
5064 + Note version when Database::close() was added.
5066 + Fix switched lower and upper in API documentation for Weight methods
5067 get_doclength_lower_bound() and get_doclength_upper_bound(). Correct
5068 maximum to minimum in get_doclength_lower_bound() comment and note that this
5069 excludes zero length documents. Fix "An lower" to "A lower".
5071 * docs/admin_notes.html: Mention that postlist and termlist tables also hold
5072 value info for chert. Mention that xapian-chert-update was removed in 1.3.0.
5073 Mention that you need to use copydatabase from 1.2.x to convert flint to
5076 * HACKING: Update section on patches to mention git (git diff and git
5077 format-patch), and using "-r" with normal diff, and also that ptardiff offers
5078 a nice way to diff against an unpacked tarball.
5082 * Fix use of AssertEq() on NULL, which doesn't compile, at least with recent
5085 Xapian-core 1.2.9 (2012-03-08):
5089 * QueryParser: Fix FLAG_AUTO_SYNONYMS not to enable auto multi-word synonyms
5090 too (but in a different way to trunk so as to not break the ABI).
5094 * Fix issue with running AND, OR and XOR queries against a database with no
5095 documents in it - this was leading to a divide by zero, which led to
5096 MSet::get_matches_estimated() reporting 2147483648 on i386.
5100 * Remove configure's --with-stlport and --with-stlport-compiler options, as
5101 they don't allow you to actually specify what you need to (at least to use
5102 the Debian STLport package), and instead document what to pass to configure
5103 to enable building with STLport (though it seems to no longer be actively
5104 maintained, and the debug mode (which is probably the most interesting
5105 feature now) doesn't seem to work on Debian stable).
5109 * Document that OP_ELITE_SET with non-term subqueries might pick subqueries
5110 which don't match anything. Closes ticket#49.
5112 * Document that you can define a static operator delete method in your subclass
5113 if deallocation needs to be handled specially. (Closes ticket#554)
5115 * Assorted minor documentation improvements.
5119 * Address new warnings from GCC 4.6.
5121 * Fix argument order when linking xapian-check to fix mingw build.
5124 * Add some missing explicit header includes to fix build with STLport.
5126 Xapian-core 1.2.8 (2011-12-13):
5130 * Add support to TermGenerator and QueryParser for indexing and searching CJK
5131 text using n-grams. Currently this is only enabled when the environmental
5132 variable XAPIAN_CJK_NGRAM is set to a non-empty value.
5136 * Add link from index page to apidoc.pdf.
5138 * quickstart.html: Correct link which was to quickstartsearch.cc.html but
5139 should be to quickstartindex.cc.html.
5141 * overview.html,quickstart.html: Fix several factual errors.
5143 * API documentation:
5145 + Improve documentation comments for several methods.
5147 + Add documentation for function parameters which didn't have it.
5149 + Remove bogus paragraph in WritableDatabase::replace_document()
5150 documentation comment which had been cut and pasted from delete_document()
5151 documentation comment. (Fixes ticket#579)
5153 + Explicitly document which value slot numbers are valid. (Fixes ticket#555)
5155 + Escape < and > in doxygen comments so "<foo>" doesn't get eaten by doxygen.
5159 + Some fixes for warnings when cross-compiling to mingw.
5161 * tests/soaktest/soaktest.cc: With Sun's compiler, random() and srandom()
5162 aren't in <cstdlib> so we need to use <stdlib.h> instead.
5164 Xapian-core 1.2.7 (2011-08-10):
5168 * Document objects now track whether any document positions have been modified
5169 so that replacing a modified document can completely skip considering
5170 updating positions if none have changed. Currently the flint, chert, and
5171 brass backends implement this optimisation. A common case this speeds up is
5172 adding and/or removing boolean filter terms to/from existing documents - for
5173 example this gives an 18% speedup for adding tags in notmuch.
5177 * Make sure that perftest isn't run with libeatmydata preloaded, as making
5178 fsync() a no-op makes performance tests rather bogus.
5182 * Remove unnecessary call to reopen() in the remote servers in a case where
5183 either we had just called it or we are using a writable database and so
5184 reopen() doesn't do anything.
5188 * configure: -Wshadow gives bogus warnings with 4.0 (at least on Mac OS X), so
5189 disable it for GCC < 4.1 (like the comments already said we did!)
5193 * Improve the documentation comment for Database::close(). (ticket#504)
5195 * Fix typo in documentation comment for Enquire constructor which reversed the
5196 intended sense (though the text was fairly obviously wrong before).
5198 * Improve documentation of QueryParser::add_boolean_prefix()'s exclusive
5199 parameter to talk about terms and prefixes rather than values and fields
5200 (which was confusing since "document value" has a particular meaning in
5203 * docs/facets.html: Expand descriptions for indexing and finding facets.
5204 Fix errors in example code.
5206 * docs/index.html: Add links to Omega and bindings documentation.
5208 * docs/remote_protocol.html: Fixed typo which reversed the intended sense.
5210 * xapian-check --help: Document that checking a whole database performs
5211 additional cross-checks between the tables.
5213 * docs/admin_notes.html: Add note about xapian-chert-update.
5215 * docs/deprecation.html: Note here that WritableDatabase::flush() is
5216 deprecated in favour of WritableDatabase::commit().
5220 * Fix -Wshadow warnings from GCC 4.6.
5222 * Fix warning from GCC 3.3.
5226 * Fix some problems with the templates used to implement output of parameters
5227 and return values in debug logging.
5229 Xapian-core 1.2.6 (2011-06-12):
5235 + Add new set_max_wildcard_expansion() method to allow limiting the number of
5236 terms a wildcard can expand to. (ticket#350)
5238 + If default_op is OP_NEAR or OP_PHRASE then disable stemming of the terms,
5239 since we don't index positional information for stemmed terms by default.
5241 * Spelling correction was failing to correctly handle words which had the same
5242 trigram in an even number of times.
5246 * We now actually include the soaktest code in the release tarballs.
5250 * Eliminate some vector copies when handling phrase subqueries in the query
5255 * Kill the child process which holds the lock with SIGKILL as that can't be
5256 ignored, whereas SIGHUP can be in some cases.
5260 * Kill the child process which holds the lock with SIGKILL as that can't be
5261 ignored, whereas SIGHUP can be in some cases.
5265 * Kill the child process which holds the lock with SIGKILL as that can't be
5266 ignored, whereas SIGHUP can be in some cases.
5270 * The HTML documentation is now maintained in reStructured Text format.
5272 * docs/queryparser.html: Document the precedence order of operators.
5274 * docs/scalability.html: Bring up-to-date.
5276 * docs/overview.html: Document "remote" in stub databases.
5278 * docs/postingsource.html: Add PostingSource example. (ticket#503)
5280 * include/xapian/database.h: Add @exception InvalidArgumentError for
5281 Database::get_document() (ticket#542).
5283 * Ship ChangeLog.0 in the tarball.
5285 * Assorted minor improvements.
5289 * examples/delve: Report has_positions().
5291 * examples/simpleindex: Add short description to usage message.
5295 * Fix to build for mingw.
5297 Xapian-core 1.2.5 (2011-04-04):
5301 * Enquire::get_eset() now accepts a min_wt argument to allow the minimum wanted
5302 weight to be specified. Default is 0, which gives the previous behaviour.
5304 * QueryParser: Handle NEAR/<offset> and ADJ/<offset> where offset isn't an
5305 integer the same way at the end of the query as in the middle.
5309 + Only keep $XAPIAN_MAX_CHANGESETS changeset files when generating a new one
5310 (previously this variable only controlled if we generated changesets or
5311 not). Closes ticket#278.
5313 + $XAPIAN_MAX_CHANGESETS is reread each time, rather than only when the
5316 + If you build Xapian with DANGEROUS mode enabled, changeset files now
5317 actually have the appropriate flag set (the reader will currently throw an
5318 exception, but that's better than quietly handling them incorrectly).
5322 * Compaction tests which generate stub files now close them before performing
5323 the actual compaction, to avoid issues on Microsoft Windows (ticket#525).
5325 * Improve test coverage.
5329 * Fix memory leak if an exception is thrown during the match.
5333 * Bumped format version number (we now store the oldest revision for which we
5334 might have a replication changeset).
5336 * Optimise not to read the bitmaps from the base files when opening a database
5337 for reading (cross-port of equivalent change to chert).
5339 * Optimise not to update doclength when it hasn't changed (cross-port of
5340 equivalent change to chert).
5342 * If we try to delete an old base file and it isn't there, just continue rather
5343 than throwing an exception. We wanted to get rid of it anyway, and it may be
5344 NFS issues telling us the wrong thing. In particular, DatabaseCorruptError
5345 was rather a pessimistic assessment.
5349 * Optimise not to read the bitmaps from the base files when opening a database
5352 * Optimise not to update doclength when it hasn't changed.
5354 * xapian-chert-update: Fix to handle larger databases, and databases which
5357 * If we try to delete an old base file and it isn't there, just continue rather
5358 than throwing an exception. We wanted to get rid of it anyway, and it may be
5359 NFS issues telling us the wrong thing. In particular, DatabaseCorruptError
5360 was rather a pessimistic assessment.
5364 * Optimise not to read the bitmaps from the base files when opening a database
5365 for reading (cross-port of equivalent change to chert).
5367 * Optimise not to update doclength when it hasn't changed (cross-port of
5368 equivalent change to chert).
5370 * If we try to delete an old base file and it isn't there, just continue rather
5371 than throwing an exception. We wanted to get rid of it anyway, and it may be
5372 NFS issues telling us the wrong thing. In particular, DatabaseCorruptError
5373 was rather a pessimistic assessment.
5377 * xapian-tcpsrv: If we can't bind to the specified port because it is a
5378 privileged one, exit with code 77 (EX_NOPERM) to make it easier to
5379 automatically handle failure when starting the server from a script.
5383 * Snapshots and releases are now bootstrapped with autoconf 2.68 and libtool
5386 * configure: -Wstrict-null-sentinel was added in GCC 4.0.1 and so doesn't work
5387 with GCC 4.0.0. For simplicity, only enable it for GCC >= 4.1.
5391 * INSTALL: Note how to build for a non-default arch on a multi-arch platform.
5393 * include/xapian/enquire.h: Fix doxygen markup so alternative overloaded forms
5394 of Enquire::get_mset() appear in the API documentation.
5396 * collapsing.html: Add missing document (written some time ago, but never
5397 actually added to builds).
5399 * replication.html: Update documentation to make it clear that users shouldn't
5400 create the destination directory for replication themselves.
5402 * docs/intro_ir.html: Update link to a paper. Update text about book "to be
5405 * docs/deprecation.html:
5407 + PostingSource now offers a replacement for Enquire::set_bias().
5409 + OmegaScript: $set{spelling,true} is now deprecated.
5411 + Add note about botched removal of Enquire.get_matching_terms from Python
5412 bindings (now fully removed).
5414 + Note removal of "if idx in mset" from Python bindings.
5416 + Deprecate MSet.items and ESet.items from Python bindings (ticket#531).
5418 * docs/admin_notes.html: Update for 1.2.5.
5420 * Updates to documentation of internals.
5424 * xapian-replicate-server: Fix race condition between checking if a file
5425 exists and opening it to replicate it.
5427 * xapian-replicate: Complain unless host name and port number are specified -
5428 previously these defaulted to an empty string and 0, which resulted in
5429 potentially confusing error messages.
5431 * xapian-replicate: If --master isn't specified, default to DATABASE.
5435 * quest: Report any spelling correction (requires the database contains
5436 spelling data of course).
5438 * copydatabase: Add --no-renumber option.
5442 * api/compactor.cc: Add missing header <ctime> for time() (ticket#530).
5444 * api/compactor.cc: Use msvc_posix_rename() under __WIN32__ to atomically
5445 update stub file after compaction (ticket#525).
5447 * Fix uninitialised variable warnings with gcc -O3.
5449 * Eliminate std::string member of global static object used when compiled with
5450 --enable-log which was causes problems on Mac OS X.
5452 * Fix some issues highlighted by clang++ warnings.
5454 Xapian-core 1.2.4 (2010-12-19):
5460 + Avoid a double free if Query construction throws an exception in a
5461 particular case. Fixes ticket#515.
5463 + Allow phrase generators between a probabilistic prefix and the term itself
5464 (e.g. path:/usr/local).
5466 + The correct window size wasn't being set in some cases when default_op was
5469 * Enquire::get_mset():
5471 + Avoid pointlessly trying to allocate lots of memory if the first document
5472 requested is larger than the size of the database.
5474 + An empty query now returns an MSet with firstitem set correctly -
5475 previously firstitem was always 0 in this case.
5477 * Document: Initialise docid to 0 when creating a document from
5478 scratch, as documented.
5482 + Move the database compaction and merging functionality into this new class,
5483 and make xapian-compact a simple wrapper around this class. (ticket#175)
5485 + Inputs can now be stub database directories or files, in which case the
5486 databases in the stub are used as inputs.
5488 + Add support for compacting to a stub database, which can be one of the
5489 inputs (for atomic update).
5491 + If spellings and/or synonyms were only present in some source databases,
5492 they weren't copied to the output database, but now they are.
5496 * Improve test coverage (particularly for Xapian::Utf8Iterator and
5499 * Add zlib-vg.c to distribution tarballs.
5501 * tests/runtest: Add XAPIAN_TESTSUITE_LD_PRELOAD hook to allow libeatmydata to
5502 easily be used to speed up testsuite runs.
5506 * The matcher wasn't recalculating the max possible weight after a subquery of
5507 XOR reached its end. This caused an assertion failure in debug builds, and
5508 is a missed optimisation opportunity.
5510 * Implement SelectPostList::check() so that check() on OP_NEAR and OP_PHRASE
5511 subqueries will just check a single document, not a potentially huge numbers
5514 * BM25Weight: Fix calculation order to avoid inconsistent weights due to
5515 rounding when certain non-default parameter combinations are used.
5517 * TradWeight: Fix calculation order to avoid inconsistent weights due to
5518 rounding with TradWeight(0).
5520 * Fix regression in speed of OP_OR queries in certain cases due to optimisation
5521 added in 1.0.21/1.2.1.
5523 * In the query optimiser, use value range bounds to detect value ranges which
5528 * Add support for iterating metadata keys with the remote backend. This change
5529 necessitated an increase in the minor version of the remote protocol. If you
5530 are upgrading a live system which uses the remote backend, upgrade the
5531 servers before the clients.
5535 * xapian-config: Add --static option which makes other options report values
5538 * xapian-config is now removed by "make distclean" not "make clean".
5540 * configure: FreeBSD and OpenBSD don't need explicit dependency libraries, so
5541 set link_all_deplibs_CXX=no there.
5543 * This release uses autoconf 2.67 rather than 2.65.
5547 * INSTALL: Raise recommended GCC version from 3.3 to 4.1, since that's the
5548 oldest we regularly test with.
5550 * replication.html: Update and improve in various ways.
5552 * Remove lingering "experimental" marker from PostingSource and
5553 ValueCountMatchSpy API documentation.
5555 * index.html: Add links to replication and facets documents, and fix typo in
5556 serialisation document link.
5558 * internals.html: Add link to replication protocol.
5560 * Change the categorisation document to talk about facets, since that's the
5561 terminology that seems to be most widely used these days, and
5562 "categorisation" can also mean automatically assigning categories to
5563 documents. Also update to reflect the final API.
5565 * deprecation.html: Add guidelines for supporting other software.
5567 * Document cases where QueryParser's FLAG_WILDCARD and FLAG_PARTIAL aren't
5568 currently supported.
5570 * PLATFORMS: Move PLATFORMS information to the wiki and replace with a pointer.
5574 * xapian-compact: Fix access to empty priority_queue while merging synonyms.
5575 This could have caused problems, though we've had no reports of any (the
5576 bug was found with _GLIBCXX_DEBUG).
5578 * xapian-compact: Add --quiet/-q option to suppress progress output.
5581 * xapian-replicate: If a full copy was attempted, but was not put live, display
5582 an explanatory message (in verbose mode).
5586 * examples/quest: Add command line options to allow prefixes to be specified
5587 for the QueryParser.
5589 * examples/delve: Add '-z' option to count zero-length documents.
5591 * examples/simplesearch: Fix cut-and-paste errors in usage message and
5596 * configure: Add support for --enable-sse=sse and --enable-sse=sse2 to allow
5597 control of which SSE instructions to use.
5599 * configure: Enable use of SSE maths on x86 by default with Sun's compiler.
5601 * configure: Beef up the test for whether -lm is required and add a special
5602 case to force it to be for Sun's C++ compiler - there's some interaction with
5603 libtool and/or shared objects which means that the previous configure test
5604 didn't think -lm is needed here when it is.
5606 * Fix to build on OpenBSD 4.5 with GCC 3.3.5.
5608 * Need to avoid excess precision on m68k when targeting models 68010, 68020,
5609 68030 as well as 68000.
5611 * Fix compilation with Sun's C++ compiler.
5613 * Fix testsuite to build on Solaris < 10.
5615 Xapian-core 1.2.3 (2010-08-24):
5619 * Database::get_spelling_suggestion() will now suggest a correction even if the
5620 passed word is in the dictionary, provided the correction has at least the
5621 same frequency. Partly addresses #225.
5625 + Fix handling of groups of terms which are all stopwords - in situations
5626 where this causes a problem we now disable stopword checks for such groups.
5629 + Fix to be smarter about handling a boolean filter term containing ".." in
5630 the presence of valuerangeprocessors.
5634 * New "unittest" program for testing low level functions directly. Currently
5635 this has tests for the internal resolve_relative_path() function.
5640 * Retry select() if it fails with EINTR while waiting for connect(), and
5641 discriminate cases with same failure message to aid debugging.
5645 * Fix documentation comment for Xapian::timeout type - it holds a time interval
5646 in milliseconds not microseconds (the API docs for the methods which use it
5647 explicitly correctly document that the timeouts are in milliseconds).
5649 * libuuid moved from e2fsprogs to util-linux-ng about a year ago, so update
5650 documentation, comments, and configure error messages to reflect this.
5654 * configure: Don't pass -mtune=generic unless GCC >= 4.2 is in use
5657 * Fix handling of some obscure cases of resolving relative paths on Microsoft
5658 Windows. (ticket#243).
5660 * Optimise closing of all unwanted file descriptors after forking by using
5661 closefrom() if available, and otherwise providing our own implementation
5662 (optimised to some extent for many platforms).
5664 * Fix test harness to build under Microsoft Windows (ticket#495).
5668 * xapian-core.spec: Add xapian-metadata and cmake related files to RPM
5671 * xapian-core.spec: Update BuildRequires to specify libuuid-devel instead of
5676 * Improve logging of function parameter placeholder strings.
5678 Xapian-core 1.2.2 (2010-06-27):
5682 * Sync changes from each Btree table to disk right after syncing changes to
5683 its base file, which allows more time for the table changes to be written
5684 and may also be more efficient with some Linux kernel versions.
5688 * Sync changes from each Btree table to disk right after syncing changes to
5689 its base file, which allows more time for the table changes to be written
5690 and may also be more efficient with some Linux kernel versions.
5694 * xapian-check: Don't try to check document lengths are consistent between the
5695 postlist and termlist tables if it would use more than 1GB of memory, and
5696 handle std::bad_alloc or std::length_error when trying to allocate space
5697 for this. This issue affected sup users, as sup allocates docids such that
5698 they are sparse and large docids can easily occur.
5702 * delve: Show the database's UUID.
5706 * Revert 1.2.1 change to visibility of Xapian::Weight's copy constructor as
5707 it making it private broke compilation with GCC 4.1 (which seems to be a
5708 bug in this compiler version).
5710 * tests/harness/testsuite.cc: Need <cstdio> for sprintf(). Fixes compilation
5711 error which was masked if valgrind was installed. (ticket#489)
5715 * xapian-core.spec: Update for 1.2.x - add e2fsprogs-devel to BuildRequires and
5716 add new files to install.
5718 Xapian-core 1.2.1 (2010-06-22):
5720 This release includes all changes from 1.0.21 which are relevant.
5724 * QueryParser: Add support for open-ended ranges (ticket#480).
5726 * Add new optional parameter to QueryParser::add_boolean_prefix() to allow the
5727 user to indicate a prefix isn't "exclusive" and that multiple instances
5728 should be combined with OP_AND rather than OP_OR. Fixes ticket#402. This
5729 change should also improve efficiency as it avoids copying the lists of
5730 prefixes and compares them more efficiently.
5732 * You can now specify a custom stemming algorithm by subclassing
5733 Xapian::StemImplementation, mostly based on patch from Evgeny Sizikov in
5736 * Fix replication bug: when multiple commits were made to the master database
5737 while a client was performing a full copy, the client would only apply the
5738 first changeset and then try to make the database live, but fail due to
5739 trying to set the wrong revision number.
5741 * Replication no longer sleeps between applying changesets to an offline
5742 database. It's only necessary to sleep for a live database (to allow readers
5743 to complete a search without getting DatabaseModifiedErrror.
5745 * xapian-replicate: Add new "-r" command line option to specify how long
5746 replication sleeps for between applying changesets to a live database.
5748 * If a Btree table doesn't exist when applying a replication changeset, create
5749 it. This fixes replicating a revision where a lazy table is created.
5754 * zlib can produce "uninitialised" output from "initialised" input - the
5755 output does decode to the input, so this is presumably just some unused bits
5756 in the output, so we use an LD_PRELOAD hack to get valgrind to check the
5757 input is initialised and then tell it that the output is initialised.
5759 * Don't pass NULL to closedir(), which fixes test harness failures on platforms
5760 without /proc/self/fd.
5762 * Use safesyswait.h, fixing build failure on "make check" on FreeBSD.
5764 * Check is SA_SIGINFO is defined before using it as it isn't available
5765 everywhere. Fixes testsuite build failure on GNU Hurd.
5767 * Add a "soaktest" testsuite, intended to contain long-running tests with
5768 random data. Currently contains a single test which builds and runs random
5769 queries, checking that the results returned are consistent when asking for
5770 different result ranges.
5772 * Test UUID returned by Database::get_uuid() is 36 characters long.
5776 * Xapian no longer forces the wdf_max value to be at least one in
5777 BM25Weight::get_maxpart(). We used to do this so that a non-existent term in
5778 the query would cause it not to achieve 100%, but now we calculate
5779 percentages based on the number of matching subqueries, and it is more
5780 natural for a non-existent term to get zero weight (ditto for a term which
5783 * OP_VALUE_RANGE and OP_VALUE_GE now use value streams directly which is much
5784 more efficient for chert (the default backend in 2.2.x). As an example, a
5785 range query testcase which previously took 29 seconds now takes 0.4 seconds
5786 (70 times faster). (ticket#432)
5788 * The term statistics from multiple databases are now gathered in a simpler
5789 way which is a bit faster and uses less memory.
5793 * Install headers under PREFIX/include not PREFIX/include/xapian. If you used
5794 XO_LIB_XAPIAN or xapian-config in your build system, the headers would still
5797 * Releases and snapshots are now generated with libtool 2.2.10 instead of
5800 * Fix build failures with some combinations of backends disabled (partially
5801 addresses ticket#361 - some combinations still fail).
5803 * Add check to configure that GCC actually supports visibility for the platform
5804 being built for, which fixes compiler warnings with platforms which don't
5805 (such as Mac OS X and mingw).
5809 * Update documentation - replication and PostingSource aren't experimental in
5814 * Make use of built-in UUID API on FreeBSD and NetBSD. (ticket#470)
5820 * Add new pretty printer for values reported by calls and returns in debug
5821 logging - in particular, strings are now reported with non-printable
5824 * Debug logging should have less runtime overhead when built in but not in use.
5826 * Drop support for --enable-log=profile - dedicated profiling tools are likely
5827 to return more useful results.
5829 Xapian-core 1.2.0 (2010-04-28):
5831 This release includes all changes from 1.0.20 which are relevant.
5835 * Fix --abort-on-error to actually work.
5837 * Exit with status 1 not 0 if we caught an exception from the harness itself.
5839 Xapian-core 1.1.5 (2010-04-16):
5841 This release includes all changes from 1.0.19 which are relevant.
5845 * Database replication now handles an exception while applying a changeset
5848 * If environment variable XAPIAN_MAX_CHANGESETS is set on a replication client
5849 then any changesets read are saved so the replicated copy can itself be
5854 * Use sigsetjmp() and siglongjmp() where available so that the set of blocked
5855 signals get restored and the test harness can catch a second incidence of a
5856 particular signal in a run. Use sigaction() instead of signal() where
5857 available, which allows us to report the address associated with SIGSEGV,
5858 SIGFPE, SIGILL, and SIGBUS.
5860 * Add machinery to check for leaked file descriptors. Currently this requires
5861 /proc/self/fd to work (which is present on Linux and some other platforms).
5862 Remove the crude ulimit in runtest which has caused problems on some Debian
5865 * The test harness now explicitly catches const char * exceptions and reports
5870 * Ensure that the wdf upper bound is correctly updated when replacing
5873 * xapian-compact: Now sets lastdocid correctly when using --no-renumber.
5877 * Ensure that the wdf upper bound is correctly updated when replacing
5880 * xapian-compact: Now sets lastdocid correctly when using --no-renumber.
5882 * xapian-check: Check that the initial doclen chunk exists.
5886 * xapian-compact: Now sets lastdocid correctly when using --no-renumber.
5890 * Add remote backend support for WritableDatabase::add_spelling() and
5891 WritableDatabase::remove_spelling(). This bumps the remote protocol to
5892 version 35.0 (so both client and servers will need updating). Suggesting
5893 spelling corrections isn't yet supported. (ticket#178)
5897 * XO_LIB_XAPIAN: Give a more specific error message for the cases where
5898 XAPIAN_CONFIG isn't found, is a directory, or isn't executable.
5904 + If any documents are specified with "-d<docid>", "-V<slot>" now only show
5905 values for those documents.
5907 + Remove undocumented -k option, which has been a compatibility alias for -V
5908 since 0.9.10. Just use -V instead.
5910 * xapian-metadata: Add new example program which allows you to get and set
5911 individual user metadata entries.
5913 Xapian-core 1.1.4 (2010-02-15):
5915 This release includes all changes from 1.0.18 which are relevant.
5919 * Xapian::TermGenerator,Xapian::QueryParser,Xapian::Unicode::is_wordchar():
5920 Add ENCLOSING_MARK and COMBINING_SPACING_MARK categories to is_wordchar(),
5921 which is used by TermGenerator and QueryParser. Also make TermGenerator and
5922 QueryParser ignore several zero-width space characters. This is a better
5923 but less compatible version of a fix in 1.0.18.
5925 * Implement support for iterating valuestreams for multidatabases.
5927 * Xapian::Stem: Update the german and german2 stemming algorithms to the latest
5928 versions from Snowball. These add an extra rule for the "-nisse" ending.
5930 * Xapian::ValueCountMatchSpy: Replace get_values() with values_begin() and
5933 * Xapian::MatchSpy: Provide an iterator for accessing the top values found
5934 instead of taking a vector by reference to return them in.
5936 * Xapian::NumericRanges: Remove experimental API we aren't happy with yet.
5938 * Xapian::DatabaseReplica, Xapian::DatabaseMaster: Remove experimental
5939 API we aren't happy with. Replication is still supported via the
5940 command line programs. (ticket#347)
5942 * Xapian::score_evenness(): Remove as it turns out not to be useful in practice.
5945 * Xapian::ValueWeightPostingSource: A ValueWeightPostingSource with no entries
5946 would report -infinity as its upper bound, which could cause no results to be
5947 incorrectly returned for some queries involving such an object.
5949 * Xapian::WritableDatabase::close() fixed to commit() changes (unless a
5950 transaction is in progress).
5954 * apitest: Improve test coverage in various places.
5958 * Uses of values during the match (sorting by value or Sorter, MatchSpy,
5959 MatchDecider, and collapsing) now use value stream iteration which is
5960 a lot more efficient for chert and brass (but may be slower for flint).
5964 * New development backend. Changes over chert:
5966 + Batched posting list changes during indexing use significantly less memory.
5968 + Instead of using complex code to iterate modified posting lists and
5969 documents length lists, brass can flush individual such lists to disk
5970 and then iterates them from there.
5972 + To iterate all terms, chert flushes all pending postlist changes. In the
5973 case where a prefix is specified, brass only flushes postlist changes for
5974 terms starting with the specified prefix, and doesn't flush document length
5979 * Promote chert to being the stable backend.
5981 * Change the packing of integers and strings into sortable keys, which reduces
5982 database size by 2.5% in tests. This means an incompatible change in the
5983 chert format. You can use the new xapian-chert-update utility to update a
5984 chert database from the old format to the new format. It works much like
5985 xapian-compact so should take a similar amount of time (and results in a
5990 + Prune unused docids off the end of each database when merging multiple
5991 databases with renumbering.
5993 + Extend --no-renumber to support merging databases, but only if they have
5994 disjoint ranges of used document ids.
5996 + Ensure that the resultant database has a fresh UUID (previously chert
5997 copied the UUID from the first input).
6001 + Fix checking of the METAINFO key in chert. For small databases, the
6002 statistics fit in few enough bytes that incorrect check appeared to
6003 succeed and no errors were reported, but for larger databases an
6004 error was incorrectly reported.
6006 + Rework the checking of postlist chunks to use a cleaner approach which
6007 should report errors better.
6009 + Use a type wider than 32 bits to keep count of items in a table.
6010 Previously xapian-check would report the number of entries modulo
6013 * When iterating a value stream, skip_to() now only assigns the value to a
6014 std::string when it reaches its target. This saves a lot of unnecessary
6015 string copying - in a real-world test it improved the time for 100 queries
6016 from 3.66s to 3.10s.
6018 * When skipping through a chunk of postings to find the one we want, don't
6019 bother to unpack the wdf values we're skipping over. This should save a
6020 significant amount of time in certain cases where the profile data shows
6021 about a third of the time is spent in the function where this happens.
6023 * Report locking failure due to running out of file descriptors better.
6029 + Prune unused docids off the end of each database when merging multiple
6030 databases with renumbering.
6032 + Ensure that the resultant database has a fresh UUID (previously flint
6033 didn't set a UUID so one would be generated on demand when next requested,
6034 but only if the database was writable).
6036 * Report locking failure due to running out of file descriptors better.
6040 * Add support for WritableDatabase::set_metadata() and Database::get_metadata()
6041 to the remote backend (based largely on patch in #178).
6045 * Read the document data and values lazily for the inmemory backend like we do
6046 for other backends. They're much less costly to fetch than if a disk or
6047 network access is involved, but it avoids copying potentially large data
6048 which may not be needed. Consistency here also makes things easier to
6049 understand for both users and developers.
6053 * This release uses autoconf 2.65 rather than 2.64.
6057 * docs/replication.html: Add note about not using reopen() with databases being
6058 updated by the replication client.
6060 * docs/admin_notes.html: Update for chert and other recent changes.
6062 * Remove out-of-date reference in the API documentation comment to an
6063 add_slot() method. This no longer exists - you need to use multiple
6064 ValueCountMatchSpy objects to monitor more than one slot.
6068 * simpleexpand,simpleindex,simplesearch: Handle --help and --version.
6072 * The debug log now reports boolean values as "true" and "false" (instead of
6075 Xapian-core 1.1.3 (2009-09-18):
6077 This release includes all changes from 1.0.15-1.0.17 which are relevant.
6081 * Update Unicode character database to Unicode 5.2. (ticket#351)
6083 * Rename Xapian::Sorter to Xapian::KeyMaker, paving the way for using it to
6084 build collapse keys too. Xapian::Sorter remains for compatibility (and is
6085 now a subclass of Xapian::KeyMaker) but is deprecated.
6087 * Resolve the inconsistency in MultiValueSorter::add()'s "forward" parameter
6088 versus the "reverse" parameters which the Enquire sorting functions now take
6089 by replacing the class with MultiKeyMaker with a renamed method add_value()
6090 with a "reverse" parameter. MultiValueSorter remains with the old semantics
6091 for compatibility but is deprecated. (ticket#359)
6093 * QueryParser: Don't apply spelling correction to wildcarded terms, or to terms
6094 at the end of the query which we expand under FLAG_PARTIAL.
6096 * Add new Error subclass SerialisationError which we throw for serialisation
6097 related errors (which previously mostly threw NetworkError.
6099 * Rename Xapian::SerialisationContext to Xapian::Registry.
6101 * Add DecreasingValueWeightPostingSource class, which reads weights from a
6102 value slot in which a significant range of the values are in decreasing
6103 order. This functions similarly to ValueWeightPostingSource, but can be much
6106 * Add new Xapian::MatchSpy class:
6108 + This replaces the use of Xapian::MatchDecider as a "matchspy", which is now
6109 deprecated. The new class only inspects, and can't reject. It can work
6110 with remote databases, with the results being serialised to return them
6113 + Add subclass ValueCountMatchSpy, which counts the occurrences of each value
6114 in a slot in the search results seen (useful for faceted or categorisation
6115 systems). The results can be grouped into ranges using the NumericRange
6116 and NumericRanges classes, and the score_evenness() function. This API is
6117 currently experimental.
6119 * Remove default implementation of Weight::clone() which returns NULL. We
6120 always need clone() to be implemented because it's called for every term
6121 in the query, not just used for the remote backend.
6125 * Rewrite the low level packing and unpacking functions more efficiently. As
6126 well as being generally faster, the pack functions now take a reference to a
6127 string to append to, which avoids creating a lot of temporary string objects.
6128 Indexing HTML files with omindex is 5-10% faster. Searching for "The" on
6129 gmane (which results in a lot of unpacking of postings and document lengths)
6130 is about 35% faster. (ticket#326)
6132 * xapian-compact: Don't report an absent lazy input table as 0 size.
6134 * Fix ChertModifiedPostList to skip added-but-then-deleted-before-flush
6135 documents. (ticket#392)
6137 * Fix WritableDatabase::get_doclength() to work properly after a call to commit
6138 for the chert backend (ticket#397).
6140 * Fix to work with the metainfo key stored in the latest format of chert
6143 * Avoid doing pointless work by trying to delete non-existent lists of values
6144 when we're just adding documents.
6146 * Fix code to find the first docid in the next chunk (ticket#399).
6148 * Add support for chert databases without a termlist table (ticket#181).
6149 Currently the only way to create such a database is to create a chert
6150 database and do "rm termlist.*".
6154 * xapian-compact: Don't report an absent lazy input table as 0 size.
6158 * Remote protocol major version has changed to support serialising MatchSpy
6161 * Fixed not to sometimes read off the end of the returned matches when
6162 searching multiple databases, some of which are remote, and when the primary
6163 ordering is by relevance.
6167 * This release uses autoconf 2.64 rather than 2.63. This means configure now
6168 makes use of shell functions, which makes it ~13% smaller, and should also
6169 make it execute faster.
6171 * configure: Send stderr output from ldconfig to config.log.
6173 * Add optional third parameter to XO_LIB_XAPIAN autoconf macro which specifies
6174 the basename for the "xapian-config" script (defaults to "xapian-config" to
6175 give the current behaviour).
6177 * This release uses doxygen 1.5.9 to generate the API documentation.
6181 * Minor improvements to the formatting of the collated API documentation.
6185 * Fix code to compile with Sun's C++ compiler.
6187 * Fix our uuid_unparse_lower() replacement for older libuuid to actually
6188 compile (really fixes ticket#368).
6190 * Fix xapian-config to work with Solaris 10 /bin/sh. (ticket#405)
6194 * Use C++ syntax for NULL with a type in log output.
6196 Xapian-core 1.1.2 (2009-07-23):
6198 This release includes all changes from 1.0.14 which are relevant.
6202 * Move support for a prefix/suffix from NumberValueRangeProcessor to
6203 StringValueRangeProcessor, and change NumberValueRangeProcessor and
6204 DateValueRangeProcessor to inherit from StringValueRangeProcessor so all
6205 three now support a prefix/suffix. (ticket#220)
6207 * Query: Trim 4 bytes off the internals. (ticket#280)
6209 * QueryParser: If default_op is OP_NEAR or OP_PHRASE then make the window size
6210 (9 + no_of_terms) to match the default for an explicit NEAR or PHRASE.
6215 * Sort out the clash between two different patches to fix leaking file
6216 descriptors when running tests with the remotetcp backend (broken by
6221 * If the highest weighted document doesn't match all the terms in the query,
6222 its percentage weight is now calculated by simply counting how many weighted
6223 leaf subqueries match it instead of scaling by the proportion of the weight
6224 which matches (which required accessing the termlist for that document).
6227 * XOR with a SYNONYM subquery could previously achieve 100% - this has been
6232 * Backport the lazy update changes from chert to flint:
6234 WritableDatabase::replace_document() now updates the database lazily in
6235 simple cases - for example, if you just change a document's values and
6236 replace it with the same docid, then the terms and document data aren't
6237 needlessly rewritten. Caveats: currently we only check if you've looked at
6238 the values/terms/data, not if they've actually been modified, and only keep
6239 track of the last document read.
6243 * Update to always use C++ forms for ISO C standard headers (ticket#330).
6245 * Fix several places where Xapian::doccount is used instead of
6246 Xapian::termcount, and similar issues. It's still not possible to make
6247 these types different sizes, but we're now closer to this goal.
6252 * Note that PostingSource and Weight objects returned by clone() and
6253 unserialise() methods will be deallocated with "delete".
6257 * Fix debug logging not to segfault on NULL Query::Internal pointers.
6259 Xapian-core 1.1.1 (2009-06-09):
6261 This release includes all changes from 1.0.13 which are relevant.
6265 * New Query::OP_SYNONYM operator, which matches the same documents as OP_OR,
6266 but attempts to weight as if the all the subqueries were a single term with
6267 their combined wdf, which should give better relevance weights.
6269 * QueryParser's synonym, wildcard, and partial query features now use
6270 the new OP_SYNONYM operator.
6272 * PostingSource: Add new set_maxweight() method to allow subclasses to tell
6273 the matcher that their maximum weight has decreased. Make get_maxweight()
6274 a non-virtual method of the baseclass which returns the last set maxweight
6275 (which will require updates to most user subclasses. (ticket#340)
6277 * DatabaseReplica: Fix SEGV when calling get_description() on a default
6278 constructed DatabaseReplica.
6280 * Make Query::MatchAll and Query::MatchNothing const since they're immutable.
6281 All the public methods of Query are const, so this should be completely API
6284 * Methods returning an end iterator for a ValueIterator now actually return a
6285 proxy object which silently converts to ValueIterator if required. This
6286 proxy object allows a comparison with an "_end()" method to be optimised
6287 better so that it just ends up comparing the internal member of the iterator
6288 class with NULL (previously a call to ValueIterator's destructor remained).
6289 This should be API compatible, but note that it is definitely now more
6290 efficient just to compare against the return value of the relevant _end()
6291 method than to store the end iterator explicitly.
6295 * Testcase valuestats4 requires transactions, so indicate that and remove the
6296 explicit SKIP for inmemory.
6298 * Testcase changemaxweightsource1 uses ChangeMaxweightPostingSource, which
6299 doesn't work with multi or remote, so mark the test accordingly.
6301 * We've decided that "going back" with skip_to() or check() should have
6302 unspecified behaviour, so stop testing how this case behaves!
6306 * Subclass MultiPostList directly from PostList instead of from LeafPostList.
6307 This gets rid of two unused data members per MultiPostList in exchange for
6308 having to define 5 extra "never called" methods, but 4 of these just
6311 * Store termfreqs and reltermfreqs for query terms in a single map rather than
6312 one map for each, which saves is more compact and likely to be faster.
6316 * xapian-check: For chert, check value stats are the correct format and that
6317 the streamed values are consistent with their stats (ticket#277).
6319 * xapian-check: Chert doesn't store termlist entries for documents without
6320 terms, which resulted in us reporting an error when we found document ids in
6321 the doclength "postlist" which were greater than any with an entry in the
6322 termlist. Instead compare these entries against db.get_last_docid() if we
6323 are checking a whole db and the db can be opened. If not, suppress this
6328 * When serialising stats, serialise the termfreq and reltermfreq together,
6329 rather than in separate lists. This gives a smaller serialised form, and
6330 matches these both being stored in the same map now. This is an incompatible
6331 remote protocol change, so bump the major version to 32. (ticket#362)
6335 * Some build failures with --disable-backend-XXX options have been fixed, but
6336 we haven't exhaustively tested all combinations.
6338 * Ship common/win32_uuid.cc and common/win32_uuid.h (ticket#367).
6342 * Update PostingSource documentation to describe how init() is called again if
6343 a PostingSource is reused. Fixes #352.
6347 * Fixed to build with GCC 4.4.
6349 * Drop support for GCC 2.95.3 and 3.0.x - we now require at least 3.1 as doing
6350 so eliminates some preprocessor conditionals which we aren't able to test
6351 regularly as we don't have easy access to such old GCC versions. GCC 3.1 is
6352 nearly 7 years old now, and GCC3 didn't get widespread use until later
6353 versions anyway. If you still need to use GCC < 3.1, Xapian 1.0.x should
6354 build with 2.95.3 or newer.
6356 * Older versions of libuuid don't have uuid_unparse_lower() so probe for it in
6357 configure, and if it isn't present provide an inline version in safeuuid.h
6360 * Fixed to build with MSVC (ticket#379).
6362 * Add static_cast<char>() to str(bool) overload to suppress bogus MSVC warning
6367 * common/debuglog.h: Add missing initialisation of uncaught_exception variable
6368 in a couple of places.
6370 Xapian-core 1.1.0 (2009-04-22):
6374 * All deprecated xapian-core features listed for removal in 1.1.0 have been
6375 removed. See deprecation.html for details, and suggested updates.
6377 * The Unicode character categorisation functions have been updated from
6380 * Add NON_SPACING_MARK to is_wordchar() for better tokenisation of languages
6381 which use such marks - for example, Arabic. This is better than the stop-gap
6382 fix in 1.0 of treating NON_SPACING_MARK as a phrase-generator character
6383 when parsing queries, but it does mean that databases built from data
6384 containing such characters will need to be rebuilt. (ticket#355)
6386 * The details of how to subclass Xapian::Weight to implement your own
6387 weighting scheme have changed incompatibly to allow user weighting schemes
6388 to have access to the same statistics as built-in schemes (ticket#213)
6389 If you have a existing subclass of Xapian::Weight you'll need to update it.
6391 * New Database methods get_doclength_upper_bound(), get_doclength_lower_bound()
6392 and get_wdf_upper_bound(), primarily intended for allowing weighting schemes
6393 to calculate tighter upper bounds on weights (which BM25Weight and TradWeight
6394 now do) which allows matcher weight-based optimisations to be more effective.
6395 Chert actually tracks doclength bounds and a global (rather than per term)
6396 upper bound on wdf; other backends return much less tight bounds, but these
6397 still lead to better upper bounds on weights.
6399 * Enquire::get_eset() now uses an unmodified of probabilistic formula, and
6400 doesn't return terms which would get a negative weight from it (since that
6401 means they are expected to be harmful not helpful).
6403 * Add Database::close() method, which will release system resources (in
6404 particular, close filehandles) held by a database. This is particularly
6405 useful when wrapping the API for languages with garbage collection.
6407 * Change Database::positionlist_begin() not to throw exceptions if the term or
6408 document doesn't exist.
6410 * Xapian databases now have a UUID, readable with Database::get_uuid().
6412 * A new Database replication API has been added (currently experimental).
6414 * MSet::get_termfreq() will now fall back to looking up the term frequency in
6415 the database rather than raising an exception if a term wasn't present in
6418 * Calling RSet:add_document() with argument 0 now throws InvalidArgumentError.
6420 * QueryParser sped up (new version of lemon); queryparsertest runs 2.2% faster.
6422 * Add ValueSetMatchDecider, which is a matchdecider which is intended to be
6423 passed a set of values to look for in documents, and selects documents based
6424 on the presence of those values.
6426 * Add new Xapian::PostingSource class to allow passing custom sources of
6427 postings and weights to the matcher. Built-in PostingSource subclasses:
6428 FixedWeightPostingSource, ValueMapPostingSource, ValuePostingSource, and
6429 ValueWeightPostingSource. (Currently experimental).
6431 * Database: Add get_value_freq(), get_value_lower_bound() and
6432 get_value_upper_bound() methods to get statistics about the values stored in
6433 a slot. Add support for the value statistics methods to chert, inmemory,
6434 multi and remote databases.
6436 * Enquire::get_eset() now faster for large ESet size.
6438 * Xapian::Document objects now have a reduced memory footprint.
6440 * Enquire::set_collapse_key() now allows you to specify a maximum number of
6441 matches with each collapse key to keep (which defaults to 1, giving the
6442 previous behaviour). Enquire can now report bounds and an estimate of what
6443 the total number of matches would have been if collapsing wasn't in use.
6445 * WritableDatabase::commit() is a new, preferred alias for
6446 WritableDatabase::flush(). (ticket#266)
6448 * Add methods for serialising documents and queries to strings, and
6449 unserialising back from strings. (ticket#206)
6453 * stemtest: No longer checks environment variables OM_STEMTEST_SKIP_RANDOM,
6454 OM_STEMTEST_LANGUAGES, and OM_STEMTEST_SEED.
6456 * perftest: New performance testsuite. This is intended to contain intended to
6457 contain potentially time-consuming performance tests, which log output to
6458 an XML file for later analysis. It's not run by "make check" - use "make
6459 check-perf" to run it.
6461 * apitest: Now runs tests over both flint and chert for multi, remotetcp, and
6464 * Wait for subprocesses to finish at end of tests with remotetcp backend, to
6465 avoid test failures when the same database is used for the next testcase.
6469 * Internally, pass around non-normalised document lengths as Xapian::termcount
6470 (unsigned integer) not Xapian::doclength (double). This gives a 3% speedup
6471 for 10 term OR queries!
6475 * New development backend. Use Chert::open() to explicitly create a chert
6476 format database, or set XAPIAN_PREFER_CHERT=1 in the environment to
6477 prefer chert when creating a new database without an explicit type.
6479 * Quartz and Flint stored the document length alongside every posting list
6480 entry. Chert instead stores a chunked list of all the document lengths
6481 which saves a lot of space, and is a big win for large queries or those
6482 which don't need the document lengths. This structure is used to
6483 implement much faster iteration (six times faster in a test) over all
6484 document ids (which speeds up queries using unary NOT, e.g. `NOT apples'),
6485 and to test for the existence of documents (instead of checking the record
6486 table for an entry).
6488 * Document values are now stored in a chunked stream for each slot for
6489 efficient access to the same slot in lots of documents. This makes
6490 operations like sort by value much more efficient.
6492 * WritableDatabase::replace_document() now updates the database lazily in
6493 simple cases - for example, if you just change a document's values and
6494 replace it with the same docid, then the terms and document data aren't
6495 needlessly rewritten. Caveats: currently we only check if you've looked at
6496 the values/terms/data, not if they've actually been modified, and only keep
6497 track of the last document read.
6501 * If we can't obtain a write lock while trying to create a new database
6502 we now report the lock failure with DatabaseLockError, not
6503 DatabaseOpeningError - it's more useful to know that the lock attempt failed
6506 * Improve reporting of failures to obtain lock due to unexpected errors.
6508 * xapian-check: Don't stop checking a table after an error in certain cases -
6509 instead increment the error counter and try to continue checking from the
6514 * The remote database protocol major version has been increased, allowing
6515 a significant amount of compatibility code to be removed. This change means
6516 that new clients won't work with old servers, and old clients won't work
6517 with new servers. If upgrading a live system, you will need to take this
6520 * The remote servers now always default to opening a Database and the client
6521 has to send a protocol message to explicitly request write access. This
6522 allows a single server to support multiple readers and one writer
6523 simultaneously. (ticket#145)
6525 * Database::get_document() no longer does an unnecessary copy of the document's
6528 * Change serialisation of queries to be more compact and easier to parse.
6532 * Stub databases used to assume that any relative paths were relative to the
6533 current working directory. They now assume that relative paths are
6534 relative to the directory holding the stub database file.
6536 * Stub database lines which begin with a '#' character are now ignored,
6537 allowing comments in stub database files.
6539 * New "stub directory" database type - this is a directory containing a stub
6540 database file named "XAPIANDB".
6542 * Don't just ignore lines with no spaces in a stub database file.
6544 * Bad lines in a stub file were being ignored after we'd seen a good entry.
6546 * Add new Auto::open_stub() overload which opens a stub database file
6547 containing a single entry as a WritableDatabase.
6549 * Add support for "inmemory" to stub database (which is useful now that stub
6550 databases can be opened for writing).
6552 * A stub database file is now allowed to contain no database entries, which
6553 results in an empty Database object (this avoids user code having to special
6554 case to handle "0 or more" databases).
6558 * To allow installations of Xapian 1.0 and 1.1 to easily coexist, the library
6559 is now libxapian-1.1; xapian.m4 is now xapian-1.1.m4; headers are now
6560 installed in $prefix/include/xapian-1.1. If you use XO_LIB_XAPIAN or
6561 xapian-config as we recommend, this should all be transparent. Also
6562 programs and scripts have a default program suffix to -1.1 unless overridden
6563 using the --program-suffix argument to configure (if you really want no
6564 suffix, "./configure --program-suffix=" will achieve this).
6566 * On Linux and k*bsd-gnu, override libtool's link_all_deplibs_CXX to "no".
6568 * On Linux, override libtool's sys_lib_dlsearch_path_spec to a list generated
6569 in a more reliable way which includes all the default directories.
6571 * configure: --enable-debug and --enable-debug-verbose have been deprecated
6572 since 1.0.0, so remove specific errors pointing to the replacements.
6576 * Disable "JAVADOC_AUTOBRIEF" in doxygen configuration since we always try to
6577 write a brief description explicitly, and JAVADOC_AUTOBRIEF causes problems
6580 * docs/deprecation.html: Describe what "experimental" features are, and why
6581 replication and posting sources are currently experimental.
6583 * docs/deprecation.html: Deprecate Stem_get_available_languages() from the
6588 * Use C++ forms of C headers in examples (ticket#330).
6592 * xapian-core.spec: We no longer need to run autoreconf to work around
6593 libtool's incomplete sys_lib_dlsearch_path_spec or to pick up distro-specific
6594 patches for link_all_deplibs.
6598 * Report get_description() rather than the pointer value for
6599 Xapian::Query::Internal* parameters to internal functions.
6601 * The debug logging framework has been overhauled. See HACKING for details
6602 of how it now works.
6604 * Faster integer to string functions inside the library (this is a general
6605 improvement, but will particularly speed up debug logging as that converts a
6606 lot of integers to strings).
6608 Xapian-core 1.0.23 (2011-01-14):
6612 * QueryParser: Avoid a double free if Query construction throws an exception
6613 in a particular case. Fixes ticket#515.
6615 * QueryParser: Handle NEAR/<offset> and ADJ/<offset> where offset isn't an
6616 integer the same way at the end of the query as in the middle.
6618 * Enquire::get_mset(): Avoid pointlessly trying to allocate lots of memory
6619 if the first document requested is larger than the size of the database.
6621 * Enquire::get_mset(): An empty query now returns an MSet with firstitem set
6622 correctly - previously firstitem was always 0 in this case.
6626 * The matcher wasn't recalculating the max possible weight after a subquery of
6627 XOR reached its end. This caused an assertion failure in debug builds, and
6628 is a missed optimisation opportunity.
6632 * xapian-compact: Fix access to empty priority_queue while merging synonyms.
6633 This could have caused problems, though we've had no reports of any (the
6634 bug was found with _GLIBCXX_DEBUG).
6636 Xapian-core 1.0.22 (2010-10-03):
6640 * Xapian::Document: Initialise docid to 0 when creating a document from
6641 scratch, as documented.
6643 * Xapian::QueryParser: Allow phrase generators between a probabilistic prefix
6644 and the term itself (e.g. path:/usr/local).
6648 * Back out the OP_OR efficiency improvement made in 1.0.21 since this change
6649 slows down some other common cases. We'll address this fully in 1.2.4, but
6650 that fix is more invasive than we are comfortable with for 1.0.x at this
6655 * xapian-config: Add --static option which makes other options report values
6660 * deprecation.html: Add guidelines for supporting other software.
6662 * Document cases where QueryParser's FLAG_WILDCARD and FLAG_PARTIAL aren't
6663 currently supported.
6665 * Fix documentation for Xapian::timeout type - it holds a time interval in
6666 milliseconds not microseconds (the API docs for the methods which use it
6667 explicitly correctly document that the timeouts are in milliseconds).
6671 * configure: Don't pass -mtune=generic unless GCC >= 4.2 is in use
6674 * configure: Add support for --enable-sse=sse and --enable-sse=sse2 to allow
6675 control of which SSE instructions to use.
6677 * configure: Enable use of SSE maths on x86 by default with Sun's compiler.
6679 * configure: Beef up the test for whether -lm is required and add a special
6680 case to force it to be for Sun's C++ compiler - there's some interaction with
6681 libtool and/or shared objects which means that the previous configure test
6682 didn't think -lm is needed here when it is.
6684 * Fix test harness to build under Microsoft Windows (ticket#495).
6686 * Fix to build on OpenBSD 4.5 with GCC 3.3.5.
6688 * Need to avoid excess precision on m68k when targeting models 68010, 68020,
6689 68030 as well as 68000.
6693 * xapian-core.spec: Add cmake related files to RPM packaging.
6695 Xapian-core 1.0.21 (2010-06-18):
6699 * Xapian::Stem now recognises "nb" and "nn" as additional codes for the
6702 * Xapian::QueryParser now correctly parses a wildcarded term in between two
6703 other terms (ticket#484).
6707 * Improve test coverage of OP_VALUE_RANGE and MSet::get_percent().
6711 * OP_OR could skip a matching document if it decayed to OP_AND or OP_AND_MAYBE
6712 during the match in some cases. Fixes ticket#476.
6714 * OP_XOR with non-leaf subqueries could skip matching documents in some cases,
6715 and OP_XOR of three or more sub-queries could return incorrect weights.
6718 * OP_OR is now more efficient if a subquery is potentially expensive (e.g.
6719 ValueRangePostList, OP_NEAR, OP_PHRASE). A 10-fold speed-up with
6720 ValueRangePostList has been observed.
6724 * When iterating a table, if the table changes underneath we could end up
6725 returning the same entry twice. (Debian#579951)
6727 * A cancelled transaction (or a failing operation implicitly cancelling
6728 pending changes) now marks the tables as unmodified, which fixes an exception
6729 trying to read block 0 if one of the tables is empty on disk.
6733 * When iterating a table, if the table changes underneath we could end up
6734 returning the same entry twice. (Debian#579951)
6738 * When daemonising, read the max fd to close with sysconf() instead of using
6739 a hardcoded value of 256, and work even if stdin and stdout have been closed.
6743 * Install files to make Xapian easier to use with cmake.
6747 * Update the list of languages that the Xapian::Stem constructor recognises.
6749 * Assorted minor improvements to the collated API documentation.
6753 * On x86 processors, Xapian now defaults to using SSE2 FP instructions. This
6754 avoids issues with excess precision and it a bit faster too. If you need
6755 to support processors without SSE2 (this means pre-Pentium4 for Intel) then
6756 configure with --disable-sse. (ticket#387)
6758 * Fix warning when compiling for mingw with GCC 4.2.1.
6760 * Remove mutable from a couple of reference class members - mutable doesn't
6761 make sense for a reference and some compilers warn about it.
6763 Xapian-core 1.0.20 (2010-04-27):
6767 * MSet: Fix incorrect values reported by get_matches_estimated(),
6768 get_matches_lower_bound(), and get_matches_upper_bound() in certain cases
6769 when sorting and collapsing (ticket#464).
6773 * deprecation.html: Note how to disable deprecation warnings. (ticket#393)
6777 * delve: Add -a option to list all terms in a database.
6779 * delve: -d and -V command line options now report out of range and invalid
6784 * The getopt warning fix for Cygwin in 1.0.19 caused build failures on Mac OS X
6785 (and probably some other platforms with non-GNU getopt implementations), so
6786 replace with a fix which is only enabled for Cygwin. (ticket#469)
6788 Xapian-core 1.0.19 (2010-04-15):
6792 * QueryParser: Fix leak if Xapian::Database throws an exception during parsing
6797 * Explicitly flush after indexing for quartz and flint, so we see any
6798 exceptions from the flush (the implicit flush from the destructor swallows
6801 * apitest: Add databasemodified1 testcase to provide some test coverage for
6802 DatabaseModifiedError.
6806 * When updating a document, rather than decoding the old positions, comparing
6807 with the new, and then encoding the new if different, we now just encode the
6808 new and then compare the encoded forms. (ticket#428)
6810 * Avoid trying to delete the document positions when we know there aren't any.
6812 * Fix memory leak if Database::allterms_begin() throws an exception
6815 * xapian-check: Report document id for document length mismatch.
6817 * Fix potential issues with iterators over a WritableDatabase which is modified
6818 during iteration. No problems have actually been observed with flint, only
6819 in 1.1.4 with chert in cases which don't occur in flint, but it seems likely
6820 the issue can manifest for flint in other situations. Fixes ticket#455.
6822 * Initialise zlib z_stream structure members zalloc, zfree, and opaque with
6823 Z_NULL rather than 0 cast to the appropriate type, as that's what the zlib
6824 documentation says to do. Add missing initialisation of opaque for the
6825 inflate z_stream which the zlib docs say is needed (reading the zlib code,
6826 this isn't true for current versions, so this improves robustness rather
6827 than fixing an observable bug).
6829 * Don't memcpy() a block to itself - it's a waste of effort, and (probably)
6830 undefined behaviour (as a block overlaps itself).
6834 * Fix potential issues with iterators over a WritableDatabase which is modified
6835 during iteration. No problems have actually been observed with quartz, only
6836 in 1.1.4 with chert in cases which don't occur in quartz, but it seems likely
6837 the issue can manifest for quartz in other situations. Fixes ticket#455.
6839 * Don't memcpy() a block to itself - it's a waste of effort, and (probably)
6840 undefined behaviour (as a block overlaps itself).
6844 * Force -fno-strict-aliasing for GCC 4.2 to avoid bad code being generated due
6845 to a bug in that compiler version. Fixes ticket#449. This issue hasn't been
6846 observed to affect Xapian 1.0.x, but it seems prudent to backport the fix.
6850 * INSTALL: Correct description of --enable-assertions. It does NOT enable
6851 debugging symbols, and shouldn't control checks on bad data passed to API
6852 calls (if it does anywhere, that's a bug). Note that Xapian will run more
6853 slowly with assertions on.
6857 + Add section on indexing.
6859 + Add a note about removing automatically added spelling dictionary entries.
6861 + Move the "algorithm" section to the end, as it is really just background
6862 information for the curious.
6864 * include/xapian/queryparser.h: Document the possible exception messages from
6865 QueryParser::parse_query().
6867 * include/xapian/termgenerator.h: Note how TermGenerator handles stopwords.
6871 * delve: Display the lastdocid value when displaying general database
6874 * simpleindex: Explicitly call flush() on the database, as that is good
6875 practice (since you see any exceptions).
6879 * Fix compilation failure in testsuite on OpenBSD, introduced by new regression
6880 test in 1.0.18. Fixes ticket#458.
6882 * Fix getopt-related warning on Cygwin.
6884 Xapian-core 1.0.18 (2009-02-14):
6888 * Document: Add new add_boolean_term() method, which is an alias for add_term()
6893 + Add support for quoting boolean terms so they can contain arbitrary
6894 characters (partly addresses ticket#128).
6896 + Add ENCLOSING_MARK and COMBINING_SPACING_MARK categories, plus several
6897 zero-width space characters, as phrase generators. This mirrors a better
6898 fix in 1.1.4, but without losing compatibility with existing databases.
6900 + Fix handling of an explicit AND before a hated term (foo AND -bar).
6903 * TermIterator: Only include trailing '+' or '#' on a term if it isn't followed
6904 by a word character (makes more sense and matches QueryParser's behaviour).
6907 * Database: Fix many methods to behave better on a database with no
6908 subdatabases, such as is constructed by Database(). Fixes ticket#415.
6912 * Add test coverage for xapian-compact, and improve coverage for
6913 WritableDatabase::replace_document().
6915 * apitest: Rename matchfunctor<n> to matchdecider<n> to match current
6920 * When updating documents, don't update posting entries which haven't changed.
6921 Largely fixes ticket #250.
6923 * If the number of entries in the position table happened to be 4294967296 or
6924 an exact multiple, Xapian would ignore positional data for that table when
6925 running queries, and xapian-compact wouldn't copy its contents.
6927 * Iterating all the terms in the database with a prefix is now slightly more
6930 * Fix locking code to work if stdin and/or stdout have been closed.
6932 * If a document is replaced with itself unmodified, we no longer increase the
6933 automatic flush counter.
6935 * When iterating a posting list modified since the last flush(), the reported
6936 wdf is now correct (previously it was too high by its old value).
6938 * Replacing a document deleted since the last flush failed to update the
6939 collection frequency and wdf, and caused an assertion failure when assertions
6942 * WritableDatabase::replace_document() didn't always remove old positional
6943 data (the only effect is that the position table was bloated by unwanted
6948 + New "until" command which shows entries until a specified key is reached.
6950 + New "open" command which allows easy switching between tables.
6952 * xapian-compact: Fix typos in --help output.
6956 * Replacing a document deleted since the last flush failed to update the
6957 collection frequency and wdf, and caused an assertion failure when assertions
6960 * WritableDatabase::replace_document() didn't always remove old positional
6961 data (the only effect is that the position table was bloated by unwanted
6966 * Throw UnimplementedError if a MatchDecider is used with the remote backend.
6967 Previously Xapian returned incorrect results in this case.
6971 * configure: With --enable-maintainer-mode, enable -Werror for GCC >= 4.1
6972 rather than >= 4.0 as Apple's GCC 4.0 gives bogus uninitialised variable
6977 * The API documentation now includes Xapian::Error and subclasses, and doesn't
6978 mention Xapian::Query::Internal.
6980 * Make clear in the Xapian::Document API documentation that this class is a
6981 lazy handle and discuss the issues this can cause.
6983 * INSTALL: Improve text about zlib dependency.
6985 * HACKING: Add details of our licensing policy for accepting patches.
6989 * quest: If no database is specified, still parse the query and report
6990 Query::get_description() to provide an easy way to check how a query parses.
6994 * Fix GCC 4.2 warning.
6996 xapian-core 1.0.17 (2009-11-18):
7002 + Fix handling of a group of two or more terms which are all stopwords which
7003 notably caused issues when default_op was OP_AND, but could probably
7004 manifest in other cases too. Fixes ticket#406.
7006 + Fix interaction of FLAG_PARTIAL and FLAG_SYNONYM. (ticket#407)
7008 * Database: A database created via the default constructor no longer causes a
7009 segfault when the methods get_metadata() or metadata_keys_begin() are called.
7013 * Don't try to close the fd one more than the maximum allowable when locking
7014 the database. Harmless, except it causes a warning when running under
7015 valgrind. (ticket#408)
7019 * Xapian::Sorter isn't supported with the remote backend so throw
7020 UnimplementedError rather than giving incorrect results. (ticket#384)
7022 * Fix potential reading off the end of the MSet which is returned internally
7023 by the remote server.
7027 * Various documentation comment improvements for the Database class.
7031 * examples/quest.cc: Tighten up the type of the error we catch to detect an
7032 unknown stemming language.
7036 * xapian-config: Need to quote ^ for Solaris /bin/sh.
7038 * configure: Actually use any flags we determine are needed to switch the
7039 compiler to proper ANSI C++ mode, when building xapian-core - this stopped
7040 working in 1.0.12, breaking support for HP's aCC, Compaq's cxx, Sun's CC, and
7043 Xapian-core 1.0.16 (2009-09-10):
7047 * Fix a typo which stopped this fix in 1.0.12 from working (ticket #398):
7049 If we fail to get the lock after we spawn the child lock process (the common
7050 case is because the database is already open for writing) then we now clean
7051 up the child process properly.
7055 * Improve API documentation of QueryParser::set_default_op() and
7056 QueryParser::get_default_op().
7060 * Fix build failure on Mac OS X 10.6.
7062 Xapian-core 1.0.15 (2009-08-26):
7066 * Fix the test harness not to report heaps of bogus errors when using valgrind
7071 * Backport the lazy update changes from 1.1.2:
7073 WritableDatabase::replace_document() now updates the database lazily in
7074 simple cases - for example, if you just change a document's values and
7075 replace it with the same docid, then the terms and document data aren't
7076 needlessly rewritten. Caveats: currently we only check if you've looked at
7077 the values/terms/data, not if they've actually been modified, and only keep
7078 track of the last document read.
7080 * Fix PostingIterator::skip_to() on an unflushed WritableDatabase to skip
7081 documents which were added and deleted since the last flush. (ticket#392)
7085 * Overhaul the doxygen options we use and tweak various documentation comments
7086 to improve the generated API documentation.
7088 * Explicitly document that an empty prefix argument to
7089 QueryParser::add_prefix() means "no prefix".
7091 * Update the documentation comments for Enable::set_sort_by_value(),
7092 set_sort_by_value_then_relevance(), and set_sort_by_relevance_then_value() to
7093 mention sortable_serialise() as a good way to store numeric values for
7096 Xapian-core 1.0.14 (2009-07-21):
7100 * When using more than one ValueRangeProcessor, QueryParser didn't reset the
7101 begin and end strings to ignore any changes made by a ValueRangeProcessor
7102 which returned false, so further ValueRangeProcessors would see any changes
7103 it had made. This is now fixed, and test coverage improved.
7107 * The test harness code which launches xapian-tcpsrv child processes was
7108 failing to close a file descriptor for each one launched due to a bug in
7109 the code which is meant to track them. This was causing apitest to fail
7110 on OpenBSD (ticket#382). Also wait between testcases for any spawned
7111 xapian-tcpsrv processes to exit to avoid spurious failures when a database is
7112 reused by the next testcase.
7114 * tests/runtest.in: Use "ulimit -n" where available to limit the number of
7115 available file descriptors to 64 so we catch file descriptor leaks sooner.
7117 * When measuring CPU time used for scalability tests, we no longer try to
7118 include the CPU time used by child processes, as we can only get that for
7119 child processes which have exited and it's hard to ensure that they have
7120 with the current framework. Although this means we only tests the
7121 client-side scaling for remote tests, the local backend tests cover most of
7122 the work done by the server part of the remote backend.
7124 * apitest: In testcase topercent2, don't expect max_attained or max_possible to
7125 be exact as rounding errors in different ways of calculating can cause small
7126 variations. On trunk we already have similar code because the new weighting
7127 scheme stuff gives different bounds in the different cases. This should fix
7128 testsuite failures seen on some of the Debian and Ubuntu buildds.
7130 * The test harness now always reports the full exception message (was
7131 conditional on --verbose), and output for different exception types and
7132 other causes of failure is now more consistent.
7134 * For scalability tests, the test harness now increases the number of
7135 repetitions until the first run takes more than 0.001 seconds, to avoid
7136 trying to base calculations on a length of time we probably can't reliably
7137 measure to start with.
7139 * Add test coverage for Stem::get_description() for each supported language.
7141 * queryparsertest: Reenable tests which require the inmemory backend to be
7142 enabled by fixing typo XAPIAN_HAS_BACKEND_INMEMORY ->
7143 XAPIAN_HAS_INMEMORY_BACKEND.
7147 * Use F_FULLFSYNC where available (Mac OS X currently) to ensure that changes
7148 have been committed to disk. (ticket#288)
7152 * Fix handling of percentage weights in various cases when we're searching
7153 multiple remote databases or a mix of local and remote databases.
7157 * configure: -Wshadow produces false positives with GCC 4.0, so only enable it
7158 for >= 4.1 since we enable -Werror for maintainer-mode builds for GCC >= 4.0.
7160 * configure: Check that we can find the valgrind/memcheck.h header as well as
7161 the valgrind binary.
7163 * Change how snowball generates the data used by its among operation - instead
7164 of using pointers to the strings in struct among, store an offset into a
7165 constant pool, as this reduces the number of relocations by about 2300, which
7166 should decrease the time taken by the dynamic linker when loading the
7167 library. This also reduces the size of the shared library significantly
7168 (on x86-64 Linux, the stripped shared library is 4% smaller).
7170 Xapian-core 1.0.13 (2009-05-23):
7174 * Xapian::Document no longer ever stores empty values explicitly. This
7175 wasn't intentional behaviour, and how this case was handled wasn't
7176 documented. The amended behaviour is consistent with how user metadata
7177 is handled. This change isn't observable using Document::get_value(),
7178 but can be noticed when iterating with Document::values_begin(), using
7179 Document::values_count(), or trying to delete the value with
7180 Document::remove_value().
7184 * Fix testcase scaleweight4 not to fail on x86 when compiled with -O0. The
7185 problem was in the testcase code, and was caused by excess precision in
7186 intermediate FP values.
7188 * Testcases which check that operations have the expected O(...) behaviour now
7189 check CPU time instead of wallclock time on most platforms, which should
7190 eliminate occasional failures due to load spikes from other processes.
7193 * Fix test failures due to SKIP_TEST_FOR_BACKEND("inmemory") not skipping when
7194 it should due to comparing char * strings with == (on trunk the return value
7195 being tested is std::string rather than const char *).
7197 * Improve test coverage in several corner cases.
7199 * Fix testcase consistency2 to actually be run (fortunately it passes).
7201 * In the generated testcases, call get_description() on the default
7202 constructed object of each class to make sure that works (and doesn't try to
7203 dereference NULL, or fail some assertion, etc). All currently checked
7204 classes are fine - this is to avoid future regressions or such problems with
7207 * In the test coverage build, use "--coverage" instead of "-fprofile-arcs
7210 * The test harness now has the inmemory backend flagged as supporting
7211 user-specified metadata (apart from iteration over metadata keys).
7215 * If a query contains a MatchAll subquery, check for it before checking the
7216 other terms so that the loop which checks how many terms match can exit
7217 early if they all match.
7219 * When an OR or ANY_MAYBE decayed to an AND, we were carefully swapping the
7220 children for maximum efficiency, but the condition was reversed so we were
7221 in fact making things worse. This was noticed because it was resulting in
7222 the same query running faster when more results were asked for!
7224 * Only build the termname to termfreq and weight map for the first subdatabase
7225 instead of rebuilding it for each one. Also don't copy this map to return
7226 it. This should speed up searches a little, especially those over multiple
7229 * If a submatcher fails but ErrorHandler tells us to continue without it, we
7230 just use a NULL pointer to stand in rather than allocating a special dummy
7231 place-holder object.
7233 * Remove AndPostList, in favour of MultiAndPostList. AndPostList was only used
7234 as a decay product (by AndMaybePostList and OrPostList), and doesn't appear
7235 to be any faster. Removing it reduces CPU cache pressure, and is less code
7238 * Call check() instead of skip_to() on the optional branch of AND_MAYBE.
7242 * Fix a bug in TermIterator::skip_to() over metadata keys.
7246 * Fix xapian-tcpsrv --interface option to work on MacOS X (ticket#373).
7248 * Fix typo which caused us to return the docid instead of the maximum weight
7249 a document from a remote match could return! This could have led to wrong
7250 results when searching multiple databases with the remote backend, but
7251 probably usually didn't matter as with BM25 the weights are generally small
7252 (often all < 1) while docids are inevitably >= 1.
7256 * The inmemory backend doesn't support iterating over metadata keys. Trying
7257 to do so used to give an empty iteration, but has now been fixed to throw
7258 UnimplementedError (and this limitation has now been documented).
7262 * Remove a lot of unused header inclusions and some unused code which should
7263 make the build faster and slightly smaller.
7265 * Fix to compile under --disable-backend-flint, --disable-backend-remote, and
7266 --disable-backend-inmemory.
7268 * Don't remove any built sources in "make clean" even under
7269 --make-maintainer-mode as that breaks switching a tree away from
7270 maintainer-mode with: make distclean;./configure
7272 * configure: Enable more GCC warnings - "-Woverloaded-virtual" for all
7273 versions, "-Wstrict-null-sentinel" for 4.0+, "-Wlogical-op
7274 -Wmissing-declarations" for 4.3+. Notably "-Wmissing-declarations" caught
7275 that consistency2 wasn't being run.
7277 * Internally, fix the few places where we pass std::string by value to pass
7278 by const reference instead (except where we need a modifiable copy anyway) as
7279 benchmarking shows that const reference is slightly faster and generates
7280 less code with GCC's reference counted std::string implementation - with a
7281 non-reference counted implementation, const reference should be much faster.
7286 * INSTALL: We no longer regularly test build with GCC 2.95.4 and we're raising
7287 the minimum GCC version required to 3.1 for Xapian 1.1.x.
7289 * Document what passing maxitems=0 to Enquire::get_mset() does.
7291 * docs/queryparser.html: Add examples of using a prefix on a phrase or
7294 * Correct doxygen comments for user metadata functions:
7295 Database::get_metadata() can't throw UnimplementedError but
7296 WritableDatabase::set_metadata() can.
7298 * Document that Database::metadata_keys_begin() returns an end iterator if the
7299 backend doesn't support metadata.
7301 * HACKING: Update the list of Debian/Ubuntu packages needed for a development
7306 * Fix build with --enable-debug.
7308 * Added some more assertions.
7310 Xapian-core 1.0.12 (2009-04-19):
7314 * WritableDatabase::remove_spelling() now works properly.
7316 * The QueryParser now treats NON_SPACING_MARK Unicode characters as phrase
7317 generators, which improves handling of Arabic. This is a stop-gap solution
7318 for 1.0.x which will work with existing databases without requiring
7319 reindexing - in 1.1.0, NON_SPACING_MARK will be regarded as part of a word.
7322 * Fix undefined behaviour in distribution of OP_NEAR and OP_PHRASE over a
7323 non-leaf subquery (indentified by valgrind on testcase nearsubqueries1).
7326 * Enhance distribution of OP_NEAR/OP_PHRASE over non-leaf subqueries to work
7327 when there are multiple non-leaf subqueries (ticket#201).
7329 * Enquire::get_mset() no longer needlessly checks if the documents exist.
7331 * PostingIterator::get_description() output improved visually in some cases.
7335 * Add make targets to assist generating a testsuite code coverage report with
7336 lcov. See HACKING for details.
7338 * Improved test coverage in a number of places and removed some used code as
7339 shown by lcov's coverage report.
7345 + Now handles databases which contains no documents but have user metadata
7348 + Fix test for the total document length overflowing.
7350 * Release the database lock if the database is closed due to an unrecoverable
7351 error during modifications. (ticket#354)
7353 * If we fail to get the lock after we spawn the child lock process (the common
7354 case is because the database is already open for writing) then we now clean
7355 up the child process properly.
7359 * Overriding CXXFLAGS at make-time (e.g. "make CXXFLAGS=-Os") no longer
7360 overrides any flags configure detected to be required to make the compiler
7361 accept ISO C++ (for GCC, no such flags are required, so this doesn't
7366 * Update documentation and code comments to reflect that 1.1 will be a
7367 development series, and 1.2 the next release series.
7369 * docs/admin_notes.html: Document the child process used for locking which
7370 exec-s "cat" (ticket #258).
7372 * include/xapian/unicode.h: Fix documentation comment typos.
7374 * include/xapian/matchspy.h: Removed currently unused header to stop doxygen
7375 from generating documentation for it.
7377 Xapian-core 1.0.11 (2009-03-15):
7381 * Enquire::get_mset():
7383 + Now throws UnimplementedError if there's a percentage cutoff and sorting is
7384 primarily by value - this has never been correctly supported and it's
7385 better to warn people than give incorrect results.
7387 + No longer needlessly copies the results internally.
7389 + When searching multiple databases, now recalculates the maximum attainable
7390 weight after each database which may allow it to terminate earlier.
7393 + Fix inconsistent percentage scores when sorting primarily by value, except
7394 when a MatchDecider is also being used; document this remaining problem
7397 * Enquire::set_sort_by_value() (and similar methods): Rename the wrongly named
7398 "ascending" parameter to "reverse", and note that its value should always be
7399 explicitly given since defaulting to "reverse=true" is confusing and the
7400 default will be deprecated in 1.1.0. (ticket#311)
7402 * Database::allterms_begin(): Fix memory leak when iterating all terms from
7403 more than one database.
7405 * Query::get_terms_begin(): Don't return "" from the TermIterator (happened
7406 when the query contained or was Query::MatchAll).
7408 * Add QueryParser::FLAG_DEFAULT to make it easier to add flags to those set by
7413 * The testsuite now reports problems detected by valgrind with newer valgrind
7414 versions. Drop support for running the testsuite under valgrind < 3.3.0
7415 (well over a year old) as this greatly simplifies the configure tests.
7417 * Fix usage message for options which take arguments in --help output from test
7418 programs - "-x=foo" doesn't work, the correct syntax is "-x foo".
7420 * If comparing MSet percentages fails, report the differing percentages if in
7423 * Add test that backends don't truncate total document length to 32 bits.
7425 * Disable lockfileumask1 (regression testcase added in 1.0.10) on Cygwin and on
7430 * The configure test for pread() and pwrite() got accidentally disabled in
7431 0.8.4 and we've always been using llseek() followed by read() or write()
7432 since then. The configure test is now fixed, and gives a slight speedup
7433 (3% measured for searching).
7435 * The child process used to implement WritableDatabase locking now changes
7436 directory to / so that it doesn't block unmounting of any partitions and
7437 closes any open file descriptors which aren't relating to locking so that
7438 if those files are closed by our parent and deleted the disk space gets
7439 released right away.
7441 * We now reuse the same zlib zstream structures rather than using a fresh
7442 one for each operation. This doesn't make a measurable difference in
7443 our own tests on Linux but reportedly is measurably faster on some
7444 systems. (ticket #325)
7448 * The pread()/pwrite() fix also speeds up quartz.
7452 * Avoid copying Query::Internal objects needlessly when unserialising Query
7457 * Store the (non-normalised) document lengths as Xapian::termcount (unsigned
7458 int) rather than Xapian::doclength (double) which saves 4 bytes per document.
7462 * configure: The output of g++ --version changed format (again) with GCC 4.3
7463 which meant configure got "g++" for the version. Instead use the (hopefully)
7464 more robust technique of using g++ -E to pull out __GNUC__ and
7469 * API documentation:
7471 + WritableDatabase::flush() can't throw DatabaseLockError.
7473 + WritableDatabase's constructor can throw at least DatabaseCorruptError or
7476 + Document how to get all matches from Enquire::get_mset().
7478 + Other minor improvements.
7480 * docs/sorting.html: Clarify meaning.
7484 * Fix "#line" directives in generated file queryparser/queryparser_internal.cc
7485 to give a relative path - previously they had a full path when generated by a
7486 VPATH build (as release tarballs are), and this confused GCC 2.95 and
7489 * Fix for compiling with Sun's compiler (untested as we no longer have access
7492 Xapian-core 1.0.10 (2008-12-23):
7496 * Composing an OP_NEAR query with two non-term subqueries now throws
7497 UnimplementedError instead of AssertionError (in a --enable-assertions build)
7498 or leading to unexpected results (otherwise). This partly addresses bug#201.
7500 * Using a MultiValueSorter with no values set no longer causes a hang or
7501 segmentation fault (but it is still rather pointless!)
7505 * If we're using values for sorting and for another purpose, cache the
7506 Document::Internal object created to get the value for sorting, like we do
7511 * If the disk became full while flushing database changes to disk, the
7512 WritableDatabase object would throw a DatabaseError exception but be left in
7513 an inconsistent state such that further use could lead to the database on
7514 disk ending up in a "corrupt" state (theoretically fixable, but no tool
7515 to fix such a database exists). Now we try to ensure that the object is
7516 left in a consistent state, but if doing so throws a further exception, we
7517 put the WritableDatabase object in a "closed" state such that further
7518 attempts to use it throw an exception.
7520 * Create the lockfile "flintlock" with permissions 0666 so that the umask is
7521 honoured just like we do for the other files (previously we used 0600).
7522 Previously it wasn't possible to lock a database for update if it was
7523 owned by another user, even if you otherwise had sufficient permissions via
7526 * Fix garbled exception message when a base file can't be reread.
7530 * Fix garbled exception message when a base file can't be reread.
7534 * xapian-tcpsrv and xapian-progsrv now accept -w as a short form of --writable,
7535 as was always intended.
7539 * This release now uses newer versions of the autotools (autoconf 2.62 ->
7540 2.63; automake 1.10.1 -> 1.10.2).
7544 * INSTALL: Add new paragraphs about HP's aCC and IRIX (adapted from footnotes
7547 * PLATFORMS: HP testdrive has been shut down, so all mark all those machines as
7548 "no longer available". Update atreus' build report to 1.0.10.
7550 * docs/queryparser.html: Add link to valueranges.html.
7554 * delve: Add missing "and" to --help output. Report termfreq and collection
7555 freq for each term we're asked about.
7559 * Fix to build with GCC 4.4 snapshot.
7561 Xapian-core 1.0.9 (2008-10-31):
7565 * Database::get_spelling_suggestion() is now faster (15% speed up for parsing
7566 queries with FLAG_SPELLING_CORRECTION set in a test on real world data).
7568 * Fix OP_ELITE_SET segmentation fault due to excess floating point precision
7569 on x86 Linux (and possibly other platforms).
7571 * Database::allterms_begin() over multiple databases now gives a TermIterator
7572 with operations O(log(n)) rather than potentially O(n) in the number of
7575 * Add new Database methods metadata_keys_begin() and metadata_keys_end() to
7576 allow the complete list of metadata in a database to be retrieved (this
7577 API addition is needed so that copydatabase can copy database metadata).
7581 * Remove the cached test databases before running the testsuite.
7583 * apitest: Fix cursordelbug1 to work on Microsoft Windows (bug#301).
7585 * apitest,queryparsertest: Skip tests which fail because the timer granularity
7586 is too coarse to measure how long the test took. In practice, this is only
7587 an issue on Microsoft Windows (bug#300 and bug#308).
7591 * Adjust percent cutoff calculations in the matcher in a way which corresponds
7592 to the change to percentage calculations made in 1.0.7 to allow for excess
7595 * Query::MatchAll no longer gives match results ranked by increasing document
7600 * xapian-compact: Fix crash while compacting spelling table for a single
7601 database when built with MSVC, and probably other platforms, though Linux
7602 got lucky and happened to work (bug#305).
7606 * configure: Disable -Wconversion for now - it's not useful for older GCC and
7607 is buggy in GCC 4.3.
7609 * configure: Set -Wstrict-overflow to 1 instead of 5, to avoid unreasonable
7610 warnings under GCC 4.3.
7614 * Minor improvements to API documentation, including documenting the
7615 XAPIAN_FLUSH_THRESHOLD environmental variable in WriteableDatabase::flush()
7618 * valueranges.html: Fix typos in example code, and drop superfluous empty
7619 destructor from ValueRangeProcessor subclass.
7621 * HACKING: Several improvements.
7625 * copydatabase: Also copy user metadata.
7627 Xapian-core 1.0.8 (2008-09-04):
7631 * Fix output of RSet::get_description
7635 * Report subtotals per backend, rather than per testgroup per backend to make
7636 the output easier to read.
7640 * Fix WritableDatabase::add_document() and replace_document() not to be O(n*n)
7641 in the number of values in the new document.
7643 * Fix handling of a table created lazily after the database has had commits,
7644 and which is then cursored while still in sequential mode.
7646 * Fix failure to remove all the Btree entries in some cases when all the
7647 postings for a term are removed. (bug#287)
7649 * xapian-inspect: Show the help message on start-up. Correct the documented
7650 alias for next from ' ' to ''. Avoid reading outside of input string when it
7655 * Backport fix from flint for WritableDatabase::add_document() and
7656 replace_document() not to be O(n*n) in the number of values in the new
7661 * configure: Report bug report URL in --help output.
7663 * xapian-config: Report bug report URL in --help output.
7665 * configure: Fix deprecation error for --enable-debug=full to say to instead
7666 use '--enable-assertions --enable-log' not '--enable-debug --enable-log'.
7670 * valueranges.html: Expand on some sections.
7674 * quest: Fix to catch QueryParserError instead of const char * which
7675 QueryParser threw in Xapian < 1.0.0.
7677 * copydatabase: Use C++ forms of C headers. Only treat '\' as a directory
7678 separator on platforms where it is. Update counter every 13 counting up to
7679 the end so that the digits all "rotate" and the counter ends up on the exact
7684 * Eliminate literal top-bit-set characters in testsuite source code.
7686 Xapian-core 1.0.7 (2008-07-15):
7690 * OP_VALUE_RANGE, OP_VALUE_GE, and OP_VALUE_LE:
7692 + If there were gaps in the document id numbering, these operators could
7693 return document ids which weren't present in the database. This has been
7696 + These operators are now more efficient when there are a lot of "missing"
7697 document ids (bug#270).
7699 + Optimise Query(OP_VALUE_GE, <n>, "") to Query::MatchAll.
7701 * Xapian::QueryParser:
7703 + QueryParser now stops parsing immediately when it hits a syntax error.
7704 This doesn't change behaviour, but does mean failing to parse queries is
7707 + Cases of O(N*N) behaviour have been fixed.
7709 * Xapian::Stem now recognises "nl" as an alias for "dutch" (debian bug 484458).
7711 * Setting sort by value was being ignored by a Xapian::Enquire object which had
7712 previously had a Xapian::Sorter set (bug#256).
7716 * Improved test coverage in a few places.
7720 * When using a MatchDecider, we weren't reducing matches_lower_bound unless
7721 all the potential results were retrieved, which led to the lower bound
7722 being too high in some such cases.
7724 * We now track how many documents were tested by a MatchDecider and how many
7725 of those it rejected, and set matches_estimated based on this rate. Also,
7726 matches_upper_bound is reduced by the number of rejected documents.
7728 * Fixed matches_upper_bound in some cases when collapsing and using a
7731 * Fixed matches_lower_bound when collapsing and using a percentage cutoff.
7733 * When using two or more of a MatchDecider, collapsing, or a percentage
7734 cutoff, we now only round the scaled estimate once, and we also round it to
7735 the nearest rather than always rounding down. Hopefully this should
7736 improve the estimate a little in such cases.
7738 * Fix problem on x86 with the top match getting 99% rather than 100% (caused
7739 by excess precision in an intermediate value).
7743 * If Database::reopen() is called and the database revision on disk hasn't
7744 changed, then do as little work as possible. Even if it has changed, don't
7745 bother to recheck the version file (bug#261).
7749 + Fix check for user metadata key to not match other key types we may add in
7750 the future. When compacting, we can't assume how we should handle them.
7752 + If the same user metadata key is present in more than one source database
7753 with different tag values, issue a warning and copy an arbitrary tag value.
7755 + Fix potential SEGV when compacting database(s) with user metadata but no
7758 + In error message, refer to "iamflint" as the "version file", not the
7763 + Print top-bit-set characters as escaped hex forms as they often won't be
7764 valid UTF-8 sequences.
7766 + If we're passed a database directory rather than a single table, issue a
7767 special error message since this is an obvious mistake for users to make.
7769 * Fix cursor handling for a modified table which has previously only had
7770 sequential updates which usually manifested as zlib errors (bug#259).
7774 * Fix cursor handling for a modified table which has previously only had
7775 sequential updates which usually manifested as incorrect data being returned
7778 * Calling skip_to() as the first operation on an all-documents PostingIterator
7779 now works correctly.
7783 * Improve performance of matches with multiple databases at least one of which
7784 is remote, and when the top hit is from a remote database (bug#279).
7786 * When remote protocol version doesn't match, the error message displayed
7787 now shows the minor version number supplied by the server correctly.
7789 * We now wait for the connection to close after sending MSG_SHUTDOWN for a
7790 WritableDatabase, which ensures that changes have been written to disk
7791 and the lock released before the WritableDatabase destructor returns
7792 (as is the case with a local database).
7794 * We no longer ever send MSG_SHUTDOWN for a read-only Database - just closing
7795 the connection is enough (and is protocol compatible).
7799 * Fix bug which resulted in the values not being stored correctly when
7800 replacing an existing document, or if there are gaps in the document id
7805 * This release now uses newer versions of the autotools (autoconf 2.61 ->
7806 2.62; automake 1.10 -> 1.10.1; libtool 1.5.24 -> 1.5.26). The newer
7807 autoconf reportedly results in a faster configure script, and warns about
7808 use of unrecognised configure options.
7810 * Fix configure to recognise --enable-log=profile and fix build problems when
7813 * "make up" in the "tests" subdirectory now does "make" in the top-level.
7815 * Fix "make distcheck" by using dist-hook to install generated files from
7816 either srcdir or builddir, with the appropriate dependency to generate them
7817 automatically in maintainer mode builds.
7821 * intro_ir.html: Improve wording a bit.
7823 * The documentation now links to trac instead of bugzilla. For links to the
7824 main website, we now prefer xapian.org to www.xapian.org.
7826 * Doxygen-generated API documentation:
7828 + Improved documentation in several places.
7830 + The helper macro XAPIAN_VISIBILITY_DEFAULT no longer appears in the output.
7832 + Header and directory relationship graphs are no longer generated as they
7833 aren't actually informative here.
7835 * HACKING: Numerous updates and improvements.
7839 * quest: Output get_description() of the parsed query.
7843 * Fix build with GCC 2.95.3.
7845 * Fix build with GCC 4.3.
7847 * Newer libtool features improved support for Mac OS X Leopard and added
7848 support for AIX 6.1.
7852 * Database::get_spelling_suggestion() now debug logs with category APICALL
7853 rather than SPELLING, for consistency with all other API methods.
7855 * Added APICALL logging to a few Database methods which didn't have it.
7857 * Remove debug log tracing from get_description() methods since logging for
7858 other methods calls get_description() methods on parameters, so logging these
7859 calls just makes for more confusing debug logs. A get_description() method
7860 should have no side-effects so it's not very interesting even when explicitly
7863 Xapian-core 1.0.6 (2008-03-17):
7867 * Add new query operators OP_VALUE_LE and OP_VALUE_GE which perform "single
7868 ended" range checks, and a corresponding new Query constructor.
7870 * Add Unicode::toupper() to complement Unicode::tolower().
7872 * Xapian::Stem has been further optimised - stemtest now runs ~2.5% faster.
7876 * tests/runtest: Fixed to handle test programs with a ".exe" extension.
7878 * tests/queryparsertest: Add a couple more testcases which already work to
7879 improve test coverage.
7881 * tests/apitest: Add caseconvert1 testcase to test Unicode::tolower() and
7886 * xapian-check: Fix not to report an error for a database containing no
7887 postings but some user metadata.
7889 * Update the base files atomically to avoid problems with reading processes
7890 finding partially written ones.
7892 * Create lazy tables with the correct revision to avoid producing a database
7893 which we later report as "corrupt" (bug#232).
7895 * xapian-compact: Fix compaction for databases which contain user metadata
7900 * Update the base files atomically to avoid problems with reading processes
7901 finding partially written ones.
7905 * The addition of OP_VALUE_LE and OP_VALUE_GE required an update to the Query
7906 serialisation, which required a minor remote protocol version bump.
7908 * Fix to actually set the writing half as the connection as non-blocking when
7909 a timeout is specified. This would have prevented timeouts from operating
7910 correctly in some situations.
7914 * configure: GCC warning flag overhaul: Stop passing "-Wno-multichar" since
7915 any multi-character character literal is bound to be a typo (I believe we
7916 were only passing it after misinterpreting its sense!) Pass
7917 "-Wformat-security", and "-Wconversion" for all GCC versions. Add
7918 "-Winit-self" and "-Wstrict-overflow=5" for GCC >= 4.2. The latter might
7919 prove too aggressive, but seems reasonable so far. Fix some minor niggles
7920 revealed by "-Wconversion" and "-Wstrict-overflow=5".
7922 * Add XAPIAN_NORETURN() annotations to functions and non-virtual methods which
7927 * docs/intro_ir.html: Briefly mention how pure boolean retrieval is supported.
7929 * docs/valueranges.html: Fix example of using multiple VRPs to come out as a
7932 * include/xapian/queryparser.h: Fix incorrect example in doccomment.
7934 * docs/quickstart.html: Remove information covered by INSTALL since
7935 there's no good reason to repeat it and two copies just risks one
7936 getting out of date (as has happened here!)
7938 * docs/quickstart.html: Fix very out of date reference to MSet::items
7941 * PLATFORMS: Remove reports for 0.8.x as they're too old to be interesting.
7942 Separate out 0.9.x reports. Add Solaris 9 and 10 success reports from James
7943 Aylett. Update from Debian buildd logs.
7947 * Now builds on OS/2, thanks to a patch by Yuri Dario.
7949 * Fix testsuite to build on mingw (broken by changes in 1.0.5).
7953 * Fix --enable-assertions build, broken by changes in 1.0.5.
7955 Xapian-core 1.0.5 (2007-12-21):
7959 * More sophisticated sorting of results is now possible by defining a
7960 functor subclassing Xapian::Sorter (bug#100).
7962 * Xapian::Enquire now provides a public copy constructor and assignment
7965 * Xapian::Document::values_begin() didn't ensure that values had been read
7966 when working on a Document read from a database. However, values_end() did
7967 (and so did values_count()) so this wasn't generally a problem in practice.
7969 * Xapian::PostingIterator::skip_to() now works correctly when running over
7972 * Xapian::Database::postlist_begin() no longer adds a "MultiPostList" wrapper
7973 for the common case when there's only one subdatabase.
7975 * Xapian::TradWeight now avoids division by zero in the (rare) situation of the
7976 average document length being zero (which can only happen if all documents
7977 are empty or only have terms with wdf 0).
7979 * Calling Xapian::WritableDatabase methods when we don't have exactly one
7980 subdatabase now throws InvalidOperationError.
7986 + Testcases now describe the conditions they need to run, and are
7987 automatically collated by a Perl script. This makes it significantly
7988 easier to add a new testcase.
7990 + The test harness's "BackendManager" has been overhauled to allow
7991 cleaner implementations of testcases which are currently hard to
7992 write cleanly, and to make it easier to add new backend settings.
7994 + Add a "multi" backend setting which runs suitable tests over two
7995 subdatabases combined. There's a corresponding new make target
7998 + Add more feature tests of document values.
8000 + sortrel1 now runs for inmemory too.
8002 + Add simple feature test for TradWeight being used to run a query.
8004 + Fix spell3 to work on Microsoft Windows (bug#177).
8006 + API classes are now tested to check they have copy constructors and
8007 assignment operators, and also that most have a default constructor.
8009 + quartztest testcases adddoc2 and adddoc3 have been reworked as apitest
8010 testcases adddoc5 and adddoc6, which run for other backends.
8012 + stubdb1 now explicitly creates the database it needs - generally this
8013 bug didn't manifest because an earlier test has already created it.
8015 * queryparsertest: Add feature tests to check that ':' is being inserted
8016 between prefix and term when it should be.
8018 * Fix extracting of valgrind error messages in the test harness.
8020 * tests/valgrind.supp: Add more variants of the zlib suppressions.
8024 * Xapian::Enquire: When the "first" parameter to get_mset() is non-zero, avoid
8025 copying all the wanted items after performing the match.
8027 * Fix bug in handling a pure boolean match over more than one database under
8028 set_docid_order(ASCENDING) - we used to exit early which isn't correct.
8030 * When collapsing on a value, give a better lower bound on the number of
8031 matches by keeping track of the number of empty collapse values seen.
8033 * Xapian::BM25Weight: Fix bug when k2 is non-zero: a non-initialised value
8034 influenced the weight calculations. By default k2 is zero, so this bug
8035 probably won't have affected most users.
8037 * The mechanism used to collate term statistics across multiple databases has
8038 been greatly simplified (bug#45).
8044 + Update to handle flint databases produced by Xapian 1.0.3 and later.
8046 + Fix not to go into an infinite loop if certain checks fail.
8050 * quartzcompact: Fix equality testing of C strings to use strcmp() rather than
8051 '=='! In practice, using '==' often gives the desired effect due to pooling
8052 of constant strings, but this may have resulted in a bug on some platforms.
8056 * If we're doing a match with only one database which is remote then just
8057 return the unserialised MSet from the remote match. This requires an
8058 update to the MSet serialisation, which requires a minor remote protocol
8063 * XO_LIB_XAPIAN now hooks LT_INIT as well as AC_PROG_LIBTOOL and
8066 * Distribute preautoreconf, dir_contents, docs/dir_contents and
8069 * Fix preautoreconf to correctly handle all the sources passed to doxygen to
8070 create the collated internal source documentation, and to work in a VPATH
8075 * sorting.html: New document on the topic of sorting match results.
8077 * HACKING,admin_notes.html,bm25.html,glossary.html,intro_ir.html,overview.html,
8078 quickstart.html,scalability.html,termgenerator,html,synonyms.html: Assorted
8081 * valueranges.html: State explicitly that Xapian::sortable_serialise() is used
8082 to encode values at index time, and give an example of how it is called.
8084 * API documentation:
8086 + Clarify get_wdf() versus get_termfreq().
8088 + We now use pngcrush to reduce the size of PNG files in the HTML version.
8090 + The HTML version no longer includes various intermediate files which doxygen
8093 + Hide the v102 namespace from Doxygen as it isn't user visible.
8095 + Stop describing get_description() as an "Introspection method", as this
8096 doesn't help to explain what it does, and get_description() doesn't really
8097 fall under common formal definitions of "introspection".
8099 * index.html: Add a list of documents on particular topics and include links to
8100 previously unlinked-to documents. Weed down the top navigation bar which had
8101 grown to unwieldy length.
8103 * PLATFORMS: Update for Debian buildds.
8105 * Improve documentation comment for Document::termlist_count().
8107 * admin_notes.html: Note that this document is up-to-date for 1.0.5.
8109 * INSTALL: zlib 1.2.0 apparently fixes a memory leak in deflateInit2(), which
8110 we use, so that's another reason to prefer 1.2.x.
8114 * Add explicit includes of C headers needed to build with the latest snapshots
8115 of GCC 4.3. Fix new warnings.
8117 * xapian-config: On platforms which we know don't need explicit dependencies,
8118 --ltlibs now gives the same output as --libs.
8120 * The minimum supported GCC version is now 2.95.3 (rather than 2.95) as 2.95.3
8121 added support for '#include <sstream>' which means we no longer need to
8122 maintain our own version.
8124 * Fix build with SGI's compiler on IRIX.
8126 * Fix or suppress some MSVC warnings.
8130 * Remove incorrect assertion in MultiAndPostList (bug#209).
8132 * Fix build when configured with "--enable-log --disable-assertions".
8134 Xapian-core 1.0.4 (2007-10-30):
8140 + Add OP_SCALE_WEIGHT operator (and a corresponding constructor which
8141 takes a single subquery and a parameter of type "double"). This
8142 multiplies the weights from the subquery by the parameter, allowing
8143 adjustment of the importance of parts of the query tree.
8145 + Deprecate the essentially useless constructor Query(Query::op, Query).
8149 + A field prefix can now be set to expand to more than one term prefix.
8150 Similarly, multiple term prefixes can now be applied by default. This is
8151 done by calling QueryParser::add_boolean_prefix() or
8152 QueryParser::add_prefix() more than once with the same field name but a
8153 different term prefix (previously subsequent calls with the same field name
8156 + Trying to set the same field as probabilistic and boolean now throws
8157 InvalidOperationError.
8159 + Fix parsing of `term1 site:example.org term2', broken by changes in 1.0.2.
8161 + Drop special treatment for unmatched ')' at the start of the query, as it
8162 seems rather arbitrary and not particularly useful and was causing us to
8163 parse `(site:example.org) -term' incorrectly.
8165 + The QueryParser now generates pure boolean Query objects for strings such
8166 as `site:example.org' by applying OP_SCALE_WEIGHT with a factor of 0.0.
8168 + Fix handling of `"quoted phrase" +term' and `"quoted phrase" -term'.
8170 + Fix handling of `site:example.org -term'.
8172 + Fix problem with spelling correction of hyphenated terms (or other terms
8173 joined with phrase generators): the position of the start of the term
8174 wasn't being reset for the second term in the generated phrase, resulting
8175 in out of bounds errors when substituting the new value in the corrected
8178 + The parser stack is now a std::vector<> rather than a fixed size, so it
8179 will typically use less memory, and can't hit the fixed limit.
8181 + Fix handling of STEM_ALL and update the documentation comment for
8182 QueryParser::set_stemming_strategy() to explain how it works clearly.
8184 * PostingIterator: positionlist_begin() and get_wdf() should now always
8185 throw InvalidOperationError where they aren't meaningful (before in some
8186 cases UnimplementedError was thrown).
8190 * Add tests for new features.
8192 * Add another valgrind suppression for a slightly different error from zlib
8195 * Remove quartztest's test_postlist1 and test_postlist2, replacing the coverage
8196 lost by extending and adding tests which work with other backends as well.
8198 * If a test throws a subclass of std::exception, the test harness now
8199 reports the class name and the extra information returned by std::exception's
8204 * Several performance improvements have been made, mainly to the handling
8205 of OP_AND and related operations (OP_FILTER, OP_NEAR, and OP_PHRASE).
8206 In combination, these are likely to speed up searching significantly
8207 for most users - in tests on real world data we've seen savings of 15-55%
8208 in search times). These improvements are:
8210 + OP_AND of 3 or more sub-queries is now processed more efficiently.
8212 + Sub-queries from adjacent OP_AND, OP_FILTER, OP_NEAR, and OP_PHRASE are now
8213 combined into a single multi-way OP_AND operation, and the filters which
8214 implement the near/phrase restrictions are hoisted above this so they need
8215 to check fewer documents (bug#23).
8217 + If an OP_OR or OP_AND_MAYBE decays to OP_AND, we now ensure that the less
8218 frequent sub-query is on the left, which OP_AND is optimised to expect.
8220 * When the Enquire::get_mset() parameter checkatleast is set, and we're sorting
8221 by relevance with forward ordering by docid, and the query is pure boolean,
8222 the matcher was deciding it was done before the checkatleast requirement was
8223 satisfied. Then the adjustments made to the estimated and max statistics
8224 based on checkatleast meant the results claimed there were exactly msize
8225 results. This bug has now been fixed.
8227 * Queries involving an OP_VALUE_RANGE filter now run around 3.5 times faster
8230 * The calculations behind MSet::get_matches_estimated() were always rounding
8231 down fractions, but now round to the nearest integer. Due to cumulative
8232 rounding, this could mean that the estimate is now a few documents higher in
8233 some cases (and hopefully a better estimate).
8235 * Implement explicit swap() methods for internal classes MSetItem and ESetItem
8236 which should make the final sort of the MSet and ESet a little more
8241 * Fixed a bug introduced in 1.0.3 - trying to open a flint database for reading
8242 no longer fails if it isn't writable.
8244 * We no longer use member function pointers in the Btree implementation which
8245 seems to speed up searching a little.
8249 * The remote protocol minor version has been increased (to accommodate
8250 OP_SCALE_WEIGHT). If you are upgrading a live system which uses the
8251 remote backend, upgrade the servers before the clients.
8255 * Added macro machinery to allow branch prediction hints to be specified and
8256 used by compilers which support this (current GCC and Intel C++).
8258 * In a developer build, look for rst2html.py if rst2html isn't found as some
8259 Linux distros have it installed under with an extension.
8263 * In the API documentation, explicitly note that Database::get_metadata()
8264 returns an empty string when the backend doesn't support user-specified
8265 metadata, and that WritableDatabase::set_metadata() throws UnimplementedError
8266 in this case. Also describe the current behaviour with multidatabases.
8268 * README: Remove the ancient history lesson - this material is better left to
8269 the history page on the website.
8273 + Deprecate the non-pythonic iterators in favour of the pythonic ones.
8275 + Move "Stem::stem_word(word)" in the bindings to the right section (it was
8276 done in 1.0.0, as already indicated).
8278 + Improve formatting.
8280 * When running rst2html, using "--verbose" was causing "info" messages to be
8281 included in the HTML output, so drop this option and really fix this issue
8282 (which was thought to have been fixed by changes in 1.0.3).
8284 * install.html: Reworked - this document now concentrates on giving
8285 a brief overview of building which should be suitable for most common cases,
8286 and defers to the INSTALL document in each tarball for more details.
8288 * PLATFORMS: Update from tinderbox and buildbot.
8290 * remote.html: xapian-tcpsrv has been able to handle concurrent read
8291 access since 0.3.1 (7 years ago) so update the very out-of-date information
8292 here. Also, note that some newer features aren't supported by the remote
8295 * HACKING: Note specifically that std::list::size() is O(n) for GCC.
8297 * intro_ir.html: Add link to the forthcoming book "Introduction to
8298 Information Retrieval", which can be read online.
8300 * scalability.html: Update size of gmane.
8302 * quartzdesign.html: Note that Quartz is now deprecated.
8306 * The debug assertion code has been rewritten from scratch to be cleaner and
8307 pull in fewer other headers.
8309 Xapian-core 1.0.3 (2007-09-28):
8313 * Add support for user specified metadata (bug#143). Currently supported by
8314 the flint and inmemory backends.
8316 * Deprecate Enquire::register_match_decider() which has always been a no-op.
8318 * Improve the lower bound on the number of matching documents for an AND query
8319 - if the sum of the lower bounds for the two sides is greater than the
8320 number of documents in the database, then some of them must have both terms.
8322 * Spelling correction: Fix off-by-one error in loop bounds when initialising
8325 * If the check_at_least parameter to Enquire::get_mset() is used, but there
8326 aren't that many results, then MSet::get_matches_lower_bound() and
8327 MSet::get_matches_upper_bound() weren't always reported as equal - this
8330 * When sorting by value, and using the check_at_least parameter to
8331 Enquire::get_mset(), some potential matches weren't being counted.
8333 * Failing to create a flint or quartz database because we couldn't create the
8334 directory for it now throws DatabaseCreateError not DatabaseOpeningError.
8338 * Fix display of valgrind output when a test fails because valgrind detected
8341 * Add another version of valgrind suppression for the zlib end condition check
8342 as this gives a different backtrace for zlib in Ubuntu gutsy.
8346 * The Flint database format has been extended to support user metadata, and
8347 each termlist entry is now a byte shorter (before compression). As a
8348 result, Xapian 1.0.2 and earlier won't be able to read Xapian 1.0.3
8349 databases. However, Xapian 1.0.3 can read older databases. If you open an
8350 older flint database for writing with Xapian 1.0.3, it will be upgraded
8351 such that it cannot then be read by Xapian 1.0.2 and earlier.
8353 * Zlib compression wasn't being used for the spelling or synonym tables (due
8354 to a typo - Z_DEFAULT_COMPRESSION where it should be Z_DEFAULT_STRATEGY).
8356 * xapian-check: Allow "db/record." and "db/record.DB" as arguments.
8358 * Fix "key too long" exception message by substituting FLINT_BTREE_MAX_KEY_LEN
8359 with its numeric value.
8361 * Assorted minor efficiency improvements.
8363 * If we reach the flush threshold during a transaction, we now write out the
8364 postlist changes, but don't actually commit them.
8366 * Check length of new terms is at most 245 bytes for flint in add_document()
8367 and replace_document() so that the API user gets an error there rather
8368 than when flush() is called (explicitly or implicitly). Fixes bug#44.
8370 * Flint used to read the value of the environmental variable
8371 XAPIAN_FLUSH_THRESHOLD when the first WritableDatabase was opened and would
8372 then cache this value. However the program using Xapian may have changed
8373 it, so we now reread it each time a WritableDatabase is opened.
8375 * Implement TermIterator::positionlist_count() for the flint backend.
8379 * Fix the result of MSet::get_matches_lower_bound() when using the
8380 check_at_least parameter to get_mset().
8384 * Implement TermIterator::positionlist_count() for the inmemory backend.
8388 * xapian-config: We always need to include dependency_libs in the output of
8389 `xapian-config --libs` if shared libraries are disabled.
8391 * Distribution tarballs are now in the POSIX "ustar" format. This supports
8392 pathnames longer than 99 characters (which we now have a few instances of
8393 in the doxygen generated documentation) and also results in a distribution
8394 tarball that is about half the size! This format should be readable by any
8395 tar program in current use - if your tar program doesn't support it, we'd
8396 like to know (but note that the GNU tar tarball is smaller than the size
8397 reduction in the xapian-core tarball...)
8399 * configure no longer generates msvc/version.h - this is now entirely handled
8400 by the MSVC-specific makefiles.
8406 * docs/stemming.html: Reorder the initial paragraphs so we actually answer the
8407 question "What is a stemming algorithm?" up front.
8409 * When running rst2html, use "--exit-status=warning" rather than "--strict".
8410 The former actually gives a non-zero exit status for a warning or worse,
8411 while the former doesn't, but does include any "info" messages in the output
8414 * docs/deprecation.rst: Add "Database::positionlist_begin() throwing
8415 RangeError and DocNotFoundError".
8417 * valueranges.rst: Correct out-of-date reference to float_to_string.
8419 * HACKING: Document a few more "coding standards".
8421 * PLATFORMS: Updated.
8423 * docs/overview.html: Restore HTML header accidentally deleted in November
8426 * Fix several typos.
8430 * Add missing instances of "#include <string.h>" to fix compilation with recent
8433 * Fix some warnings for various compilers and platforms.
8435 Xapian-core 1.0.2 (2007-07-05):
8439 * Xapian now offers spelling correction, based on a dynamically maintained
8440 list of spelling "target" words. This is currently supported by the
8441 flint backend, and works when searching multiple databases.
8443 * Xapian now offers search-time synonym expansion, based on an externally
8444 provided synonym dictionary. This is currently supported by the flint
8445 backend, and works when searching multiple databases.
8447 * TermGenerator: now offers support for generating spelling correction
8452 + New flag FLAG_SPELLING_CORRECTION to enable spelling correction, and a new
8453 method, "get_corrected_query_string()" to get the spelling corrected
8456 + New flags have been added to allow the new synonym expansion feature to be
8457 enabled and controlled. Synonym expansion can either be automatic, or only
8458 for terms explicitly indicated in the query string by the new "~" operator.
8460 + The precedence of the boolean operators has been adjusted to match their
8461 usual precedence in mathematics and programming languages. "NOT" now binds
8462 as tightly as "AND" (previously "AND NOT" would bind like "AND", but just
8463 "NOT" would bind like "OR"!) Also "XOR" now binds more tightly than "OR",
8464 but less tightly than "AND" (previously it bound just like "OR").
8466 + '+' and '-' have been fixed to work on bracketed subexpressions as
8469 + If the stemmer is "none", no longer put a Z prefix on terms; this now
8470 matches the output of TermGenerator.
8472 * Add new Xapian::sortable_serialise() and Xapian::sortable_unserialise()
8473 functions which serialise and unserialise numbers (currently only
8474 doubles) to a string representation which sorts in numeric order. Small
8475 integers have a short representation.
8477 * NumberValueRangeProcessor has been changed to work usefully. Previously
8478 the numbers had to be the same length; now numbers are serialised to
8479 strings such that a string sort on the string orders the numbers correctly.
8480 Negative and floating point numbers are also supported now. The old
8481 NumberValueRangeProcessor is still present in the library to preserve
8482 ABI compatibility, but code linking against 1.0.2 or later will pick
8483 up the new implementation, which really lives in a sub-namespace.
8485 * Documents now have a get_docid() method, to get the document ID from the
8486 database they came from.
8488 * Add support for a new type of match decider, called a "matchspy". Unlike
8489 the old deciders, this will reliably be tested on every candidate
8490 document, so can be used to tally statistics on them.
8492 * Fixed a segfault when getting a description for a MatchNothing query
8493 joined with AND_NOT (bug #176).
8495 * Header files have been tidied up to remove some unnecessary includes.
8496 Applications using "#include <xapian.h>" will not be affected. We don't
8497 intend to support direct inclusion of individual header files from the xapian
8498 directory, but if you do that, you may have to update you code.
8502 * Feature tests added for all new features.
8504 * Improved test coverage in queryparsertest. Some tests in queryparsertest
8505 now use flint databases, so the test now ensures that the .flint
8506 subdirectory exists.
8508 * The test harness no longer creates <dbdir>/log for flint (flint doesn't
8509 create a log like quartz does).
8511 * apitest: "-bremote" must now be "-bremoteprog" (to better match
8512 "-bremotetcp"); "-bvoid" must now be "-bnone" (to better describe not
8513 using a database backend).
8515 * To complement "make check-flint", "make check-quartz", and "make
8516 check-remote", you can now run tests for the remotetcp backend with
8517 "make check-remotetcp", for the remoteprog backend with "make
8518 check-remoteprog", for the inmemory backend with "make check-inmemory", and
8519 tests not requiring a backend with "make check-none".
8521 * Several extra tests of the check_at_least parameter supplied to
8522 get_mset() were added.
8524 * Fix memory leak and fd leak in remotetcp handling, so apitest now passes
8527 * quartztest: no longer test QuartzPostList::get_collection_freq(), which
8530 * Add regression test emptyquery2 for bug #176.
8532 * Add regression test matchall1 for bug with MatchAll queries.
8534 * Enhanced test coverage of match functor, to check that it returns all
8539 * Fix bug when check_at_least was supplied - the matches after the
8540 requested MSet size were being returned to the user. The parameter is
8541 also now handled in a more efficient way - no extra memory is required
8542 (previously, extra memory proportional to the value of check_at_least was
8545 * Fix bug which used incorrect statistics, and caused assertion failures,
8546 when performing a search using a MatchAll query.
8548 * Optimisation for single term queries: we don't need to look at the top
8549 document's termlist to determine that it matches all the query terms.
8553 * The value and position tables are now only created if there is anything to
8554 add to them. So if you never use document values, there's no value.DB,
8555 value.baseA, or value.baseB. This means the table doesn't need to be opened
8556 for searching (saving a file handle and a number of syscalls) and when
8557 flushing changes, we don't need to update baseA/baseB just to keep the
8558 revisions in step. The flint database version has been increased, but the
8559 new code will happily open and read/update flint databases from Xapian 1.0.0
8560 and 1.0.1. Xapian 1.0.2 flint databases can't be read by Xapian 1.0.1 or
8563 * Two new optional tables are now supported: "spelling", which is used to
8564 store information for spelling correction, and "synonym", which is used
8565 to store synonym information.
8567 * xapian-compact: Now compacts and merges spelling and synonym tables.
8568 Also has a new option "--no-renumber" to preserve document ids from
8571 * xapian-check: Now checks the spelling and synonym tables (only the Btree
8572 structure is currently checked, not the information inside).
8574 * Database::term_exists(), Database::get_termfreq(), and
8575 Database::get_collection_freq() are now slightly more efficient for flint
8578 * New utility 'xapian-inspect' which allowing interactive inspection of key/tag
8579 pairs in a flint Btree. Useful for development and debugging, and an
8580 approximate equivalent to quartzdump.
8582 * WritableDatabase::delete_document() no longer cancels pending changes if the
8583 document doesn't exist.
8585 * Fix handling of exceptions during commit - previously, this could result
8586 in tables getting out-of-sync, perhaps even resulting in a corrupt database.
8588 * Optimise iteration of all documents in the case where all the document
8589 IDs up to lastdocid are used; in this case, we no longer need to access disk
8590 to get the document IDs.
8594 * WritableDatabase::delete_document() no longer cancels pending changes if the
8595 document doesn't exist.
8597 * We no longer create a postlist just to find the termfreq or collection
8602 * Calling WritableDatabase::delete_document() on a non-existent document now
8603 correctly propagates DocNotFoundError.
8605 * The minor remote protocol version has increased (to fix the previous issue).
8606 You should be able to cleanly upgrade a live system by upgrading servers
8607 first and then clients.
8609 * progclient: Reopen stderr on the child process to /dev/null rather than
8610 closing it. This fixes apitest with the remoteprog backend to pass when run
8611 under valgrind (it failed in this case in 1.0.0 and 1.0.1). It probably
8612 has no effect otherwise.
8614 * check_at_least is now passed to the remote server to reduce the work
8615 needed to produce the match, and the serialised size of the returned MSet.
8619 * Bug fix: using replace_document() to add a document with a specific
8620 document id above the highest currently used would create empty documents
8621 for all document ids in between.
8625 * Work around an apparent bug in automake which causes the entries in .libs
8626 subdirectories generated for targets of bin_PROGRAMS not to be removed on
8627 make clean. This was causing make distcheck to fail.
8629 * Snapshots and releases are now bootstrapped with automake 1.10, and
8632 * HTML documentation generated from RST files is now installed.
8636 * The API documentation is now generated with Doxygen 1.5.2, which fixes the
8637 missing docs for Xapian::Query.
8639 * Ship and install internals.html.
8641 * Generating the doxygen-collated documentation of the library internals (with
8642 "make doxygen_source_docs") now only tries to generate an HTML version. The
8643 PDF version kept exceeding TeX limits, and HTML is a more useful format for
8646 * API docs for Xapian::QueryParser now make it clear that the default value for
8647 the stemming strategy is STEM_NONE.
8649 * API docs now describe the NumberValueRangeProcessor more clearly.
8651 * Several typo fixes and assorted wording improvements.
8653 * queryparser.html: Mention "AND NOT" as an alternative way to write "NOT",
8654 and document synonym expansion.
8656 * admin_notes.html: Updated for changes in this release, and corrected a
8659 * spelling.rst: New file, documenting the spelling correction feature.
8661 * synonyms.rst: New file, documenting the synonyms expansion feature.
8663 * valueranges.rst: The NumberValueRangeProcessor is now documented.
8665 * HACKING: Mention new libtool, and more details about preferring
8666 pre-increment. Also add a note about 2 space indentation of protection
8667 level declarations in classes.
8669 * INSTALL: note that zlib must be installed before you can build.
8673 * copydatabase: Now copies synonym and spelling data. Also, fix a cosmetic
8674 bug with progress output when a specified database directory has a trailing
8679 * Fix to build on with OpenBSD's zlib (xapian-core 1.0.0 and 1.0.1 didn't).
8681 * Fixed to build with older zlib such as zlib 1.1.5 which Solaris apparently
8682 uses (xapian-core 1.0.0 and 1.0.1 didn't). However, we recommend using zlib
8683 1.2.x as decompressing is apparently about 20% faster.
8685 * msvc/version.h.in: Generated version.h for MSVC build no longer has the
8686 remote backend marked as disabled.
8688 * Fix warnings from Intel's C++ compiler.
8690 * Fixes for compilation with gcc-2.95 and GCC 4.3 snapshots.
8696 + Rename xapian.spec to xapian-core.spec to match tarball name.
8698 + Append the user name to BuildRoot.
8702 * Better debug logging from the queryparser internals.
8704 Xapian-core 1.0.1 (2007-06-11):
8710 + Make Error::error_string member std::string rather than char * to avoid
8711 problems with double free() with copied Error objects. Unfortunately
8712 this mean an incompatible ABI change which we had hoped to avoid until
8713 1.1.0, but in this case there didn't seem to be a sane way to fix the
8714 problem without an ABI change.
8716 + Error::get_description() now converts my_errno to error_string if it hasn't
8717 been already rather than not including any error description in this case.
8719 + Add new method "get_description()" to get a string describing the error
8720 object. This is used in various examples and scripts, improving their
8723 * Xapian::Database: Add new form of allterms_begin() and allterms_end()
8724 which allow iterating of all terms with a particular prefix. This
8725 is easier to use than checking the end condition yourself, and is
8726 more efficiently implemented for the remote backend (fixes bug#153).
8728 * Xapian::Enquire: Passing an uninitialised Database object to Enquire will
8729 now cause InvalidArgumentError to be thrown, rather than causing a segfault
8730 when you call Enquire::get_mset(). If you really want an empty database,
8731 you can use Xapian::InMemory::open() to create one.
8733 * Xapian::QueryParser: Multiple boolean prefixed terms with the same term
8734 prefix are now combined with OR before such groups are combined with AND
8735 (bug#157). Multiple value ranges on the same value are handled similarly.
8737 * Xapian::Query OP_VALUE_RANGE: Avoid calling db->get_lastdocid() repeatedly
8738 as we know the answer won't change - this reduces the run time of a
8739 particular test case by 25%.
8743 * Add test for serialisation of error strings.
8745 * Improved output in various situations:
8747 + Quote strings in TEST_STRINGS_EQUAL().
8749 + queryparsertest: Use TEST_STRINGS_EQUAL when comparing query descriptions
8750 against their expected output, since this makes it much easier to see the
8753 + Report whole message for exceptions, rather than a truncated version, in
8756 + Make use of Xapian::Error::get_description(), giving better error
8759 * queryparsertest: New test of custom ValueRangeProcessor subclass
8760 (qp_value_customrange1).
8762 * apitest: flintdatabaseformaterror1 and flintdatabaseformaterror2 now use a
8763 genuine Xapian 0.9.9 flint database for their tests, and more cases are
8764 tested. The two tests have also been split into 3 now.
8766 * Fix test harness not to invoke undefined behaviour in cases where a paragraph
8767 of test data contains two or fewer characters.
8769 * Implement a better fix for the MSVC ifstream issue which was fixed in 1.0.0.
8770 This fixes an unintentional side-effect of the previous fix which meant that
8771 apitest's consistency1 wasn't working as intended (it now has a regression
8772 test to make sure it is testing what we intend).
8776 * xapian-compact: Don't uncompress and recompress tags when compacting a
8777 database. This speeds up xapian-compact rather a lot (by more than 50% in a
8780 * If the docid counter wraps, Flint now throws DatabaseError (fixes bug#152).
8782 * Remove the special case error message for pre-0.6 databases since they'll
8783 be quartz format (the check is only in flint because this code was taken from
8788 * If the docid counter wraps, Quartz now throws DatabaseError (fixes bug#152).
8792 * The remote protocol now has a minor version number. If the major
8793 version number is the same, a client can work with any server with
8794 the same or higher minor version number, which makes upgrading live
8795 systems easier for most remote protocol changes - just upgrade the servers
8798 * When a read-only remote database is closed, the client no longer sends a
8799 (totally bogus) MSG_FLUSH to the server, and the reply is also eliminated.
8800 This reduces the time taken to close a remote database a little (fixes
8805 * skip_to() on an allterms TermIterator from an InMemory Database can no longer
8808 * An allterms TermIterator now initialises lazily, which can save some work if
8809 the first operation is a skip_to() (as it often will be).
8813 * Fix VPATH compilation in maintainer mode with gcc-2.95.
8815 * Fix multiple target rule for generating the queryparser source files in
8818 * Distribute missing stub Makefiles for "bin", "examples", and
8823 * Document the design flaw with NumberValueRangeProcessor and why it shouldn't
8826 * ValueRangeProcessor and subclasses now have API documentation and an overview
8829 * Expand documentation of value range Query constructor.
8831 * Improved API documentation for the TermGenerator class.
8833 * docs/deprecation.rst:
8835 + Fix copy and paste error - set_sort_forward() should be changed to
8838 + Improve entry for QueryParserError.
8840 * PLATFORMS: Updated from tinderbox.
8844 * copydatabase: Rewritten to use the ability to iterate over all the documents
8845 in a database. Should be much more efficient for databases with sparsely
8846 distributed document IDs.
8848 * simpleindex: Rewritten to use the TermGenerator class, which eliminates a
8849 lot of non-Xapian related code and is more typical of what a user is likely
8852 * simplesearch,simpleexpand: Rewritten to use the QueryParser class, which
8853 is more typical of what a user is likely to want to do.
8857 * xapian-config: Add special case check for host_os matching linux* or
8858 k*bsd-gnu since vanilla libtool doesn't correctly probe link_all_deplibs=no
8863 * RPMs: Add "# norootforbuild" comment which SuSE's build scripts look for.
8864 Rename "Source0:" to "Source:" as there's only one tarball now. Add gcc-c++
8865 and zlib-devel to "Build-Requires:".
8867 * The required automake version has been lowered to 1.8.3, so RPMs can now be
8868 built on RHEL 4 and SLES 9.
8870 Xapian-core 1.0.0 (2007-05-17):
8876 + The Database(const std::string &) constructor has been marked as "explicit".
8877 Hopefully this won't affect real code, but it's possible. Instead of
8878 passing a std::string where a Xapian::Database is expected, you'll now
8879 have to explicitly write `Xapian::Database(path)' instead of `path'.
8881 + Fixed problem when calling skip_to() on an allterms iterator over multiple
8882 databases which could cause a debug assertion in debug builds, and possible
8883 misbehaviour in normal builds.
8887 + The constructors of Error subclasses which take a `const std::string &'
8888 parameter are now explicit. This is very unlikely to affect any real code
8889 but if it does, just write `Xapian::Error(msg)' instead of `msg'.
8891 + Xapian::Error::get_type() now returns const char* rather than std::string.
8892 Generally existing code will just work (only one change was required in
8893 Xapian itself) - the simplest change is to write `std::string(e.get_type())'
8894 instead of `e.get_type()'.
8896 + Previously, the errno value was lost when an error was propagated from
8897 a remote server to the client, because errno values aren't portable
8898 between platforms. To fix this, Error::get_errno() is now deprecated and
8899 you should use Error::get_error_string() instead, which returns a string
8900 expanded from the errno value (or other system error code).
8902 * Xapian::QueryParser:
8904 + Now assumes input text is encoded as UTF-8.
8906 + We've made several changes to term generation strategy. Most notably:
8907 Unicode support has been added; '_' now counts as a word character; numbers
8908 and version numbers are now parsed as a single term; single apostrophes are
8909 now included in a term; we now store unstemmed forms of all terms; and we
8910 no longer try to "normalise" accents.
8912 + parse_query() now throws the new Xapian::Error subclass QueryParserError
8913 instead of throwing const char * (bug#101).
8915 + Pure NOT queries are now supported (for example, `NOT apples' will match
8916 all documents not indexed by the stemmed form of `apples'). You need
8917 to enable this feature by passing QueryParser::FLAG_PURE_NOT in flags
8918 to QueryParser::parse_query().
8920 + We now clear the stoplist when we parse a new query.
8922 + Queries such as `+foo* bar', where no terms in the database match the
8923 wildcard `foo*', now match no documents, even if `bar' exists. Handling
8924 of `-foo*' has also been fixed.
8926 + Now supports wildcarding the last term of a query to provide better support
8927 for incremental searching. Enabled by QueryParser::FLAG_PARTIAL.
8929 + The default prefix can now be specified to parse_query() to allow parsing
8930 of text entry boxes for particular fields.
8932 + QueryParser::set_stemming_options() has been deprecated since 0.9.0 and
8933 has now been removed.
8937 + Now assumes input text is encoded as UTF-8.
8939 + We've updated to the latest version of the Snowball stemmers. This means
8940 that a small number of words produce different (and generally better)
8941 stems and that some new stemmers are supported: german2 (like german but
8942 normalises umlauts), hungarian, kraaij_pohlmann (a different Dutch
8943 stemmer), romanian, and turkish.
8945 * Xapian::TermGenerator:
8947 + New class which generates terms from a piece of text.
8951 + The Enquire(const Database &) constructor has been marked as "explicit".
8952 This probably won't affect real code - certainly no Xapian API methods
8953 or functions take an Enquire object as a parameter - but calls to user
8954 methods or functions taking an Enquire object could be affected. In
8955 such cases, you'll now have to explicitly write `Xapian::Enquire(db)'
8958 + Enquire::get_eset() now produces better results when used with multiple
8959 databases - without USE_EXACT_TERMFREQ they should be much more similar to
8960 results from an equivalent single database; with USE_EXACT_TERMFREQ they
8961 should be identical.
8963 + Track the minimum weight required to be considered for the MSet separately
8964 from the minimum item which could be considered. Trying to combine the two
8965 caused several subtle bugs (bug#86).
8967 + Enquire::get_query() is now `const'. Should have no effect on user code.
8969 + Enquire::get_mset() now handles the common case of an "exact" phrase search
8970 (where the window size is equal to the number of terms) specially.
8972 + Enquire::include_query_terms and Enquire::use_exact_termfreq are now
8973 deprecated in favour of capitalised versions Enquire::INCLUDE_QUERY_TERMS
8974 and Enquire::USE_EXACT_TERMFREQ (for consistency with our other manifest
8975 constants, and general C/C++ conventions).
8979 + RSet::contains(MSetIterator) is now `const'. Should have no effect on user
8982 * Xapian::SimpleStopper::add() now takes `const std::string &' not `const
8983 std::string'. Should have no effect on user code.
8987 + We now only perform internal validation on a Query object when it's either
8988 constructed or changed, to avoid O(n^2) behaviour in some cases.
8990 + Xapian::Query::MatchAll (an alias for Query("")) matches all terms in the
8991 document (useful for "pure NOT" queries) and Xapian::Query:MatchNothing
8992 is now a more memorable alias for Query().
8994 * Instead of explicitly checking that a term exists before opening its
8995 postlist, we now do both in one operation, which is more efficient.
8997 * MatchDecider::operator() now returns `bool' not `int'.
8999 * ExpandDecider::operator() now returns `bool' not `int'.
9001 * Xapian::TermIterator::get_termfreq() now throws InvalidOperationError
9002 if called on a TermIterator from a freshly created Document (since
9003 there's no meaningful term frequency as there's no Database for
9006 * <xapian/output.h> is no longer available as an externally visible header.
9007 It's not been included by <xapian.h> since 0.7.0. Instead of using
9008 `cout << obj;' use `cout << obj.get_description();'.
9010 * New constant Xapian::BAD_VALUENO which is -1 cast to Xapian::valueno.
9012 * New Xapian::ValueRangeProcessor hierarchy: DateValueRangeProcessor,
9013 NumberValueRangeProcessor, and StringValueRangeProcessor. In
9014 conjunction with the new QueryParser::add_valuerangeprocessor()
9015 method and the new Query::OP_VALUE_RANGE op these allow you to
9016 implement ranges in the query parser, such as `$50..100',
9017 `10..20kg', `01/02/2007..03/04/2007'.
9021 * Many new and improved testcases in various areas.
9023 * If a test throws an unknown exception, say so in the test failure message.
9024 If it throws std::string, report the first 40 characters (or first line if
9025 less than 40 characters) of the string even in non-verbose mode.
9027 * Use of valgrind improved:
9029 + The test harness now only hooks into valgrind if environment variable
9030 XAPIAN_TESTSUITE_VALGRIND is set, which makes it easy to run test programs
9031 under valgrind in the normal way. The runtest script sets this
9034 + runtest now passes "--leak-resolution=high" to valgrind to prevent
9035 unrelated leak reports related to STL classes from being combined.
9037 + configure tests for valgrind improved and streamlined.
9039 + New runsrv script to run xapian-tcpsrv and xapian-progsrv. We need to
9040 run these under valgrind to avoid issues with excess numerical precision
9041 in valgrind's FP handling, but we can use "--tool=none" which is a lot
9042 faster than running them under valgrind's default memcheck tool.
9044 * The test harness now starts xapian-tcpsrv in a more reliable way - it will
9045 try sequentially higher port numbers, rather than failing because a
9046 xapian-tcpsrv (or something else) is already using the default port.
9047 It also no longer leaks file descriptors (which was causing later tests
9048 to fail on some platforms), and if xapian-tcpsrv fails to start, the error
9049 message is now reported.
9051 * remotetest has been removed and its testcases have either been added to
9052 apitest or just removed if redundant with tests already in apitest.
9054 * termgentest is a new test program which tests the Xapian::TermGenerator
9057 * TEST_EQUAL_DOUBLE() now uses a slightly less stringent threshold -
9058 DBL_EPSILON is too strict for calculations which include multiple
9059 steps. Also, we now use it instead of doubles_are_equal_enough() and
9060 weights_are_equal_enough() which try to perform the same job.
9062 * New macro TEST_STRINGS_EQUAL() which displays the strings on separate lines
9063 so the differences can be clearly seen.
9065 * Test programs are now linked with '-no-install' which means that libtool
9066 doesn't need to generate shell script wrappers for them on most platforms.
9068 * runtest: Now turns on MALLOC_CHECK_ and MALLOC_PERTURB_ for glibc if
9069 valgrind isn't being used.
9071 * Better support for Microsoft Windows:
9073 + test_emptyterm2 no longer tries to delete a database from disk while a
9074 WritableDatabase object still exists for it, since this isn't supported
9075 under Microsoft Windows.
9077 + Fallback handling when srcdir isn't specified how takes into account .exe
9078 extensions and different path separators.
9082 * Flint is now the default backend.
9084 * xapian-check: New program which performs consistency checks on a flint
9087 * xapian-compact: Now prunes unused docids off the start of each source
9088 database's range of docids.
9090 * Positional information is now encoded using a highly optimised fls()
9091 implementation, which is much faster than the FP code 0.9.x used.
9092 Unfortunately the old encoding could occasionally add extra bits
9093 on some architectures, which was harmless except the databases
9094 wouldn't be portable. Because of this, the flint format has had to
9095 be changed incompatibly.
9097 * The lock file is now called "flintlock" rather than "flicklock" (which
9100 * Flint now releases its lock correctly if there's an error in
9101 WritableDatabase's constructor. Previously the lock would remain until
9104 * Flint now throws new Xapian::Error subclass DatabaseVersionError instead of
9105 DatabaseOpeningError when it fails to open a database because it has an
9106 unsupported version. DatabaseVersionError is a subclass of
9107 DatabaseOpeningError so existing code should continue to work, but it's
9108 now much easier to determine if the problem is that a database needs
9111 * If you try to open a flint database with an older or newer version than
9112 flint understands, the exception message now gives the version understood,
9113 rather than "I only understand FLINT_VERSION" (literally).
9115 * If we fail to obtain the lock, report why in the exception message.
9117 * Flint now compresses tags in the record and termlist tables using zlib.
9119 * More robust code to handle the flint locking child process, in case of
9122 * If a document was replaced more than once between flushes, the document
9123 length wouldn't be updated after the first change.
9127 * Quartz is still supported, but use in new projects is deprecated (use Flint
9128 instead). Quartz will be removed eventually.
9130 * quartzcheck: Test if this is a quartz database by looking at "meta" not
9131 "record_DB". If "record_DB" is >= 2GB and we don't have a LFS aware stat
9132 function then stat can fail even though the file is there. Also open the
9133 database explicitly as a Quartz database for extra robustness.
9135 * If a document was replaced more than once between flushes, the document
9136 length wouldn't be updated after the first change.
9140 * The remote backend is now supported under Microsoft Windows.
9142 * Open a fresh copy of the database(s) on each connection to a xapian-tcpsrv
9143 rather than relying on being able to share a database across fork() or
9144 between threads (which we don't promise will work).
9146 * xapian-tcpsrv: New "--interface" option allows the hostname or address of the
9147 interface to listen on to be specified (the default is the previous behaviour
9148 of listening on all interfaces).
9150 * If name lookup fails, report the h_errno code from gethostbyname() rather
9151 than whatever value errno happens to currently have!
9153 * Fix bugs in query unserialisation.
9155 * The remote backend now supports all operations (get_lastdocid(), and
9156 postlist_begin() have now been implemented).
9158 * Currently a read-only server can be opened as a WritableDatabase (which is
9159 a minor bug we plan to fix). In this case, operations which write will fail
9160 and the exception is now InvalidOperationError not NetworkError.
9162 * If a remote server catches NetworkTimeoutError then it will now only
9163 propagate it if we can send it right away (since the connection is
9164 probably unhappy). After that (and for any other NetworkError) we now
9165 just rethrow it locally to close the connection and let it be logged if
9168 * The timeout parameter to RemoteDatabase wasn't being used, instead the
9169 client would wait indefinitely for the server to respond.
9171 * A timeout of zero to the remote backend now means "never timeout". This
9172 is now the default idle timeout for WritableDatabase (the connection
9173 timeout default is now 10 seconds, rather than defaulting to the idle
9176 * Fix handling of the document length in remote termlists.
9178 * The remote backend now checks when decoding serialised string that the
9179 length isn't more than the amount of data available (bug#117).
9181 * The remote backend now handles the unique term variants of delete_document
9182 and replace_document on the server side.
9184 * The RSet serialisation now encodes deltas between docids (rather than the
9185 docids themselves) which greatly reduces the size of the encoding of a
9186 sparse RSet for a large database.
9188 * We now encode deltas between term positions when sending data after calling
9189 positionlist_begin() on a remote database.
9191 * When using a MatchDecider with remote database(s), don't rerun the
9192 MatchDecider on documents which a remote server has already checked.
9194 * Apply the "decreasing weights with remote database" optimisation which we use
9195 in the sort_by_relevance case in the sort_by_relevance_then_value case too.
9197 * We now throw NetworkError rather than InternalError for invalid data received
9198 over the remote protocol.
9200 * We now close stderr of the spawned backend program when using the "prog" form
9201 of the remote backend. Previously stderr output would go to the client
9202 application's stderr.
9206 * Support for the old Muscat 3.6 backends has been completely removed. It's
9207 still possible to convert Muscat 3.6 databases to Xapian databases by
9208 building 0.9.10 and using copydatabase to create a quartz database, which can
9209 then be read by 1.0.0 (and converted to a flint database using copydatabase
9214 * We've added GCC visibility annotations to the library, which when using GCC
9215 version 4.0 or later reduce the size and load time of the library and
9216 increase the runtime speed a little. Under x86_64, the stripped library is
9217 6.4% smaller (1.5% smaller with debug information).
9219 * configure: If using GCC, use -Bsymbolic-functions if it is supported
9220 (it requires a very recent version of ld currently). This option reduces the
9221 size and load time of the shared library by resolving references within the
9222 library when it's created.
9224 * We automatically define _FORTIFY_SOURCE in config.h if GCC is in use
9225 and it's not already set (you can override this as documented in INSTALL).
9226 This adds some checking (mostly at compile time) that important return
9227 values aren't ignored and that array bounds aren't exceeded.
9229 * `./configure --enable-quiet' already allows you to specify at configure time
9230 to pass `--quiet' to libtool. Now you can override this at make-time by
9231 using `make QUIET=' (to turn off `--quiet') or `make QUIET=y' (to turn on
9234 * In non-maintainer mode, we don't need the tools required to rebuild some of
9235 the documentation, so speed up configure by not even probing for them in
9238 * The makefiles now use non-recursive make in all directories except "docs" and
9239 "tests". For users, this means that the build is faster and requires less
9240 disk space (bug#97).
9242 * configure: Add proper detection for SGI's C++ (check stderr output of
9243 "CC -v") and automatically pass -ptused in CXXFLAGS for xapian-core and any
9244 applications using xapian-config --cxxflags since it seems to be required to
9245 avoid template linking errors.
9247 * XO_LIB_XAPIAN now checks for the case where XAPIAN_CONFIG wasn't specified
9248 and xapian-config wasn't found, but the library appears to be installed -
9249 this almost certainly means that the user has installed xapian-core from
9250 a package, but hasn't installed the -dev or -devel package, so include
9251 that advice in the error message.
9253 * `./configure --with-stlport-compiler' now requires a compiler name as an
9256 * configure: Disable probes for f77, gcj, and rc completely by preventing
9257 the probe code from even appearing in configure - this reduces the size of
9258 configure by 209KB (~25%) and should speed it up significantly.
9260 * configure: Suppress more unhelpful warnings and "remarks" for HP's aCC, and
9261 turn on "+wlint", which seems useful.
9263 * A number of cases of unnecessary header inclusions have been addressed,
9264 which should speed up compilation (fewer headers to parse when compiling
9265 many source files). This also reduces dependencies within the source code,
9266 and thus the number of files which need to be rebuilt when a header is
9269 * configure: Cache the results of some of our custom tests.
9273 * The documentation has all been updated for changes in Xapian 1.0.0.
9275 * Many of the documentation comments in the API headers (which are collated
9276 using doxygen to generated the API reference) have been improved, and some
9277 missing ones added. Also, internal classes, members, and methods are now all
9278 marked as such so that none should appear in the generated documentation. In
9279 particular, the class inheritance graphs should be a lot clearer. A few other
9280 problems have also been addressed.
9282 * docs/internals.html: New separate index page for the "internal"
9285 * docs/deprecated.html: New document describing deprecation policy. This
9286 includes lists of features which have been removed, or which are deprecated
9287 and scheduled for removal, along with suggested replacements.
9289 * docs/admin_notes.html: New document introducing Xapian for sysadmins.
9291 * docs/termgenerator.html: New document describing the new term generation
9292 strategy implemented by the Term::Generator class.
9294 * docs/bm25.html,docs/intro_ir.html: These have been overhauled to make them
9295 fit better with the rest of the documentation, and with Xapian itself.
9297 * docs/overview.html: Fixed links to error classes in generated API
9300 * HACKING,INSTALL: Many updates and improvements.
9302 * xapian-config: Improve --version output so that help2man produces a better
9305 * PLATFORMS: Remove reports for 0.7.* and demote reports for 0.8.* to "older
9306 reports" status. All SF compilefarm machines are now "no longer available",
9307 so update the symbols and key to reflect this. Update with recent success
9308 reports from the tinderbox and other sources.
9310 * AUTHORS: Thanks several bug reporters I missed before, as well as recent
9313 * docs/code_structure.html now looks nicer and includes links to
9316 * docs/remote_protocol.html: Fixed several typos and other errors, and document
9317 all the new messages.
9319 * We no longer include docs/apidoc/latex/* in the xapian-core tarballs since
9320 it's just useless bloat.
9326 + Report the exception error string if open a database fails.
9328 + Rename "-k" to "-V" since "keys" were renamed to "values" long ago. Keep
9329 "-k" as an alias for now, but don't advertise it. Add handling so "-V3"
9330 shows value #3 for every document in the database.
9332 + No longer stems terms by default. Add "-s/--stemmer" option to allow a
9333 stemmer to be specified.
9335 * quest: Add "--stemmer" option to allow stemming language to be set, or
9336 stemming to be disabled.
9340 * Fix compilation with GCC 4.3 snapshot.
9342 * Always use pid_t not int for holding a process id, and use AC_TYPE_PID_T to
9343 `#define pid_t int' if <sys/types.h> doesn't provide pid_t.
9345 * Pass the 4th parameter of setsockopt() as char* which works whether the
9346 function actually takes char* or void* (since C++ allows implicit conversion
9347 from char* to void*).
9349 * Most warnings in the MSVC build have been fixed.
9351 * Refactored most portability workarounds into safeXXXX.h headers.
9353 * Building for mingw in a cygwin environment should work better now.
9359 + Updated for the changes in this release.
9361 + ChangeLog.examples is now packaged.
9365 * Rename --enable-debug* configure options - conflating the options to "turn on
9366 assertions" and "turn on logging" is confusing. `--enable-debug[=partial]'
9367 becomes `--enable-assertions'; `--enable-debug-verbose' becomes
9368 `--enable-log' and `--enable-debug=full' becomes `--enable-assertions
9369 --enable-log'. For now the old options give an error telling you the new
9372 * Debug logging from expand is now all of type EXPAND (some was of types
9373 MATCHER and WTCALC before).
9375 * Hook the debug tracing in the lemon generated parser into Xapian's debug
9378 * New assertion types: AssertEqParanoid() and AssertNeParanoid().
9380 * Retry write() if it fails when writing a debug log entry to ensure to avoid
9381 the risk of a partial write.
9383 Xapian-core 0.9.10 (2007-03-04):
9387 * Fix WritableDatabase::replace_document() not to lose positional information
9388 for a document if it is replaced with itself with unmodified postings.
9390 * QueryParser: Add entries to the "unstem" map for prefixed boolean filters
9393 * Fix inconsistent ordering of documents between pages with
9394 Enquire::set_sort_by_value_then_relevance (fixes bug#110).
9398 * Workaround apparent bug in MSVC's ifstream class.
9400 flint and quartz backends:
9402 * Fix possible double-free after a transaction fails.
9404 * Fix code for recovering from failing to open a table for reading
9405 mid-modification. If modifications are so frequent that opening for reading
9406 fails 100 times in a row, throw DatabaseModifiedError not
9407 DatabaseOpeningError.
9409 * Don't call std::string::append(ptr, 0) when ptr may be uninitialised
9410 or NULL (rather suspect, and reported to cause SEGV-like behaviour with
9413 * Ensure both_bases is set to false if we don't have both bases when
9414 opening a table using an existing object.
9416 * Use MS Windows API calls to delete files and open files we might want to
9417 delete while they are still open (i.e. the flint and quartz btree base
9418 files). This fixes a problem when a writer can't discard an old revision at
9419 the exact moment a reader is opening it (bug #108).
9423 * Fix WritableDatabase::has_positions() to refetch the cached value if it
9424 might be out of date.
9426 * Fix incorrect serialisation of a query with non-default termpositions.
9430 * If replace_document is used to set the docid of a newly added document which
9431 has previously existed, ensure we mark that document as valid.
9435 * Assorted improvements to API documentation.
9437 * docs/Makefile.am: The larger pool_size we set in 0.9.9 for building
9438 sourcedoc.pdf was a bit marginal, so increase it further.
9440 * docs/stemming.html,docs/install.html: Correct 2 references to "CVS" to say
9443 * HACKING: Update the release checklist.
9447 * Fix flint and quartz to allow 2GB+ B-tree tables when compiling with MSVC.
9451 * RPMs: Remove "." from end of "Summary:". Package the new man page for
9454 Xapian-core 0.9.9 (2006-11-09):
9458 * Use popen() to run xapian-tcpsrv and wait for "Listening..." before returning
9459 rather than just sleeping for 1 second and hoping that's enough.
9461 * If we can't start xapian-tcpsrv because the port is in use, try higher
9466 * xapian-tcpsrv: If the port requested is in use, exit with code 69
9467 (EX_UNAVAILABLE) which is useful if you're trying to automate launching of
9468 xapian-tcpsrv instances.
9470 * xapian-tcpsrv: Output "Listening..." once the socket is open and read for
9471 connections (this allows the testsuite to wait until xapian-tcpsrv is ready
9472 before connecting to it).
9474 * xapian-progsrv: Now supports --help, --version, and has a man page. Fixes
9477 * Turn on TCP_NODELAY for the TCP variant of the remote backend which
9478 dramatically improves the latency of operations on the database.
9482 * internaltest: Disable serialiselength1 and serialisedoc1 when the remote
9483 backend is disabled to fix build error in this case.
9485 * Move libbtreecheck.la from testsuite/ to backends/quartz/.
9487 * Move the testsuite harness from testsuite/ to tests/harness/.
9491 * Ship our custom INSTALL file rather than the generic one from autoconf which
9492 we've accidentally been shipping instead since 0.9.5.
9494 * docs/Makefile.am: Building sourcedoc.pdf needs a larger pool_size now we're
9497 * HACKING: Update debian packaging checklist.
9499 * PLATFORMS: Updated with results from tinderbox.
9503 * Create "safefcntl.h" as a replacement for <fcntl.h> instead of using
9504 "utils.h" for this purpose, since "utils.h" pulls in many other things we
9509 * RPMs: Prevent binaries getting an rpath for /usr/lib64 on FC6.
9511 Xapian-core 0.9.8 (2006-11-02):
9515 * QueryParser: Don't require a prefixed boolean term to start with an
9516 alphanumeric - allow the same set of characters as we do for the second
9517 and subsequent characters.
9521 * Only force a flush on WritableDatabase::allterms_begin() if there are
9522 actually pending changes.
9526 * Only force a flush on WritableDatabase::allterms_begin() if there are
9527 actually pending changes.
9529 * quartzcheck: Avoid dying because of an unhandled exception if the Btree
9530 checking code finds an error in the low-level Btree structure. Add a
9531 catch for any other unknown exceptions.
9535 * When building with GCC, turn on warning flag -Wshadow even when not in
9536 maintainer mode (provided it is supported by the GCC version being used).
9538 * testsuite/backendmanager.cc: Fix compilation when valgrind is detected by
9541 * If generating apidoc.pdf fails, display the logfile pdflatex generates since
9542 that is likely to show what failed.
9546 * Produce a PDF for apidoc rather than PostScript, since the PDF is smaller,
9547 plus at least as easy to print and easier to view for most users. Use
9548 pdflatex to generate the PDF directly rather than going via a DVI file which
9549 apparently produces a better result and also avoids problems on some Linux
9550 distros where latex is a symlink to pdfelatex (bug#81, bug#95).
9552 * HACKING: Mention automake 1.10 is out but we've not tested it yet.
9554 * HACKING: Add entries to release checklist: make sure new API methods
9555 are wrapped by the bindings, and that bug submitters are thanked.
9557 * HACKING: Note that on Debian, tetex-extra is needed for
9560 * HACKING: Note that dch can be used to update debian/changelog.
9562 * docs/code_structure.html: Document backends/remote.
9564 * PLATFORMS: Update from tinderbox.
9568 * configure: When checking if we need -lm, don't use a constant argument to
9569 log() as the compiler might simply evaluate the whole expression at compile
9572 * configure: Redhat's GCC 2.96 doesn't support -Wundef even though real GCC
9573 version before and after it do!
9575 * configure: Avoid use of double quotes in double-quoted backticks since
9576 it causes problems on some platforms.
9578 * backends/flint/flint_io.cc: Fix compilation on windows (needs to
9579 #include "safewindows.h" to get definition of SSIZE_T).
9581 * Fix our implementation of om_ostringstream to compile so that the build
9582 works once more on older compilers without <sstream> (regression probably
9583 introduced in 0.9.7).
9587 * xapian.spec: Package xapian-progsrv.
9589 Xapian-core 0.9.7 (2006-10-10):
9595 + Allow a distance to be optionally specified for NEAR - e.g.
9596 "cats NEAR/3 dogs" (bug#92).
9598 + Implement "ADJ" operator - like "NEAR" except the terms must
9599 appear in matching documents in the same order as in the query.
9601 + Fix bug in how we handle prefixed quoted phrases and prefixed brackets.
9603 + Fix parsing of loved and hated prefixed phrases and bracketted expressions.
9605 + Fix handling of stopwords in boolean expressions.
9607 + Don't ignore a stopword if it's the only query term.
9609 * Document::add_value() failed to replace an existing value with the same
9610 number, contrary to what the documentation says (bug #82).
9612 * Enquire::set_sort_by_value(): Don't fetch the document data when fetching
9613 the value to sort on. Simple benchmarking showed this to speed up sort by
9614 value by a factor of between 3 and 9!
9616 * Implement transactions for flint and quartz. Also supported are "unflushed"
9617 transactions, which provided an efficient way to atomically group a number
9618 of database modifications.
9620 * The Xapian::Error and Xapian::ErrorHandler classes have been reimplemented.
9621 The new versions have better, clearer documentation comments and are cleaner
9624 * Change how doubles are serialised by TradWeight, BM25Weight, and in the
9625 remote backend protocol. The new encoding allows us to transfer any double
9626 value which can be represented by both machines precisely and compactly.
9630 * Add targets "check-flint", "check-quartz", and "check-remote" in tests and at
9631 the top level which run the subset of tests which test the respective backend.
9633 * apitest: Run tests on flint if flint is enabled, rather than if quartz is
9636 * apitest: Speed up deldoc4 when run in verbose mode - some stringstream
9637 implementations are very inefficient when the string grows long.
9639 * Turn on GLIBCXX_FORCE_NEW when running tests under valgrind to stop the GNU
9640 C++ STL from using a pooling allocator. This helps make velgrind's leak
9641 tracking more reliable.
9643 * Probe for required valgrind logging options at configure time rather than
9644 when running the test program. This saves about 2 seconds per test program
9647 * Fix testsuite harness to show valgrind output when a test fails (when running
9648 under valgrind in verbose mode). This had stopped working, probably due to
9649 changes in valgrind 3.
9651 * internaltest: Check that the destructor on a temporary object gets called
9652 at the correct time (Sun C++ deliberately gets this wrong by default, and it
9653 would be good to catch any other compilers which do the same).
9655 * apitest: When running tests on the remote backend and running under valgrind,
9656 run xapian-tcpsrv and xapian-progsrv under valgrind too to avoid issues
9657 with the precision of doubles (bug#94).
9661 * Retry on EINTR from fcntl or waitpid when creating or releasing the flint
9664 * xapian-compact: Add --blocksize option to allow the blocksize to be set
9665 (default is 8K as before.)
9667 * WritableDatabase::replace_document(did, doc) was double-incrementing the
9668 "changes" counter when document did didn't exist so it would flush twice
9671 * WritableDatabase::postlist_begin(): Remove forced flush when iterating the
9672 posting list of a term which has modified postings pending.
9676 * quartzcompact: Add --blocksize option to allow the blocksize to be set
9677 (default is 8K as before.)
9679 * WritableDatabase::replace_document(did, doc) was double-incrementing the
9680 "changes" counter when document did didn't exist so it would flush twice
9685 * Most of the remote backend has been rewritten. It now supports most
9686 operations which a local database does (including writing!), the protocol
9687 used is more compact, and a number of layers of classes have been eliminated
9688 and the sequences of method calls simplified, so the code should be easier to
9689 understand and maintain despite doing more. A number of bugs have been fixed
9692 * xapian-tcpsrv: Report errno if we catch a Xapian::Error which has it set.
9694 * xapian-tcpsrv: Fix memory leak in query unserialisation.
9698 * Now using autoconf 2.60 for snapshots and releases. Also now using a
9699 libtool patch which improves support for Sun C++'s -library=stlport4 option.
9701 * configure: Fix generation of version.h to work with Solaris sed.
9703 * automake adds suitable rules for rebuilding doxygen_api_conf and
9704 doxygen_source_conf, so remove our less accurate versions. Also fix
9705 dependencies for regenerating the doxygen documentation, and make the
9706 documentation build work with parallel make.
9708 * Make use of the dist_ prefix to avoid having to list files in EXTRA_DIST as
9709 well as in *_DATA and man_MANS.
9711 * Removed a few unused #include-s.
9713 * include/xapian/error.h: Add hook to allow SWIG bindings to be built using
9714 GCC's visibility support.
9716 * configure: Turn on automake's -Wportability to help ensure our Makefile.am's
9717 are written in a portable way.
9719 * configure: Disable probing and short-cut tests for a FORTRAN compiler. We
9720 don't use one, but current libtool versions always check for it regardless.
9722 * xapian-config: Prune -L/usr/lib from output of `xapian-config --libs'.
9726 * docs/scalability.html: quartzcompact and xapian-compact now allow you to set
9727 the blocksize, so there's no need to use copydatabase if you want to migrate
9728 a database to a larger blocksize. Mention gmane. Other minor tweaks.
9730 * Eliminate "XAPIAN_DEPRECATED" from generated documentation.
9732 * PLATFORMS: Added success report for Nexenta (alpha 5), MSVC, and sparc linux.
9733 Updated other results from tinderbox.
9735 * Add links to the wiki from README and the documentation index.
9737 * docs/overview.html: Add discussion of uses of terms vs values.
9739 * docs/overview.html: Rewrite the section on Xapian::Document to remove some
9740 very out-of-date information and make it clearer.
9742 * include/xapian/database.h: Note that automatically allocated document IDs
9743 don't reuse IDs from deleted documents.
9745 * include/xapian/enquire.h: Note that "set_sort_by_relevance" is the default
9748 * docs/queryparser.html,include/xapian/queryparser.h: Add note that
9749 FLAG_WILDCARD requires you to call set_database.
9751 * HACKING: Add some advice regarding debugging using -D_GLIBCXX_DEBUG,
9754 * HACKING: Give URL to Alexandre Duret-Lutz's autotools tutorial, which is much
9755 more up-to-date than the "goat book".
9757 * HACKING: Update and expand the information about the debian packaging.
9759 * Add missing dir_contents files.
9763 * xapian/version.h: Add a check that _GLIBCXX_DEBUG is set compatibly if we're
9764 compiling with GNU C++ 3.4 or newer.
9766 * Add configure check to see if "-lm" is needed to get maths functions since
9767 newer versions of Sun's C++ compiler seem to require this.
9769 * Automatically put Sun's C++ compiler into "ANSI C++ compliant library" mode
9770 (using -library=stlport4). This allows us to remove most of the special
9771 case bits of code we've accumulated for just this compiler, which improves
9774 * Sun's C++ compiler implements non-standards-conforming lifetimes for
9775 temporary objects by default. This means database locks don't get released
9776 when they should, so we now always pass "-features=tmplife" for Sun C++
9777 which selects the behaviour specified by the C++ standard.
9779 Xapian-core 0.9.6 (2006-05-15):
9783 * Rename Xapian::xapian_version_string() and companions to
9784 Xapian::version_string(), etc. Keep the old functions as aliases which are
9785 marked as deprecated.
9787 * QueryParser: Add rules to handle a boolean filter with a "+" in front (such
9788 as +site:xapian.org).
9792 * queryparsertest: Add another prefix testcase to improve coverage.
9796 * configure: Simpler check for VALGRIND being set to empty value.
9798 * include/Makefile.am: Add xapian/version.h.timestamp as a dependency on
9799 all-local so that xapian/version.h actually gets regenerated when required.
9801 * Eliminate XAPIAN_BUILD_BACKEND_* from config.h and just use
9802 XAPIAN_HAS_*_BACKEND from xapian/version.h instead.
9806 * remote_protocol.html: Document keep-alive messages.
9808 * xapian/enquire.h: Remove bogus documentation for a parameter which doesn't
9811 * PLATFORMS: Added a summary. Updated and pruned old entries for which we
9812 have a newer close match.
9814 * HACKING: Expand on details of what's required when changing Xapian (discuss
9815 documentation requirements, and more on why feature tests are vital).
9817 * HACKING: Update section on building debian packages.
9821 * The tarball is generated with a patched version of libtool 1.5.22 which
9822 fixes libtool bugs on HP-UX and some BSD platforms.
9824 * configure: Fix problems with test for snprintf which affected cygwin, and
9825 possibly some other platforms.
9827 * configure: Tweak version.h generation to cope with CXXCPP putting carriage
9828 returns into its output as can happen on cygwin.
9830 * Fix renaming of "iamflint.tmp" for MS Windows where you can't rename an open
9833 * Fixed MSVC7 warnings.
9835 * Added workaround for newlib header bug.
9837 Xapian-core 0.9.5 (2006-04-08):
9843 + Fix FLAG_BOOLEAN_ANY_CASE to really allow any case combination - previously
9844 it only allowed all uppercase or all lowercase.
9846 + Fix QueryParser's handling of terms with trailing "#", "+", or "-" when
9847 set_database has been called and the term doesn't exist in the database
9850 * Add mechanism to allow xapian-bindings to override deprecation warnings so
9851 we can continue to wrap deprecated methods without lots of warnings.
9853 * Move Enquire::get_matching_terms_end() and Document::termlist_end() inline in
9856 * Database::termlist_begin(): Eliminate the MultiTermList wrapper in the common
9857 case where we're only dealing with a single database.
9859 * Fix TermIterator::positionlist_begin() to work on TermIterator from
9860 Database::termlist_begin(). Make TermList::positionlist_begin() pure
9861 virtual and put dummy implementations in BranchTermList and other
9862 subclasses which can't (or don't) implement it. This makes it hard to
9863 accidentally fail to implement it in a backend's TermList subclass.
9865 * TermIterator::positionlist_begin() with the remote backend now throws
9866 UnimplementedError instead of InvalidOperationError.
9868 * Implement Enquire::set_sort_by_relevance_then_value().
9872 * Added missing feature test for QueryParser::FLAG_BOOLEAN_ANY_CASE.
9874 * remotetest: Check mset size in tcpmatch1.
9878 * xapian-compact: Fixed segfault from passing an unknown option (e.g.
9879 "xapian-compact --foo").
9883 * quartzdump,quartzcompact: Fixed segfault from passing an unknown option
9884 (e.g. "quartzdump --foo").
9888 * xapian-tcpsrv: Don't perform a name lookup on the IP address which an
9889 incoming connection is from as that could easily slow down the search
9890 response - instead just print the IP address itself if output is verbose.
9892 * xapian-tcpsrv: Allow up to 5 connections in the listen queue instead of just
9897 * Removed unused code from the matcher and the remote, quartz, and flint
9902 * All installed binaries now support --help and --version and have a man page
9903 (which is generated using help2man).
9905 * docs/overview.html: Bring up to date.
9907 * docs/remote_protocol.html: Document messages for requesting and sending a
9908 termlist and a document.
9910 * PLATFORMS, AUTHORS: Updated.
9912 * INSTALL: Improve wording.
9914 * HACKING: Note that we now use a lightly patched version of libtool 1.5.22.
9916 * HACKING: aclocal is part of automake, not autoconf.
9920 * Added some tweaks to help support compilation with MSVC.
9924 * RPMs: package the new man pages.
9928 * Add missing spaces in some debug output.
9930 Xapian-core 0.9.4 (2006-02-21):
9934 * Flag deprecated methods such that the compiler gives a warning, for compilers
9935 which support such a feature (most notably GCC >= 3.1).
9937 * Correct typo in name of definition of function xapian_revision().
9941 * Updated uses of deprecated methods in the testsuite.
9945 * xapian-config: Set exec_prefix and prefix at top of script so that
9946 xapian-config works after xapian-core is installed.
9950 * Add documentation comment for Enquire::set_sort_by_value_then_relevance().
9952 * README: Add pointer to HACKING. Change "CVS access" to "SVN access".
9954 * PLATFORMS: Updated from tinderbox.
9956 * COPYING: Update second occurrence of old FSF address.
9958 Xapian-core 0.9.3 (2006-02-16):
9962 * Added 4 functions to report version information for the library version being
9963 used (which may not be the same as that compiled against if shared libraries
9964 are in use): xapian_version_string(), xapian_major_version(),
9965 xapian_minor_version(), xapian_revision().
9967 * Xapian::QueryParser:
9969 + Fix handling of "+" terms in a query when the default query operator is
9970 AND. Added regression test for this.
9972 + Added "AND NOT" as a synonym for "NOT". Added feature tests for this.
9974 * Fix prototype for ESet::operator[] to take parameter of type termcount
9975 instead of doccount (doccount and termcount are both typedefs to the same
9976 type so this really just makes the prototype more consistent).
9978 * Xapian::Stem: Check for malloc and calloc failing to allocate memory and
9979 throw an exception. Richard has fixed this upstream in snowball, so this is
9980 a temporary fix until we import a new version of snowball.
9982 * Xapian::Database: Trying to open a database for reading which doesn't exist
9983 now fails with DatabaseOpeningError instead of FeatureUnavailableError.
9984 Added regression test for this.
9986 * Add Stopper::get_description() and SimpleStopper::get_description().
9990 * Fixed testsuite harness to work with valgrind on 64 bit platforms.
9992 * Merged the "running tests" section of docs/tests.html into the similar
9993 section in HACKING, and make docs/tests.html refer the reader to HACKING for
9996 * Tidied and enhanced environmental variables which the test suite harness
9999 + OM_TEST_BACKEND: Removed support since the "-b" switch to apitest allows
10000 you control which backend is used, making OM_TEST_BACKEND pretty much
10003 + XAPIAN_SIG_DFL: Renamed to XAPIAN_TESTSUITE_SIG_DFL.
10005 + XAPIAN_TESTSUITE_OUTPUT: New environmental variable to control use of
10006 ANSI colour escape sequences in test output (set to "plain" to disable
10007 them, unset, empty, or "auto" to check if stdout is a tty, or anything
10008 else to force colour).
10012 * xapian-compact: Added "--multipass" option to merge postlists in pairs or
10013 triples until all are merged. Generally this is faster than an N-way merge,
10014 but it does require more disk space for temporary files so it's not the
10019 * quartzcheck: If the database is too broken to open, emit a warning message
10020 and bump the error count.
10024 * Now generate snapshots and releases with automake 1.9.6 (was 1.9.5) and
10025 libtool 1.5.22 (was 1.5.18).
10027 * configure: If not cross-compiling, try to actually run a test program built
10028 with the C++ compiler, not just link one.
10030 * configure: Fix to actually skip the check for valgrind if VALGRIND is set to
10033 * configure: Add sanity check for MS Windows that "find" is Unix-like find, not
10036 * Fix conditional compilation of flint backend - it was being disabled when
10037 quartz was, not when flint was supposed to be.
10041 * INSTALL,README: Updated.
10043 * Give pointer to replacements for the deprecated Enquire sorting methods
10044 in the doxygen collated documentation.
10046 * PLATFORMS: Added success reports for ppc64 linux and Fedora Core 4. Updated
10047 from the tinderbox.
10049 * HACKING: Note platforms valgrind now has solid support for; Improve
10050 phrasing in a few places.
10052 * Upgrade to using doxygen 1.4.6 for generating API documentation.
10054 * Change title of the "full source" documentation to "Internal Source
10055 Documentation" rather than "Full source documentation" to make it
10056 clearer it's only useful if you want to modify Xapian itself.
10058 * Fix documentation comments for the values of QueryParser::feature_flag so
10059 doxygen actually pulls out the documentation for them. Add documentation for
10060 the parameters of QueryParser::parse_query().
10062 * queryparser.html: Document wildcards.
10066 * Fix compilation with GCC 4.0.1 and later (need to forward declare class
10067 InMemoryDatabase) (bug #69).
10069 * Fix compilation under cygwin (broken in 0.9.2).
10071 * Don't pass NULL for the second parameter of execl() - the Linux man page
10072 says execl takes "one or more pointers to null-terminated strings". Also
10073 cast the NULL to (void*) to avoid "missing sentinel" warning from GCC4.
10075 * Use snprintf instead of sprintf where available (we were attempting to
10076 do this in some places before, but the configure test was broken so
10077 sprintf was always being used).
10079 * Enable more warnings under aCC and fix minor issues highlighted. Suppress
10080 "Entire translation unit was empty" warning which isn't useful to us.
10082 * Write top-bit set characters in the source using \xXX notation to avoid
10083 warnings from Intel's C++ compiler.
10085 * configure: TYPE_SOCKLEN_T fails hard, so only run it if we've successfully
10086 run other socket tests.
10088 * queryparser/accentnormalisingitor.h: #include <limits.h> for CHAR_BIT.
10090 * bin/xapian-compact.cc: Fix printf type mismatch on 64 bit platforms.
10092 * Replace pair<bool, string> with a simple class BoolAndString - the pair
10093 results in a 4328 byte symbol on HP-UX which gets truncated (to 4000 bytes).
10094 Most likely this is harmless, but it causes a warning.
10096 * configure: Disable flint backend by default if building for djgpp or msdos.
10098 * xapian-config: Previously when linking without libtool we've always thrown
10099 in dependency_libs, even though only some platforms need it (because it's
10100 generally pretty harmless). However some Linux distros have an unhelpful
10101 policy of not packaging .la files, so libxapian.la isn't available to
10102 extract dependency_libs from. Linux is a platform which doesn't require
10103 dependency_libs to be explicitly linked, so extend xapian-config to not
10104 pull in dependency_libs if libtool's link_all_deplibs_CXX=no.
10106 * xapian-config: If the current platform needs dependency_libs and
10107 libxapian.la's dependency_libs contains another .la file, transform it into a
10108 pair of -L and -l options, and recursively expand its dependency_libs (if
10111 * Don't pass functions with C++ linkage to places wanting pointers to functions
10112 with C linkage. So far this has worked for us, but it causes warnings with
10113 some compilers, and may not be portable.
10115 * Compaq C++ 7.1 doesn't suffer from the problem which previously prevented
10116 it from building Xapian. This release includes workarounds for some
10117 oddities with errno.h support in this compiler, but currently the build
10118 fails when trying to link a binary with the library.
10122 * RPM: Invoke %setup correctly in xapian.spec.
10126 * Add missing '#include <iostream>' when TIMING_PATCH is defined.
10128 Xapian-core 0.9.2 (2005-07-15):
10134 + Added optional "flags" argument to parse_query method.
10136 + Add flag FLAG_BOOLEAN_ANY_CASE which tells the QueryParser that boolean
10137 operators such as "AND", "OR", and "NEAR" should be recognised even if
10138 they aren't fully capitalised (so "and", "And", "aNd", etc will work too).
10140 + Add flag FLAG_WILDCARD which tells the QueryParser to allow right
10141 truncation e.g. "xap*".
10143 + Fixed to handle "-site:microsoft.com" where site is a boolean prefix.
10144 Added testcases for this.
10148 * The test harness was incorrectly creating a quartz database when a flint one
10149 was requested, which meant tests weren't being run against flint and so it
10150 had bugs rendering it pretty much unusable.
10152 * Added regression test longpositionlist1 (to check encoding/decoding a long
10153 position list, which flint had problems with).
10157 * Bumped format version number.
10159 * Added new "xapian-compact" program which can compact and merge flint
10160 databases in a similar way to how quartzcompact does for quartz databases.
10162 * Fixed to auto-detect database type when opening an existing Flint database
10163 as a WritableDatabase.
10165 * The code to encode the position list size, first entry, and last entry
10166 didn't match the code to decode them! Reworked both to match, using a
10167 slightly more compact encoding.
10169 * We were failing to append "DB" to the path when opening a table for reading.
10171 * Rewrite of FlintAllTermsList with several fewer member variables. The
10172 rewrite fixes a bug too - the old version wasn't ignoring the metainfo
10173 entry which is now in the postlist table.
10175 * It seems we need to explicitly kill the child process used for locking.
10176 Otherwise when we have two databases locked just closing the connection
10177 doesn't cause the child to die. I don't understand why it's needed, but this
10178 fix is at least clean.
10182 * quartzcompact: Fix mis-repacking of keys in positionlist table when merging
10185 * Disable assertion in allterms iteration which is incorrect in a corner case.
10186 This is only a problem if a termname contains zero bytes and you're using a
10187 debug build. Add regression test test_specialterms2.
10191 * Implement sorting on a value with the remote backend.
10195 * Pass automake options to AM_INIT_AUTOMAKE rather than specifying them in
10196 Makefile.am. This way, the version requirements for autoconf and automake
10197 are stated close together.
10199 * configure: -Wshadow causes false positives with GCC 3.0.4, so only enable it
10202 * configure: Eliminate use of "ln -s" when generating include/xapian/version.h
10203 since it seems to cause problems on Solaris in some setups and isn't really
10206 * Add dependency mechanism so version.h gets regenerated when the template is
10209 * configure: Check for spaces in build directory, source directory, or install
10210 prefix and die with a helpful message.
10212 * Add dependency to generate queryparser_token.h.
10214 * Eliminated TOP_SRCDIR and TOP_BUILDDIR - it's better to just use top_srcdir
10215 and top_builddir directly.
10217 * configure: Generate the list of source files to feed to doxygen by inspecting
10218 all the Makefile.am files prior to running autoreconf rather than by using
10219 "find" when the user runs ./configure. This speeds up configure, avoids
10220 generating docs for random .cc and .h files which aren't part of xapian-core,
10221 and avoids problems with picking up FIND.EXE on MS Windows.
10225 * Expanded explanation of the "descending docid with boolean weighting" trick
10226 for fast date ordered searching in Enquire::set_docid_order() API docs.
10228 * docs/intro_ir.html: Citeseer has moved, so update link.
10230 * testsuite/testsuite.cc: Update URL for valgrind FAQ in comment.
10232 * COPYING: Update FSF address.
10234 * HACKING: Minor updates to release checklist.
10238 * Assorted tweaks towards allowing compilation with MSVC.
10242 * xapian.spec.in: Package xapian-compact.
10244 Xapian-core 0.9.1 (2005-06-06):
10248 * Fix SEGV on get_terms_begin() on an empty Query object. This was causing
10249 a SEGV in Omega with an empty query.
10251 * Put Query::get_terms_end() inline in header.
10255 * Added the new "flint" backend, which starts out as a copy of the quartz
10256 backend plus some modifications and replacements. When creating a database
10257 without a specified backend, quartz is still used unless the environmental
10258 variable XAPIAN_PREFER_FLINT is set to a non-empty value.
10260 * apitest now runs tests on flint as well as the other backends.
10262 * Removed undocumented (and hence the little used) quartz "log" feature.
10264 * Implement new fork+fcntl+exec based locking (for Unix) and CreateFile based
10265 locking (for Windows - currently untested).
10267 * Move the special key/tag pair holding the total document length and doc id
10268 high water mark from the record table to the postlist table. This means that
10269 when appending documents, the insertion point will now always be at the end
10270 of the record table which is more efficient. We need to jump around the
10271 postlist table to merge postings in anyway.
10273 * Changed metafile magic to be different from quartz, and make the metafile
10274 version a datestamp which we'll change each time the format changes.
10276 * Check the return value of close() when writing the metafile.
10278 * Flint position list table now stores entries using interpolative coding
10279 (which is significantly more compact).
10283 * quartzcheck: Fixed corner case where you couldn't check a single Btree table
10284 which was just the DB and baseA/baseB files in a directory (Xapian doesn't
10285 produce anything like this, but btreetest does while unit testing the
10290 * Releases are now created using libtool 1.5.18 and automake 1.9.5.
10292 * configure: Pass more -W flags to g++ (including -Wundef which caught the
10293 getopt problem fixed in this release). Fixed new GCC warnings from these new
10296 * Fixed a lingering DOXYGEN_HAVE_DOT reference.
10298 * Fixed accidentally pruned #define which meant that getopt code was being
10299 included even on systems which use glibc (on such systems, we should use
10300 the glibc copy of the code instead).
10302 * queryparser/queryparser.lemony: Add missing '#include <config.h>'.
10306 * Added missing documentation comments for a QueryParser methods added in
10309 * docs/quartzdesign.html: Removed warning that quartz is still in development.
10311 * PLATFORMS: Updated from tinderbox.
10313 * configure: Describe CC_FOR_BUILD in configure --help output.
10315 * HACKING: Updated release instructions to refer to SVN, and note that release
10316 tarballs are now built specially rather than being copies of snapshots.
10317 Update information about the SVN tag name to use for debian files.
10319 * HACKING: Add "email Fabrice" to the release checklist so that RPM
10320 spec files don't lag behind.
10322 * Fixed a few spelling mistakes.
10326 * xapian.spec: Remove bogus %setup line left over from when we packaged
10327 xapian-core and xapian-examples together from separate tarballs.
10331 * api/omqueryinternal.cc: Fixed compilation with --enable-debug.
10333 * common/omdebug.h: Replace C style cast with static_cast<> which reveals that
10334 we were discarding const (harmlessly though).
10336 Xapian-core 0.9.0 (2005-05-13):
10340 * Query objects really need to be immutable after construction (otherwise we
10341 need a copy-on-write mechanism). To achieve this the following API changes
10344 + Remove Query::set_length() in favour of an optional length
10345 parameter to Enquire::set_query().
10347 + Eliminated Query::set_elite_set_size() in favour of optional parameter
10350 + Eliminated Query::set_window() in favour of an optional parameter to the
10353 * Removed OP_WEIGHT_CUTOFF, since it doesn't actually seem to add useful
10354 functionality over using Enquire::set_cutoff().
10356 * MSet::max_size() (which only exists so that MSet is an STL container) now
10357 returns MSet::size() and is inlined from the header.
10359 * Added ESet::max_size() (for STL compatibility).
10361 * Fixed Xapian::RSet to have the same "it's a handle" copy semantics as most of
10364 * Rewritten QueryParser class:
10366 + Uses Lemon instead of Bison to generate the parser, which enables us to
10367 stop using static data, so this class is at last reentrant.
10369 + QueryParser now uses a PIMPL style with reference counted internals like
10370 most of the other Xapian classes.
10372 + Direct access to member variables has gone, which unfortunately forces an
10373 API change (but this fixes bug #39). Instead of accessing
10374 QueryParser::termlist member variable, iterate over terms using
10375 Query::get_terms_begin() and get_terms_end() on the returned Query object.
10376 Direct access to stoplist is replaced by QueryParser::get_stoplist_begin()
10377 and get_stoplist_end(); and to unstem by get_unstem_begin() and
10380 + The rewrite parses many real world examples better than the old version.
10382 + Now allow searches for C#, etc. If a database has been set, for this and +
10383 and - suffixes, check if the term actually exists, and if not, ignore the
10384 suffix if the unsuffixed term exists.
10386 + Added QueryParser::get_description() method (not very descriptive yet!)
10388 + Added backward compatibility wrapper for old version of
10389 QueryParser::set_stemming_options().
10391 + xapian.h now automatically includes xapian/queryparser.h. Directly
10392 including xapian/queryparser.h will continue to work for now, but is
10395 + QueryParser::parse_query() was failing to clear termlist and unstem
10396 - the rewrite fixes this.
10398 + New QueryParser parses "term prefix:(term2 term3)" correctly.
10400 * Added Xapian::SimpleStopper which just stops terms specified by a pair of
10401 iterators. This should be sufficient for the majority of uses.
10403 * Tidied up the Enquire sorting API and added ability to reverse sort on a
10404 value. Removed sort_bands support.
10406 * Enquire::get_description() improved.
10408 * Methods which return an end iterator where the internals are just NULL are
10409 now inline in the header for efficiency. Should we ever need to change an
10410 implementation, we can easily move methods back into the library and bump the
10411 library version suitably.
10413 * Added Stem::operator() as preferred alternative to Stem::stem_word().
10415 * Simplified Stem internal design by restructuring to eliminate a few internal
10418 * BM25Weight: Avoid fetching document length if we're simply going to multiply
10423 * Fixed TEST_EQUAL_DOUBLE to use DBL_EPSILON correctly.
10425 * Rewrite of index_utils test harness code, removing unused and unusual
10426 features. Data files for tests are now easier to write. These changes
10427 also fix the bug that ^x didn't actually decode hex values correctly.
10429 * tests/testdata/etext.txt: Stripped carriage returns.
10431 * apitest: Extended stemlang1 to check that trying to create
10432 a stemmer for a non-existent language throws InvalidArgumentError.
10436 + Moved into tests/ subdirectory.
10438 + Reworked to use the standard testsuite harness.
10440 + Added tests for new features in the rewritten QueryParser.
10444 * quartzcheck: Now checks the structure of all the tables, not
10445 just the postlist table, and cross-checks doclen values between
10446 termlist and postlist tables. Recognises "--help" option. Should
10447 now continue after an error (typically it would crash before), and
10448 counts the number of errors found. Now exits with non-zero status
10449 if any errors were found. More readable output.
10451 * quartzcompact: Extended to allow merging several quartz
10452 databases to produce a single compact quartz database. This
10453 allows for faster building - simple index in chunks, then merge
10456 * quartzcompact: Made full compaction a tiny bit more compact.
10458 * quartzcompact: Added "fuller compaction" mode, which ignores the usual "at
10459 least 4 items per block" rule. This achieves slightly tighter compaction,
10460 though it's probably not advisable to use this option if you plan to update
10461 the compacted database.
10463 * Improved compaction by a few % in non-full case. Tighter bound on amount of
10464 memory to reserve to read the tag into.
10466 * Fix skip_to on an allterms TermIterator to set the current term when the
10467 skip_to-ed term is in the database. Add regression test for this
10470 * Values are stored in sorted order so we can stop unpacking the list once we
10471 get to one after the one we're looking for (in the case where the one we're
10472 looking for doesn't exist).
10476 * configure: Check that the C++ compiler can actually link a program.
10477 AC_LANG_CXX doesn't, and if it can't find a C++ compiler it'll just return
10478 "g++" which just leads to a later configure test failing in a confusing way.
10480 * configure: corrected configure output of "none known for yes" or "none known
10481 for no" to "none known for g++-3.2" or similar.
10483 * include/xapian/version.h: Define XAPIAN_HAS_xxx_BACKEND for each backend
10484 which is enabled. The bindings need this, and user code might find it useful
10487 * include/xapian/database.h: Don't declare the backend factory functions if the
10488 corresponding backend has been disabled. This means that trying to use a
10489 disabled backend will be caught at compile time rather than link time.
10491 * configure: Enhanced valgrind test to (a) see if --tool=memcheck
10492 is needed and (b) see if valgrind actually works (we don't want to
10493 try to use an x86 valgrind on an x86_64 box).
10495 * configure: Suppress 2 Intel C++ warnings which we can't easily code around,
10496 and enable -Werror automatically with --enable-maintainer-mode.
10498 * Clearer make rules for building Postscript doxygen docs.
10500 * Removed some no longer used code.
10502 * Moved a number of method definitions out of headers because they are virtual,
10503 or too large to be sensible candidates for inlining.
10505 * Eliminated the extra library for the queryparser - it's tiny compared to the
10506 main library and having it around just complicates things.
10508 * configure: We no longer need Bison, but we do need CC_FOR_BUILD to compile
10511 * Snapshot generator now appends _svn6789 or similar to the version string.
10512 Adjusted configure and XO_LIB_XAPIAN macro to take this into account.
10514 * configure: If any tools needed for documentation are missing
10515 and we're in maintainer mode, die with a suitable error in
10516 configure rather than with strange errors when building the
10519 * docs/Makefile.am: Explicitly set the pool_size for latex, because we
10520 now seem to overflow the default setting on some systems.
10522 * docs/Makefile.am: Use $(MAKE) instead of make.
10526 * Numerous improvements to documentation comments. Added documentation
10527 comments for QueryParser class.
10529 * HACKING: Added better description of how reference-counted API
10530 classes are structured.
10532 * HACKING: Note that '#include <limits>' isn't supported by GCC 2.95,
10533 and other assorted minor tweaks.
10535 * HACKING: Note how to disable use of VALGRIND on the make check
10536 command line, or when using runtest directly.
10538 * Updated all documentation mentions of CVS to talk about Subversion
10541 * PLATFORMS: Updated from tinderbox and other sources.
10543 * PLATFORMS: Added minimal testcase which fails to compile with
10544 Compaq's C++ compiler (cxx).
10546 * INSTALL,README: Updated.
10548 * docs/queryparser.html: Note that + and - work on phrases and
10549 bracketed expressions.
10551 * docs/intro_ir.html: Corrected two errors.
10553 * docs/stemming.html: Stemming appears to be applicable to Japanese
10554 so don't say it isn't!
10558 * Moved xapian-examples module to examples subdirectory of xapian-core.
10560 * quest: Added stopword handling.
10564 * configure: autoconf identifies Intel's C++ compiler as GCC, so probe for
10565 which we actually have.
10567 * Xapian will now compile cleanly with Intel C++ 8.1 on ia64 Linux and
10570 * backends/quartz/btree.cc: Fixed GCC compilation warning.
10572 * tests/api_db.cc: Fixed warning from Sun's C++ compiler.
10574 * configure: Automatically enable ANSI C++ mode for SGI's compiler
10575 with '-LANG:std'; check that any automatically determined flags
10576 for ANSI C++ mode actually allow us to compile a trivial program
10577 - if they don't it probably means the compiler isn't the one we
10578 were expecting, but one installed with the same name, so we now
10579 drop the flags in this case.
10581 * The compile on IRIX with SGI compiler is now warning free, apart from two
10582 "unused variable" warnings in Snowball generated code.
10584 * On WIN32, don't define NOMINMAX if it is already defined.
10588 * xapian.spec: Don't say "%makeinstall" in a comment since rpm
10589 tries to expand it and explodes.
10591 * xapian.spec: '/usr/share' -> '%{_datadir}'.
10593 * xapian.spec: Put the .so in the -devel package (it's only useful
10594 for linking to - the .so.* files are all that's needed at runtime).
10598 * net/socketserver.cc: Fixed typo in debug code.
10600 Xapian-core 0.8.5 (2004-12-23):
10604 * quartzcompact: When full_compaction is enabled, don't fill the last few bytes
10605 of a block if that would mean we needed an extra item and the overhead for
10606 that item would use up more of the next block than we save. This reduces the
10607 table size after full compaction by up to 0.2% in my tests!
10609 * quartzcompact: Tables sizes will always be a whole number of Kbytes, since
10610 the blocksize is, so report the size in K. Also report the change in size as
10611 well as the before and after sizes.
10613 * quartzcompact: Added missing '#include <config.h>' so that largefile support
10614 is enabled when we call stat() and we report compression statistics for
10617 * quartzcompact: Added --no-full / -n option to disable full compaction. This
10618 may be useful if you want to update the database after compacting it (need to
10619 test to see if this option is actually useful).
10621 * Renamed Btree::compress() to Btree::compact() for consistency with
10622 "full_compaction" and "quartzcompact". Also, "compress" is confusing since
10623 we use that term in the zlib patch.
10627 * xapian-config: Fixed --libs output to not include libxapian.la.
10629 * Added missing '#include <config.h>' to various .cc files (the omissions were
10630 probably harmless, but config.h should be included as the first thing any
10639 * RPM spec file: %makeinstall puts the wrong paths in the .la files so use
10640 "make DESTDIR=... install" instead.
10644 * Fixed to build with AssertParanoid enabled.
10646 Xapian-core 0.8.4 (2004-12-08):
10650 * Added constructors to Database and WritableDatabase which fulfil the role
10651 that the Auto::open() factory functions currently do. Auto::open() is
10654 * Removed the ability to write a Xapian object to an ostream directly, as
10655 it's little used and potentially dangerous ('cout << mset[i];' will
10656 compile, but you almost certainly meant 'cout << *mset[i];'). You can
10657 get the old effect by writing 'cout << obj->get_description();' instead
10658 of 'cout << obj;'. Note that including xapian.h no longer pulls in
10659 fstream, which code may have been implicitly relying on - if this is
10660 a problem add '#include <fstream>' after '#include <xapian.h>'.
10662 * QueryParser: Be smarter about when to add a ':' when adding a term prefix.
10664 * BoolWeight::unserialise() now returns BoolWeight*, and similarly for
10665 TradWeight and BM25Weight. BoolWeight::clone() now returns BoolWeight *.
10667 * If a database contains no positional information, change NEAR and PHRASE
10668 queries into AND queries (as otherwise they'd return no matches at all)
10669 (bug #56). Added feature test phraseorneartoand1.
10671 * Renamed BM25 parameters to match standard naming in papers and elsewhere
10672 (A->k3, B->k1, C->k2, D->b), eliminated the extra factor of 2 which our C
10673 had, and reordered the parameters to k1, k2, k3. This is an incompatible API
10674 change for BM25Weight(), so if you are using custom parameters for BM25
10675 you'll need to update your code.
10677 * During query expansion, if we estimate the term frequency, ensure it has a
10678 sane value (>= r and <= N - R + r) rather than bodging around the problem
10681 * TradWeight, BM25Weight: termfreq is always exact for matching (we only
10682 approximate it for query expansion) so replace code to work around bad
10683 approximations with Assert() to make sure this never happens.
10687 * runtest: Enhanced to allow it to run test programs under valgrind and other
10688 tools (gdb was already supported).
10690 * runtest: now works with valgrind 2.1.2 and later (valgrind's --logfile-fd
10691 option was renamed to --log-fd).
10693 * runtest: Allow VALGRIND environmental variable to override the value we got
10696 * Added a dependency so "make check" regenerates runtest if necessary.
10698 * The test programs now point the user to the runtest script if srcdir can't
10699 be guessed. And they no longer look for the test program in the tests
10700 subdirectory of the current directory.
10702 * btreetest: Fixed memory leaks in test_cursor1 (the testcase itself was
10703 causing the leak, not the library).
10705 * apitest: Fixed mset_range_is_same() and mset_range_is_same_weights() helper
10706 functions which were only comparing the first item in the range. Thankfully
10707 the tests still all pass so this wasn't hiding any bugs.
10709 * apitest: A modified version of changequery1 fails - the bug is obscure and
10710 subtle, and the fix is tricky so set the modified test to SKIP for now.
10712 * apitest: Added test_weight1 which tests the built-in Xapian::Weight
10713 subclasses and test_userweight1 which tests user defined weighting schemes
10716 * quartztest: Test with DB_CREATE_OR_OPEN in writelock1.
10720 * An interrupted update could cause any further updates to fail with "New
10721 revision too low" because the new revision was being calculated incorrectly -
10724 * Fixed Bcursor::del() which didn't always leave the cursor on the next item
10725 like it should. This may have been causing problems when trying to remove
10726 the last references to a particular term.
10728 * Fixed ultra-obscure bug in the code which finds a key suitable to
10729 discriminating between two blocks in a B-tree branch (discovered by reading
10730 the code). Comparing the keys didn't consider the length of the second, so
10731 it is possible the code would miscompare. But in reality this is extremely
10732 unlikely to happen, and even then would probably just mean that the
10733 discriminating key wouldn't be as short as it could be (wasting a few bytes
10734 but otherwise harmless).
10736 * If we're removing a posting list entirely, often there will only be one
10737 chunk, so avoid creating a Bcursor in this case.
10739 * Simplified Btree::compare_keys() by removing the last case which was dead
10740 code as it was covered by an earlier case.
10742 * Check that any user specified block size is a power of 2. If the block
10743 size passed is invalid, use the default of 8192 rather than throwing an
10746 * Started to refactor the Btree manager by introducing Item and Key classes
10747 which take care of handling the on-disk format, and eliminated duplicated
10748 tag reading code in Btree and Bcursor. These changes will pave the way for
10749 improvements to the on disk format.
10751 * Applied the Quartz "DANGEROUS" patch, but disabled for now. This way it
10752 won't keep being broken by changes to the code.
10754 * quartzcompact: Added --help and --version; Check that the source path and
10755 desitination path aren't the same; Report each table name when we start
10756 compacting it, and some simple stats on the compaction achieved when we
10761 * Removed a default parameter value from one variant of
10762 Xapian::Muscat36::open_db() so that there's only one candidate for
10767 * xapian-config: If flags are needed to select ANSI mode with the current
10768 compiler, then make xapian-config --cxxflags include them so that Xapian
10769 users don't have to jump through the same hoops we do.
10771 * xapian-config: Added --swigflags option for use with SWIG.
10773 * XO_LIB_XAPIAN now passes ac_top_srcdir to xapian-config which uses it
10774 (if provided) to say "configure.ac" or "configure.in" rather than
10775 "configure.in (or configure.ac)" in the "Add AC_PROG_LIBTOOL"
10778 * Cleaned up the build system in a few places.
10780 * Removed a few totally unneeded header includes.
10782 * Moved a number of functions and methods out of headers because they're not
10783 good inlining candidates (too big or virtual methods).
10785 * Changed C style casts to C++ style. The syntax is ugly, but they do make the
10786 intent clearer which is a good thing. Note this as a coding style guideline
10789 * configure.ac: Automatically add -Werror to CFLAGS and CXXFLAGS if
10790 maintainer mode is enabled and we're using GCC3 or newer. Don't do
10791 this for older GCCs as GCC 2.95 issues spurious warnings.
10793 * Reworked how include/xapian/version.h is generated so that it works
10794 better with compilers other than GCC, and with HP-UX sed.
10796 * XAPIAN_VERSION is now a string (e.g. "0.8.4").
10798 * Added new #define XAPIAN_REVISION (which is 4 for version 0.8.4).
10802 * docs/bm25.html,docs/intro_ir.html: Reworked to talk about Xapian
10803 rather than Muscat. Also improved the appearance of the formulae.
10805 * HACKING: Valgrind now supports x86 FreeBSD and PowerPC Linux.
10807 * Documented parameters of Enquire::register_match_decider().
10809 * We now use doxygen 1.3.8 to build documentation for snapshots and releases.
10811 * PLATFORMS: Updated from the tinderbox (which now runs builds on machines
10812 available in HP's testdrive scheme) and other assorted reports.
10814 * PLATFORMS: Removed reports from versions prior to 0.7.0. So much
10815 has changed that these are of little value.
10817 * docs/scalability.html: Added note warning about benchmarking from cold.
10819 * Assorted other minor documentation improvements.
10823 * configure.ac: Improved snprintf configure test to actually
10824 check that it works (older implementations may have different
10825 semantics for the return value, and at least one ignores the length
10826 restriction entirely!)
10828 * Reworked the GNU getopt source we use so that the header is clean and
10829 suitable for use from a reasonably ISO-conforming C++ compiler instead of
10830 being full of cruft for working around quirky C compilers which C++ compilers
10831 tend to stumble over.
10833 * Use SOCKLEN_T for the type we need to pass to various socket calls, since
10834 HPUX defines socklen_t yet wants int in those calls. Reworked the
10835 TYPE_SOCKLEN_T test we use.
10837 * On Windows, we want winsock2.h instead of sys/socket.h. Mingw doesn't seem
10838 to even have the latter, so I think previously we've been compiling by
10839 picking one up from somewhere random!
10841 * Change the small number of C sources we have to be C++ so we can compile
10842 everything with the C++ compiler. This way we don't need to worry about
10843 configure choosing a mismatching pair of compilers, or about whether
10844 configure tests with the C compiler don't apply to the C++ compiler, or vice
10847 * Compiles and passes testsuite with HP's aCC (we have to compile in
10848 ANSI mode, so we automatically add -AA to CXXFLAGS).
10850 * If the link test detects pread and pwrite are present, get configure to try
10851 out prototypes for pread and pwrite. This is much cleaner than trying to
10852 find the right combination of preprocessor defines to get each platform's
10853 system headers to provide prototypes.
10855 * configure: Disable probing for pread/pwrite on HP-UX as they're present but
10856 don't work when LFS (Large File Support) is enabled, and we definitely want
10859 * Fixed some warnings from Sun's C++ compiler.
10861 * Provide our own C_isalpha(), etc replacements for isalpha(), etc
10862 which always work in the C locale and avoid signed char problems.
10864 * For mingw/cygwin, pass -no-undefined when linking libxapianqueryparser.la
10865 so libtool builds a shared library. Also pass the magic linker flag
10866 -Wl,--enable-runtime-pseudo-reloc if configure has determined it is needed.
10868 * For cygwin, use the underlying MoveFile API call for locking, as link()
10869 doesn't work on FAT partitions. And don't rely on HAVE_LINK to control
10870 whether we use link() otherwise - if the configure test somehow misfires, a
10871 compilation error is better than using rename() on Unix as that would cause a
10872 second writer to smash the lock of the first.
10874 * Closer to building with Compaq C++ - add "-std strict_ansi" to CXXFLAGS, and
10875 tweaked the code in several places. It currently dies trying to compile
10876 the PIMPL smart pointer template code which looks hard to fix.
10880 * HACKING: Document that %% in XAPIAN_DEBUG_LOG is substituted with
10881 the process-id, and that setting XAPIAN_DEBUG_FLAGS to -1 enables
10882 all debug messages.
10884 * Removed compatibility code for checking environment variables OM_DEBUG_FILE
10885 and OM_DEBUG_TYPES.
10887 Xapian-core 0.8.3 (2004-09-20):
10891 * Fixed bug which caused a segmentation fault or odd "Document not found"
10892 exceptions when new check_at_least parameter to Enquire::get_mset() was used
10893 and there weren't many matches (regression test checkatleast1).
10897 * Renamed omtcpsrv to xapian-tcpsrv and omprogsrv to xapian-progsrv.
10901 * RPM packaging now has a separate package for the runtime libraries to
10902 allow 32 and 64 bit versions to be installed concurrently.
10904 * RPM for xapian-core now includes binaries from xapian-examples.
10908 * Fixed to compile with debug tracing enabled.
10910 Xapian-core 0.8.2 (2004-09-13):
10914 * Removed the compatibility layer which allowed programs written against the
10915 pre-0.7.0 API to be compiled.
10917 * Added new ESet methods swap(), back() and operator[].
10919 * Xapian::WritableDatabase::replace_document can now be used
10920 to add a document with a specific docid (to allow keeping docids
10921 in sync with numeric UIDs from another system).
10923 * Added Xapian::WritableDatabase::replace_document and
10924 delete_document variants which take a unique id term name rather
10925 than a document id.
10927 * Enquire::get_mset(): If a matchdecider is specified and no matches
10928 are requested, the lower bound on the number of matches must be 0
10929 (since the matchdecider could reject all the matches).
10931 * Renamed Query::is_empty() to Query::empty() for consistency. Keep
10932 Query::is_empty() for now as a deprecated alias.
10934 * Enquire::set_sorting() now takes an optional third parameter which allows
10935 you to specify a sort by value, then relevance, then docid instead of
10936 by value then docid.
10938 * Enquire::get_mset() now takes an optional "check_at_least" parameter
10939 which allows Omega's MIN_HITS functionality to be implemented in the matcher
10940 (where it can be done a bit more efficiently).
10944 * Reworked quartztest's positionlist1 into a generic api test as apitest's
10947 * apitest: Reenabled allterms2, but with the iterator copying parts removed -
10948 TermIterator is an input_iterator so that part was invalid.
10950 * Overhauled btreetest and quartztest - tests at the Btree level are now all
10951 in btreetest. Those at the QuartzDatabase level are in quartztest.
10953 * Split api_db.cc into 3 files as it has grown rather large.
10955 * tests/runtest: Added support for easily running gdb on a test program,
10956 automatically sorting out srcdir and libtool.
10960 * Refactored the quartz backend code to reduce the number of layered classes
10961 and eliminate unnecessary buffering, reducing memory usage so that more
10962 posting list changes can be batched together (see next change) and database
10963 building can be done several times faster.
10965 * Added tunable flush threshold - set XAPIAN_FLUSH_THRESHOLD=50000 to flush
10966 every 50000 documents. The default is now every 10000 documents (was
10967 every 1000 documents previously). The optimum value will most likely
10968 depend on your data and hardware.
10970 * WritableDatabase::get_document() no longer forces pending changes to be
10971 flushed. The document will read things lazily from the database, and that
10972 reading may trigger a forced flush).
10974 * WritableDatabase::get_avlength() no longer forces pending changes to be
10975 flushed. This means you can now search a modified WritableDatabase without
10976 causing a flush unless the search includes a term whose postlist has pending
10979 * Reduced quartz postlist chunk threshold from "2048 or a few bytes more" to
10980 "2000 or a few bytes more" so that full size chunks won't get split by the
10983 * Improved the "Db block overwritten" message. The DatabaseCorruptError
10984 version now suggests multiple writers may be the cause, while the
10985 DatabaseModifiedError version uses less alarming wording and says to call
10986 Database::reopen().
10988 * QuartzWritableDatabase now stores the total document length and the last
10989 docid itself rather than tallying added and removed document length and
10990 writing the last docid back every time a document is added. This gives
10991 cleaner code and a small performance win.
10993 * Make the first key null for blocks more than 1 away from the leaves.
10994 It saves disk space for a tiny CPU and RAM cost so is bound to be
10997 * matcher/localmatch.cc: Fixed problems handling termweights in queries with
10998 the same term repeated (bug #37) and added regression test (qterminfo2).
11000 * Sped up iteration over all the terms in a database (QuartzCursor now only
11001 reads the tag from the Btree if asked to).
11003 * Cancelling an operation is now implemented more efficiently.
11007 * Fixed bugs with deleting a document while a PostingIterator over it is
11012 * Fixed to compile now that internal_end_session() has gone (broken in 0.8.1).
11016 * Fixed to compile when configured with --disable-inmemory (bug #33).
11018 * XO_LIB_XAPIAN now AC_SUBSTs XAPIAN_VERSION so your application's build
11019 system can easily check for a particular version of Xapian.
11021 * When compiling with GCC, we check that the compiler used to compile the
11022 library and the compiler used to compile the application have compatible
11023 C++ ABI versions. Unfortunately GCC 3.1 incorrectly reports the same
11024 ABI version as GCC 3.0, so we now special case that test.
11026 * Bumped the versions of the autotools we require for bootstrapping, and
11027 updated the documentation of these in the HACKING document.
11029 * Quote macro names to fix warnings from newer aclocal.
11033 * Improved API documentation for Xapian::WritableDatabase::replace_document and
11036 * Added documentation comments for MSet methods size(), empty(), swap(),
11037 begin(), end(), back().
11039 * Removed bogus documentation comments saying that some Enquire methods can
11040 throw DatabaseOpeningError.
11042 * Updated quartz design docs to reflect recent changes. Also pulled
11043 out the Btree and Bcursor API docs and slotted them in as doxygen
11044 documentation comments - this way they're much more likely to
11045 be kept up-to-date.
11047 * Corrected multiple occurrences of "an Xapian::XXX" to "a Xapian::XXX"
11048 (presumably these all resulted from replacing "Om" with "Xapian::").
11050 * Various minor updates and improvements.
11054 * Reworked how we cope with fcntl.h #define-ing open on Solaris. This change
11055 finally allows Sun's C++ compiler to produce a working Xapian build on
11058 * configure.ac: Don't define DATADIR - we no longer use it and clashes
11059 with more recent mingw headers.
11061 * matcher/andpostlist.cc: Initialise lmax and rmax to 0. This cures
11062 the SIGFPE on apitest's qterminfo2 on alpha linux.
11064 Xapian-core 0.8.1 (2004-06-30):
11068 * New method Xapian::Database::get_lastdocid which returns the highest used
11069 document id for a database (useful for re-synchronizing an indexer which
11070 was interrupted). Implemented for quartz and inmemory.
11072 * Xapian::MSet::get_matches_*() methods now take collapsing into account, and
11073 the documentation has been clarified to state explicitly that collapsing and
11074 cutoffs are taken into account (bug#31).
11076 * Xapian::MSet: Need to adjust index by firstitem when indexing into items
11079 * MSetIterator and ESetIterator are now bidirectional iterators (rather than
11080 just input iterators)
11082 * Fixed post-increment forms of PostingIterator, TermIterator,
11083 PositionIterator, and ValueIterator so that *i++ works (as it must for them
11084 to be true input iterators).
11086 * Xapian::QueryParser: If we fail to parse a query, try stripping out
11087 non-alphanumerics (except '.') and reparsing.
11089 * Fixed memory leaked upon Xapian::QueryParser destruction.
11091 * Removed several unused Xapian::Error subclasses (these were used by the
11092 indexer framework which we decided was a failed experiment).
11096 * queryparsertest: Pruned near-duplicate queryparsertest testcases.
11098 * queryparsertest: Added test case for `term NOT "a phrase'.
11100 * remotetest: Use 127.0.0.1 instead of localhost so that tcpmatch1 doesn't fail
11101 just because the network setup is broken.
11103 * apitest: Make emptyquery1 check that Query("") causes an InvalidArgumentError
11108 * Fixed bug which meant we sometimes failed to remove a posting when deleting
11109 or replacing a document.
11111 * Fixed PostlistChunkReader to take a copy of the postlist data being read to
11112 avoid problems with reading data from a string that's been deleted.
11114 * Fixed bug in postlist merging which could occasionally extend a postlist
11115 chunk to overlap the docid range of the next chunk.
11117 * Eliminated the split cursor in each Btree object - we only actually need a
11118 single block buffer to handle splitting blocks. This reduces the memory
11119 overhead of each Bcursor (and hence each QuartzPostList).
11121 * Changed 2 calls to abort() to throw Xapian::DatabaseCorruptError instead,
11123 * If Btree is writable, throw DatabaseCorruptError if we detect overwritten.
11125 * Check the return value of fdatasync()/fsync()/_commit() and raise an error.
11126 If they fail, we really want to know as it could cause data corruption.
11128 * Assorted clean ups, improved comments, debug tracing, assertions.
11130 * When merging in postlist changes, removed an unneeded call to
11131 QuartzBufferedTable::get_or_make_tag() in a case when we're using a cursor
11132 which has already fetched the tag.
11134 * Added SON_OF_QUARTZ define to disable incompatible changes to database
11135 formats by default, and use it to control the docid encoding for keys such
11136 that we're always inserting at the end of the table when added new documents.
11138 * Reopening the readonly version of a writable Btree is now more efficient
11139 (we used to close and reopen all the files and destroy and recreate a lot
11140 of objects and buffers).
11142 * Share file descriptors between the read and write Btree objects so that a
11143 quartz WritableDatabase now uses 5 fds rather than 10.
11145 * Added configure test for glibc, because otherwise we need to include a header
11146 before we can check for glibc in order to define something we should be
11147 defining before we include any headers! Defining _XOPEN_SOURCE on OpenBSD
11148 seems to do the opposite to Linux and *disable* pread and pwrite!
11152 * Stripped out the session machinery - all that is actually required is to
11153 ensure that any unflushed changes are flushed when the destructor runs.
11155 * A few other backend interface cleanups.
11159 * Unified the shlib version numbers (the small benefit of tracking them
11160 individually makes it hard to justify the extra work required, and having one
11161 version simplifies debian packaging too).
11163 * configure.in: Fix typo (STLPORT_CXXLAGS -> STLPORT_CXXFLAGS)
11165 * Removed trivial m4/Makefile.am and autoconf/Makefile.am and do the work
11166 from the top level Makefile.am instead. It's easier to see the structure
11167 this way, and it also removes a couple of recursive make invocations which
11168 will speed up builds a little.
11172 * HACKING: Added a list of subtasks when doing a release.
11173 Currently it's always me that does this, but it may not always be
11174 and anyhow it'll help me to have a list to run through.
11176 * include/xapian/database.h: Remove references to sessions in doxygen
11179 * docs/quickstart.html: Corrected lingering reference to "om.h" and
11180 note that we need <iostream>.
11182 * docs/quickstartindex.cc.html,docs/quickstartexpand.cc.html,
11183 docs/quickstartsearch.cc.html: Add <iostream>.
11185 * PLATFORMS,AUTHORS: Updated.
11187 * docs/quartzdesign.html: Corrected various pieces of out of date
11188 information, and improved wording in a couple of places.
11190 * docs/scalability.html: Removed the reference to the Quartz update bottleneck
11191 "currently being addressed for Xapian 0.8" as it's now been addressed! Also
11192 reworded to remove use of first person (it was originally a message sent to
11195 Xapian-core 0.8.0 (2004-04-19):
11197 * Omega, xapian-examples and xapian-bindings now have their own NEWS files.
11201 * Throw an exception when an empty query is used to build in the binary
11202 operator Query constructor (previously this caused a segfault. Added
11205 * Made the TradWeight constructor explicit. This is technically an API change
11206 as before you could pass a double where a Xapian::Weight was required - now
11207 you must pass Xapian::TradWeight(2.0) instead of 2.0. That seems desirable,
11208 and it's unlikely any existing code will be affected.
11210 * Added "explicit" qualifier to constructors for internal use which take a
11213 * Renamed Xapian::Document::add_term_nopos to Xapian::Document::add_term
11214 (with forwarding wrapper method for compatibility with existing code).
11216 * The reference counting mechanism used by most API classes now handles
11217 creating a new object slightly more efficiently.
11219 * Xapian::QueryParser: Don't use a raw term for a term which starts with a
11224 * apitest, quartztest: Added a couple of tests, and commented out some test
11225 lines which fail in debug builds.
11227 * quartztest: cause a test to fail if there's still a directory after a call
11228 to rmdir(), or if there isn't a directory after calling mkdir().
11230 * apitest: Check returned docids are the expected values in a couple more
11231 cases. Improved wording of a comment.
11235 * We now merge a batch of changes into a posting list in a single pass which
11236 relieves an update bottleneck in previous versions.
11238 * When storing the termlist, pack the wdf into the same byte as the reuse
11239 length when possible - doing so typically makes the termlist 14% smaller!
11240 This change is backward compatible (0.7 database will work with 0.8, but
11241 databases built or updated with 0.8 won't work with 0.7).
11243 * quartzcheck: Check the structure within the postlist Btree as well as
11244 the Btree structures themselves.
11246 * Reduced code duplication in the btree manager and btreechecking code.
11248 * quartzdump: Backslash escape space and backslash in output rather than hex
11249 encoding them; renamed start-term and end-term to start-key and end-key;
11250 removed rather pointless "Calling next" message; if there's an error, write
11251 it to stderr not stdout, and exit with return code 1.
11253 * Corrected a number of comments in the source.
11255 * Removed several needless inclusions of quartz_table_entries.h.
11257 * Removed OLD_TERMLIST_FORMAT code - it has been disabled for since 0.6.0.
11259 * Removed all the quartz lexicon code and docs. It's been disabled for ages,
11260 and we've not missed it.
11264 * XO_LIB_XAPIAN autoconf macro can now be called without arguments in the
11265 common case where you want the test to fail if Xapian isn't found.
11267 * Fixed the configure test for valgrind - it wasn't working correctly when
11268 valgrind was installed but was too a version to support VALGRIND_COUNT_ERRORS
11269 and VALGRIND_COUNT_LEAKS.
11271 * GCC 2.95 supported -Wno-long-long and is our minimum recommended version, so
11272 unconditionally use -Wno-long-long with GCC, and don't test for it on other
11273 compilers (the old test incorrectly decided to use it with SGI's compiler
11274 resulting in a warning for every file compiled).
11278 * Updated the quickstart tutorial and removed the warning that "this
11279 document isn't up to date".
11281 * docs/intro_ir.html: Added a link to "Information Retrieval" by Keith van
11282 Rijsbergen which can be downloaded from his website!
11284 * docs/quartzdesign.html: Some minor improvements.
11286 * docs/matcherdesign.html: Merged in more details from a message sent to the
11289 * docs/queryparser.html: Grammar fixes.
11291 * Doxygen wasn't picking up the documentation for PostingIterator and
11292 PositionListIterator - fixed. Added doxygen comments for Xapian::Stopper
11293 and Xapian::QueryParser.
11295 * PLATFORMS: Updated with many results from tinderbox and from users.
11297 * AUTHORS: Updated the list of contributors.
11299 * HACKING: XAPIAN_DEBUG_TYPES should be XAPIAN_DEBUG_FLAGS.
11301 * HACKING: Updated to mention that building from CVS requires
11302 `./configure --enable-maintainer-mode' (or use bootstrap).
11304 * HACKING: Added notes about using "using", and pointers to a couple of useful
11309 * Solaris: Code tweaks for compiling with Sun's C++ compiler.
11311 * IRIX: Code tweaks for compiling with SGI's C++ compiler.
11313 * NetBSD mkdir() doesn't cope with a trailing / on the path - fixed our code to
11316 * mingw/cygwin: Only use O_SYNC (on the debug log) if the headers define it.
11318 * backends/quartz/quartz_table_manager.cc: Fix for building on mingw.
11320 * mingw: Added configure test for link() to avoid infinite loop in our C++
11323 * mingw and cygwin both need -Wl,--enable-runtime-pseudo-reloc passing when
11324 linking. Arrange for xapian-config to include this, and check that the ld
11325 installed is a new enough version (or at least that it was at configure
11326 time). Also pass to programs linked as part of the xapian-core build.
11328 * cygwin: Close a QuartzDatabase or QuartzWritableDatabase before trying to
11329 overwrite it - cygwin doesn't allow use to delete open/locked files...
11331 * backends/quartz/quartz_termlist.cc: Use Xapian::doccount instead of
11332 unsigned int in set_entries().
11334 * Database::Internal::Internal::keep_alive() should be
11335 Database::Internal::keep_alive().
11337 * Make Xapian::Weight::Weight() protected rather than private as we want to be
11338 able to call it from derived classes (GCC 3.4 flags this, other compilers
11343 * Open debug log with flag O_WRONLY so that we can actually write to it!
11345 * backends/quartz/quartz_values.cc: Fixed problem with dereferencing
11346 a pointer to the end of a string in debug output.
11348 Xapian 0.7.5 (2003-11-26):
11352 * Xapian::QueryParser now supports prefixes on phrases and expressions (e.g.
11353 author:(twain OR poe) subject:"space flight").
11355 * Added missing default constructors for TermIterator, PostingIterator, and
11356 PositionIterator classes.
11358 * Fixed PositionIterator assignment operator.
11362 * queryparsertest: Added testcase for new phrase and expression prefix support.
11364 * apitest: Added regression tests for API fixes.
11368 * quartzcompact: Fix the name that the meta file gets copied to (was
11369 /path/to/dbdirmeta rather than /path/to/dbdir/meta).
11373 * Changed to using AM_MAINTAINER_MODE. If you're doing development work on
11374 Xapian itself, you should configure with "--enable-maintainer-mode" and
11375 ideally use GNU make.
11377 * Fixed configure test for fdatasync to work (I suspect a change in a recent
11378 autoconf broke it as it relied on autoconf internal naming).
11380 * Fully updated to reflect move of libbtreecheck.la from backends/quartz
11381 to testsuite. btreetest and quartzcheck should build correctly now.
11385 * Added first cut of documentation for Xapian::QueryParser query syntax.
11387 * Fixed incorrectly formatted doxygen documentation comments which resulted in
11388 some missing text in the collated API and internal classes documentation.
11390 * Documented --enable-maintainer-mode and problems with BSD make in HACKING.
11392 * Fixed typo in docs/scalability.html.
11394 * PLATFORMS: Updated from the tinderbox.
11398 * omega: Parsing of the probabilistic query is now delayed until we need some
11399 information from it. This means that we can now use options set by the
11400 omegascript template to control the behaviour of the query parser.
11401 $set{stemmer,...} now controls the stemming language (e.g. $set{stemmer,fr})
11402 and $setmap{prefix,...} now sets the QueryParser prefix map (e.g.
11403 $setmap{prefix,subject,XT,abstract,XA}).
11405 * omega: Fixed $setmap not to add bogus entries.
11407 * docs/omegascript.txt: Expanded documentation of $set and $setmap to list
11408 values which Omega itself makes use of.
11410 * omega: Cleaned up the start up code quite a bit.
11412 * omega: Removed the unfinished code for caching omegascript command
11413 expansions. Added code to cache $dbsize. The only other value correctly
11414 marked for caching is already being cached!
11416 Xapian 0.7.4 (2003-10-02):
11420 * Fixed small memory leak if Xapian::Enquire::set_query() is called more than
11423 * Xapian::ESet now has reference counted internals (library interface version
11424 bumped because of this).
11426 * Removed unused OmDocumentTerm::termfreq member variable.
11428 * OmDocumentTerm ctor now takes wdf, and replaced set_wdf() with inc_wdf() and
11431 * Removed unused open_document() method from SubMatch and derived classes.
11433 * Calls made by the matcher to Document::Internal::open_document() now use the
11434 lazy flag provided for precisely this purpose, but apparently never used -
11435 this should give quite a speed boost to any matcher options which use values
11436 (e.g. sort, collapse).
11440 * Finished off support for running tests under valgrind to check for memory
11441 leaks and access to uninitialised variables.
11443 * apitest: Sped up deldoc4.
11445 * btreetest: Removed superfluous `/'s from constructed paths.
11447 * quartztest: adddoc2 now checks that there weren't any extra values created.
11451 * quartz: don't start the document's TermIterator from scratch on every
11452 iteration in replace_document(). Should be a small performance win.
11454 * quartz: Pass 0 for the lexicon/postlist table when creating a termlist just
11455 to find the doc length.
11457 * quartz: quartz_table_entries.cc: Removed rather unnecessary use of
11460 * quartz: quartz_table.cc: Removed unused variable.
11462 * quartz: Improved encapsulation of class Btree.
11466 * libbtreecheck.la now has an explicit dependency on libxapian.la.
11468 * We now set the dependencies for libxapian correctly so that linking
11469 applications will pull in other required libraries.
11471 * matcher/Makefile.am: Ship networkmatch.cc even if "make dist" is run from a
11472 tree with the remote backend disabled.
11474 * configure.in: Sorted out tests for gethostbyname and gethostbyaddr using
11475 standard autoconf macros.
11477 * configure.in: If fork is found, but socketpair isn't, automatically disable
11478 the remote backend rather than configure dying with an error.
11480 * autoconf/: Removed various unused autoconf macros.
11484 * xapian-config.in: Link with libxapianqueryparser before libxapian, since
11485 that's the dependency order.
11487 * Removed or replaced uses of <iostream> and <iosfwd> in the library sources
11488 - we don't need or want the library to pull in cin and friends.
11490 * extra/queryparser.yy: Fixed to build with Sun's C++ compiler.
11492 * Make the dummy source file C++ rather than C so that automake tells libtool
11493 that this is a C++ library - vital for correct linking on some platforms.
11495 * Makefile.am: Pass -no-undefined to libtool so that we can build build a DLL
11498 * configure.in: Fixed check for socketpair - we were automatically disabling
11499 the remote backend on platforms where socketpair is in libsocket
11502 * Use O_BINARY for binary I/O if it exists.
11504 * common/utils.h: mkdir() only takes one argument on mingw.
11506 * common/utils.h,testsuite/backendmanager.cc: Touch file using open() rather
11509 * common/utils.cc: Fixed to compile if snprintf isn't available.
11513 * docs/scalability.html: Fixed slip (32GB should be 32TB); Added note about
11514 Linux 2.4 and ext2 filesize limits.
11516 * PLATFORMS: Updated.
11518 * NEWS: Fixed a few typos.
11522 * xapian.i: using namespace std in SWIG parsed segment to sort out typemaps.
11526 * Updated RPM packaging.
11530 * omega: $topdoc now ensures the match has been run; $date no longer ensures
11531 the match has been run.
11533 * omega: Fixed to build with Sun's C++ compiler.
11535 Xapian 0.7.3 (2003-08-08):
11539 * MSetIterator: Fixed MSetIterator::get_document() to work when get_mset() was
11540 called with first != 0 (regression test msetiterator3).
11544 * internaltest: Changed test exception1 to actually test something (hopefully
11545 what was originally intended!)
11547 * Added long option support to the testsuite programs (and quartzdump).
11549 * Testsuite now builds on platforms for which we use our own stringstream
11552 * Only use \r in test output if the output is a tty.
11554 * Increased default timeout used by tests running on the remote backend from 10
11555 seconds to 5 minutes to avoid tests failing just because the machine running
11556 them is slow and/or busy.
11558 * Fixed check for broken exception handling - we were getting "Xapian::"
11559 prefixed to one version and not on the other.
11561 * tests/runtest: Set srcdir if it isn't already to make it easy to manually run
11562 test programs from a VPATH build.
11564 * apitest: Check termfreq in allterms4.
11568 * quartz: Fixed allterms TermIterator to not give duplicate terms when a
11569 posting list is chunked; added regression test (allterms4).
11571 * quartz: Check for EINTR when reading or writing blocks and retry the
11572 operation. This should mean quartz won't fail falsely if a signal is
11573 received (e.g. if alarm() is used).
11577 * Renamed libomqueryparser to libxapianqueryparser - for backward compatibility
11578 we still provide a library with the old name for now.
11580 * xapian.m4: Added XO_LIB_XAPIAN to replace OM_PATH_XAPIAN. XO_LIB_XAPIAN will
11581 automagically enable use of "xapian-config --ltlibs" if A[CM]_PROG_LIBTOOL is
11582 used in configure.in.
11584 * xapian-config: Now supports linking with libtool - using libtool means that
11585 the run-time library path is set and that you can now link with an
11586 uninstalled libxapian. Also xapian-config will now work once xapian-core's
11587 configure has been run, rather than only after "make all".
11589 * xapian-config: Now automatically tries to link libxapianqueryparser too.
11591 * bootstrap: Removed bootstrap scripts in favour of top-level bootstrap which
11592 creates a top-level configure you can optionally use to configure all checked
11593 out Xapian modules with one command, and which creates a top level Makefile
11594 to build all checked out Xapian modules with one command.
11596 * Added versioning information to libxapian and libxapianqueryparser.
11598 * xapian-example/omega: Use libtool and XO_LIB_XAPIAN so we can link with an
11599 uninstalled Xapian, and so the run time load path gets built into the
11600 binaries (no need to set LD_LIBRARY_PATH just because you install Xapian with
11601 a non-standard prefix).
11603 * configure: Stop the API documentation from being regenerated when
11604 include/xapian/version.h changes (since it's generated by configure).
11606 * Fixed "make dist" in VPATH builds.
11610 * common/getopt.h: #include <stdlib.h>, <stdio.h>, and <unistd.h> before
11611 defining getopt as a macro - this avoids problems with clobbering prototypes
11612 of getopt() in system headers.
11614 * bin/quartzcompact.cc: Need stdio.h for rename().
11616 * languages/Makefile.am: Fixed compilation for compilers other than GCC.
11618 * Moved rset serialisation into a method of RSet::Internal, so
11619 omrset_to_string() is now just glue code. This eliminates the need for it to
11620 be a friend of RSet::Internal which Sun's C++ compiler didn't seem to be able
11625 * Fix incorrect documentation comment for Enquire::set_set_forward(). (Looked
11626 like a cut&paste error)
11628 * COPYING: Updated FSF address, and reinstated missing section: "How to Apply
11629 These Terms to Your New Programs"
11631 * PLATFORMS: Updated some linux results: RH7.3 on x86, and Debian on alpha and
11632 arm; Updated FreeBSD success report; Updated with results from the tinderbox.
11634 * docs/mkdoc.pl: Don't choke on a comment at the end of the DIST_SUBDIRS line
11637 * HACKING: Improved note about why libtool 1.5 is needed.
11639 * HACKING: Added note about additional tools needed for building a
11644 * Fixed VPATH builds.
11646 * python: Fixed to link with libomqueryparser.
11648 * guile,tcl8: Updated typemaps to SWIG 1.3 style.
11652 * omindex.cc: Added missing `#include <errno.h>'.
11654 * omindex/scriptindex: Fixed signed character issue in accent normalisation.
11656 * omindex: fixed memory and file descriptor leak on indexing a zero-sized file.
11658 * omindex: Fixed sense of test for unreadable files.
11660 * omindex: Improved log messages to distinguish re-indexed/added.
11662 * omindex,omega,scriptindex: Fixed to compile with mingw.
11664 * omindex: Fixed to compile with GNU getopt so we can build on non-glibc
11669 * msearch: Quick fix to get mingw building going.
11671 * getopt: Copied over our fixes for better C++ compatibility.
11673 * simplesearch: Stem search terms.
11675 * simpleindex: Fixed not to run words together between lines.
11677 * simpleindex: Create database if it doesn't exist.
11679 Xapian 0.7.2 (2003-07-11):
11683 * Fixed NULL pointer dereference when a test threw an unexpected exception.
11687 * Quartz: When asked to create a quartz database, try to create the directory
11688 if it doesn't already exist. Then we don't have to do it in every single
11689 Xapian program which wants to create a database...
11693 * common/getopt.h: Fixed to work better with C++ compilers on non-glibc
11696 * common/utils.h: missing #include <ctype.h>
11698 * Quartz: Defined _XOPEN_SOURCE=500 for GLIBC so we get pread() and pwrite().
11700 * common/utils.h: Improved mingw implementation of rmdir().
11704 * PLATFORMS: Added MacOS X 10.2 success report.
11706 * Improvements to doxygen-generated documentation.
11710 * Moved to separate xapian-bindings module.
11712 * Added configure check for SWIG version (require at least 1.3.14).
11714 * bindings/swig/xapian.i: Fixed over-enthusiastic automatic conversion of
11715 termname to std::string.
11717 * PHP4 bindings much closer to working once again; updated guile and tcl8
11722 * omega: If the same database is listed more than once, only search the first
11725 * omega: use snprintf to help guard against buffer overflows.
11727 Xapian 0.7.1 (2003-07-08):
11731 * Fixed testsuite programs to not try to use "rm -rf" under mingw.
11735 * Quartz: Use pread() and pwrite() on platforms which support them. Doing so
11736 avoids one syscall per block read/write.
11738 * Quartz block count is now unsigned, which should nearly double the size of
11739 database for a given block size. Not tested this yet.
11743 * omindex: Fixed compilation problem in 0.7.0.
11747 * Added new document discussing scalability issues.
11749 * PLATFORMS: Updated.
11751 Xapian 0.7.0 (2003-07-03):
11755 * Moved everything into a Xapian namespace, which the main header now being
11756 xapian.h (rather than om/om.h).
11758 * Three classes have been renamed for better naming consistency:
11759 OmOpeningError is now Xapian::DatabaseOpeningError, OmPostListIterator is
11760 now Xapian::PostingIterator, and OmPositionListIterator is now
11761 Xapian::PositionIterator.
11763 * xapian.h includes <iosfwd> rather than <iostream> - if you were relying on
11764 the implicit inclusion, you'll need to add an explicit "#include <iostream>".
11766 * Replaced om_termname with explicit use of std::string - om_termname was just
11767 a typedef for std::string and the typedef doesn't really buy us anything.
11769 * Older code can be compiled by continuing to use om/om.h which uses #define
11770 and other tricks to map the old names onto the new ones.
11772 * Define XAPIAN_VERSION (e.g. 0.7.0), XAPIAN_MAJOR_VERSION (e.g. 0), and
11773 XAPIAN_MINOR_VERSION (e.g. 7).
11775 * Updated omega and xapian-examples to use Xapian namespace.
11779 * Xapian::QueryParser: Accent normalisation added; Improved error reporting;
11780 Fixed to handle the most common examples found in the wild which used to give
11785 * Python bindings brought up to date - use ./configure --enable-bindings to
11786 build them. Requires Python >= 2.0 - may require Python >= 2.1.
11788 * Enabled optional building of bindings as part of normal build process. Old
11789 Perl and Java bindings dropped; for Perl, use Search::Xapian from CPAN; Java
11790 JNI bindings will be replaced with a SWIG-based implmentation.
11792 internal implementation changes:
11794 * Removed one wrapper layer from the internal implementation of most API
11797 * Xapian::Stem now uses reference counted internals.
11799 * Internally a lot of cases of unnecessary header inclusion have been removed
11800 or replaced with forward declarations of classes. This should speed up
11801 compilation and recompilation of the Xapian library.
11803 * Suppress warnings in Snowball generated C code.
11805 * Reworked query serialisation in the remote backend so that the code is now
11806 all in one place. The serialisation is now rather more compact and no longer
11807 relies on flex for parsing.
11811 * Moved all the core library tests to tests subdirectory.
11813 * apitest now allows backend to be specified with "-b" rather than having to
11814 mess with environmental variables.
11816 * Testsuite programs can now hook into valgrind for leak checking, undefined
11817 variable checking, etc.
11821 * Fixed parsing of port number in remote stub databases.
11823 * Quartz: Improved error message when asked to open a pre-0.6 Quartz database.
11825 * Quartz backend: Workaround for shared_level problem turns out to
11826 be arguably the better approach, so made it permanent and tidied up
11831 * Build system fixed to never leave partial files in place of the expected
11832 output if a build is interrupted.
11834 * quartzcheck, quartzdump, and quartzcompact are now built by "make" rather
11835 than only by "make check".
11837 * xapian-config: Removed --prefix and --exec-prefix - you can't reliably
11838 install Xapian with a different prefix to the one it was configured with,
11839 yet these options give the impression you can.
11843 * Fixed sending debug output to a file with XAPIAN_DEBUG_LOG with a value which
11844 didn't contain "%%" (%% expands to the current PID).
11846 * Fixed Xapian::MSetIterator::get_collapse_count() to work as intended.
11850 * omindex,scriptindex: Normalise accents in probabilistic terms.
11852 * omindex: Read output from pstotext and pdftotext via pipes rather
11853 than temporary files to side-step the whole problem of secure temporary file
11854 creation; Use pdfinfo to get the title and keywords from when indexing a PDF;
11855 Safe filename escaping tweaked to not escape common safe punctuation.
11857 * omindex: Implement an upper limit on the length of URL terms - this is a
11858 slightly conservative 240 characters. If the URL term would be longer than
11859 this, its last few bytes are replaced by a hash of the tail of the URL. This
11860 means that (apart from hopefully very rare collisions) urlterms should still
11861 be unique ids for documents. This is forward and backward compatible for
11862 URLs less than 240 characters.
11864 * omindex: Clean up processing of HTML documents:
11865 - Ignore the contents of <script> and <style> tags in HTML.
11866 - Strip initial whitespace in each tag in an HTML document.
11867 - Try not to split words in half when truncating title and summary.
11869 * query.cc: Set STEM_LANGUAGE near the start of the file so it's easy
11870 for users to change until we get better configurability.
11872 * omega: Replaced half-hearted logging support with flexible OmegaScript-based
11873 approach with new $log command. Also added $now to allow the current
11874 date/time to be logged.
11876 * templates/xml: added collapse info to xml template.
11880 * Assorted minor documentation improvements.
11882 * PLATFORMS: Updated.
11886 * Improved RPM packaging of xapian-core and omega.
11888 Xapian 0.6.5 (2003-04-10):
11890 * OmEnquire: optimised the handling when sort_bands == 1 and fixed incorrect
11891 results in this and some other sorting cases; added some sorting testcases.
11893 * OmMSetIterator: added get_collapse_count() which returns a lower bound on
11894 the number of items which were removed by collapsing onto the current item.
11896 * OmStem: added default OmStem constructor and "none" language. Both of these
11897 give a stemmer object which leaves terms unchanged which should allow for
11898 simpler logic in programs using Xapian. The default constructor also removes
11899 the need to mess with pointers in some cases.
11901 * Automatically disable the remote backend if we don't have fork() since the
11902 remote backend requires it in several places.
11904 * Fixed to build with debug enabled.
11906 * testsuite: fixed to still build when some backends are disabled.
11908 * extra/parsequerytest.cc: Fixed to build with GCC 2.95.
11910 * Testsuite: Added regression test for Quartz bug which caused problems with
11911 long terms on machines with signed chars.
11913 * testsuite/index_utils.cc: Handling of ^x was just downright wrong due to a
11916 * Improved portability: Fix for 64 bit machines. Fixed btreetest to build with
11917 older compilers lacking <sstream>. Xapian is now much closer to building
11918 with Sun's CFront-based Sun Pro C++ compiler, and with a Linux to mingw
11921 * PLATFORMS: Updated with the results of many test builds.
11923 * Improved RPM packaging of xapian-core and omega.
11925 * Documentation: Use http://www.doxygen.org/ as URL for doxygen; Fixed bad link
11926 to our own website in overview.html; code_structure.html now only includes
11927 directories in the build system.
11929 * HACKING: updated.
11931 * Removed bugs/todo.xml, TODO, TODO.release, docs/todo.html, and
11932 docs/todo-release.html from the distribution. Bugs and todo items will be
11933 tracked in Bugzilla instead.
11935 * Install docs in /usr/share/doc/xapian-core instead of /usr/share/xapian-core.
11937 * omega: If xP and P are both empty, there may be a boolean query, so don't
11938 force first page of hits.
11940 * omega: Fixed off-by-one error in rounding down topdoc - it was possible to
11941 get to an empty page of hits if there were exactly a multiple of HITSPERPAGE
11942 matches and the matcher over-estimated the number of matches and Omega
11943 displayed page links.
11945 * omega: Fixed handling of multiple DB parameters to be as documented.
11947 * omega: Added $collapsed to report get_collapse_count() for the current hit.
11949 * omega: Added $transform{} which does regexp manipulation (currently disabled
11950 until configure tests for regexp library are added)
11952 * omega: Added $uniq{} to eliminate duplicates from a sorted list.
11954 * omega: Don't force page 1 for a query with repeated terms!
11956 * omega: removed duplicates from terms listed in term frequencies.
11958 * omega: Added cgi parameter COLLAPSE to collapse on key values
11960 * omega: Added $value{key[,docid]} support to omegascript
11962 * omega: Renamed DATE1, DATE2, and DAYSMINUS to the more meaningful START, END,
11963 and SPAN (NB SPAN is days before END, or after START, or before today -
11964 whereas SPAN was before *DATE1* or before today). The old parameters names
11965 are supported (with the original semantics) for now.
11967 * omega: Actually install documentation!
11969 * templates/query: propagate B boolean filters
11971 * templates/godmode: removed link to EuroFerret image
11973 * templates/godmode: added value dumping, for values from 0-255
11975 * omindex: Report correct version number (was hard-wired to 1.0!)
11977 * scriptindex: Allow '_' in fieldnames. Diagnose bad characters in fieldnames
11980 * dbi2omega: Added DBUSER and DBPASSWD environmental variable support so that
11981 password protected DBs can easily be used
11983 * scriptindex.cc: added missing "#include <stdio.h>" which caused builds
11984 to fail for some platforms.
11986 Xapian 0.6.4 (2002-12-24):
11988 * Quartz backend: Fixed double setting of position list when updating a
11989 document with term position information (overall result was correct, just
11990 inefficient); when deleting a position_list, don't check if it's empty,
11991 just ask the layer below to delete it and let it handle the case when
11992 there's nothing to delete; Fixed unpacking of termlist on platforms where
11995 * OmQueryParser: Added support for searching probabilistic fields (using
11996 <field>:<term>); the unstem multimap now includes "." on the end of a
11997 term if it was there in the query.
11999 * Don't include "om.h" as a dependency for the api docs since it's generated
12000 a configure time and the dependency was forcing users to regenerate the
12001 documentation, which requires doxygen to be installed.
12003 * Bindings: Python bindings updated to work with the updated API (still
12004 disabled by default).
12006 * Muscat 3.6 backend: Fixed to build with the new database factory functions;
12007 fixed compilation warnings; Muscat 3.6 DA and DB databases don't support
12008 positional information. Instead of throwing an exception when we try to
12009 access it, return an empty position list (like a quartz database with no
12010 position information would). This allows copydatabase to be used to convert
12011 a Muscat 3.6 database to a quartz one.
12013 * Documentation: quartzdesign and todo list updated.
12015 * quartzcheck: default mode changed to "v" rather than "+", since "+" is too
12016 verbose for a btree of any size; if you pass a quartz database directory,
12017 quartzcheck will now check all the tables which make up a quartz database.
12019 * quartzcompact: new tool which makes a copy of a quartz database with full
12020 compaction turned on - this results in a smaller database which is faster
12021 to search. The next update will result in a lot of block splitting though
12022 (since all blocks are as full as possible).
12024 * omega: Added $unstem to map a stemmed term to the form(s) used in the query;
12025 $queryterms now only includes the first occurrence of each stemmed form;
12026 $prettyterm makes use of the unstem map; prefer MINHITS to MIN_HITS and
12027 RAWSEARCH to RAW_SEARCH since none of the other CGI parameter names have
12028 _ separating words (continue to support old names for now); fixed default
12029 template to not generate topterms twice, and fixed topterms to not stick
12030 outside the green box; corrected omegascript docs - it's $setrelevant
12033 * scriptindex: index=nopos with new indexnopos action; index and indexnopos now
12034 take an optional prefix argument; index=nopos is handled specially for
12035 backwards compatibility; added new data action to generate terms for date
12038 Xapian 0.6.3 (2002-12-14):
12040 * Updated PLATFORMS and todo list. Noted in HACKING that Bison 1.50 seems to
12043 * OmQueryParser now creates an "unstem" multimap to allow probabilistic
12044 query terms to be converted back to the form the user originally typed.
12046 * Updated documentation for remote protocol description and the quickstart
12047 tutorial which were both very out of date.
12049 * No longer use OmSettings to pass matcher parameters. This completes the
12050 removal of OmSettings.
12052 * Added workaround for problem with cursors sharing levels in the btree.
12053 This should fix sporadic problems with large databases (small databases
12054 have fewer btree levels so aren't affected).
12056 * Stub databases now work again, though with a different format. The new
12057 format allows multiple databases to be specified in the stub file.
12059 * OmEnquire::get_eset() now takes a flags argument of bit constants |-ed
12060 together instead of 2 bools.
12062 * Applied Martin Porter's better fix for the btree sequential addition bug
12063 which Richard fixed a few months ago. Richard's fix resulted in a correct
12064 btree, but didn't always utilise space as efficiently as possible.
12066 * Fixed the remote backend to handle weighting schemes after the OmSettings
12067 changes. You can now even implement your own weighting scheme and use it
12068 with the remote backend provided you register it with SocketServer at
12069 runtime (this feature has been on the todo list for ages).
12071 Xapian 0.6.2 (2002-12-07):
12073 * Set env var XAPIAN_SIG_DFL to stop the testsuite installing its
12074 signal handler (may be useful with some debugging tools).
12076 * backends/quartz/btree.cc: max_item_size wasn't being set due to
12077 some over-zealous code pruning. It was defaulting to 0, and
12078 was causing the code to write off the end of allocated memory
12081 * matcher/localmatch.cc: fixed handling of wtscheme() - we were
12082 trying to use it for the extra weights, and then double
12085 * common/omdebug.cc,common/omdebug.h: Fixed permissions on newly
12086 created log file (was getting 000!); Simplified class internals;
12087 Renamed env vars: OM_DEBUG_FILE is now XAPIAN_DEBUG_LOG,
12088 OM_DEBUG_TYPES is now XAPIAN_DEBUG_FLAGS (old versions still work
12091 * testsuite/testsuite.cc: Fixed so running "gdb .libs/apitest"
12092 finds srcdir (for an in-tree build at least).
12094 * Fixed to compile with --enable-debug=full.
12096 * docs/remote.html: Updated from OmSettings to factory functions.
12098 * PLATFORMS: ixion is actually Linux 2.2.
12100 * OmWritableDatabase now has a default constructor.
12102 * Weighting scheme now specified by passing OmWeight object to OmEnquire.
12103 This also allows user weighting schemes (just subclass OmWeight and
12104 pass in an instance of this new class). [This doesn't currently work
12105 with the remote backend.]
12107 * No longer use OmSettings to specify parameters for constructing databases.
12108 Instead there's a factory function for each database type - temporary naming
12109 scheme is OmXxx__open(), mostly because it's easy to grep for later.
12110 Instead of create and overwrite flags, we pass in a value - a new possible
12111 opening mode is "create or open". [At present stub databases and the
12112 machinery in InMemory to allow the multierrhandler1 test aren't working.
12113 Everything else should be.]
12115 * OmEnquire::get_eset() takes parameters instead of an OmSettings object.
12117 * Fixed reversed sense of use_query_terms (and fixed reversed sense test in
12118 apitest which meant this wasn't spotted).
12120 * Documentation: Link to annotated class lists in doxygen generated
12121 documentation instead of the rather empty index pages; added doxygen
12122 markup so that apidoc now documents header files; updated todo list.
12124 * Documentation: intro doc thing was very out of date in places - fixed.
12126 * Omega: index .php files as HTML, with the PHP code stripped out; omindex
12127 return non-zero return code if an unexpected exception is caught; fixed
12128 HTML parser to not read one character past the end of the document in
12129 some cases; updated in line with OmSettings related changes to the API;
12130 Fixed $dbname to return "default" for the default database instead of "";
12131 templates/query: Removed now unused xDEFAULTOP hidden field, and superfluous
12132 "}"; dbi2omega now more efficient and can be restricted to listed fields.
12134 Xapian 0.6.1 (2002-11-28):
12136 * Fixed to compile with GCC 3.0.
12138 * PLATFORMS: Updated.
12140 Xapian 0.6.0 (2002-11-27):
12142 * Quartz database backend: lexicon disabled (./configure CXXFLAGS=-DUSE_LEXICON
12143 to reenable it), and encoding schemes simplified and made more compact;
12144 extended and added test cases; minimum block size is now 2048 bytes (as
12145 documented before, but now we actually enforce this); btree checking code
12146 split off and only linked in when required; tidied up btreetest's output.
12148 * Replaced our stemmers with those from Snowball. These give better results,
12149 and are actively maintained by Martin Porter (who wrote the original Xapian
12150 stemmers too). It also means that Xapian now has stemmers for Finnish,
12151 and Russian, and an implementation of Lovins' English stemmer.
12153 * Assorted improvements to the documentation, especially the documentation
12154 of the internals of the Quartz backend.
12156 * Removed the three uses of RTTI (typeid() and dynamic_cast<>) - one was
12157 totally superfluous, and the other two easily avoided.
12159 * Omega and simpleindex example: limit probabilistic term length to 64
12160 characters to stop the index filling up with junk terms which nobody will
12163 * Omega: Added dbi2omega perl script to dump any database which perl DBI can
12164 access into the dump format expected by scriptindex.
12166 Xapian 0.5.5 (2002-12-04):
12168 * Fixed compilation with --enable-debug.
12170 * Minor documentation updates.
12172 * Omega: Fixed paging on default database; removed xDEFAULTOP from the query
12173 template as it's no longer used; removed bogus unmatched '}' from query
12174 template; added dbi2omega perl script to dump any database which perl DBI
12175 can access into the dump format expected by scriptindex; limit length of
12176 probabilistic terms generated to 64 characters.
12178 Xapian 0.5.4 (2002-10-16):
12180 * Fixed a compilation error with "make check" when using GCC 3.2.
12182 * PLATFORMS: checked 0.5.3 works on OpenBSD and Solaris 7.
12184 Xapian 0.5.3 (2002-10-12):
12186 Notable changes: Improvements to the test suite, and internal code cleanups:
12188 * Internal code cleanups on Quartz Btree implementation.
12190 * Minor documentation updates (TODO and PLATFORMS updated; Martin Porter's
12191 stemming paper removed - see the Snowball site for background stemmer
12194 * Implemented QuartzAllTermsList::get_approx_size().
12196 * Removed a couple of occurrences of "using std::XXX;" from externally
12199 * With GCC, add warning flags "-Wall -W" rather than "-Wall -Wunused" (-Wall
12200 implies -Wunused anyway). Fixed all the warnings this throws up, except in
12201 languages/ (that code is to be replaced with Snowball soon).
12203 * Test suite: Disable colour test output if stdout isn't a terminal and
12204 reworked check for broken exception handling as the previous version never
12205 seemed to fire. Other assorted minor improvements.
12207 * include/om/om.h is now removed on "make distclean" rather than "make clean".
12209 Xapian 0.5.2 (2002-10-06):
12211 Further improvements to documentation and portability:
12213 * docs/: converted all text docs to HTML (except omsettings which will
12214 has odd markup (LaTeX?) and will probably soon be obsolete anyway).
12216 * remote backend: Fixed handling of timeouts which are now in the past - fixes
12217 test failures with redhat/x86.
12219 * quartz backend: now works on 64 bit platforms.
12221 * test suite: try to spot mishandled exceptions and stop them causing bogus
12224 Xapian 0.5.1 (2002-10-02):
12226 This release fixes features improved documentation and some build system
12229 * PLATFORMS: updated with more test results.
12231 * docs/: tidied up layout of HTML documentation; converted the notes about
12232 BM25 into HTML; updated stemmer docs to reflect intention to use Snowball
12233 instead; included HTML versions of quickstart*.cc.
12235 * automake 1.6.3 and autoconf 2.54 are now required for those working
12236 from CVS to fix a problem with the generated Makefiles and Solaris
12239 * net/Makefile.am: Fixed building of readquery.cc from readquery.ll.
12241 * buildall script is now deprecated - use the new streamlined bootstrap script
12244 Xapian 0.5.0 (2002-09-20):
12246 The last release of the software that is now known as Xapian was Open Muscat
12247 0.4.1 on November 24th 2000, not far from 2 years ago.
12249 There's been a significant amount of development in this time, so we've
12250 summarised the most notable changes and improvements:
12252 * The project is now called "Xapian". We've renamed the modules in the light
12255 + "om" is now "xapian-core"
12256 + "om-examples" is now "xapian-examples", and now contains small,
12257 instructive examples which demonstrate how to use Xapian to implement
12258 particularly features.
12259 + Added "xapian-applications" which contains larger sample applications
12261 * Much improved build system - should now build "out of the box" on many Unix
12262 platforms. Can now VPATH build with vendor tools on most platforms. Builds
12263 as cleanly as we can achieve with GCC 2.95.* (some bogus warnings due to
12264 compiler bugs). Should build without warnings on GCC 3.0, 3.1, and 3.2.
12266 * If using GCC, om/om.h now contains a check that the compiler used to build
12267 Xapian and the compiler used to build the application have compatible C++
12268 ABIs. So you get a clear error message early from the first attempt to
12269 compile a file rather than a confusing error from the linker near the end
12272 * RPM packages are now available. We intend to prepare Debian packages in the
12275 * xapian-config no longer support "--uninst". It's hard to make this work
12276 reliably and portably, and the effort is better expended elsewhere.
12277 Configure with a prefix and install to a temporary directory instead.
12279 * Xapian can now work with files > 2Gb on OSes which support them.
12281 * Restructured and reworked documentation.
12283 * Removed thread locks. We intend to be "thread-friendly" so different
12284 threads can access different objects without problems. In the rare event
12285 that you want to concurrently call methods on the same object from
12286 different threads you need to create a mutex and lock it. Thus the thread
12287 lock overhead is only incurred when it's necessary.
12289 * Indexgraph removed from core library. It will reappear as an add-on library
12292 * Omega's query parser has now been reworked as a separate library.
12294 * Terminology change - "keys" are now known as "values" to avoid confusion,
12295 since they're not like keys in a relational database. The exception is when
12296 a value is used as a key in some operation, e.g. "match_collapse_key".
12298 * Database backends:
12300 + Auto backend: can now be used to create a new database.
12301 + Auto backend: added support for "stub" databases - a text file
12302 specifying the settings for the database to be opened (particularly
12303 useful for allowing easy access to specific remote databases).
12304 + Quartz backend: many fixes and improvements, and the code has been
12305 cleaned up a lot. Implemented deleting of items from postlists.
12306 + Remote backend: implemented term_exists() and get_termfreq();
12307 + Multi-backend: the document length is now fetched from the sub-postlist
12308 rather than the database, which provides a huge speed-up in some cases.
12309 + Sleepycat backend: this experimental backend has been removed.
12310 + Muscat 3.6 backends: now disabled by default.
12314 + Test cases added for most bug fixes and new features.
12315 + stemtest: rewritten in C++ rather than part C++, part perl. Now 15%
12317 + includetest: removed - it's no longer useful now the code has matured.
12318 + Removed problematic leak checking from testsuite. We plan to use
12319 valgrind instead soon.
12323 + Fixed several matcher bugs which could cause incorrect results in some
12325 + Fix bug in expander due to nth_element being called on the wrong
12327 + Added sorting within relevance bands to the matcher.
12328 + Matcher now calculates percentages differently, such that 100%
12329 relevance is actually achievable.
12330 + Matcher now uses a min-heap rather than nth-element to maintain the
12331 proto-mset. This is cleaner and more efficient.
12332 + New operator OP_ELITE_SET replaces match_max_or_terms option.
12333 + Implemented multiple XOR queries.
12334 + Add a new query operator, OP_WEIGHT_CUTOFF, which returns only those
12335 documents from a query which have a weight greater than a specified
12337 + Removed OmBatchEnquire from system: it may return at a later date, but
12338 for now it is simply out of date and a maintenance liability, and
12339 gives no significant advantage.
12340 + Added experimental match bias functors.
12342 * The API has been cleaned up in various places:
12344 + OmDocumentContents and OmIndexDoc merged to become OmDocument
12345 + OmQuery interface cleaned up
12346 + OmData and OmKey removed - methods which used them now just pass a
12348 + OmESetItem replaced by OmESetIterator; OmMSetItem by OmMSetIterator;
12349 om_termname_list by OmTermIterator
12350 + OmDocumentTerm and OmDocumentParams removed
12351 + OmMSet::mbound replaced by OmMSet::matches_
12352 {lower_bound,estimated,upper_bound}, giving more information
12353 + Xapian iterators now have default constructors
12354 + Most API classes now have reference counted internals, so assignment
12355 and copying are cheap
12356 + OmStem now has copy constructor and assignment operator