1 up to: 1955d225c505eb6ca0811030fb7cf53ac79277d3
3 Xapian-core 1.4.20 (2022-06-16):
7 * Throw DatabaseNotFoundError when the database directory doesn't exist or
8 when it doesn't contain a Xapian database. Patch from Germán Méndez Bravo
9 in https://github.com/xapian/xapian/pull/258
11 * Improve exception message for attempting to remove an empty term (the
12 exception type is still InvalidArgumentError). Reported by David Bremner.
16 * Reenable commented out queryparser testcase. The FIXME comment said "This
17 throws an exception as of 1.3.6, but once implemented we should re-enable it"
18 - it now passes so it seems this has since been implemented.
20 * Expand some query-related testcases.
24 * Optimise when a value range is a superset of the slot bounds but the value
25 slot frequency is not equal to the document count by replacing the lower
26 bound with an empty string to make the bounds check very cheap.
28 * Avoid creating a PostList tree for an empty shard. This avoids pointless
29 work in an uncommon case, but also by handling this up front the code in
30 PostList subclasses for query operators can assume the shard isn't empty
31 which simplifies the code in several places.
33 * Remove lingering handling for database backends without slot bounds since
34 all backends have been required to support these since 1.4.11.
36 * Fix collection frequency estimates for positional operators. This affects
37 the weighting of positional operators in subqueries of OP_SYNONYM with
38 weighting schemes which use the collection frequency.
42 * xapian-check: Test decompress data in the spelling and synonym tables.
43 We don't have structure checking for these tables, but we can at least fetch
44 each entry and check for decompression problems.
46 * Improve error if block overwritten in WritableDatabase. Drop "are there
47 multiple writers?" as it's rarely a useful question to ask since we started
48 using fcntl() locking as it's now very hard to get multiple concurrent
49 writers on a database. Instead suggest running xapian-check, which is
50 probably the best next step for a user who hits this problem.
66 * Document precedence of NEAR and ADJ.
68 * INSTALL: Note that MSVS 2022 works.
72 * quest: Add --freqs option to show term frequencies.
74 * xapian-delve -v: Show value slot bounds and freq
81 * Fix to build with a C++20 compiler.
83 * configure now probes for a declaration of strerror_r() before using it, since
84 a declaration is required in C++ code.
86 * MSVC: Use intrinsics to implement addition with overflow check.
94 Xapian-core 1.4.19 (2021-12-31):
98 * New QueryParser::FLAG_NO_POSITIONS flag. With this flag enabled, any query
99 operations which would use positional information are replaced by the nearest
100 equivalent which doesn't (so phrase searches, NEAR and ADJ will result in
101 OP_AND). This is intended to replace the automatic conversion of OP_PHRASE,
102 etc to OP_AND when a database has no positional information, which will no
103 longer happen in the release series after 1.4.
105 * Give a compile error for code which adds a Database to WritableDatabase.
107 Prior to 1.4.19, this compiled and effectively created a "black-hole" shard
108 which quietly discarded any changes made to it.
110 In 1.4.19 it's still possible to perform this operation by assigning the
111 WritableDatabase to a Database first, which is harder to fix. This case
112 throws an exception on git master where it's easier to address.
114 Reported by David Bremner on #xapian.
116 * Fix TermIterator::skip_to() with sharded databases which sometimes was
117 failing to advance all the way to the requested term. Uncovered while
118 addressing warning from GCC's -Wduplicated-cond, reported by dcb in #816.
120 * Clamp edit distance to one less than the length of the word we've been asked
121 to correct, which makes the algorithm we use more efficient. We already
122 require suggestion to have at least one character in common, so the only
123 change to suggestions is we'll no longer suggest corrections which are
124 twice as long or longer even if the edit distance would allow it, which
125 seems like an improvement in itself.
127 * Minor optimisation expanding wildcards.
129 * PostingIterator::get_description(): For an all-docs iterator on a glass
130 database, get_description() would call get_docid() which isn't valid to
131 do once the iterator has reached the end.
135 * Expand allterms test coverage.
139 * Fetch wdf upper bound from postlist which avoids an extra postlist table
140 cursor seek per weighted query term, and also means we now use a per-shard
141 wdf upper bound for local shards which will in typically give a tighter
142 weight upper bound which will tend to make various other matcher
143 optimisations more effective. Eric Wong reported this speeds up a
144 particularly slow case from ~2 minutes to ~3 seconds.
146 With this change, OP_ELITE_SET can now select a different subset of terms for
147 each shard regardless of shard type (previously this only happened for remote
150 * Avoid triggering a pointless maximum weight recalculation if an unweighted
151 child of a MultiAndPostList prunes.
153 * Only check if the database has positional information when the query
154 uses positional information. This should help improve notmuch delete
155 performance. Thanks to andreas on #notmuch for analysis of the problem.
159 * Optimise Glass::Inverter::has_positions(). Use const auto& instead of just
160 auto for the loop variables. Reported to be faster by andreas on #notmuch.
162 * Cache result of Glass::Inverter::has_positions() since calculating it is
163 potentially very expensive, while maintaining a cached answer is very cheap.
167 * Add missing closing parenthesis to reported remote prog context, which has
168 been missing since this code was first added over 20 years ago! Spotted by
173 * Enable compiler option -fno-semantic-interposition if supported.
175 This GCC option allows the compiler to optimise essentially assuming
176 that functions/variables aren't replaced at dynamic link time.
178 Such replacement is not something that it's useful to do for Xapian
179 symbols, and we already turn on -Bsymbolic-functions by default which
180 prevents such replacement anyway by resolving references within the
181 library at build time.
183 Reduces the size of the stripped library on x86-64 Debian unstable by
184 ~1%, and likely makes it faster too.
186 * Avoid bogus deprecation warning when compiling with GCC without optimisation.
187 In this situation, GCC emits a deprecation warning for code in the definition
188 of QueryParser::add_valuerangeprocessor() which is provided for backwards
189 API compatibility even if this method is never used anywhere.
191 This isn't helpful, especially if the user is using -Werror, so disable the
192 -Wdeprecated-deprecations warning for this code.
194 Reported by starmad on #xapian.
196 * Fix GCC -Wmaybe-uninitialized warning. The warning seems bogus as it's about
197 the this pointer being passed to a method which doesn't reference the object,
198 but we can just make the method static to avoid the warning, and that's
199 arguably cleaner for a method called from the object initialiser list.
201 * Automatically enable GCC warnings -Wduplicated-cond and -Wduplicated-branches
202 if using a GCC version new enough to support them. The usefulness of
203 -Wduplicated-cond was highlighted by dcb in #816.
205 * Replace uses of obsolete autoconf macros, fixing warnings if configure is
206 regenerated with a recent release of autoconf.
208 * Simplify configure probe for sigsetjmp and siglongjmp. Just probe
209 individually with AC_CHECK_DECLS and then check that both exist with a
212 * Update XO_LIB_XAPIAN to fix warning that AC_ERROR is obsolete with modern
215 * Support linking against static libxapian with cmake. Patch from Anonymous
216 Maarten in https://github.com/xapian/xapian/pull/317
218 * Clean up handling of libs we link libxapian with - previously any libraries
219 explicitly specified to configure by the user via LIBS=... as well as -lm
220 (if configure determined it was needed) could get added to XAPIAN_LIBS
221 multiple times, as well as also getting added to the libxapian link command
222 anyway by automake/libtool standard handling.
224 Specifying a library more than once on the link line is not a problem on
225 common platforms, but may be an issue somewhere (and it's on less common
226 platforms where the user is more likely to have to specify LIBS to configure
227 and/or where -lm may be needed).
231 * configure: Add missing AC_ARG_VAR for all programs so that they are
232 documented in --help output, and so that autoconf knows they are "precious"
233 and preserves them if configure is rerun even when they're specified via an
234 environment variable.
236 * Don't use x^2 to mean x squared in API docs. This is potentially confusing
237 since in C/C++ (and some other languages), ^ means exclusive-or. Write x²
238 instead, which should be clear to all readers.
240 * Improve docs for Xapian::Stopper and SimpleStopper.
242 * docs/intro_ir.rst: Fixed an incorrect term index. Patch from Jaak Ristioja
243 in https://github.com/xapian/xapian/pull/321.
245 * Update for the IRC channel move from freenode to libera.chat.
249 * quest: Don't enable spelling correction by default. It was really only on by
250 default because the spelling correction support in quest was added before
251 --flags. It seems more helpful for the default to match the
252 Xapian::QueryParser API, and also this fixes the weird situation that
253 `--flags default` isn't the default you get without any `--flags` option.
255 * quest: Multiple `--flags` options now get combined - previously only the last
260 * Don't automatically use _FORTIFY_SOURCE on mingw-w64. Recent mingw-w64
261 versions require -lssp to be linked when _FORTIFY_SOURCE is enabled, so just
262 skip the automatic enabling. Users who want to enable it can specify it
265 Fixes #808, reported by xpbxf4.
267 * Workaround NFS issue in test harness function for deleting test databases.
268 On NFS, rmdir() can fail with EEXIST or ENOTEMPTY (POSIX allows either)
269 due to .nfs* files which are used by NFS clients to implement the Unix
270 semantics of a deleted but open file continuing to exist. We now sleep
271 and retry a few times in this situation to give the NFS client a chance
272 to process the closing of the open handle. Problem mentioned in #631.
274 * configure: Drop -lm special case for Sun C++ as this no longer seems to
275 be required. Tested with Sun C++ 5.13, which is the oldest version we
276 now support due to us now requiring C++11.
278 * Use strerrordesc_np() if available. This is a GNU-specific replacement for
279 sys_errlist and sys_nerr. It was added in glibc 2.32 since which sys_errlist
280 and sys_nerr are no longer declared in the headers.
282 * Update debug logging to use std::uncaught_exceptions() under C++17 and later
283 since this allows the debug logging to detect a function without RETURN()
284 annotation which exits normally while there's an uncaught exception
285 (previously the debug logging would think the stack was being unwound through
286 the function). This also avoids deprecation warnings - the old
287 std::uncaught_exception() (note: singular) function was deprecated by
288 C++17 and removed in C++20.
290 * Increase size of buffer passed to strerror_r() from 128 to 1024 bytes, which
291 is the size recommended by the man page on Linux.
293 * Fix -Wdeprecated-copy warning from clang 13.
295 Xapian-core 1.4.18 (2021-01-14):
299 * QueryParser::FLAG_ACCUMULATE: New flag. Previously the unstem and stoplist
300 data was always reset by a call to QueryParser::parse_query(), which makes
301 sense if you use the same QueryParser object to parse a series of independent
302 queries. If you're using the same QueryParser object to parse several fields
303 on the same query form, you may want to have the unstem and stoplist data
304 combined for all of them, in which case you can use this flag to prevent this
305 data from being reset.
307 * QueryParser::unstem_begin(): Eliminate unnecessary copying of the data.
309 * Fix typo in Swedish stopword list, syncing change made to Snowball by Daniel
312 * Remove some French stop words with other meanings, syncing change made to
313 Snowball by PhilippeOuellet.
317 * Run testcase testlock4 using backend chert, not just using glass
319 * Skip testcase testlock4 on platforms that don't allow us to implement
320 Database::locked() (which notably include GNU Hurd and Microsoft Windows).
324 * List DB_NO_TERMLIST in the WritableDatabase constructor API documentation
325 where we already list the other DB_* constants.
329 * Eliminate single use of std::mem_fun() which was deprecated in C++11 and
330 removed in C++17. Reported by Mateusz Pusz in #806.
332 * Add missing includes for std::numeric_limits<>. Reported by stac47 in #805.
334 * Work around mingw.org header issue. MSVC seems to implicitly include
335 <winerror.h> but mingw.org's headers don't, leading to ERROR_PIPE_CONNECTED
336 not being defined. Fixes https://github.com/xapian/xapian/pull/318, reported
339 * Suppress MSVC warnings about possible loss of data. The values involved are
340 the number of set bits in a value of integer type, so these warnings are
343 * Include <sys/types.h> for size_t and off_t, which is the appropriate header,
344 and needed with Android's bionic libc. Patch from Matthieu Gautier.
346 * Use a temporary file for the Doxygen configuration to work around Doxygen
347 1.8.19 bug which truncates a config file read from stdin to 4096 bytes
348 (https://github.com/doxygen/doxygen/issues/7975).
350 Xapian-core 1.4.17 (2020-08-21):
354 * Database::get_average_length(): Add this as an alias for
355 Database::get_avlen(). In git master we've added this as a preferred new
356 name - adding it to 1.4.x too will make it easier for users to update to
359 * Database::get_spelling_suggestion(): Optimise edit distance initialisation
360 loop to significantly reduce the cost of a typical edit distance calculation.
362 * Fix query expansion on sharded databases. The mechanism for passing in which
363 shard a TermList is from wasn't hooked up and as a result we'd always think
364 it's from the first shard, meaning the statistics would be wrong and that our
365 suggested terms may not have been as good as they should be in this
368 * Enquire::get_eset(): Use string::compare() to avoid 1/3 of the string compares
373 * Update doxygen HTML headers and footers to resolve issues with some
374 interactive features of the API docs not working. Reported by Enrico Zini.
376 * Stop specifying obsolete doxygen settings PERL_PATH and MSCGEN_PATH.
378 * Clarify API docs for MSet::get_termfreq() to make it clear that this
379 considers all documents in the database, not only those that matched the
380 searched (it would sometimes be useful to be able to report the number of
381 occurrences of a term in the matched documents, but it's not something we
382 currently keep track of). Reported by Tadeusz Sośnierz and Peter Salomonsen.
384 Xapian-core 1.4.16 (2020-06-08):
388 * MSet::snippet(): The snippet now includes trailing punctuation which carries
389 meaning or gives useful context. See
390 https://github.com/xapian/xapian/pull/180, reported by Robert Stepanek.
392 * MSet::snippet(): Fix segfault generating snippet from default-constructed
393 MSet. This probably isn't something you'd typically do, but it shouldn't
394 crash. Found during extended testing of #803 (which only affected git
395 master) which was reported by Robert Stepanek.
397 * Remove trailing full stop from exception messages. We conventionally don't
398 include one, but a few cases didn't follow that convention.
402 * Replace direct use of ftime() which gives deprecation warnings with recent
403 mingw. Reported by srinivasyadav22.
407 * Fix segfault in rare cases in the query optimiser. We keep a pointer to the
408 most recent posting list to use as a hint for opening the next posting list,
409 but the existing mechanism to take ownership of this hint had a flaw. We now
410 invalidate the hint in situations where it might be indirectly deleted which
411 is safe, but somewhat conservative.
413 * Improve the optimisation of an always-matching OP_VALUE_GE to also take
414 effect when the value slot's lower bound is equal to the limit of the
415 OP_VALUE_GE. Patch from boda sadalla.
419 * Report the correct errno value if commit() fails. We were potentially
420 reporting ENOENT from an unlink() call cleaning up a temporary file prior to
421 throwing the exception instead.
425 * Fix missing menus in API documentation. Newer doxygen generates .js files
426 which we also need to distribute and install. Reported by sec^nd on #xapian.
428 * Note OP_FILTER ignored subquery bug fixed in 1.4.15 as present in 1.4.14 and
433 * Use our own autoconf cache variable namespace (xo_cv_ prefix instead of
434 ac_cv_) to avoid colliding with standard autoconf macro use if config.site or
435 a shared config.cache is used. The former case caused a build failure for
436 the OpenBSD port with 1.4.15, reported by Lucas R.
438 * Use clock_gettime() and nanosleep() under modern mingw as these allow higher
439 precision than what we previously used.
441 Xapian-core 1.4.15 (2020-02-24):
445 * Database::check(): Fix checking of replication changesets. This reverts a
446 change incorrectly made in 1.3.7.
448 * Database::locked(): Return false instead of true for a closed inmemory DB.
450 * Database::commit(): If commit() failed with an exception while trying to add
451 pending changes (e.g. InvalidArgumentError due to a long term containing zero
452 bytes) then a subsequent commit() on the same object would throw the same
453 exception. Now we clear the pending changes in this situation (like we
454 already did for failure at other stages in the commit). This bug remains
455 unfixed for the chert backend as it's harder to fix there and the effort to
456 fix it and extra risk of breakage don't seem justified for a backend we
457 recommend people migrate away from.
459 * QueryParser::parse_query(): Optimise parsing of multi-word synonyms.
463 * Use 50-word synonym for qp_scale1 "large" case. 50 divides exactly into the
464 number of repetitions we do for the "small" case, which 60 (as used before)
465 doesn't. This makes the two cases a little more comparable and should help
466 make this testcase less flaky (see #764).
468 * Adjust testcase matches1 to work with remote shards where the matcher can
469 return slightly better bounds on the number of matches in some cases.
472 * The testharness get_remote_database() method is now supported for sharded
473 databases. This is needed for keepalive1 to run successfully under multi
474 test backends. Resolves 2 XFAILs of keepalive1.
476 * Improved test coverage:
478 + Test locked() on a closed WritableDatabase, which already returns false (as
479 expected) in 1.4.x (but was broken on master).
481 + Check multi databases in testsuite - this has been supported by
482 Database::check() since 1.4.12.
484 + Also test OP_SYNONYM and OP_MAX in emptydb1.
486 + Backport testcases boolorbug1, emptynot1, emptymaybe1 and
487 phraseweightcheckbug1 from git master - these are regression tests for
488 fixed bugs which only affected git master, but it's useful to confirm that
489 these bugs don't currently affect 1.4, and ensure they don't get introduced.
491 * perftest: Store memory sizes as long long since on Microsoft Windows long is
492 only 32 bits, which is less than common memory sizes.
496 * Hoist positional check above OP_FILTER.
498 * Handle OP_FILTER with more than two subqueries correctly. Previously we'd
499 only check the first two subqueries in some situations.
503 * For a remote WritableDatabase, the client now keeps track of whether there
504 are pending changes, and if there aren't then we now do nothing for commit()
505 or cancel() calls. In particular this saves a message exchange when the
506 WritableDatabase destructor is called when changes have already been
507 committed with an explicit call to commit() (which is what we recommend
508 doing, since with an explicit call to commit() you get to see any exception
511 * When closing a remote prog WritableDatabase, previously an exception could
512 leave the remote connection open with the remote server running, and we'd
513 then wait for the specified timeout before closing the connection. Now we
514 close the connection before letting the exception propagate.
516 * Don't swallow exceptions from Database::close() on a remote database. If
517 we aren't in a transaction and so try to commit() and that fails then
518 previously the caller would have no indication of the failure.
520 * Fix handling the reported term weight when remote shards are searched.
521 Fixes 5 XFAILs in the testsuite.
523 * Add missing space to mismatching protocol versions error message.
527 * Fix to build when configured with --disable-backend-remote, broken by changes
528 in 1.4.14. Fixes #797, reported by Дилян Палаузов.
530 * The clang and icc compilers both define __GNUC__, which led our ABI mismatch
531 message to report them as "g++" with a bogus version (the version of GCC that
532 these compilers advertise themselves as, which for clang is always 4.2.0) -
533 now we report clang++ or icc along with the actual version of that compiler.
537 * AUTHORS: Apply missed update to the thankyou list for 1.4.14.
539 * INSTALL: Note that MSVC 2019 works.
541 * INSTALL: Note that Xapian can use the system uuid.h on AIX and OpenBSD.
545 * Simplify probes for snprintf. The broken snprintf in libbsd in Linux libc4
546 is from ~25 years ago so way too ancient to matter now, and all callers
547 already handle the pre-ISO semantics of returning -1 for an undersize buffer
548 so we don't need to run a test program to probe for this at configure time,
549 which is more cross-compile friendly.
551 * Don't quote messages in #error - the quotes aren't required and appear in the
552 compiler output (at least with GCC and clang) making it less readable.
554 * Use a different approach for getting a 64-bit capable stat() for mingw32.
555 This means we now use the same stat variant for mingw32 and MSVC, which
558 * Work around unhelpful config.status behaviour. It comments out any #undef
559 lines in config.h, even those added via AH_TOP and AH_BOTTOM. Splitting
560 these lines means they don't match the regex hammer config.status uses.
562 * Avoid -Wdeprecated-copy warnings from clang 10.
564 * Avoid deprecation warning on recent Linux. We were including sys/sysctl.h if
565 it existed, which it does on Linux but we don't actually use it there.
566 Including it now warns that it is deprecated, so skip including it under
567 Linux. Reported on IRC by kumaran.
569 * Suppress GCC -Wduplicated-branches warning from our API headers in a
570 different way which avoids needing a compiler-specific #pragma.
572 * Workaround closefrom1 failure on macOS. It seems under macOS our fd tracking
573 can end up using fd 10 so start from 13 when testing closefrom() so we don't
574 close the fd which our fd tracking is using internally.
578 * Log RemoteConnection::read_at_least() return value.
580 Xapian-core 1.4.14 (2019-11-23):
584 * Xapian::QueryParser: Handle "" inside a quoted phrase better. In a quoted
585 boolean term, "" is treated as an escaped ", so handle it in a compatible way
586 for quoted phrases. Previously we'd drop out of the phrase and start a new
587 phrase. Fixes #630, reported by Austin Clements.
589 * Xapian::Stem: The constructor which takes a stemmer name now takes an
590 optional second bool parameter - if this is true, then an unknown stemmer
591 name falls back to using the "none" stemmer instead of throwing an exception.
592 This allows simply constructing a stemmer from an ISO language code without
593 having to worry about whether there's a stemmer for that language, and
594 without having to handle an exception if there isn't.
596 * Xapian::Stem: Fix a bug with handling 4-byte UTF-8 sequences which
597 potentially affects most of the stemmers. None of the stemmers work in
598 languages where 4-byte UTF-8 sequences are part of the alphabet, but this
599 bug could result in invalid UTF-8 sequences in terms generated from text
600 containing high Unicode codepoints such as emoji, which can cause issues (for
601 example, in some language bindings). Fix synced from Snowball git post
602 2.0.0. Reported by Ilari Nieminen in
603 https://github.com/snowballstem/snowball/issues/89.
605 * Xapian::Stem: Add a new is_none() method which tests if this is a "none"
608 * Xapian::Weight: The total length of all documents is now made available to
609 Xapian::Weight subclasses, and this is now used by DLHWeight, DPHWeight and
610 LMWeight. To maintain ABI compatibility, internally this still fetches the
611 average length and the number of documents, multiplies them, then rounds the
612 result, but in the next release series this will be handled directly.
614 * Xapian::Database::locked() on an inmemory database used to always return
615 false, but an inmemory Database is always actually a WritableDatabase
616 underneath, so now we always report true in this case because it's really
617 always report being locked for writing.
621 * Fix failing multi_glass_remoteprog_glass tests on x86. When the tests are
622 run under valgrind, remote servers should be run using the runsrv wrapper
623 script, but this wasn't happening for remote servers in multi-databases - now
624 it is. Also, previously runsrv only used valgrind for the remote for an x86
625 build that didn't use SSE, but it seems there are x87 instructions in libc
626 that are affected by valgrind not providing excess precision, so do this for
627 x86 builds which use SSE too. Together these changes fix failures of
628 topercent2, xor2, tradweight1 under backend multi_glass_remoteprog_glass on
631 * Fix C++ One-Definition Rule (ODR) violation in testsuite code. Two different
632 source files linked into apitest were each defining a different `struct
633 test`. Wrap each in an anonymous namespace to localise it to the file it is
634 defined and used in. This was probably harmless in practice, unless trying
635 to build with Link-Time Optimisation or similar (which is how it was
638 * Test all language codes in stemlangs1. The testsuite hardcodes a list of
639 supported language codes which hadn't been updated since 2008.
641 * Improve DateRangeProcessor test coverage.
645 * Handle pruning under a positional check. This used to be impossible, but
646 since 1.4.13 it can happen as we now hoist AND_NOT to just below where we
647 hoist the positional checks. The code on master already handles pruning here
648 so this bug is specific to the RELEASE/1.4 branch. Fixes #796, reported by
651 * When searching with collapsing over multiple shards, at least some of which
652 are remote, uncollapsed_upper_bound could be too low and
653 uncollapsed_lower_bound too high. This was causing assertion failures in
654 testcases msize1 and msize2 under test harness backends
655 multi_glass_remoteprog_glass and multi_remoteprog_glass.
657 * Internally we no longer calculate a bogus total_term_count as the sum of
658 total_length * doc_count for all shards. Instead we just use the sum of
659 total_length, which gives the total number of term occurrences. This change
660 should improve the estimated collection_freq values for synonyms.
662 * Several places where we might divide zero by zero in a database where wdf was
663 always zero have been fixed.
667 * configure: Stop using AC_FUNC_MEMCMP. The autoconf manual marks it as
668 "obsolescent", and it seems clear that nobody's relying on it as we're
669 missing the "'AC_LIBOBJ' replacement for 'memcmp'" which it would try to
674 * HACKING: Replace release docs with pointer to the developer guide where they
679 * Eliminate 2 uses of atoi(). These are potentially problematic in a
680 multithreaded application if setlocale() is called by another thread at the
683 * Don't check __GNUC__ in visibility.h as the configure probe before defining
684 XAPIAN_ENABLE_VISIBILITY checks that the visibility attributes work. This
685 probably makes no difference in practice, as all compilers we're aware of
686 which support symbol visibility also define __GNUC__.
688 * Document Sun C++ requires --disable-shared. Closes #631.
690 Xapian-core 1.4.13 (2019-10-14):
694 * Fix write one past end of std::vector on certain QueryParser parser errors.
695 This is undefined behaviour, but the write was always into reserved space, so
696 in practice we'd actually get away with it (it was noticed because it
697 triggers an error when running under ubsan and using libc++). Reported by
700 * MSet::get_matches_estimated(): Improve rounding of result - a bug meant we
701 would almost always round down.
703 * Optimise test for UTF-8 continuation character. Performing a signed char
704 comparison shaves an instruction or two on most architectures.
706 * Database::get_revision(): Return revision 0 for a Database with no shards
707 rather that throwing InvalidOperationError.
709 * DPHWeight: Avoid dividing by 0 when searching a sharded database when one
710 shard is empty. The result wasn't used in this case, but it's still
711 undefined behaviour. Detected by UBSan.
715 * The "singlefile" test harness backend manager now creates databases by
716 compacting the corresponding underlying backend database (creating it first
717 if need be) rather than always creating a temporary database to compact.
719 * Enable compaction testcases for multi and singlefile test harness backends.
721 * Add generated database support for remoteprog and remotetcp test harness
722 backends. Implemented by Tanmay Sachan.
724 * Add test harness support for running testcases using a multi database
725 comprised of one local and one remote shard, or two remote shards.
726 Implemented by Tanmay Sachan.
728 * Check if removing existing multi stub failed. Previously if removing an
729 existing stub failed, the test harness would create a temporary new stub and
730 then try to rename it over the old one, which will always fail on Microsoft
733 * Wait for xapian-tcpsrv processes to finish before moving on to the next
734 testcase under __WIN32__ like we already do on POSIX platforms.
738 * Optimise OP_AND_NOT better. We now combine its left argument with other
739 connected and-like subqueries, and gather up and hoist the negated subqueries
740 and apply them together above the combined and-like subqueries, just below
741 any positional filters.
743 * Optimise OP_AND_MAYBE better. We now combine its left argument with other
744 connected and-like subqueries, and gather up and hoist the optional
745 subqueries and apply them together above the combined and-like subqueries and
746 any hoisted positional filters.
748 * Treat all BoolWeight queries as scaled by 0 - we can optimise better if we
749 know the query is unweighted.
753 * Allow zlib compression to reduce size by one byte. We were specifying an
754 output buffer size one byte smaller than the input, but it appears zlib won't
755 use the final byte in the buffer, so we actually need to pass the input size
756 as the output buffer size.
758 * Only try to compress Btree item values > 18 bytes, which saves CPU time
759 without sacrificing any significant size savings.
763 * Fix match stats when searching with collapsing over multiple shards and at
764 least some shards are remote. Bug discovered by Tanmay Sachan's test harness
767 * Ignore orphaned remote protocol replies which can happen when searching with
768 a remote shard if an exception is thrown by another shard. Bug discovered
769 by Tanmay Sachan's test harness improvements.
771 * Wait for xapian-progsrv child to exit when a remote Database or
772 WritableDatabase object is closed under __WIN32__ like we already do for
777 * Correct documentation of initial messages in replication protocol.
781 * quest: Report bounds and estimate of number of matches.
783 * xapian-delve: Improve output when database revision information is not
784 available. We now specially handle the cases of a DB with multiple shards
785 and a backend which doesn't support get_revision().
789 * Fix warning from GCC 9 with -Wdeprecated-copy (which is enabled by -Wextra)
790 if a reference to an Error object is thrown.
792 * Suppress GCC warning in our API headers when compiling code using Xapian with
793 GCC and -Wduplicated-branches.
795 * Mark some internal classes as final (following GCC -Wsuggest-final-types
796 suggestions to allow some method calls to be devirtualised).
798 * Fix to build with --enable-maintainer-mode and Perl < 5.10, which doesn't
799 have the `//=` operator. It's unlikely developers will have such an old
800 Perl, but the mingw environment on appveyor CI does. The use of `//=` was
801 introduced by changes in 1.4.10.
803 Xapian-core 1.4.12 (2019-07-23):
807 * Xapian::PostingSource: When a PostingSource without a clone() method is used
808 with a Database containing multiple shards, the documented behaviour has
809 always been that Xapian::InvalidOperationError is thrown. However, since at
810 least 1.4.0, this exception hasn't been thrown, but instead a single
811 PostingSource object would get used for all the shards, typically leading to
812 incorrect results. The actual behaviour now matches what was documented.
814 * Xapian::Database: Add size() method which reports the number of shards.
816 * Xapian::Database::check(): You can now pass a stub database which will check
817 all the databases listed in it (or throw Xapian::UnimplementedError for
818 backends which don't support checking).
820 * Xapian::Document: When updating a document use a emplace_hint() to make the
821 bulk insertion O(n) instead of O(n·log(n)), and use std::move() to avoid
822 copying OmDocumentTerm objects.
824 * Xapian::Query: Add missing get_unique_terms_end() method.
826 * Xapian::iterator_valid(): Implement for Utf8Iterator
830 * Fix keepalive1 failures on some platforms. On some platforms a timeout
831 gives NetworkTimeoutError and on others NetworkError - since 1.4.10 changed
832 to checking the exact exception type, keepalive1 has been failing on the
833 former set of platforms. We now just check for NetworkError or a subclass
834 here (since NetworkTimeoutError is a subclass of NetworkError).
836 * Run cursordelbug1 testcase with multi databases too.
840 * Ownership of PostingSource objects during the match now makes use of the
841 optional reference-counting mechanism rather than a separate flag.
845 * Fix remote protocol design bug. Previously some messages didn't send a reply
846 but could result in an exception being sent over the link. That exception
847 would then get read as a response to the next message instead of its actual
848 response so we'd be out of step. Fixes #783, reported by Germán M. Bravo.
849 This fix necessitated a minor version bump in the remote protocol (to 39.1).
850 If you are upgrading a live system which uses the remote backend, upgrade the
851 servers before the clients.
853 * Fix socket leaks on errors during opening a database. Fixes
854 https://github.com/xapian/xapian/pull/237 and #781, reported by Germán M.
857 * Don't close remote DB socket on receiving EOF as the levels above won't
858 know it's been closed and may try to perform operations on it, which would be
859 problematic if that fd gets reused in the meantime. Leaving it open means
860 any further operations will also get EOF. Reported by Germán M. Bravo.
862 * We add a wrapper around the libc socket() function which deals with the
863 corner case where SOCK_CLOEXEC is defined but socket() fails if it is
864 specified (which can happen with a newer libc and older kernel).
865 Unfortunately, this wrapper wasn't checking the returned value from socket()
866 correctly, so when SOCK_CLOEXEC was specified and non-zero it would create
867 the socket() with SOCK_CLOEXEC, then leak that one and create it again
868 without SOCK_CLOEXEC. We now check the return value properly.
870 * Fix potential infinite loop in ValueCountMatchSpy::merge_results() if passed
871 serialised results with extra data appended (which shouldn't happen in normal
876 * Current versions of valgrind result in false positives on current versions of
877 macOS, so on this platform configure now only enables use of valgrind if it's
878 specified explicitly. Fixes #713, reported by Germán M. Bravo.
880 * Refactor macros to probe for compiler flags so they automatically cache
881 their results and consistently report success/failure.
883 * Rename our custom TYPE_SOCKLEN_T macro to XAPIAN_TYPE_SOCKLEN_T. The
884 AX_TYPE_SOCKLEN_T macro defines an alias of TYPE_SOCKLEN_T for itself which
885 means it can get used instead in some situations, but it isn't compatible
886 with our macro. We can't just switch to AX_TYPE_SOCKLEN_T as it doesn't
887 handle cases we need, so just rename our macro to avoid potential problems.
891 * Improve API documentation for Xapian::Query class. Add missing doc
892 comments and improve some of the existing ones. Problems highlighted by
893 Дилян Палаузов in #790.
895 * Add Unicode consortium names and codes for categories from Chapter 4, Version
896 11 of the Unicode standard. Patch from David Bremner.
898 * Improve configure --help output - drop "[default=no]" for --enable-*
899 options which default off. Fixes #791, reported by and patch from Дилян
902 * Fix API documentation typo - Query::op (the type) not op_ (a parameter name).
904 * Note which version Document::remove_postings() was added in.
906 * In the remote protocol documentation, MSG_REPLACEDOCUMENTTERM was documented
907 as not having a reply, but actually REPLY_ADDDOCUMENT is sent.
909 * Update list of <xapian/iterator.h> users.
913 * copydatabase: A change in 1.4.6 which added support for \ as directory
914 separator on platforms where that's the norm broke the code in copydatabase
915 which removes a trailing slash from input databases. Bug reported and
916 culprit commit identified by Eric Wong.
920 * Resolve crash on Windows when using clang-cl and MSVC. Reported by Christian
921 Mollekopf in https://github.com/xapian/xapian/pull/256.
923 * Add missing '#include <cstring>'. Patch from Tanmay Sachan.
925 * Fix str() helper function when converting the most negative value
926 of a signed integer type.
928 * Avoid calling close() on fd we know must actually be a WIN32 SOCKET.
930 * Include <ios> not <iomanip> for std::boolalpha.
932 * Rework setenv() compatibility handling. Now that Solaris 9 is dead we can
933 assume setenv() is provided by Unix-like platforms (POSIX requires it). For
934 other platforms, provide a compatibility implementation of setenv() which
935 so the compatibility code is encapsulated in one place rather than replicated
938 * Fix maintainer-mode builds on Solaris where /bin/tr is not POSIX compliant.
939 We now use the simple workaround suggested by the autoconf manual.
941 * Improve support for Sun C++ (see #631):
943 + Suppress unhelpful warning for lambda with multiple return statements.
945 + Enable reporting the tags corresponding to warnings, which we need
946 to know in order to suppress any new unhelpful warnings.
948 + Adjust our workaround for bug with this compiler's <cmath> header to avoid
951 + Use -xldscope=symbolic for Sun C++. This flag is roughly equivalent to
952 -Bsymbolic-functions which we've probed for with GNU ld since Xapian 1.0.0.
954 Xapian-core 1.4.11 (2019-03-02):
958 * MSet::SNIPPET_CJK_NGRAM - new flag for use with MSet::snippet() to enable
959 support for selecting and highlighting snippets which works with the
960 QueryParser and TermGenerator FLAG_CJK_NGRAM flags. This mode can also be
961 enabled by setting environment variable XAPIAN_CJK_NGRAM to a non-empty
962 value. (There was nominally already support for XAPIAN_CJK_NGRAM in
963 MSet::snippet(), but it didn't work usefully - the highlighting added was all
964 empty start/end pairs at the end of the span of CJK characters containing the
965 CJK ngram terms, which to the user would typically look like it was selecting
966 the end of the text and not highlighting anything).
968 * Deprecate XAPIAN_CJK_NGRAM environment variable. There are now flags which
969 can be used instead in all cases, and there's sadly no portable thread-safe
970 way to read an environment variable so checking environment variables is
971 problematic in library code that may be used in multithreaded programs.
973 * Query::OP_ELITE_SET currently incorrectly recursively flattens any OP_OR (or
974 OP_OR-like) subqueries into the list of subqueries it selects from - until
975 that's fixed, we now select from the full exploded list rather than the last
976 n (where n is the number of direct subqueries of the OP_ELITE_SET).
980 * Testcases which need a generated database now get run with a sharded
983 * Avoid using strerror() in the testsuite which removes an obstacle to running
984 tests in parallel in separate threads.
988 * Extend detection of cases of OP_SYNONYM with disjoint subqueries (which means
989 we don't need document length) which was added in 1.4.8 - we now detect when
990 all subqueries are different terms, or when all subqueries are
991 non-overlapping wildcards. The second case is what QueryParser produces for
992 a wildcard or partial query with a query prefix which maps to more than one
997 * Handle an empty value slot lower bound gracefully. This shouldn't happen for
998 a non-empty slot, but has been reported by a notmuch user so it seems there
999 is (or perhaps was as the database was several years old) a way it can come
1000 about. We now check for this situation and set the smallest possible valid
1001 lower bound instead, so other code assuming a valid lower bound will work
1002 correctly. Reported by jb55.
1006 * Handle an empty value slot lower bound gracefully, equivalent to the change
1011 * HACKING: We no longer use auto_ptr<>.
1013 * NEWS: Correct factual error in old entry - the 0.4.1 release was Open Muscat
1014 not OmSee (the OmSee name was only applied after that final release was made,
1015 and only used internally to BrightStation).
1019 * Suppress more clang -Wself-assign-overloaded warnings in testcases which are
1020 deliberately testing handling of self-assignment.
1022 * Add missing includes of <cerrno>. Fixes #776, reported by Matthieu Gautier.
1026 * When configured with --enable-log, the O_SYNC flag was always specified when
1027 opening the logfile, with the intention that the most recent log entries
1028 wouldn't get lost if there was a crash, but O_SYNC can incur a significant
1029 performance overhead and most debugging is not of such crashes. So we no
1030 longer specify O_SYNC by default, but you can now request synchronous logging
1031 by including %! anywhere in the filename specified with XAPIAN_DEBUG_LOG
1032 (the %! is replaced with the empty string). We also now use O_DSYNC if
1033 available in preference to O_SYNC, since the mtime of the log file isn't
1036 Xapian-core 1.4.10 (2019-02-12):
1040 * DatabaseClosedError: New exception class thrown instead of DatabaseError when
1041 an operation is attempted which can't be completed because it involves a
1042 database which close() was previously called on. DatabaseClosedError is a
1043 subclass of DatabaseError so existing code catching DatabaseError will still
1044 work as before. Fixes #772, reported by Germán M. Bravo. Patch from
1047 * DatabaseNotFoundError: New exception class thrown instead of
1048 DatabaseOpeningError when the problem is the problem is "file not found" or
1049 similar. DatabaseNotFoundError is a subclass of DatabaseOpeningError so
1050 existing code catching DatabaseOpeningError will still work as before. Fixes
1051 #773, reported by Germán M. Bravo. Patch from Vaibhav Kansagara.
1053 * Query: Make &=, |= and ^= on Query objects opportunistically append to
1054 an existing query with a matching query operator which has a reference
1055 count of 1. This provides an easy way to incrementally build flatter query
1058 * Query: Support `query &= ~query2` better - this now is handled exactly
1059 equivalent to `query = query & ~query2` and gives `query AND_NOT query2`
1060 instead of `query AND (<alldocuments> AND_NOT query2)`.
1062 * QueryParser: Now uses &=, |= and ^= to produce flatter query trees. This
1063 fixes problems with running out of stack space when handling Query object
1064 trees built by abusing QueryParser to parse very large machine-generated
1067 * Stopper: Fix incorrect accents in Hungarian stopword list. Patch from David
1072 * Test MSet::snippet() with small and zero lengths. Fixes #759. Patch from
1075 * Fix testcase stubdb4 annotations - this testcase doesn't need a backend.
1077 * Add PATH annotation for testcases needing get_database_path() to avoid having
1078 to repeatedly list the backends where this is supported in testcase
1081 * TEST_EXCEPTION helper macro now checks that the exact specified exception
1082 type is thrown. Previously it would allow a subclass of the specified
1083 exception type, but in testcases we really want to be able to test for an
1084 exact type. Issue noted by Vaibhav Kansagara on IRC.
1088 * Map OP_VALUE_GE/OP_VALUE_LE on an empty slot to EmptyPostList. We already do
1089 this for OP_VALUE_RANGE, and it's a little more efficient than creating a
1090 postlist object which checks the empty value slot.
1094 * We no longer flush all pending positional changes when a postlist, termlist
1095 or all-terms is opened on a modified WritableDatabase. Doing so was
1096 incurring a significant performance cost, and the first of these happens
1097 internally when `replace_document(term, doc)` is used, which is the usual way
1098 to support non-numeric unique ids. We now only flush pending positional
1099 changes when committing. Reported and diagnosed by Germán M. Bravo.
1103 * Use poll() where available instead of select(). poll() is specified by
1104 POSIX.1-2001 so should be widely available by now, and it allows watching any
1105 fd (select() is limited to watching fds < FD_SETSIZE). For any platforms
1106 which still lack poll() we now workaround this select() limitation when a
1107 high numbered fd needs to be watched (for example, by trying a non-blocking
1108 read or write and on EAGAIN sleeping for a bit before retrying).
1110 * Stop watching fds for "exceptional conditions" - none of these are relevant
1113 * Remove 0.1s timeout in ready_to_read(). The comment says this is to avoid a
1114 busy loop, but that's out of date - the matcher first checks which remotes
1115 are ready to read and then does a second pass to handle those which weren't
1116 with a blocking read.
1120 * Stop probing for header sys/errno.h which is no longer used - it was only
1121 needed for Compaq C++, support for which was dropped in 1.4.8.
1125 * docs/valueranges.html: Update to document RangeProcessor instead of
1126 ValueRangeProcessor - the latter is deprecated and will be gone in the next
1129 * Document RangeProcessor::operator()() returns OP_INVALID to signal it doesn't
1132 * Update some URLs for pages which have moved.
1134 * Use https for URLs where available.
1136 * HACKING: Update "empty()" section for changes in C++11.
1140 * Suppress clang warnings for self-assignment tests. Some testcases trigger
1141 this new-ish clang warning while testing that self-assignment works, which
1142 seems a useful thing to be testing - at least one of these is a regression
1145 * Add std::move to fix clang -Wreturn-std-move warning (which is enabled by
1148 * Add casts to fix ubsan warnings. These cases aren't undefined behaviour, but
1149 are reported by ubsan extra checks implicit-integer-truncation and/or
1150 implicit-conversion which it is useful to be able to enable to catch
1153 * Fix check for when to use _byteswap_ulong() - in practice this would only
1154 have caused a problem if a platform provided _byteswap_ushort() but not
1155 _byteswap_ulong(), but we're not aware of any which do.
1157 * Fix return values of do_bswap() helpers to match parameter types (previously
1158 we always returned int and only supported swapping types up to 32 bits, so
1159 this probably doesn't result in any behavioural changes).
1161 * Only include <intrin.h> if we'll use it instead of always including it when
1162 it exists. Including <intrin.h> can result in warnings about duplicate
1163 declarations of builtin functions under mingw.
1165 * Remove call to close()/closesocket() when the argument is always -1 (since
1166 the change to use getaddrinfo() in 1.3.3).
1168 Xapian-core 1.4.9 (2018-11-02):
1172 * Document::add_posting(): Fix bugs with the change in 1.4.8 to more
1173 efficiently handle insertion of a batch of extra positions in ascending
1174 order. These could lead to missing positions and corrupted encoded
1179 * Avoid hang if remote connection shutdown fails by not waiting for the
1180 connection to close in this situation. Seems to fix occasional hangs seen on
1181 macOS. Patch from Germán M. Bravo.
1183 Xapian-core 1.4.8 (2018-10-25):
1187 * QueryParser,TermGenerator: Add new stemming mode STEM_SOME_FULL_POS.
1188 This stores positional information for both stemmed and unstemmed terms,
1189 allowing NEAR and ADJ to work with stemmed terms. The extra positional
1190 information is likely to take up a significant amount of extra disk space so
1191 the default STEM_SOME is likely to be a better choice for most users.
1193 * Database::check(): Fetch and decompress the document data to catch problems
1194 with the splitting of large data into multiple entries, corruption of the
1195 compressed data, etc. Also check that empty document data isn't explicitly
1198 * Fix an incorrect type being used for term positions in the TermGenerator API.
1199 These were Xapian::termcount but should be Xapian::termpos. Both are
1200 typedefs for the same 32-bit unsigned integer type by default (almost always
1201 "unsigned int") so this change is entirely compatible, except that if you
1202 were configuring 1.4.7 or earlier with --enable-64bit-termcount you need to
1203 also use the new --enable-64bit-termpos configure option with 1.4.8 and up or
1204 rebuild your applications. This change was necessary to make
1205 --enable-64bit-termpos actually useful.
1207 * Add Document::remove_postings() method which removes all postings in a
1208 specified term position range much more efficiently than by calling
1209 remove_posting() repeatedly. It returns the number of postings removed.
1211 * Fix bugs with handling term positions >= 0x80000000. Reported by Gaurav
1214 * Document::add_posting(): More efficiently handle insertion of a batch of
1215 extra positions in ascending order.
1217 * Query: Simplify OP_SYNONYM with single OP_WILDCARD subquery by converting to
1218 OP_WILDCARD with combiner OP_SYNONYM, which means such cases can take
1219 advantage of the new matcher optimisation in this release to avoid needing
1220 document length for OP_WILDCARD with combiner OP_SYNONYM.
1224 * Catch and report std::exception from the test harness itself.
1226 * apitest: Drop special case for not storing doc length in testcase postlist5 -
1227 all backends have stored document lengths for a long time.
1229 * test_harness: Create directories in a race-free way.
1233 * Avoid needing document length for an OP_WILDCARD with combiner OP_SYNONYM.
1234 We know that we can't get any duplicate terms in the expansion of a wildcard
1235 so the sum of the wdf from them can't possibly exceed the document length.
1237 * OP_SYNONYM: No longer tries to initialise weights for its subquery, which
1238 should reduce the time taken to set up a large wildcard query.
1240 * OP_SYNONYM: Fix frequency estimates when OP_SYNONYM is used with a
1241 subquery containing OP_XOR or OP_MAX - in such cases the frequency
1242 estimates for the first subquery of the OP_XOR/OP_MAX were used for
1243 all its subqueries. Also the estimated collection frequency is
1244 now rounded to the nearest integer rather than always being rounded
1249 * Revert change made in 1.4.6:
1251 Enable glass's "open_nearby_postlist" optimisation (which especially helps
1252 large wildcard queries) for writable databases without any uncommitted
1255 The amended check isn't conservative enough as there may be postlist changes
1256 in the inverter while the table is unmodified. This breaks testcase
1257 T150-tagging.sh in notmuch's testsuite, reported by David Bremner.
1259 * When indexing a document without any terms we now avoid some unnecessary work
1260 when storing its termlist.
1264 * New --enable-64bit-termpos configure option which makes Xapian::termpos a
1265 64-bit type and enables support for storing 64-bit termpos values in the
1266 glass backend in an upwardly compatible way. Few people will actually want
1267 to index documents more than 4 billion words long, but the extra numbering
1268 space can be helpful if you want to use term positions in "interesting" ways.
1270 * Hook up configure --disable-sse/--enable-sse=sse options for MSVC.
1272 * Fix configure probes for builtin functions for clang. We need to specify the
1273 argument types for each builtin since otherwise AC_CHECK_DECLS tries to
1274 compile code which just tries to take a pointer to the builtin function
1275 causing clang to give an error saying that's not allowed. If the argument
1276 types are specified then AC_CHECK_DECLS tries to compile a call to the
1277 builtin function instead.
1281 * Fix documentation comment typo.
1285 * xapian-delve: Test for all docs empty using get_total_length() which is
1286 slightly simpler internally than get_avlength(), and avoids an exact floating
1287 point equality check.
1291 * quest: Support --weight=coord.
1293 * xapian-pos: New tool to show term position info to help debugging when using
1294 positional information in more complex ways.
1298 * Fix undefined behaviour from C++ ODR violation due to using the same name
1299 two different non-static inline functions. It seems that with current GCC
1300 versions the desired function always ends up being used, but with current
1301 clang the other function is sometimes used, resulting in database corruption
1302 when using value slots in docid 16384 or higher with the default glass
1303 backend. Patch from Germán M. Bravo.
1305 * Suppress alignment cast warning on sparc Linux. The pointer being cast is to
1306 a record returned by getdirentries(), so it should be suitable aligned.
1308 * Drop special handling for Compaq C++. We never actually achieved a working
1309 build using it, and I can find no evidence that this compiler still exists,
1310 let alone that it was updated for C++11 which we now require.
1312 * Create new database directories in race-free way.
1314 * Avoid throwing and handling an exception in replace_document() when
1315 adding a document with a specified docid which is <= last_docid but currently
1318 * Use our portable code for handling UUIDs on all platforms, and only use
1319 platform-specific code for generating a new UUID. This fixes a bug with
1320 converting UUIDs to and from string representation on FreeBSD, NetBSD and
1321 OpenBSD on little-endian platforms which resulted in reversed byte order in
1322 the first three components, so the same database would report a different
1323 UUID on these platforms compared to other platforms. With this fix, the
1324 UUIDs of existing databases will appear to change on these platforms
1325 (except in rare "palindronic" cases). Reported by Germán M. Bravo.
1327 * Fix to build with a C++17 compiler. Previously we used a "byte" type
1328 internally which clashed with "std::byte" in source files which use
1329 "using namespace std;". Fixes #768, reported by Laurent Stacul.
1331 * Adjust apitest testcase stubdb2 to allow for NetBSD oddity: NetBSD's
1332 getaddrinfo() in IPv4 mode seems to resolve ::1 to an IPv4 address on the
1335 * Avoid timer_create() on OpenBSD and NetBSD. On OpenBSD it always fails with
1336 ENOSYS (and there's no prototype in the libc headers), while on NetBSD it
1337 seems to work, but the timer never seems to fire, so it's useless to us (see
1340 * Use SOCK_NONBLOCK if available to avoid a call to fcntl(). It's supported by
1341 at least Linux, FreeBSD, NetBSD and OpenBSD.
1343 * Use O_NOINHERIT for O_CLOEXEC on Windows. This flag has essentially the same
1344 effect, and it's common in other codebases to do this.
1346 * On AIX O_CLOEXEC may be a 64-bit constant which won't fit in an int. To
1347 workaround this stupidity we now call the non-standard open64x() instead
1348 of open() when the flags don't fit in an int.
1350 * Add functions to add/multiply with overflow check. These are implemented
1351 with compiler builtins or equivalent where possible, so the overflow check
1352 will typically just require a check of the processor's overflow or carry
1355 Xapian-core 1.4.7 (2018-07-19):
1359 * Database::check(): Fix bogus error reports for documents with length zero
1360 due to a new check added in 1.4.6 that the doclength was between the stored
1361 upper and lower bounds, which failed to allow for the lower bound ignoring
1362 documents with length zero (since documents indexed only by boolean terms
1363 aren't involved in weighted searches). Reported by David Bremner.
1365 * Query: Use of Query::MatchAll in multithreaded code causes problems because
1366 the reference counting gets messed up by concurrent updates. Document that
1367 Query(string()) should be used instead of MatchAll in multithreaded code, and
1368 avoid using it in library code. Reported by Germán M. Bravo.
1372 + Stemming algorithms added for Irish, Lithuanian, Nepali and Tamil.
1374 + Merge Snowball compiler changes which improve code generation.
1376 + Merge optimisations to the Arabic and Turkish stemmers.
1380 + Fix duplicate test in apitest closedb10 testcase. Patch from Guruprasad
1385 * A long-lived cursor on a table in a WritableDatabase could get into
1386 an invalid state, which typically resulted in a DatabaseCorruptError
1387 being thrown with the message:
1389 Db block overwritten - are there multiple writers?
1391 But in fact the on-disk database is not corrupted - it's just that
1392 the cursor in memory has got into an inconsistent state. It looks
1393 like we'll always detect the inconsistency before it can cause on-disk
1394 corruption but it's hard to be completely certain.
1396 The bug is in code to rebuild the cursor when the underlying table
1397 changes in ways which require that, which is a fairly rare occurrence
1398 to start with, and only triggers when a block in the cursor has been
1399 released, reallocated, and we tried to load it in the cursor at the
1400 same level - the cursor wrongly assumes it has the current version
1403 Reported with a reproducer by Sylvain Taverne. Confirmed by David
1404 Bremner as also fixing a problem in notmuch for which he hadn't managed
1405 to find a reduced reproducer.
1409 * INSTALL: Document need to have MSVC command line tools on PATH.
1413 * Cygwin: Work around oddity where unlink() sometimes seems to indicate failure
1414 with errno set to ECHILD.
1416 Xapian-core 1.4.6 (2018-07-02):
1420 * API classes now support C++11 move semantics when using a compiler which
1421 we are confident supports them (currently compilers which define
1422 __cplusplus >= 201103 plus a special check for MSVC 2015 or later).
1423 C++11 move semantics provide a clean and efficient way for threaded code to
1424 hand-off Xapian objects to worker threads, but in this case it's very
1425 unhelpful for availability of these semantics to vary by compiler as it
1426 quietly leads to a build with non-threadsafe behaviour. To address this,
1427 user code can #define XAPIAN_MOVE_SEMANTICS before #include <xapian.h> to
1428 force this on, and will then get a compilation failure if the compiler lacks
1433 + We were only escaping output for HTML/XML in some cases, which would
1434 potentially allow HTML to be injected into output (this has been assigned
1437 + Include certain leading non-word characters in snippets. Previously we
1438 started the snippet at the start of the first actual word, but there are
1439 various cases where including non-word characters in front of the actual
1440 word adds useful context or otherwise aids comprehension. Reported by
1441 Robert Stepanek in https://github.com/xapian/xapian/pull/180
1443 * Add MSetIterator::get_sort_key() method. The sort key has always been
1444 available internally, but wasn't exposed via the public API before, which
1445 seems like an oversight as the collapse key has long been available.
1446 Reported by 张少华 on xapian-discuss.
1448 * Database::compact():
1450 + Allow Compactor::resolve_duplicate_metadata() implementations to delete
1451 entries. Previously if an implementation returned an empty string this
1452 would result in a user meta-data entry with an empty value, which isn't
1453 normally achievable (empty meta-data values aren't stored), and so will
1454 cause odd behaviour. We now handle an empty returned value by interpreting
1455 it in the natural way - it means that the merged result is to not set a
1456 value for that key in the output database.
1458 + Since 1.3.5 compacting a WritableDatabase with uncommitted changes throws
1459 Xapian::InvalidOperationError when compacting to a single-file glass
1460 database. This release adds similar checks for chert and when compacting
1461 to a multiple-file glass database.
1463 + In the unlikely event that the total number of documents or the total
1464 length of all documents overflow when trying to compact a multi-database,
1465 we throw an exception. This is now a DatabaseError exception instead of a
1466 const char* exception (a hang-over from before this code was turned into a
1467 public API in the library).
1469 * Document::remove_term(): Handle removing term at current TermIterator
1470 position - previously the underlying iterator was invalidated, leading to
1471 undefined behaviour (typically a segmentation fault). Reported by Gaurav
1474 * TermIterator::get_termfreq() now always returns an exact answer. Previously
1475 for multi-databases we approximated the result, which is probably either a
1476 hang-over from when this method was used during Enquire::get_eset(), or else
1477 due to a thinking that this method would be used in that situation (it
1478 certainly is not now). If the user creates a TermIterator object and asks it
1479 for term frequencies then we really should give them the correct answer - it
1480 isn't hugely costly and the documentation doesn't warn that it might be
1483 * QueryParser::parse_query():
1485 + Now adds a colon after the prefix when prefixing a boolean term which
1486 starts with a colon. This means the mapping is reversible, and matches
1487 what omega actually does in this case when it tries to reverse the mapping.
1488 Thanks to Andy Chilton for pointing out this corner case.
1490 + The parser now makes use of newer features in the lemon parser generator to
1491 make parsing faster and use less memory.
1493 * Enquire::get_mset(): Fix bug with get_mset(0, 0, X) when X > 0 which was
1494 causing an attempt to access an element in an empty vector. Reported by
1495 sielicki in #xapian.
1499 + Add Indonesian stemming algorithm.
1501 + Small optimisations to almost all stemming algorithms.
1505 + Add Indonesian stopword list.
1507 + The installed version of the Finnish stopword list now has one word per
1508 line. Previously it had several space-separated words on some lines, which
1509 works with C++'s std::istream_iterator but may be inconvenient for use from
1510 some other languages.
1512 + The installed versions of stopword lists are now sorted in byte order
1513 rather than whatever collation order is specified by LC_COLLATE or similar
1514 at build time. This makes the build more reproducible, and also may be
1515 more efficient for loading into some data structures.
1517 * WritableDatabase::replace_document(term, doc): Check for last_docid wrapping
1518 when used on a sharded database.
1520 * Database::locked(): Consistently throw FeatureUnavailableError on platforms
1521 where we can't test for a database lock without trying to take it.
1522 Previously GNU Hurd threw DatabaseLockError while platforms where we don't
1523 use fcntl() locking at all threw UnimplementedError.
1525 * Database and WritableDatabase constructors: Fix handling of entries for
1526 disabled backends in stub database files to throw FeatureUnavailableError
1527 instead of DatabaseError.
1529 * Database::get_value_lower_bound() now works correctly for sharded databases.
1530 Previously it returned the empty string if any shard had no values in the
1533 * PostingIterator was failing to keep an internal reference to the parent
1534 Database object for sharded databases.
1536 * ValueIterator::skip_to() and check() had an off-by-one error in their docid
1537 calculations in some cases with sharded databases.
1543 + Enable testcases flagged metadata, synonym and/or writable to run on
1546 + Enable testcases flagged writable to run on sharded databases. Writing to
1547 a sharded WritableDatabase has been supported since 1.3.2, but the test
1548 harness wasn't running many of the tests that could be with a sharded
1549 WritableDatabase. This uncovered three bugs which are fixed in this
1552 + Support "generated" testcases for the inmemory backend, which uncovered a
1553 bug which is fixed in this release.
1555 + Skip testcase testlock1 on platforms that don't allow us to implement
1556 Database::locked() (which notably include GNU Hurd and Microsoft Windows).
1558 + Disable testlock2 on sharded databases as it fails for platforms which
1559 don't actually support testing the lock.
1561 + Extend tests of behaviour after database close. Patch from Guruprasad
1562 Hegde. Fixes https://trac.xapian.org/ticket/337
1564 + Enable testcase closedb5 for remote backends. This testcase failed for
1565 remote backends when it was added and the cause wasn't clear, but it turns
1566 out it was actually a bug in the disk based backends, which was fixed way
1567 back in 2010. Reported by Guruprasad Hegde.
1569 + Check for select() failing in retrylock1 testcase. Retry on EINTR or
1570 EAGAIN, and report other errors rather than trying the read() anyway.
1571 Previously the read() would likely fail for the same reason the select()
1572 did, but at best this is liable to make what's going on less clear if the
1575 * Report bool values as true/false not 1/0.
1577 * Assorted minor testcase improvements.
1579 * The test harness now supports testcases which are expected to fail (XFAIL).
1580 Based on patch from Richard Boulton in https://trac.xapian.org/ticket/156.
1582 * Fix demangling of std::exception subclass names which wasn't happening due
1583 to a typo in the preprocessor check for the required header. This was broken
1584 by changes in 1.4.2.
1586 * Make TEST_EQUAL() arguments side-effect free. The TEST_EQUAL() macro
1587 evaluates its arguments a second time if the test fails in order to report
1588 their values. This isn't ideal and really ought to be addressed, but for now
1589 fix uses where the argument has side-effect (e.g. *i++) such that the
1590 reported value should match the tested value.
1592 * runtest: Show usage if first option starts '-'. Previously we ended up
1593 passing such options to libtool, so putting -v on runtest instead of apitest
1594 would run the tests but -v would effectively do nothing (it would make
1595 libtool verbose, but that doesn't make any difference in this case):
1596 ./runtest -v ./apitest
1598 * Suppress output from xcopy on MS Windows.
1600 * The test harness machinery for detecting file descriptor leaks should now
1601 work on any platform which has /dev/fd.
1603 * Implement recursive delete of a database directory in the test harness
1604 using nftw() if available (and not buggy like mingw64's seems to be), rather
1605 than running "rm -rf" as an external command. This avoids the overhead of
1606 starting a new process each time we clean up a test database, which happens a
1607 lot during a test run.
1609 * Speed up generated test databases a little by adding a stat() check to avoid
1610 throwing and catching an exception when the database doesn't yet exist.
1612 * Skip timed tests when configured with --enable-log. The logging can easily
1613 turn O(1) operations into O(n), and that's hard to avoid. Fixes
1614 https://trac.xapian.org/ticket/757, reported by Guruprasad Hegde.
1618 * OP_VALUE_*: When a value slot's lower and upper bound are equal, we know
1619 that exactly how many documents the subquery can match (either 0 or those
1620 bounds). This also avoids a division by zero which previously happened
1621 when trying to calculate the estimate.
1623 * Speed up sorting by keys. Use string::compare() to avoid having to call
1624 operator< if operator> returns false.
1626 * Fix clamping of maxitems argument to get_mset() - it was being clamped
1627 to db.get_doccount(), now it's clamped to db.get_doccount() - first. In
1628 practice this doesn't actually seem to cause any issues.
1630 * If a match time limit is in effect, when it expires we now clamp
1631 check_at_least to first + maxitems instead of to maxitems. In practice this
1632 also doesn't seem to actually cause any issues (at least we've failed to
1633 construct a testcase where it actually makes an observable difference).
1635 * Fix percentages when only some shards have positions. If the final shard
1636 didn't have positions this would lead to under-counting the total number leaf
1637 of subqueries which would lead to incorrect positional calculations (and a
1638 division by zero if the top level of the query was positional. This bug was
1639 introduced in 1.4.3.
1641 * OP_NEAR: Fix "phantom positions", where OP_NEAR would think a term without
1642 positional information occurred at position 1 if it had the lowest term
1643 frequency amongst the OP_NEAR's subqueries.
1645 * Fix termfreq used in weight calculations for a term occurring more than once
1646 in the query. Previously the termfreq for such terms was multiplied by the
1647 number of different query positions they appeared at.
1649 * OP_SYNONYM: We use the doclength upper bound for the wdf upper bound of a
1650 synonym - now we avoid fetching it twice when the doclength upper bound is
1653 * Short-cut init() when factor is 0 in most Weight subclasses. This indicates
1654 the object is for the term-independent weight contribution, which is always 0
1655 for most schemes, so there's no point fetching any stats or doing any
1656 calculations. This fixes a divide by zero for TfIdfWeight, detected by
1659 * OP_OR: Fix bug which caused orcheck1 to fail once hooked up to run with the
1664 * Fix glass freelist bug when changes to a new database which didn't modify the
1665 termlist table were committed. In this corner case, a block which had been
1666 allocated to be the root block in the termlist table was leaked. This was
1667 largely harmless, except that it was detected by Database::check() and caused
1668 it to report an error. Reported by Antoine Beaupré and David Bremner.
1670 * Fix glass freelist bug with cancel_transaction(). The freelist wasn't
1671 reset to how it was before the transaction, resulting in leaked blocks.
1672 This was largely harmless, except that it was detected by Database::check()
1673 and caused it to report an error.
1675 * Improve the per-term wdf upper bound. Previously we used min(cf(term),
1676 wdf_upper_bound(db)) which is tight for any terms which attain that
1677 upper bound, and also for terms with termfreq == 1 (the latter are common
1678 in the database (e.g. 66% for a database of wikipedia), but probably
1679 much less common in searches). When termfreq > 1 we now use
1680 max(first_wdf(term), cf(term) - first_wdf(term)), which means terms with
1681 termfreq == 2 will also attain their bound (another 11% for the same
1682 database) while terms with higher termfreq but below the global bound will
1683 get a tighter bound.
1685 * Fix Database::locked() on single-file glass db to just return false (such
1686 databases can't be opened as a WritableDatabase so there can't be a write
1687 lock). Previously this failed with: "DatabaseLockError: Unable to get write
1688 lock on /flintlock: Testing lock"
1690 * Fix compaction when both the input and output are specified as a file
1691 descriptor. Previously this threw an exception due to an overeager check
1692 that destination != source.
1694 * Use O_TRUNC when compacting to single file. If the output already exists but
1695 is larger than our output we don't want to just overwrite the start of it.
1696 This case also used to result in confusing compaction percentages.
1698 * Enable glass's "open_nearby_postlist" optimisation (which especially helps
1699 large wildcard queries) for writable databases without any uncommitted
1702 * Make get_unique_terms() more efficient for glass. We approximate
1703 get_unique_terms() by the length of the termlist (which counts boolean terms
1704 too) but clamp this to be no larger than the document length. Since we need
1705 to open the termlist to get its length, it makes more sense to get the
1706 document length from that termlist for no extra cost rather than looking it
1707 up in the postlist table.
1709 * Database::check() now checks document lengths against the stored document
1710 length lower and upper bounds. Patch from Uppinder Chugh. Fixes
1711 https://trac.xapian.org/ticket/617.
1713 * Fix bogus handling of most-recently-read value slot statistics. It seems
1714 that we get lucky and this can't actually cause a problem in practice due
1715 to another layer of caching above, but if nothing else it's a bug waiting to
1718 * If we fail to create the directory for a new database because the path
1719 already exists, the exception now reports EEXIST as the errno value rather
1720 than whatever errno value happened to be set from an earlier library call.
1724 * xapian-tcpsrv --one-shot no longer forks. We need fork to handle multiple
1725 concurrent connections, but when handling a single connection forking just
1726 adds overhead and potentially complicates process management for our caller.
1727 This aligns with the behaviour under __WIN32__ where we use threads instead
1728 of forking, and service the connection from the main thread with --one-shot.
1730 * Fix repeat call to ValueIterator::check() on the same docid to not always
1731 set valid to true for remote backend.
1735 * Fix repeat call to ValueIterator::check() on the same docid to not always
1736 set valid to true for inmemory backend.
1740 * configure: Fix potentially confusing messages suggesting snprintf was added
1741 in C90 - it was actually standardised in C99.
1743 * Eliminate configure probes related to off_t by using C++11 features.
1745 * The installed xapian-config script is now cleaned up by removing code to
1746 handle use before installation. This extra code contained build paths
1747 which meant the build wasn't bit-for-bit reproducible unless the same
1748 build directory name was used. This change also eliminates use of
1749 automake's $(transform) (which seems to be intended an internal mechanism)
1750 and fixes "make uninstall" to remove xapian-config when a program-prefix or
1751 -suffix is in use (e.g. there's a default -1.5 suffix for git master
1754 * Directory separator knowledge is now factored out into configure, based on
1755 $host_os and __WIN32__ (it seems hard to probe for this in a way which works
1756 when cross-compiling).
1758 * Fix build with --disable-backend-remote.
1760 * In an out-of-tree build configured with --enable-maintainer-mode
1761 and --disable-dependency-tracking we would fail to create the
1762 "tests/soaktest" and "unicode" directories in the build directory.
1763 Patch from Gaurav Arora.
1765 * Improve handling of multitarget rule stamp files. Clean them on "make
1766 maintainer-clean" and ship them so that --enable-maintainer-mode when
1767 building from a tarball doesn't needlessly rerun the multitarget rules.
1769 * Split out allsnowballheaders.h again to avoid include path issues with
1770 unittest in out-of-tree maintainer-mode builds.
1772 * xapian-core.pc: Both the Name and Description were too long compared to
1773 pkg-config norms, and the Description was trying to be multi-line which it
1774 seems pkg-config doesn't support. Fixes
1775 https://github.com/xapian/xapian/pull/203, reported by orbea.
1779 * Stop describing Xapian as "Probabilistic" - we've also had non-probabilistic
1780 weighting schemes since 1.3.2.
1782 * Improve API docs for MSet::snippet().
1784 * Correct some class names in doxygen file documentation comments.
1786 * Mark up shell command as code-block:: sh.
1792 + Document values can contain binary data, so escape them by default for
1793 output. Other options now supported are to decode as a packed integer
1794 (like omindex uses for last modified), decode using
1795 Xapian::sortable_unserialise(), and to show the raw form (which was the
1796 previous behaviour).
1798 + Report current database revision.
1802 + Report entry count when opening table
1804 + Support inspecting single file DBs via a new --table option (which can also
1805 be used with a non-single-file DB instead of specifying the path to the
1808 + Add "first" and "last" commands which jump to the first/last entry in the
1809 current table respectively.
1811 + "until" now counts and reports the number of entries advanced by.
1813 + Document "until" with no arguments - this advances to the end of the table,
1814 but wasn't mentioned in the help.
1816 + Commands "goto" and "until" which take a key as an argument now expect the
1817 key in the same escaped form that's used for display. This makes it much
1818 simpler to interact with tables with binary keys.
1820 + Fix to expect .glass not .DB extension of glass tables.
1824 * Sort out building using MSVC with the standard build system, and fix assorted
1825 problems. MSVC 2015 or later is required for decent C++11 support. Both 32-
1826 and 64-bit builds are now supported.
1828 * Remove code specific to old MSVC nmake build system. The latter has been
1831 * Don't use WIN32 API to parse/unparse UUIDs. So much glue code is needed that
1832 it's simpler to just do the parsing and unparsing ourselves, and we already
1833 have an implementation which is used when generating UUIDs using /proc on
1834 Linux. We still use UuidCreate() to generate a new UUID.
1836 * Improve compiler visibility attribute detection to check that using the
1837 attributes doesn't result in a warning - previously we'd enable them even on
1838 platforms which don't support them, which would result in a compiler warning
1839 for every file compiled. We now probe for -fvisibility=hidden and
1840 -fvisibility-inlines-hidden together as it seems all compilers implement both
1841 or neither, and it's faster to do one probe instead of two.
1843 * Don't pass the same FDSET twice in same select() - this appears not to be
1844 allowed by current POSIX, and causes warnings with GCC8.
1846 * Fix compacttofd testcases to specify O_BINARY so they pass on platforms
1847 where O_BINARY matters.
1849 * configure: Probe for declaration of _putenv_s. It seems that the symbol is
1850 always present in the MSVCRT DLL, but older mingw may not provide a
1853 * Fix "may be used uninitialised" warning with GCC 4.9.2 and -Os.
1855 * Suppress mingw32 deprecation warning for useconds_t. We've already switched
1856 away from useconds_t on git master, but it's not easy to do for 1.4.x without
1859 * Fix signed vs unsigned warnings with assertions on.
1861 * Use $(SED) instead of hard-coding "sed". The rules concerned are all ones
1862 that only maintainers currently need to run, but we're likely to enable
1863 maintainer-mode by default at some point and then portability here will
1866 * Add missing explicit <algorithm> for std::max()/std::min().
1868 * Check for EAGAIN as well as EINTR from select(). The Linux select(2) man
1869 page says: "Portable programs may wish to check for EAGAIN and loop, just as
1870 with EINTR" and that seems to be necessary for Cygwin at least.
1872 * Probe for exp10() declaration as Cygwin seems to have the symbol but lacks a
1873 declaration in the headers. Just ignoring it is simplest and we'll use GCC's
1874 __builtin_exp10() instead.
1876 * Fix warnings when building Snowball compiler with recent GCC.
1878 * Fix Perl script used during maintainer builds to work with Perl < 5.10. Such
1879 old perl versions shouldn't really be relevant for maintainer builds at this
1880 point, but appveyor's mingw install has such a Perl version.
1882 * Remove unused macro STATIC_ASSERT_TYPE_DOMINATES (unused, except by
1883 internaltest unit test for it, since the flint backend was removed in 2011)
1884 and replace uses of STATIC_ASSERT_UNSIGNED_TYPE with C++11 features
1885 static_assert and std::is_unsigned instead.
1887 * Don't retry on (errno == EINTR) when read() or pread() indicates end-of-file.
1888 This could potentially have put us into an infinite loop if we encountered
1889 this situation and errno happened to be EINTR from a previous library call.
1891 * Make read-only data arrays consistently static and const.
1893 * Avoid casting invalid value to enum reply_type if an invalid reply code is
1894 received from a remote server. This is technically undefined behaviour,
1895 though in practice probably not a problem.
1897 * Eliminate an array of function pointers and some char* array members in
1898 library, reducing the number of relocations needed at shared library load
1899 time, which reduces the total time to load the library.
1903 * Use https for tarball URLs in .spec files. This provides protection against
1904 MITM attacks on people building packages using these spec files, and is also
1905 slightly more efficient as the http: URLs redirect to the https: versions
1910 * Fix build when configured with --enable-log due to bugs in debug logging
1911 annotations. Patch from Uppinder Chugh.
1913 * Fix assertion for value range on empty slot.
1915 * Use AssertEq() rather than Assert with ==, the former reports the two
1916 values if the assertion fails.
1918 Xapian-core 1.4.5 (2017-10-16):
1922 * Add Database::get_total_length() method. Previously you had to calculate
1923 this from get_avlength() and get_doccount(), taking into account rounding
1924 issues. But even then you couldn't reliably get the exact value when total
1925 length is large since a double's mantissa has more limited precision than an
1928 * Add Xapian::iterator_rewound() for bidirectional iterators, to test if the
1929 iterator is at the start (useful for testing whether we're done when
1930 iterating backwards).
1932 * DatabaseOpeningError exceptions now provide errno via get_error_string()
1933 rather than turning it into a string and including it in the exception
1936 * WritableDatabase::replace_document(): when passed a Document object which
1937 came from a database and has unmodified values, we used to always read
1938 those values into a memory structure. Now we only do this if the document
1939 is being replaced to the same document ID which it came from, which should
1940 make other cases a bit more efficient.
1942 * Enquire::get_eset(): When approximating term frequencies we now round to the
1943 nearest integer - previously we always rounded down.
1947 * Improve Xapian::Document test coverage.
1949 * Pass --child-silent-after-fork=yes to valgrind which stops us creating a
1950 .valgrind.log.* file for every remote testcase run. This option was added in
1951 valgrind 3.3.0 which is already the minimum version we support.
1953 * Open and unlink valgrind log before option parsing so we no longer leave a
1954 log file behind if there's an error parsing options or for options like
1955 --help which report and exit.
1957 * Delete .valgrind.log.* on "make clean" - if tests are run under valgrind and
1958 the test is killed at just the wrong moment then a log file may be left
1961 * Fix the NetworkError with ECHILD check added in 1.4.4 - this will no longer
1962 segfault if the test harness catches a NetworkError without an error string.
1966 * Iterating of positions has been sped up, which means phrase matching is now
1967 faster (by a little over 5% in some simple tests).
1969 * Fix use after free of QueryOptimiser hint in certain cases involving
1970 multiple databases only some of which have positional information.
1971 This bug was introduced by changes in xapian-core 1.4.3. Fixes #752,
1972 reported and analysed by Robert Stepanek.
1974 * An unweighted OP_AND_MAYBE is now optimised to just its left branch - the
1975 other branch or branches only contribute weight, so can be completely ignored
1976 when the operator is unweighted.
1980 * Use binary chop instead of linear search in all places where we're searching
1981 for a term or document - we weren't taking advantage of the sorted order
1986 * xapian-core.pc: Specify Libs.private in pkgconfig file, which is needed for
1987 static linking, and probably also for shared libraries on platforms without
1988 DT_NEEDED or something equivalent. Fixes #751, reported by Matthieu Gautier.
1992 * Document that QueryParser::set_default_op() supports OP_MAX - this
1993 has been the case since OP_MAX was added, but the API docs for
1994 set_default_op() weren't updated to reflect this.
1996 * Document OP_MAX and OP_WILDCARD.
1998 * Fix documentation of TermGenerator stop_strategy values STOP_ALL and
1999 STOP_STEMMED. Reported by Matthieu Gautier in #750. Thanks to Gaurav Arora
2000 for additional investigation.
2002 * net/remote_protocol.rst: Update the current version of the remote protocol
2003 version (39 not 38). The differences between the two are only in the Query
2004 and MSet serialisations which aren't documented in detail here.
2006 * Link get_unique_terms_begin() and get_terms_begin() API documentation -
2007 the cross-referencing is useful in itself, but also helps to highlight
2008 the difference between the two.
2010 * Fix "IPv5" -> "IPv6" comment typo. Noted by James Clarke
2014 + Add deprecated Enquire::get_eset() overload - this was marked as deprecated
2015 in the header file, but hadn't been added here.
2017 + Move deprecated typedefs to the "to be removed" list - they'd been
2018 accidentally added to the "removed" list.
2020 + Improve descriptions of several deprecated features.
2022 * QueryParser::set_max_expansion() is now discussed in the API documentation
2023 instead of the deprecated set_max_wildcard_expansion().
2025 * Clarify PostList::check() API documentation: If valid is set to false, then
2026 NULL must be returned (pruning in this situation doesn't make sense) and
2027 at_end() shouldn't be called (because it implicitly depends on the current
2028 position being valid).
2032 + Update re -Wold-style-cast which we enabled and then had to disable again.
2034 + Update links to C++ FAQ and libstdc++'s debug mode.
2036 + Update several URLs to use https.
2038 + The 1.2 release branch has now been retired, so remove 1.2-specific
2043 * Also check <errno.h> for sys_nerr and sys_errlist. This is probably a more
2044 common location for them than Linux's <stdio.h> (even on Linux the man page
2045 says they're in <errno.h> but that doesn't match reality).
2047 * Use $(CC) not $(CC_FOR_BUILD) to build zlib-vg.so. The test for whether we
2048 need it is based on the host OS, so it makes more sense to use the host
2049 compiler to build it when cross compiling.
2051 * On Hurd F_GETLK currently always fails with errno set to ENOSYS - treat this
2052 the same way as ENOLCK. This fixes the testsuite on GNU Hurd, broken since
2053 the addition on Database::locked() in 1.4.3.
2055 * Add missing #include "safesyssocket.h", needed on at least FreeBSD to get
2056 AF_INET and SOCK_STREAM defined. Fixes
2057 https://github.com/xapian/xapian/pull/154, reported by Po-Chuan Hsieh
2058 (alternative fix applied was suggested by James Aylett).
2060 * configure: Fixed the probe for whether the test harness can use RTTI with
2061 IBM's xlC compiler (which defaults to not generating RTTI). Previously the
2062 probe would always think RTTI was available.
2066 * Fix some incorrect class/method names in debug logging.
2068 * Stop disabling ccache for coverage builds as ccache 3.2.2 now supports
2069 caching compilations with --coverage, and they work as far back as ccache 3.0
2070 (caching is automatically disabled by these older versions).
2072 * Drop --enable-quiet from in COVERAGE_CONFIGURE - this option no longer does
2073 anything since 1.3.1.
2075 Xapian-core 1.4.4 (2017-04-19):
2079 * Database::check():
2081 + Fix checking a single table - changes in 1.4.2 broke such checks unless you
2082 specified the table without any extension.
2084 + Errors from failing to find the file specified are now thrown as
2085 DatabaseOpeningError (was DatabaseError, of which DatabaseOpeningError is
2086 a subclass so existing code should continue to work). Also improved the
2087 error message when the file doesn't exist is better.
2089 * Drop OP_SCALE_WEIGHT over OP_VALUE_RANGE, OP_VALUE_GE and OP_VALUE_LE in the
2090 Query constructor. These operators always return weight 0 so OP_SCALE_WEIGHT
2091 over them has no effect. Eliminating it at query construction time is cheap
2092 (we only need to check the type of the subquery), eliminates the confusing
2093 "0 * " from the query description, and means the OP_SCALE_WEIGHT Query object
2094 can be released sooner. Inspired by Shivanshu Chauhan asking about the query
2097 * Drop OP_SCALE_WEIGHT on the right side of OP_AND_NOT in the Query
2098 constructor. OP_AND_NOT takes no weight from the right so OP_SCALE_WEIGHT
2099 has no effect there. Eliminating it at query construction time is cheap
2100 (just need to check the subquery's type), eliminates the confusing "0 * "
2101 from the query description, and means the OP_SCALE_WEIGHT object can be
2106 * Add more tests of Database::check(). Fixes #238, reported by Richard
2109 * Make apitest testcase nosuchdb1 fail if we manage to open the DB.
2111 * Skip testcases which throw NetworkError with errno value ECHILD - this
2112 indicates system resource starvation rather than a Xapian bug. Such failures
2113 are seen on Debian buildds from time to time, see:
2114 https://bugs.debian.org/681941
2118 * Fix incorrect results due to uninitialised memory. The array holding max
2119 weight values in MultiAndPostList is never initialised if the operator is
2120 unweighted, but the values are still used to calculate the max weight to pass
2121 to subqueries, leading to incorrect results. This can be observed with an OR
2122 under an unweighted AND (e.g. OR under AND on the right side of AND_NOT).
2123 The fix applied is to simply default initialise this array, which should lead
2124 to a max weight of 0.0 being passed on to subqueries. Bug reported in
2125 notmuch by Kirill A. Shutemov, and forwarded by David Bremner.
2129 * Correct "Query::feature_flag" -> "QueryParser::feature_flag". Fixes #747,
2130 reported by James Aylett.
2132 * Rename set_metadata() `value` parameter to `metadata`. This change is
2133 particularly motivated by making it easier to map this case specially in SWIG
2134 bindings, but the new name is also clearer and better documents its purpose.
2136 * Rename value range parameters. The new names (`range_limit` instead of
2137 `limit`, `range_lower` instead of `begin` and `range_upper` instead of `end`)
2138 are particularly motivated by making it easier to map them specially in SWIG
2139 bindings, but they're also clearer names which better document their
2142 * Change "(key, tag)" to "(key, value)" in user metadata docs. The user
2143 metadata is essentially what's often called a "key-value store" so users
2144 are likely to be familiar with that terminology.
2146 * Consistently name parameter of Weight::unserialise() overridden forms.
2147 In xapian/weight.h it was almost always named `serialised`, but LMWeight
2148 named it `s` and CoordWeight omitted the name.
2150 * Fix various minor documentation comment typos.
2154 * Fix configure probe for __builtin_exp10() to work around bug on mingw - there
2155 GCC generates a call to exp10() for __builtin_exp10() but there is no exp10()
2156 function in the C library, so we get a link failure. Use a full link test
2157 instead to avoid this issue. Reported by Mario Emmenlauer on xapian-devel.
2159 * Fix configure probe for log2() which was failing on at least some platforms
2160 due to ambiguity between overloaded forms of log2(). Make the probe
2161 explicitly check for log2(double) to avoid this problem.
2163 * Workaround the unhelpful semantics of AI_ADDRCONFIG on platforms which follow
2164 the old RFC instead of POSIX (such as Linux) - if only loopback networking is
2165 configured, localhost won't resolve by name or IP address, which causes
2166 testsuites using the remote backend over localhost to fail in auto-build
2167 environments which deliberately disable networking during builds. The
2168 workaround implemented is to check if the hostname is "::1", "127.0.0.1" or
2169 "localhost" and disable AI_ADDRCONFIG for these. This doesn't catch all
2170 possible ways to specify localhost, but should catch all the ways these might
2171 be specified in a testsuite. Fixes https://bugs.debian.org/853107, reported
2172 by Daniel Schepler and the root cause uncovered by James Clarke.
2176 * Adjust assertion in InMemoryPostList. Calling skip_to() is fine when the
2177 postlist hasn't been started yet (but the assertion was failing for a term
2178 not in the database). Latent bug, triggered by testcases complexphrase1 and
2179 complexnear1 as updated for addition of support for OP_OR subqueries of
2182 Xapian-core 1.4.3 (2017-01-25):
2186 * MSet::snippet(): Favour candidate snippets which contain more of a diversity
2187 of matching terms by discounting the relevance of repeated terms using an
2188 exponential decay. A snippet which contains more terms from the query is
2189 likely to be better than one which contains the same term or terms multiple
2190 times, but a repeated term is still interesting, just less with each
2191 additional appearance. Diversity issue highlighted by Robert Stepanek's
2192 patch in https://github.com/xapian/xapian/pull/117 - testcases taken from his
2195 * MSet::snippet(): New flag SNIPPET_EMPTY_WITHOUT_MATCH to get an empty snippet
2196 if there are no matches in the text passed in. Implemented by Robert
2199 * Round MSet::get_matches_estimated() to an appropriate number of significant
2200 figures. The algorithm used looks at the lower and upper bound and where the
2201 estimate sits between them, and then picks an appropriate number of
2202 significant figures. Thanks to Sébastien Le Callonnec for help sorting out a
2203 portability issue on OS X.
2205 * Add Database::locked() method - where possible this non-invasively checks if
2206 the database is currently open for writing, which can be useful for
2207 dashboards and other status reporting tools.
2211 * Use terms that exist in the database for most snippet tests. It's good to
2212 test that snippet highlighting works for terms that aren't in the database,
2213 but it's not good for all our snippet tests to feature such terms - it's
2214 not the common usage.
2218 * Improve value range upper bound and estimated matches. The value slot
2219 frequency provides a tighter upper bound than Database::get_doccount().
2220 The estimate is now calculated by working out the proportion of possible
2221 values between the slot lower and upper bounds which the range covers
2222 (assuming a uniform distribution). This seems to work fairly well in
2223 practice, and is certainly better than the crude estimate we were using:
2224 Database::get_doccount() / 2
2226 * Handle arbitrary combinations of OP_OR under OP_NEAR/OP_PHRASE, partly
2227 addressing #508. Thanks to Jean-Francois Dockes for motivation and testing.
2229 * Only convert OP_PHRASE to OP_AND if full DB has no positions. Until now the
2230 conversion was done independently for each sub-database, but being consistent
2231 with the results from a database containing all the same documents seems more
2234 * Avoid double get_wdf() call for first subquery of OP_NEAR and OP_PHRASE,
2235 which will speed them up by a small amount.
2239 * INSTALL: Update section about -Bsymbolic-functions which is not a new
2240 GNU ld feature at this point.
2244 * xapian-delve: Uses new Database::locked() method to report if the database
2245 is currently locked.
2249 * Fix build failure cross-compiling for android due to not pulling in header
2252 * Fix compiler warnings.
2254 Xapian-core 1.4.2 (2016-12-26):
2258 * Add XAPIAN_AT_LEAST(A,B,C) macro.
2260 * MSet::snippet(): Optimise snippet generation - it's now ~46% faster in a
2263 * Add Xapian::DOC_ASSUME_VALID flag which tells Database::get_document() that
2264 it doesn't need to check that the passed docid is valid. Fixes #739,
2265 reported by Germán M. Bravo.
2267 * TfIdfWeight: Add support for the L wdf normalisation. Patch from Vivek Pal.
2269 * BB2Weight: Fix weights when database has just one document. Our existing
2270 attempt to clamp N to be at least 2 was ineffective due to computing
2271 N - 2 < 0 in an unsigned type.
2273 * DPHWeight: Fix reversed sign in quadratic formula, making the upper bound a
2276 * DLHWeight: Correct upper bound which was a bit too low, due to flawed logic
2277 in its derivation. The new bound is slightly less tight (by a few percent).
2279 * DLHWeight,DPHWeight: Avoid calculating log(0) when wdf is equal to the
2282 * TermGenerator: Handle stemmer returning empty string - the Arabic stemmer
2283 can currently do this (e.g. for a single tatweel) and user stemmers can too.
2284 Fixes #741, reported by Emmanuel Engelhart.
2286 * Database::check(): Fix check that the first docid in each doclength chunk is
2287 more than the last docid in the previous chunk - this code was in the wrong
2288 place so didn't actually work.
2290 * Database::get_unique_terms(): Clamp returned value to be <= document length.
2291 Ideally get_unique_terms() ought to only count terms with wdf > 0, but that's
2292 expensive to calculate on demand.
2296 * When compacting we now only write the iamglass file out once, and we write it
2297 before we sync the tables but sync it after, which is more I/O friendly.
2299 * Database::check(): Fix in SEGV when out == NULL and opts != 0.
2301 * Fix potential SEGV with corrupt value stats.
2305 * Fix potential SEGV with corrupt value stats.
2309 * Add XO_REQUIRE autoconf macro to provide an easy way to handle version checks
2310 in user configure scripts.
2314 * quest: Support BM25+, LM and PL2+ weighting schemes.
2316 * xapian-check: Fix when ellipses are shown in 't' mode. They were being shown
2317 when there were exactly 6 entries, but we only start omitting entries when
2318 there are *more* than 6. Fix applies to both glass and chert.
2322 * Avoid using opendir()/readdir() in our closefrom() implementation as these
2323 functions can call malloc(), which isn't safe to do between fork() and exec()
2324 in a multi-threaded program, but after fork() is exactly where we want to
2325 use closefrom(). Instead we now use getdirentries() on Linux and
2326 getdirentriesattr() on OS X (OS X support bugs shaken out with help from
2329 * Support reading UUIDs from /proc/sys/kernel/random/uuid which is especially
2330 useful when building for Android, as it avoids having to cross-build a UUID
2333 * Disable volatile workaround for excess precision SEGV for SSE - previously it
2334 was only being disabled for SSE2.
2336 * When building for x86 using a compiler where we don't know how to disable
2337 use of 387 FP instructions, we now run remote servers for the testsuite under
2338 valgrind --tool=none, like we do when --disable-sse is explicitly specified.
2340 * Add alignment_cast<T> which has the same effect as reinterpret_cast<T> but
2341 avoids warnings about alignment issues.
2343 * Suppress warnings about unused private members. DLHWeight and DPHWeight
2344 have an unused lower_bound member, which clang warns about, but we need to
2345 keep them there in 1.4.x to preserve ABI compatibility.
2347 * Remove workaround for g++ 2.95 bug as we require at least 4.7 now.
2349 * configure: Probe for <cxxabi.h>. GCC added this header in GCC 3.1, which
2350 is much older than we support, so we've just assumed it was available if
2351 __GNUC__ was defined. However, clang lies and defines __GNUC__ yet doesn't
2352 seem to reliably provide <cxxabi.h>, so we need to probe for it.
2354 * Fix "unused assignment" warning.
2356 * configure: Probe for __builtin_* functions. Previously we just checked for
2357 __GNUC__ being defined, but it's cleaner to probe for them properly -
2358 compilers other than GCC and those that pretend to be GCC might provide these
2361 * Use __builtin_clz() with compilers which support it to speed up encoding
2362 and especially decoding of positional data. This speeds up phrase searching
2363 by ~0.5% in a simple test.
2365 * Check signed right shift behaviour at compile time - we can use a test on a
2366 constant expression which should optimise away to just the required version
2367 of the code, which means that on platforms which perform sign-extension
2368 (pretty much everything current it seems) we don't have to rely on the
2369 compiler optimising a portable idiom down to the appropriate right shift
2372 * Improve configure check for log2(). We include <cmath> so the check really
2373 should succeed if only std::log2() is declared.
2375 * Enable win32-dll option to LT_INIT.
2381 + Support glass instead of chert.
2383 + Allow control of showing keys/tags.
2385 + Use more mnemonic letters than X for command arguments in help.
2387 Xapian-core 1.4.1 (2016-10-21):
2391 * Constructing a Query for a non-reference counted PostingSource object will
2392 now try to clone the PostingSource object (as happened in 1.3.4 and
2393 earlier). This clone code was removed as part of the changes in 1.3.5 to
2394 support optional reference counting of PostingSource objects, but that breaks
2395 the case when the PostingSource object is on the stack and goes out of scope
2396 before the Query object is used. Issue reported by Till Schäfer and analysed
2397 by Daniel Vrátil in a bug report against Akonadi:
2398 https://bugs.kde.org/show_bug.cgi?id=363741
2400 * Add BM25PlusWeight class implementing the BM25+ weighting scheme, implemented
2401 by Vivek Pal (https://github.com/xapian/xapian/pull/104).
2403 * Add PL2PlusWeight class implementing the PL2+ weighting scheme, implemented
2404 by Vivek Pal (https://github.com/xapian/xapian/pull/108).
2406 * LMWeight: Implement Dir+ weighting scheme as DIRICHLET_PLUS_SMOOTHING.
2407 Patch from Vivek Pal.
2409 * Add CoordWeight class implementing coordinate matching. This can be useful
2410 for specialised uses - e.g. to implement sorting by the number of matching
2413 * DLHWeight,DPHWeight,PL2Weight: With these weighting schemes, the formulae
2414 can give a negative weight contribution for a term in extreme cases. We
2415 used to try to handle this by calculating a per-term lower bound on the
2416 contribution and subtracting this from the contribution, but this idea
2417 is fundamentally flawed as the total offset it adds to a document depends on
2418 what combination of terms that document matches, meaning in general the
2419 offset isn't the same for every matching document. So instead we now clamp
2420 each term's weight contribution to be >= 0.
2422 * TfIdfWeight: Always scale term weight by wqf - this seems the logical
2423 approach as it matches the weighting we'd get if we weighted every non-unique
2424 term in the query, as well as being explicit in the Piv+ formula.
2426 * Fix OP_SCALE_WEIGHT to work with all weighting schemes - previously it was
2427 ignored when using PL2Weight and LMWeight.
2429 * PL2Weight: Greatly improve upper bound on weight:
2430 + Split the weight equation into two parts and maximise each separately as
2431 that gives an easily solvable problem, and in common cases the maximum is
2432 at the same value of wdfn for both parts. In a simple test, the upper
2433 bounds are now just over double the highest weight actually achieved -
2434 previously they were several hundred times. This approach was suggested by
2435 Aarsh Shah in: https://github.com/xapian/xapian/pull/48
2436 + Improve upper bound on normalised wdf (wdfn) - when wdf_upper_bound >
2437 doclength_lower_bound, we get a tighter bound by evaluating at
2438 wdf=wdf_upper_bound. In a simple test, this reduces the upper bound on
2439 wdfn by 36-64%, and the upper bound on the weight by 9-33%.
2441 * PL2Weight: Fix calculation of upper_bound when P2>0. P2 is typically
2442 negative, but for a very common term it can be positive and then we should
2443 use wdfn_lower not wdfn_upper to adjust P_max.
2445 * Weight::unserialise(): Check serialised form is empty when unserialising
2446 parameter-free schemes BoolWeight, DLHWeight and DPHWeight.
2448 * TermGenerator::set_stopper_strategy(): New method to control how the Stopper
2449 object is used. Patch from Arnav Jain.
2451 * QueryParser: Fix handling of CJK query over multiple prefixes. Previously
2452 all the n-gram terms were AND-ed together - now we AND together for each
2453 prefix, then OR the results. Fixes #719, reported by Aaron Li.
2455 * Add Database::get_revision() method which provides access to the database
2456 revision number for chert and glass, intended for use by xapiand. Marked
2457 as experimental, so we don't have to go through the usual deprecation cycle
2458 if this proves not to be the approach we want to take. Fixes #709,
2459 reported by Germán M. Bravo.
2461 * Mark RangeProcessor constructor as `explicit`.
2465 * OP_SCALE_WEIGHT: Check top weight is non-zero - if it is zero, tests which
2466 try to check that OP_SCALE_WEIGHT works will always pass.
2468 * testsuite: Check SerialisationError descriptions from Xapian::Weight
2469 subclasses mention the weighting scheme name.
2473 * Fix stats passed to Weight with OP_SYNONYM. Previously the number of
2474 unique terms was never calculated, and a term which matched all documents
2475 would be optimised to an all-docs postlist, which fails to supply the
2478 * Use floating point calculation for OR synonym freq estimates. The division
2479 was being done as an integer division, which means the result was always
2480 getting rounded down rather than rounded to the nearest integer.
2484 * Fix allterms with prefix on glass with uncommitted changes. Glass aims to
2485 flush just the relevant postlist changes in this case but the end of the
2486 range to flush was wrong, so we'd only actually flush changes for a term
2487 exactly matching the prefix. Fixes #721.
2491 * Improve handling of invalid remote stub entries: Entries without a colon now
2492 give an error rather than being quietly skipped; IPv6 isn't yet supported,
2493 but entries with IPv6 addresses now result in saner errors (previously the
2494 colons confused the code which looks for a port number).
2498 * XO_LIB_XAPIAN: Check for user trying to specify configure for XAPIAN_CONFIG
2499 and give a more helpful error.
2501 * Fix XO_LIB_XAPIAN to work without libtool. Modern versions of GNU m4 error
2502 out when defn is used on an undefined macro. Uncovered by Amanda Jayanetti.
2504 * Clean build paths out of installed xapian-config, mostly in the interests of
2505 facilitating reproducible builds, but it is also a little more robust as the
2506 "uninstalled tree" case can't then accidentally be triggered.
2508 * Drop compiler options that are no longer useful:
2509 + -fshow-column is the default in all GCC versions we now support
2510 (checked as GCC 4.6).
2511 + -Wno-long-long is no longer necessary now that we require C++11 where
2512 "long long" is a standard type.
2516 * Add API documentation comments for all classes, methods, constants, etc which
2517 were lacking them, and improve the content of some existing comments.
2519 * Stop hiding undocumented classes and members. Hiding them silences doxygen's
2520 warnings about them, so it's hard to see what is missing, and the stub
2521 documentation produced is perhaps better than not documenting at all.
2522 Fixes #736, reported by James Aylett.
2524 * xapian-check: Make command line syntax consistent with other tools.
2526 * Note when MSet::snippet() was added.
2528 * deprecation.rst: Recommend unsigned over useconds_t for timeout values (but
2529 leave the API using useconds_t for 1.4.x for ABI compatibility. The type
2530 useconds_t is now obsolete and anyway was intended to represent a time in
2531 microseconds (confusing when Xapian's timeouts are in milliseconds). The
2532 Linux usleep man page notes: "Programs will be more portable if they never
2533 mention this type explicitly."
2537 * Suppress compiler warnings about pointer alignment on some architectures.
2538 We know the data is aligned in these cases.
2540 * Fix replicate7 under Cygwin.
2544 * Add missing forward declaration needed by --enable-log build.
2546 Xapian-core 1.4.0 (2016-06-24):
2550 * Update to Unicode 9.0.0.
2554 * Fix build on big-endian architectures. The new unaligned word access
2555 functions expect WORDS_BIGENDIAN to be set, but configure.ac wasn't invoking
2556 AC_C_BIGENDIAN to arrange for this to be set.
2558 * Suppress compiler warnings about pointer alignment. We know the data is
2559 suitably aligned, because the whole point of these functions is to allow
2560 reading an aligned word.
2562 Xapian-core 1.3.7 (2016-06-01):
2566 * Reimplement ESet and ESetIterator as we did for MSet and MSetIterator in
2567 1.3.5. ESetIterator internally now counts down to the end of the ESet, so
2568 the end test is now against 0, rather than against eset.size(). And more of
2569 the trivial methods are now inlined, which reduces the number of relocations
2570 needed to load the library, and should give faster code which is a very
2571 similar size to before.
2573 * MSetIterator and ESetIterator are now STL-compatible random_access_iterators
2574 (previously they were only bidirectional_iterators).
2578 * Merge queryparsertest and termgentest into apitest. Their testcases now use
2579 the backend manager machinery in the testharness, so we don't have to
2580 hard-code use of inmemory and chert backends, but instead run them under all
2581 backends which support the required features. This fixes some test failures
2582 when both chert and glass are disabled due to trying to run spelling tests
2583 with the inmemory backend.
2585 * Avoid overflowing collection frequency in totaldoclen1. We're trying to test
2586 total document length doesn't wrap, so avoid collection freq overflowing in
2587 the process, as that triggers errors when running the testsuite under ubsan.
2588 We should handle collection frequency overflow better, but that's a separate
2591 * Add some test coverage for ESet::get_ebound().
2595 * Fix upper bound on matches for OP_XOR. Due to a reversed conditional, the
2596 estimate could be one too low in some cases where the XOR matched all the
2597 documents in the database.
2599 * Improve lower bound on matches for OP_XOR. Previously the lower bound was
2600 always set to 0, which is valid, but we can often do better.
2604 * Fix Database::check() parsing of glass changes file header. In practice this
2605 was unlikely to actually cause problems.
2609 * --disable-backend-remote now disables replication too which makes it
2610 actually usable (currently replication and the remote backend share most of
2611 their network code, so disabling them together probably makes sense anyway).
2613 * Improve builds with various combinations of backends disabled (see #361).
2617 * Revert change to handle a self-initialised PIMPL object (e.g. Xapian::Query
2618 q(q);), added in 1.3.6. It seems this case is actually undefined behaviour,
2619 so there's not much point trying to do anything about it. Clang warns about
2620 the testcase for it (tested with 3.5), but sadly current GCC doesn't (tested
2623 * Use <cstdint> for integer types of known widths now we require C++11.
2625 * Replace unaligned word access functions with optimised versions which use
2626 memcpy() and (on little-endian platforms) a byte-swap (via compiler builtins
2627 where available). Access revision numbers in database blocks with an aligned
2628 load, since we know they are suitably aligned.
2630 * Simplify handling of platforms where timer_create() exists but isn't
2631 suitable for our needs - AIX and GNU Hurd both have timer_create() but it
2632 always seems to fail (on Hurd this is because there's a dummy implementation
2633 in glibc which always fails with ENOSYS). Trying a call at runtime which
2634 will never succeed is a waste of time, so we want to avoid defining
2635 HAVE_TIMER_CREATE in such cases. Probing for this properly in configure
2636 would need us to compile and run a test program, which is unhelpful when
2637 cross-compiling, so for now just test against a blacklist of platforms we
2638 know don't provide a suitable timer_create() function.
2640 * Check _POSIX_MONOTONIC_CLOCK and if it's not defined, use CLOCK_REALTIME
2641 instead of CLOCK_MONOTONIC. The existing hard-coded platform checks still
2642 seem to be needed, as on these platforms CLOCK_MONOTONIC is available for
2643 some functions, but doesn't work with timer_create() for one reason or
2644 another. But the new check should avoid failures on platforms without any
2645 monotonic clock support.
2647 * Make opt_intrusive_base symbols visible to avoid UBSAN warnings.
2649 * Avoid potential set-but-unused warning - with both chert and glass disabled,
2650 last_docid's final set value isn't used, which GCC doesn't warn about, but
2651 other compilers might.
2653 * Avoid explicit recursive return of void - we've had warnings for such cases
2654 from some compilers in the past, and it's an odd thing to do outside of a
2657 Xapian-core 1.3.6 (2016-05-09):
2661 * TfIdfWeight: Support freq and squared IDF normalisations. Patch from Vivek
2664 * New Xapian::Query::OP_INVALID to provide an "invalid" query object.
2666 * Reject OP_NEAR/OP_PHRASE with non-leaf subqueries early to avoid a
2667 potential segmentation fault if the non-leaf subquery decayed at
2668 just the wrong moment. See #508.
2670 * Reduce positional queries with a MatchAll or PostingSource subquery to
2671 MatchNothing (since these subqueries have no positional information, so
2672 the query can't match).
2674 * Deprecate ValueRangeProcessor and introduce new RangeProcessor class as
2675 a replacement. RangeProcessor()::operator()() method returns Xapian::Query,
2676 so a range can expand to any query. OP_INVALID is used to signal that
2677 a range is not recognised. Fixes #663.
2679 * Combining of ranges over the same quantity with OP_OR is now handled by
2680 an explicit "grouping" parameter, with a sensible default which works
2681 for value range queries. Boolean term prefixes and FieldProcessor now
2682 support "grouping" too, so ranges and other filters can now be grouped
2685 * Formally deprecate WritableDatabase::flush(). The replacement commit()
2686 method was added in 1.1.0, so code can be switched to use this and still
2689 * Fix handling of a self-initialised PIMPL object (e.g. Xapian::Query q(q);).
2690 Previously the uninitialised pointer was copied to itself, resulting in
2691 undefined behaviour when the object was used. This isn't something you'd see
2692 in normal code, but it's a cheap check which can probably be optimised away
2693 by the compiler (GCC 6 does).
2697 * Fix testcase notermlist1 to check correct table extension - ".glass" not
2698 ".DB" (chert doesn't support DB_NO_TERMLIST).
2702 * Bootstrap with autoconf 2.69. This requires GNU m4 >= 4.6, but that should
2703 no longer be an issue on developer machines.
2705 * Fix build with --enable-log. Debug logging was trying to log
2706 compress_strategy parameter which was removed recently. Reported by Ankit
2707 Paliwal on xapian-devel.
2711 * Fix misfiled deprecation notes. Various things marked as deprecated and
2712 removed in 1.3.x have in fact been deprecated but not removed (they were just
2713 added to the wrong list). One instance queried by David Bremner on #xapian,
2714 and a review found several more.
2716 * Improve docs for lcov makefile targets - say that these are targets in the
2717 xapian-core directory (noted by poe_ on #xapian), document
2718 coverage-reconfigure-maintainer-mode target, and clarify what the example of
2719 how to use GENHTML_ARGS actually does.
2721 * Note that Java bindings use xapian/iterator.h.
2723 * Update release checklist. The script to build the release tarballs now
2724 automates some of the changes needed in trac.
2728 * Fix build with Android NDK which declares sys_errlist and sys_nerr in the
2729 C library headers, but doesn't actually define them in the library itself.
2730 The configure test now tries to link a trivial program which uses these
2731 symbols. Patch from Tejas Jogi.
2733 Xapian-core 1.3.5 (2016-04-01):
2735 This release includes all changes from 1.2.23 which are relevant.
2739 * The Snipper class has been replaced with a new MSet::snippet() method.
2740 The implementation has also been redone - the existing implementation was
2741 slower than ideal, and didn't directly consider the query so would sometimes
2742 selects a snippet which doesn't contain any of the query terms (which users
2743 quite reasonably found surprising). The new implementation is faster, will
2744 always prefer snippets containing query terms, and also understands exact
2745 phrases and wildcards. Fixes #211.
2747 * Add optional reference counting support for ErrorHandler, ExpandDecider,
2748 KeyMaker, PostingSource, Stopper and TermGenerator. Fixes #186, reported
2749 by Richard Boulton. (ErrorHandler's reference counting isn't actually used
2750 anywhere in xapian-core currently, but means we can hook it up in 1.4.x if
2751 ticket #3 gets addressed).
2753 * Deprecate public member variables of PostingSource. The new getters and/or
2754 setters added in 1.2.23 and 1.3.5 are preferred. Fixes #499, reported by
2757 * Reimplement MSet and MSetIterator. MSetIterator internally now counts down
2758 to the end of the MSet, so the end test is now against 0, rather than against
2759 mset.size(). And more of the trivial methods are now inlined, which reduces
2760 the number of relocations needed to load the library, and should give faster
2761 code which is a very similar size to before.
2763 * Only issue prefetch hints for documents if MSet::fetch() is called. It's not
2764 useful to send the prefetch hint right before the actual read, which was
2765 happening since the implementation of prefetch hints in 1.3.4. Fixes #671,
2766 reported by Will Greenberg.
2768 * Fix OP_ELITE_SET selection in multi-database case - we were selecting
2769 different sets for each subdatabase, but removing the special case check for
2770 termfreq_max == 0 solves that.
2772 * Remove "experimental" marker from FieldProcessor, since we're happy with the
2773 API as-is. Reported by David Bremner on xapian-discuss.
2775 * Remove "experimental" marker from Database::check(). We've not had any
2776 negative feedback on the current API.
2778 * Databse::check() now checks that doccount <= last_docid.
2780 * Database::compact() on a WritableDatabase with uncommitted changes could
2781 produce a corrupted output. We now throw Xapian::InvalidOperationError in
2782 this case, with a message suggesting you either commit() or open the database
2783 from disk to compact from. Reported by Will Greenberg on #xapian-discuss
2785 * Add Arabic stemmer. Patch from Assem Chelli in
2786 https://github.com/xapian/xapian/pull/45
2788 * Improve the Arabic stopword list. Patch from Assem Chelli.
2790 * Make functions defined in xapian/iterator.h 'inline'.
2792 * Don't force the user to specify the metric in the geospatial API -
2793 GreatCircleMetric is probably what most users will want, so a sensible
2796 * Xapian::DBCHECK_SHOW_BITMAP: This was added in 1.3.0 (so has never been in
2797 a stable release) and was superseded by Xapian::DBCHECK_SHOW_FREELIST in
2798 1.3.2, so just remove it.
2800 * Make setting an ErrorHandler a no-op - this feature is deprecated and we're
2801 not aware of anyone using it. We're hoping to rework ErrorHandler in 1.4.x,
2802 which will be simpler without having to support the current behaviour as well
2807 * unittest: We can't use Assert() to unit test noexcept code as it throws an
2808 exception if it fails. Instead set up macros to set a variable and return if
2809 an assertion fails in a unittest testcase, and check that variable in the
2814 * Make glass the default backend. The format should now be stable, except
2815 perhaps in the unlikely event that a bug emerges which requires a format
2818 * Don't explicitly store the 2 byte "component_of" counter for the first
2819 component of every Btree entry in leaf blocks - instead use one of the upper
2820 bits of the length to store a "first component" flag. This directly saves 2
2821 bytes per entry in the Btree, plus additional space due to fewer blocks and
2822 fewer levels being needed as a result. This particularly helps the position
2823 table, which has a lot of entries, many of them very small. The saving would
2824 be expected to be a little less than the saving from the change which shaved
2825 2 bytes of every Btree item in 1.3.4 (since that saved 2 bytes multiple times
2826 for large entries which get split into multiple items). A simple test
2827 suggests a saving of several percent in total DB size, which fits that. This
2828 change reduces the maximum component size to 8194, which affects tables
2829 with a 64KB blocksize in normal use and tables with >= 16KB blocksize with
2832 * Refactor glass backend key comparison - == and < operations are replaced by
2833 a compare() function returns negative, 0 or positive (like strcmp(), memcmp()
2834 and std::string::compare()). This allows us to avoid a final compare to
2835 check for equality when binary chopping, and to terminate early if the binary
2836 chop hits the exact entry.
2838 * If a cursor is moved to an entry which doesn't exist, we need to step back to
2839 the first component of previous entry before we can read its tag. However we
2840 often don't actually read its tag (e.g. if we only wanted the key), so make
2841 this stepping back lazy so we can avoid doing it when we don't want to read
2844 * Avoid creating std::string objects to hold data when compressing and
2845 decompressing tags with zlib.
2847 * Store minimum compression length per table in the version file, with 0
2848 meaning "don't compress". Currently you can only change this setting with a
2849 hex editor on the file, but now it is there we can later make use of it
2850 without needing a database format change.
2852 * Database::check() now performs additional consistency checks for glass.
2853 Reported by Jean-Francois Dockes and Bob Cargill via xapian-discuss.
2855 * Database::check(): check docids don't exceed db_last_docid when checking
2856 a single glass table.
2858 * We now throw DatabaseCorruptError in a few cases where it's appropriate
2859 but we didn't previously, in particular in the case where all the files in a
2860 DB have been truncated to zero size (which makes handling of this case
2861 consistent with chert).
2863 * Fix compaction to a single file which already exists. This was hanging.
2864 Noted by Will Greenberg on #xapian.
2868 * When using 64-bit Xapian::docid, consistently use the actual maximum valid
2869 docid value rather instead of the maximum value the type can hold.
2873 * Default to only building shared libraries. Building both shared and static
2874 means having to compile the files which make up the library twice on most
2875 platforms. Shared libraries are the better option for most users, and if
2876 anyone really wants static libraries they can configure with --enable-static
2877 (or --enable-static=xapian-core if configuring a combined tree with the
2880 * Fix XAPIAN_TEST_LINKER_FLAG macro to actually test if it's possible to link
2881 with the option in LDFLAGS - previously we attempted to guess based on
2882 whether the error message from $CXX $flag contained the option name, which
2883 doesn't actually work very well.
2887 * Document that OP_WILDCARD expansion limits currently work per sub-db.
2889 * Remove reference to ChangeLog files, as we are no longer updating them.
2891 * Remove link to apidoc.pdf which we no longer generate this by default.
2893 * Clarify LatLongCoord::operator< purpose in API documentation.
2895 * Fix documentation comment typo - LatLongDistancePostingSource is a posting
2896 source, not a match decider!
2898 * HACKING: Recommend lcov 1.11 as it uses much less memory
2902 * xapian-replicate: Obviously corrupt replicas now self-heal. If a replica
2903 database fails to open with DatabaseCorruptError then a full copy is now
2908 * Eliminate arrays of C strings, which result in relocations at library load
2909 time, slowing startup and making pages containing them unsharable.
2911 * Refactor MSet::fetch() to reduce load time relocations.
2915 * Fix to build when configured with --enable-assertions.
2917 * Fix to build when configured with --enable-log. Reported by Tim McNamara
2920 Xapian-core 1.3.4 (2016-01-01):
2922 This release includes all changes from 1.2.22 which are relevant.
2926 * Update to Unicode 8.0.0. Fixes #680.
2928 * Overhaul database compaction API. Add a Xapian::Database::compact() method,
2929 with the Database object specifying the source database(s).
2930 Xapian::Compactor is now just a functor to use if you want to control
2931 progress reporting and/or the merging of user metadata. The existing API
2932 has been reimplemented using the new one, but is marked as deprecated.
2934 * Add support for a default value when sorting. Fixes #452, patch from
2937 * Make all functor objects non-copyable. Previously some were, some weren't,
2938 but it's hard to correctly make use of this ability. Fixes #681.
2940 * Fix use after free with WILDCARD_LIMIT_MOST_FREQUENT. If we tried to open a
2941 postlist after processing such a wildcard, the postlist hint could be
2942 pointing to a PostList object which had been deleted. Fixes #696, reported
2945 * Add support for optional reference counting of MatchSpy objects.
2947 * Improve Document::get_description() - the output is now always valid UTF-8,
2948 doesn't contain implementation details like "Document::Internal", and more
2949 clearly reports if the document is linked to a database.
2951 * Remove XAPIAN_CONST_FUNCTION marker from sortable_serialise_() helper, as it
2952 writes to the passed in buffer, so it isn't const or pure. Fixes
2953 decvalwtsource2 testcase failure when compiled with clang.
2955 * Make PostingSource::set_maxweight() public - it's hard to wrap for the
2956 bindings as a protected method. Fixes #498, reported by Richard Boulton.
2960 * Add unit test for internal C_isupper(), etc functions.
2964 * Optimise value range which is a superset of the bounds. If the value
2965 frequency is equal to the doccount, such a range is equivalent to MatchAll,
2966 and we now avoid having to read the valuestream at all.
2968 * Optimise OP_VALUE_RANGE when the upper bound can't be exceeded. In this
2969 case, we now use ValueGePostList instead of ValueRangePostList.
2973 * Shave 2 bytes of every Btree item (which will probably typically reduce
2974 database size by several percent).
2976 * More compact item format for branch blocks - 2 bytes per item smaller. This
2977 means each branch block can branch more ways, reducing the number of Btree
2978 levels needed, which is especially helpful for cold-cache search times.
2980 * Track an upper bound on spelling word frequency. This isn't currently used,
2981 but will be useful for improving the spelling algorithm, and we want to
2982 stabilise the glass backend format. See #225, reported by Philip Neustrom.
2984 * Support 64-bit docids in the glass backend on-disk format. This changes the
2985 encoding used by pack_uint_preserving_sort() to one which supports 64 bit
2986 values, and is a byte smaller for values 16384-32767, and the same size for
2987 all other 32 bit values. Fixes #686, from original report by James Aylett.
2989 * Use memcpy() not memmove() when no risk of overlap.
2991 * Store length of just the key data itself, allowing keys to be up to 255 bytes
2992 long - the previous limit was 252.
2994 * Change glass to store DB stats in the version file. Previously we stored
2995 them in a special item in the postlist table, but putting them in the version
2996 file reduces the number of block reads required to open the database, is
2997 simpler to deal with, and means we can potentially recalculate tight upper
2998 and lower bounds for an existing database without having to commit a new
3001 * Add support for a single-file variant for glass. Currently such databases
3002 can only be opened for reading - to create one you need to use
3003 xapian-compact (or its API equivalent). You can embed such databases within
3004 another file, and open them by passing in a file descriptor open on that file
3005 and positioned at the offset the database starts at). Database::check() also
3006 supports them. Fixes #666, reported by Will Greenberg (and previously
3007 suggested on xapian-discuss by Emmanuel Engelhart).
3009 * Avoid potential DB corruption with full-compaction when using 64K blocks.
3011 * Where posix_fadvise() is available, use it to prefetch postlist Btree blocks
3012 from the level below the root block which will be needed for postlists of
3013 terms in the query, and similarly for the docdata table when MSet::fetch() is
3014 called. Based on patch by Will Greenberg in #671.
3018 * Where posix_fadvise() is available, use it to prefetch postlist Btree blocks
3019 from the level below the root block which will be needed for postlists of
3020 terms in the query, and similarly for the record table when MSet::fetch() is
3021 called. Based on patch by Will Greenberg in #671.
3025 * Fix hook for remote support of user weighting schemes. The commented-out
3026 code used entirely the wrong class - now we use the server object we have
3027 access to, and forward the method to the class which needs it.
3031 * New configure options --enable-64bit-docid and --enable-64bit-termcount,
3032 which control the size of these types. Because these types are used in
3033 the API, libraries built with different combinations of them won't be ABI
3034 compatible. Based heavily on patch from James Aylett and Dylan Griffith.
3037 * Sort out hiding most of the internal symbols which had public visibility
3038 for various reason. Mostly addresses #63.
3042 * xapian-inspect: We no longer install this - it's really an aid to Xapian
3043 development rather than a user tool.
3047 * Minimum supported GCC version is now documented as GCC 4.7, for C++11
3048 support. Previously we documented 4.7 as the oldest known to work.
3050 * Use CLOCK_REALTIME with timer_create() on Cygwin.
3052 * Don't include winsock headers on Cygwin. Instead include <arpa/inet.h> for
3053 htons() and htonl().
3055 * Handle AI_ADDRCONFIG not being defined by some mingw versions.
3057 * Fix to handle mingw now providing a nanosleep() function.
3059 * Use WSAAddressToString instead of inet_ntop under __WIN32__ - at least under
3060 mingw we don't seem to have inet_ntop().
3062 * Fix testsuite to compile when S_ISSOCK() isn't defined.
3066 * Add missing parameters to debug logging for a few methods.
3068 Xapian-core 1.3.3 (2015-06-01):
3070 This release includes all changes from 1.2.20-1.2.21 which are relevant.
3076 + Add new flag Xapian::DB_RETRY_LOCK which allows opening a database for
3077 writing to wait until it can get a write lock. (Fixes #275, reported by
3080 + Fix Database::get_doclength_lower_bound() over multiple databases when some
3081 are empty or consist only of zero-length documents. Previously this would
3082 report a lower bound of zero, now it reports the same lowest bound as a
3083 single database containing all the same documents.
3085 + Database::check(): When checking a single table, handle the ".glass"
3086 extension on glass database tables, and use the extension to guide the
3087 decision of which backend the table is from.
3091 + Add new OP_WILDCARD query operator, which expands wildcards lazily, so now
3092 we create the PostList tree for a wildcard directly, rather than creating
3093 an intermediate Query tree. OP_WILDCARD offers a choice of ways to limit
3094 wildcard expansion (no limit, throw an exception, use the first N by term
3095 name, or use the most frequent N). (See tickets #48 and #608).
3099 + Add new set_max_expansion() method which provides access to OP_WILDCARD's
3100 choice of ways to limit expansion and can set limits for partial terms as
3101 well as for wildcards. Partial terms now default to the 100 most frequent
3102 matching terms. (Completes #608, reported by boomboo).
3104 + Deprecate set_max_wildcard_expansion() in favour of set_max_expansion().
3106 * Add support for optional reference counting of FieldProcessor and
3107 ValueRangeProcessor objects.
3111 * If command line option --verbose/-v isn't specified, set the verbosity level
3112 from environmental variable VERBOSE.
3114 * Re-enable replicate3 for glass, as it no longer fails.
3116 * Add more test coverage for get_unique_terms().
3118 * Don't leave an extra fd open when starting xapian-tcpsrv for remotetcp tests.
3122 * When reporting freelist errors during a database check, distinguish between a
3123 block in use and in the freelist, and a block in the freelist more than once.
3125 * Fix compaction and database checking for the change to the format of keys
3126 in the positionlist table which happened in 1.3.2.
3128 * After splitting a block, we always insert the new block in the parent right
3129 after the block it was split from - there's no need to binary chop.
3131 * Avoid infinite recursion when we hit the end of the freelist block we're
3132 reading and the end of the block we're writing at the same time.
3134 * Fix freelist handling to allow for the newly loaded first block of the
3135 freelist being already used up.
3139 * Fix problems with get_unique_terms() on a modified chert database.
3141 * Fix xapian-check on a single chert table, which seg faulted in 1.3.2.
3145 * Avoid dividing zero by zero when calculating the average length for an empty
3150 * Merge generate-allsnowballheaders script into collate-sbl.
3154 * A compiler with good support for C++11 is now required to build Xapian.
3155 Most of the actively developed C++ compilers already have decent support,
3156 or are close to having it, and it makes development easier and more
3157 efficient. Currently known to work: GCC >= 4.7, recent versions of clang
3158 (3.5 works). Solaris Studio 12.4 compiles the code, but tests currently
3159 fail. IBM's xlC doesn't support enough of C++11 yet. HP's aCC hasn't
3160 been tested, but its documentation suggests it also doesn't support enough
3163 * Drop workarounds and special cases for old versions of various compilers
3164 which don't support C++11.
3166 * Use C++11's static_assert() and unique_ptr instead of custom implementations
3167 of equivalent functionality.
3169 * Building on OS/2 with EMX is no longer supported - EMX was last updated in
3170 2001 and comes with GCC 3.2.1, which is much too old to support C++11.
3172 * Building with SGI's and Compaq's C++ compilers is no longer supported -
3173 both seem to have ceased development, and don't support C++11.
3175 * Building with STLport is no longer supported - STLport was last released in
3176 2008, so it's no longer actively developed and won't support C++11.
3178 * Building on IRIX is no longer supported, because IRIX has reached end of
3181 * Disable "<FUNCTION> is expected to return a value" warning from Sun's C++
3182 compiler, as it fires for functions which end in a "throw" statement.
3183 Genuine instances of missing return values will be caught by compilers with
3184 superior warning machinery.
3186 * Fix warning from GCC 5.1 where template expansion leads to the comparison
3187 (bool_value < 255) which is always true. Warning introduced by changes in
3190 * Use getaddrinfo() instead of gethostbyname(), since the latter may not be
3191 thread-safe, and as a step towards IPv6 support (see #374), but currently we
3192 still only look for IPv4 addresses.
3194 * timer_create() seems to always fail on AIX with EAGAIN, so just skip the
3195 matchtimelimit1 testcase there.
3197 * Under __WIN32__, we need to specify Vista as the minimum supported version to
3198 get the AI_ADDRCONFIG flag. Older versions seem to all be out of support
3201 * Change configure probe for log2() to check for a declaration in <cmath>
3202 to get it to fix build on Solaris with Sun C++. C++11 compilers should all
3203 provide log2(), but let's not rely on that just yet as it's easy to provide a
3204 fallback implementation.
3206 * Use scalbn() instead of ldexp() where possible (which we can in all cases
3207 when FLT_RADIX == 2, as it is on pretty much all current platforms). On
3208 overflow and underflow ldexp() sets errno, which it seems better to avoid
3211 * The list of stemmers is now in the same static const struct as the version
3212 info, and Stem::get_available_languages() is just an inlined wrapper which
3213 fetches this structure and returns the appropriate member. This saves a
3214 relocation, reducing library load time a little.
3216 * Remove "pure" attribute from API functions which could throw an exception.
3217 These functions aren't really pure, and while we're happy for calls to them
3218 to be CSE-ed or eliminated entirely, the compiler might make more assumptions
3219 than that about a pure function - clang seems to assume pure => nothrow and
3220 an exception from such a function can't be caught.
3222 * Remove "pure" attribute from sortable_unserialise(), which can raise floating
3223 point exceptions FE_OVERFLOW and FE_UNDERFLOW.
3225 * Add "nothrow" attribute to more API functions which will never throw an
3228 * Make sortable_serialise() an inlined wrapper around a function which won't
3229 throw and can be flagged with attribute 'const'.
3231 * Tweak sortable_unserialise() not to compare with a fixed string by
3232 constructing a temporary std::string object (which could throw
3233 std::bad_alloc), and mark it as XAPIAN_NOTHROW.
3237 * Only enable assertions in sortable_serialise() and sortable_unserialise() in
3238 the testsuite (since these functions shouldn't throw exceptions), and move
3239 the tests of these functions from queryparsertest to unittest to facilitate
3242 * Add more assertions to the glass backend code.
3244 Xapian-core 1.3.2 (2014-11-24):
3246 This release includes all changes from 1.2.16-1.2.19 which are relevant.
3250 * Update Unicode character database to Unicode 7.0.0.
3252 * New Xapian::Snipper class from Mihai Bivol's GSOC 2012 project. (mostly
3255 * Fix all get_description() methods to always return UTF-8 text. (fixes #620)
3257 * Database::check():
3259 + Alter to take its "out" parameter as a pointer to std::ostream instead of a
3260 reference, and make passing NULL mean "do not produce output", and make
3261 the second and third parameters optional, defaulting to a quiet check.
3263 + Escape invalid UTF-8 data in keys and tags reported by xapian-check, using
3264 the same code we use to clean up strings returned by get_description()
3267 + Correct failure message which talks above the root block when it's actually
3270 + Rename DBCHECK_SHOW_BITMAP to DBCHECK_SHOW_FREELIST (old name still
3271 provided for now, but flagged as deprecated - DBCHECK_SHOW_BITMAP was new
3272 in 1.3.0, so will likely be removed before 1.4.0).
3274 * Methods and functions which take a string to unserialise now consistently
3275 call that parameter "serialised".
3277 * Weight: Make number of distinct terms indexing each document and the
3278 collection frequency of the term available to subclasses. Patch from
3279 Gaurav Arora's Language Modelling branch.
3281 * WritableDatabase: Add support for multiple subdatabases, and support opening
3282 a stub database containing multiple subdatabases as a WritableDatabase.
3284 * WritableDatabase can now be constructed from just a pathname (defaulting to
3285 opening the database with DB_CREATE_OR_OPEN).
3287 * WritableDatabase: Add flags which can be bitwise OR-ed into the second
3288 argument when constructing:
3290 + Xapian::DB_NO_SYNC: to disable use of fsync, etc
3292 + Xapian::DB_DANGEROUS: to enable in-place updates
3294 + Xapian::DB_BACKEND_CHERT: if creating, create a chert database
3296 + Xapian::DB_BACKEND_GLASS: if creating, create a glass database
3298 + Xapian::DB_NO_TERMLIST: create a database without a termlist (see #181)
3300 + Xapian::DB_FULL_SYNC flag - if this is set for a database, we use the Mac
3301 OS X F_FULL_SYNC instead of fdatasync()/fsync()/etc on the version file
3304 * Database: Add optional flags argument to constructor - the following can be
3305 bitwise OR-ed into it:
3307 + Xapian::DB_BACKEND_CHERT (only open a chert database)
3309 + Xapian::DB_BACKEND_GLASS (only open a glass database)
3311 + Xapian::DB_BACKEND_STUB (only open a stub database)
3313 * Xapian::Auto::open_stub() and Xapian::Chert::open() are now deprecated in
3314 favour of these new flags.
3316 * Add LMWeight class, which implements the Unigram Language Modelling weighting
3317 scheme. Patch from Gaurav Arora.
3319 * Add implementations of a number of DfR weighting schemes (BB2, DLH, DPH,
3320 IfB2, IneB2, InL2, PL2). Patches from Aarsh Shah.
3322 * Add support for the Bo1 query expansion scheme. Patch from Aarsh Shah.
3324 * Add Enquire::set_time_limit() method which sets a timelimit after which
3325 check_at_least will be disabled.
3327 * Database: Trying to perform operations on a database with no subdatabases now
3328 throws InvalidOperationError not DocNotFoundError.
3330 * Query: Implement new OP_MAX query operator, which returns the maximum weight
3331 of any of its subqueries. (see #360)
3333 * Query: Add methods to allow introspection on Query objects - currently you
3334 can read the leaf type/operator, how many subqueries there are, and get a
3335 particular subquery. For a query which is a term, Query::get_terms_begin()
3336 allows you to get the term. (see #159)
3338 * Query: Only simplify OP_SYNONYM with a single subquery if that subquery is a
3341 * Avoid two vector copies when storing term positions in most common cases.
3343 * Reimplement version functions to use a single function in libxapian which
3344 returns a pointer to a static const struct containing the version
3345 information, with inline wrappers in the API header which call this. This
3346 means we only need one relocation instead of 4, reducing library load time a
3349 * Make TermGenerator flags an anonymous enum, and typedef TermGenerator::flags
3350 to int for backward compatibility with existing user code which uses it.
3352 * Stem: Fix incorrect Unicode codepoints for o-double-acute and u-double-acute
3353 in the Hungarian Snowball stemmer. Reported by Tom Lane to snowball-discuss.
3355 * Stem: Add an early english stemmer.
3357 * Provide the stopword lists from Snowball plus an Arabic one, installed in
3358 ${prefix}/share/xapian-core/stopwords/. Patch from Assem Chelli, fixes #269.
3360 * Improve check for direct inclusion of Xapian subheaders in user code to
3363 * Add simple API to help with creating language-idiomatic iterator wrappers
3364 in <xapian/iterator.h>.
3368 * Extend checkstatsweight1 to check that Weight::get_collection_freq() returns
3369 the same number as Database::get_collection_freq().
3371 * queryparsertest: Add testcase for FieldProcessor on boolean prefix with
3374 * queryparsertest: Enable some disabled cases which actually work (in some
3375 cases with slightly tweaked expected answers which are equivalent to those
3378 * Make use of the new writable multidatabase feature to simplify the
3379 multi-database handling in the test harness.
3381 * Change querypairwise1_helper to repeat the query build 100 times, as with a
3382 fast modern machine we were sometimes trying with so many subqueries that we
3383 would run out of stack.
3385 * apitest: Use Xapian::Database::check() in cursordelbug1. (partly addresses
3388 * apitest: Test Query ops with a single MatchAll subquery.
3390 * apitest: New testcase readonlyparentdir1 to ensure that commit works with a
3391 read-only parent directory.
3395 * Streamline collation of statistics for use by weighting schemes - tests show
3396 a 2% or so increase in speed in some cases.
3398 * If a term matches all documents and its weight doesn't depend on its wdf, we
3399 can optimise it to MatchAll (the previous requirement that maxpart == 0 was
3400 unnecessarily strict).
3402 * Fix the check for a term which matches all documents to use the sub-db
3403 termfreq, not the combined db termfreq.
3405 * When we optimise a postlist for a term which matches all documents to use
3406 MatchAll, we still need to set a weight object on it to get percentages
3407 calculated correctly.
3411 * 'brass' backend renamed to 'glass' - we decided to use names in ascending
3412 alphabetical order to make it easier to understand which backend is newest,
3413 and since 'flint' was used recently, we skipped over 'd', 'e' and 'f'.
3415 * Change positionlist keys to be ordered by term first rather than docid first,
3416 which helps phrase searching significantly. For more efficient indexing,
3417 positionlist changes are now batched up in memory and written out in key
3420 * Use a separate cursor for each position list - now we're ordering the
3421 position B-tree by term first, phrase matching would cause a single cursor
3422 to cycle between disparate areas of the B-tree and reread the same blocks
3425 * Reference count blocks in the btree cursor, so cursors can cheaply share
3426 blocks. This can significantly reduce the amount of memory used by cursors
3427 for queries which contain a lot of terms (e.g. wildcards which expand to a
3430 * Under glass, optimise the turning of a query into a postlist to reuse the
3431 cursor blocks which are the same as the previous term's postlist. This is
3432 particularly effective for a wildcard query which expands to a lot of terms.
3434 * Keep track of unused blocks in the Btrees using freelists rather than
3435 bitmaps. (fixes #40)
3437 * Eliminate the base files, and instead store the root block and freelist
3438 pointers in the "iamglass" file.
3440 * When compacting, sync all the tables together at the end.
3442 * In DB_DANGEROUS mode, update the version file in-place.
3444 * Only actually store the document data if it is non-empty. The table which
3445 holds the document data is now lazily created, so won't exist if you never
3446 set the document data.
3450 * Improve DBCHECK_FIX:
3452 + if fixing a whole database, we now take the revision from the first table
3453 we successfully look at, which should be correct in most cases, and is
3454 definitely better than trying to determine the revision of each broken
3455 table independently.
3457 + handle a zero-sized .DB file.
3459 + After we successfully regenerate baseA, remove any empty baseB file to
3460 prevent it causing problems. Tracked down with help from Phil Hands.
3464 * Bump remote protocol version to 38.0, due to extra statistics being tracked
3467 * Make Weight::Internal track if any max_part values are set, so we don't need
3468 to serialise them when they've not been set.
3472 * Fix conditional for enabling replication code - if chert is disabled but
3473 glass isn't, we should still enable it.
3475 * configure: Add hint for which package to install for rst2html
3479 * Don't build, ship or install PDF versions of the API docs by default, but
3480 provide an easy way for people to build it for themselves if they want it.
3482 * Convert equations in rst docs to use LaTeX via the math role and directive.
3484 * Actually ship, process and install geospatial.rst.
3486 * postingsource.rst: Use a modern class in postingsource example. (Noted by
3489 * Move the protocol docs for the remote and replication protocols into the net/
3492 * Remove the dir_contents files and all the machinery to handle them.
3494 * HACKING: Note we now use doxygen 1.8.8 for 1.3.x snapshots and releases.
3496 * HACKING: Now using libtool 2.4.3 to bootstrap snapshots and 1.3.x releases.
3498 * HACKING: Now using automake 1.14.1 to bootstrap snapshots and 1.3.x releases.
3500 * HACKING: Drop note about needing git-svn if you're using git - bootstrap now
3501 only uses git-svn if your Xapian tree was checked out using git-svn.
3503 * HACKING: Need sphinx-doc to generate API docs for Python and Python 3 bindings.
3505 * HACKING: Note that MacTeX seems to be the best option if using homebrew.
3509 * Don't pass an integer argument to log(), to avoid ambiguity errors with xlC
3510 and Sun's C++ compiler. (fixes #627)
3512 * Fix compilations issues with Sun's C++ compiler (mostly missing library
3515 * Implement RealTime::now() using clock_gettime() where it's available, since
3516 it can provide nanosecond resolution.
3518 * Implement RealTime::sleep() using nanosleep() where it's available, since it
3519 has a simpler API and a finer resolution than select().
3521 * Use lround() instead of round() in geospatial code, since we want the result
3522 as an int. GCC 4.4.3 seems to optimise to use lround() anyway, but other
3525 * Include <math.h> for lround()/round(). (fixes #628)
3527 * Drop code supporting Microsoft Windows 9x which reached EOL in 2006.
3529 * Under C++11, use unique_ptr for AutoPtr.
3531 * Stop using a reference where we may end up passing *NULL, as that's invalid.
3532 Thanks Nick Lewycky and ubsan for helping track this down.
3534 * In DLHWeight and DPHWeight, avoid dividing by zero when the collection size
3539 * Fix assertion failure when built with --enable-assertions. The behaviour
3540 when built without assertions happened to be correct.
3542 * Fix assertion in BitReader::decode(), and remove 'Assert(rd);' in two places
3543 where rd is no longer a pointer.
3545 Xapian-core 1.3.1 (2013-05-03):
3547 This release includes all changes from 1.2.10-1.2.15 which are relevant.
3551 * Give an compilation error if user code tries to include API headers other
3552 than xapian.h directly - these other headers are an internal implementation
3553 detail, but experience has shown that some people try to include them
3554 directly. Please just use '#include <xapian.h>' instead.
3556 * Update Unicode character database to Unicode 6.2.0.
3558 * Add FieldProcessor class (ticket#128) - currently marked as an experimental
3559 API while we sort out how best to sort out exactly how it interacts with
3560 other QueryParser features.
3562 * Add implementation of several TF-IDF weighting schemes via a new TfIdfWeight
3565 * Add ExpandDeciderFilterPrefix class which only return terms with a particular
3566 prefix. (fixes #467)
3568 * QueryParser: Adjust handling of Unicode opening/closing double quotes - if a
3569 quoted boolean term was started with ASCII double quote, then only ASCII
3570 double quote can end it, as otherwise it's impossible to quote a term
3571 containing Unicode double quotes.
3573 * Database::check(): If the database can't be opened, don't emit a bogus
3574 warning about there being too many documents to cross-check doclens.
3576 * TradWeight,BM25Weight: Throw SerialisationError instead of NetworkError if
3577 unserialise() fails.
3579 * QueryParser: Change the default stemming strategy to STEM_SOME, to eliminate
3580 the API gotcha that setting a stemmer is ignored until you also set a
3583 * Deprecate Xapian::ErrorHandler. (ticket#3)
3585 * Stem: Generate a compact and efficient table to decode language names. This
3586 is both faster and smaller than the approach we were using, with the added
3587 benefit that the table is auto-generated.
3591 + Add check for Qt headers being included before us and defining
3592 'slots' as a macro - if they are, give a clear error advising how to work
3593 around this (previously compilation would fail with a confusing error).
3595 + Add a similar check for Wt headers which also define 'slots' as a macro
3600 * tests/generate-api_generated: Test that the string returned by a
3601 get_description() method isn't empty.
3603 * Use git commit hash in title of test coverage reports generated from a git
3608 * Drop MatchNothing subqueries in OR-like situations in add_subquery() rather
3609 than adding them and then handling it later.
3611 * Handle the left side of AND_NOT and AND_MAYBE being MatchNothing in
3612 add_subquery() rather than in done().
3614 * Handle QueryAndLike with a MatchNothing subquery in add_subquery() rather
3617 * Query: Multi-way operators now store their subquery pointers in a custom
3618 class rather than std::vector<Xapian::Query>. The custom class take the
3619 same amount of space, or often less. It's particularly efficient when
3620 there are two subqueries, which is very desirable as we no longer flatten a
3621 subtree of the same operator as we build the query.
3623 * Optimise an unweighted query term which matches all the documents in a
3624 subdatabase to use the "MatchAll" postlist. (ticket#387)
3628 * Iterating positional data now decodes it lazily, which should speed up
3629 phrases which include common words.
3631 * Compress changesets in brass replication. Increments the changeset version.
3634 * Restore two missing lines in database checking where we report a block with
3637 * When checking if a block was newly allocated in this revision, just look
3638 at its revision number rather than consulting the base file's bitmap.
3642 * Iterating positional data now decodes it lazily, which should speed up
3643 phrases which include common words.
3647 * Prefix compress list of terms and metadata keys in the remote protocol.
3648 This requires a remote protocol major version bump.
3652 * Fix the 'libxapian' to be 'libxapian-1.3' and 'xapian.m4' to be
3653 'xapian-1.3.m4' (this was supposed to be the case for 1.3.0, but the
3654 change wasn't made correctly).
3656 * Remove support for 'configure --enable-quiet', 'make QUIET=' and 'make
3657 QUIET=y' - automake now supports 'configure --enable-silent-rules', 'make
3658 V=1' and 'make V=0' which are broadly equivalent and more standard.
3660 * configure: If we fail to find a function needed for the remote backend, don't
3661 autodisable it - it's more helpful to error out so the use can decide if they
3662 want to pass --disable-backend-remote to disable it, or work out what values
3663 to pass for LIBS, etc to make it work. This also matches what we do for the
3664 disk based backends.
3666 * automake 1.13.1 is now used to generate snapshots and releases.
3668 * Add check-syntax make target to support editor syntax checks.
3670 * Fix to build when configured with --disable-backend-brass
3671 --disable-backend-chert. (ticket#586)
3673 * Generate a check for compatible _DEBUG settings if built with MSVC.
3676 * If you run "make coverage-check" by hand, the previous default of compressed
3677 HTML is unhelpful, so don't default to passing --html-gzip to genhtml, but
3678 instead add support for GENHTML_ARGS.
3680 * API methods and functions are now marked as 'const', 'pure', or 'nothrow'
3681 allowing compilers which support such annotations to generate more efficient
3682 code. (tickets #151, #454)
3686 * HACKING: Note which MacPorts are needed for development work.
3688 * docs/remote_protocol.rst: Correct error in documentation of REPLY_DOCDATA
3693 * xapian-check: Add "fix" option, which currently will regenerate iamchert if
3694 it isn't valid, and will regenerate base files from the .DB files (only
3695 really tested on databases which have just been compacted).
3699 * Fix warning with GCC in build with assertions enabled.
3701 * common/fileutils.cc: Add safeunistd.h for mkdir, required by GCC 4.7
3702 (reported by Gaurav Arora).
3704 * backends/brass/brass_databasereplicator.cc: Use new/delete to avoid variable
3705 length array gcc extension and comply with c++98
3707 * Mark file descriptors as close-on-exec where supported.
3709 * api/queryinternal.cc: Need <functional> for mem_fun().
3711 * Work around Apple's OS X SDK defining a check() macro.
3713 * Add an option to use a flock() based locking implementation for brass and
3714 chert - this is much simpler than using fcntl() due to saner semantics around
3715 releasing locks when closing other descriptors on the same file (at least on
3716 platforms where flock() isn't just a compatibility wrapper around fcntl()).
3717 Sadly we can't simply switch to this without breaking locking compatibility
3718 with previous releases, but it's useful for platforms without fcntl()
3719 locking (it's enabled for DJGPP) and may be useful for custom builds for
3724 * xapian-core.spec: Remove xapian-chert-update.
3728 * Building with --enable-log works once again.
3730 Xapian-core 1.3.0 (2012-03-14):
3734 * Update Unicode character database to Unicode 6.1.0. (ticket#497)
3736 * TermIterator returned by Enquire::get_matching_terms_begin(),
3737 Query::get_terms_begin(), Database::synonyms_begin(),
3738 QueryParser::stoplist_begin(), and QueryParser::unstem_begin() now stores the
3739 list of terms to iterate much more compactly.
3743 + Allow Unicode curly double quote characters to start and/or end phrases.
3745 + The set_default_op() method will now reject operators which don't make
3746 sense to set. The operators which are allowed are now explicitly
3747 documented in the API docs.
3749 * Query: The internals have been completely reimplemented (ticket#280). The
3750 notable changes are:
3752 + Query objects are smaller and should be faster.
3754 + More readable format for Query::get_description().
3756 + More compact serialisation format for Query objects.
3758 + Query operators are no longer flattened as you build up a tree (but the
3759 query optimiser still combines groups of the same operator). This means
3760 that Query objects are truly immutable, and so we don't need to copy Query
3761 objects when composing them. This should also fix a few O(n*n) cases when
3762 building up an n-way query pair-wise. (ticket#273)
3764 + The Query optimiser can do a few extra optimisations.
3766 * There's now explicit support for geospatial search (this API is currently
3767 marked as experimental). (ticket#481)
3769 * There's now an API (currently experimental) for checking the integrity of
3770 databases (partly addresses ticket#238).
3772 * Database::reopen() now returns true if the database may have been reopened
3773 (previously it returned void). (ticket#548)
3775 * Deprecate Xapian::timeout in favour of POSIX type useconds_t.
3777 * Deprecate Xapian::percent and use int instead in the API and our own code.
3779 * Deprecate Xapian::weight typedef in favour of just using double and change
3780 all uses in the API and our own code. (ticket#560)
3782 * Rearrange members of Xapian::Error to reduce its size (from 48 to 40 bytes on
3785 * Assignment operators for PositionIterator and TermIterator now return *this
3788 * PositionIterator, PostingIterator, TermIterator and ValueIterator now
3789 handle their reference counts in hand-crafted code rather than using
3790 intrusive_ptr/RefCntPtr, which means the compiler can inline the destructor
3791 and default constructor, so a comparison to an end iterator should now
3792 optimise to a simple NULL pointer check, but without the issues which the
3793 ValueIteratorEnd_ proxy class approach had (such as not working in templates
3794 or some cases of overload resolution).
3798 + Previously, Enquire::get_matching_terms_begin() threw InvalidArgumentError
3799 if the query was empty. Now we just return an end iterator, which is more
3800 consistent with how empty queries behave elsewhere.
3802 + Remove the deprecated old-style match spy approach of using a MatchDecider.
3804 * Remove deprecated Sorter class and MultiValueSorter subclass.
3808 + Add stemmers for Armenian (hy), Basque (eu), and Catalan (ca).
3810 + Stem::operator= now returns a reference to the assigned-to object.
3814 * Make unittest use the test harness, so it gets all the valgrind and fd leak
3815 checks, and other handy features all the other tests have.
3817 * Improve test coverage in several places.
3819 * Compress generated HTML files in coverage report.
3823 * Remove flint backend.
3827 * When propagating exceptions from a remote backend server, the protocol now
3828 sends a numeric code to represent which exception is being propagated, rather
3829 than the name of the type, as a number can be turned back into an exception
3830 with a simple switch statement and is also less data to transfer.
3833 * Remote protocol (these changes require a protocol major version bump):
3835 + Unify REPLY_GREETING and REPLY_UPDATE.
3837 + Send (last_docid - doccount) instead of last_docid and (doclen_ubound -
3838 doclen_lbound) instead of doclen_ubound.
3840 * Remove special check which gives a more helpful error message when a modern
3841 client is used against a remote server running Xapian <= 0.9.6.
3845 * Various changes allow us to now remove XAPIAN_VISIBILITY_DEFAULT from a
3846 number of functions which aren't in the public API (partly addresses
3849 * configure: For this development series, the library gets a -1.3 suffix and
3850 include files are installed with an extra /xapian-1.3 component to make
3851 parallel installs easier.
3853 * configure: Enable -fshow-column for GCC - things like vim's quickfix mode
3854 will then jump to the appropriate column for a compiler error or warning, not
3855 just the appropriate line.
3857 * Snowball compiler now reports "FILE:LINE:" before each error so tools like
3858 vim's quickfix mode can parse this and bring up the line with the error
3861 * docs/doxygen_api.conf.in: Don't generate XML from doxygen for the bindings -
3862 the bindings now do this for themselves. (ticket#262)
3866 * INSTALL: Update GCC details - we now recommend 4.3 or newer (was 4.1), and
3867 note that while 3.1 is the hard minimum requirement, the oldest we've tested
3868 with at all recently was 3.3.
3870 * docs/deprecation.rst: Updated.
3876 + Move delve from examples to bin and rename to xapian-delve.
3878 + Send errors to stderr not stdout.
3880 * xapian-check: Now reports useful descriptions rather than cryptic numeric
3881 codes for B-tree errors.
3885 * Add assertions that the index is in range when dereferencing MSetIterator and
3888 * Fix various errors in debug logging statements.
3890 * Add QUERY category for debug logging.
3892 Xapian-core 1.2.23 (2016-03-28):
3896 * PostingSource: Public member variables are now wrapped by methods (mostly
3897 getters and/or setters, depending on whether they should be readable,
3898 writable or both). In 1.3.5, the public members variables have been
3899 deprecated - we've added the replacement methods in 1.2.23 as well to make
3900 it easier for people to migrate over.
3904 * xapian-check now performs additional consistency checks for chert. Reported
3905 by Jean-Francois Dockes and Bob Cargill via xapian-discuss.
3909 * Update links to Xapian website and trac to use https, which is now supported,
3910 thanks to James Aylett.
3914 * On older Linux kernels, rename() of a file within a directory on NFS can
3915 sometimes erroneously fail with EXDEV. This should only happen if you
3916 try to rename a file across filing systems, so workaround this issue by
3917 retrying up to 5 times on EXDEV (which should be plenty to avoid this
3918 bug, and we don't want to risk looping forever). Fixes #698, reported by
3921 Xapian-core 1.2.22 (2015-12-29):
3925 * Add FLAG_CJK_NGRAM for QueryParser and TermGenerator. Has the same effect as
3926 setting the environment variable XAPIAN_CJK_NGRAM. Fixes #180, reported by
3927 Richard Boulton, with contributions from Pavel Strashkin, Mikkel Kamstrup
3928 Erlandsen and Brandon Schaefer.
3930 * Fix bug parsing multiple non-exclusive filter terms - previously this could
3931 result in such filters effectively being ignored.
3933 * Fix Database::get_doclength_lower_bound() over multiple databases when some
3934 are empty or consist only of zero-length documents. Previously this would
3935 report a lower bound of zero, now it reports the same lowest bound as a
3936 single database containing all the same documents.
3938 * Make Database::get_wdf_upper_bound("") return 0.
3940 * Mark constructors taking a single argument as "explicit" to avoid unwanted
3941 implicit conversions.
3945 * If command line option --verbose/-v isn't specified, set the verbosity level
3946 from environmental variable VERBOSE.
3948 * Skip timed tests if $AUTOMATED_TESTING is set. Fixes #553, reported by
3951 * Don't leave an extra fd open when starting xapian-tcpsrv for remotetcp tests.
3953 * apitest: Revert disabling of part of adddoc5 for clang - the test failure was
3954 in fact due to a bug in 1.3.x, and 1.2.x was never affected.
3956 * apitest: Tweak bounds checks in dbstats1 testcase - multi backends should
3961 * Format limit on docid now correctly imposed when sizeof(int) > 4.
3963 * Avoid potential DB corruption with full-compaction when using 64K blocks.
3967 * Format limit on docid now correctly imposed when sizeof(int) > 4.
3969 * Avoid potential DB corruption with full-compaction when using 64K blocks.
3973 * Format limit on docid now correctly imposed when sizeof(int) > 4.
3975 * Avoid potential DB corruption with full-compaction when using 64K blocks.
3979 * Fix to handle total document length exceeding 34,359,738,368. (Fixes #678,
3982 * Avoid dividing by zero when getting the average length for an empty database.
3984 * Stop apparent error from remote server when read-only client disconnects. A
3985 read-only client just closes the connection when done, but the server
3986 previously reported "Got exception NetworkError: Received EOF", which sounds
3987 like there was a problem. Now we just say "Connection closed" here, and
3988 "Connection closed unexpectedly" if the client connects in the middle of an
3989 exchange. Possibly fixes #654, reported by Germán M. Bravo.
3991 * Give a clearer error message when the client and server remote protocol
3992 versions aren't compatible.
3994 * Check length of key in MSG_SETMETADATA.
3998 * pkg-config: Fix library name in .pc file to say "xapian" not "xapian-core".
3999 Reported by Eric Lindblad to the xapian-devel list.
4001 * Private symbol decode_length() is no longer visible outside the library.
4005 * Stop maintaining ChangeLog files. They make merging patches harder, and stop
4006 'git cherry-pick' from working as it should. The git repo history should be
4007 sufficient for complying with GPLv2 2(a).
4009 * Strip out "quickstart" examples which are out of date and rather redundant
4010 with the "simple" examples.
4012 * Correct documentation of Enquire::get_query(). If no query has been set,
4013 the documentation said Xapian::InvalidArgumentError was thrown, but in
4014 fact we just return a default initialised Query object (i.e. Query()). This
4015 seems reasonable behaviour and has been the case since Xapian 0.9.0.
4017 * Document xapian-compact --blocksize takes an argument.
4019 * Update snowball website link to snowballstem.org.
4023 * xapian-replicate: Fix replication for files > 4GB on 32-bit platforms.
4024 Previously replication would fail to copy a file whose size didn't fit in
4025 size_t. Fixes #685, reported by Josh Elsasser.
4027 * xapian-tcpsrv: Better error if -p/--port not specified
4029 * quest: Support `-f cjk_ngram`.
4033 * xapian-metadata: Extend "list" subcommand to take optional key prefix.
4037 * Fix new warnings from recent versions of GCC and clang.
4039 * Add spaces between literal strings and macros which expand to literal strings
4040 for C++11 compatibility in __WIN32__-specific code.
4042 * Need <unistd.h> for unlink() on FreeBSD, reported by Germán M. Bravo via
4045 * Fix testsuite to build when S_ISSOCK() isn't defined.
4047 * Don't provide our own implementation of sleep() under __WIN32__ if there
4048 already is one - mingw provides one, and in some situations it seems to clash
4049 with ours. Reported to xapian-discuss by John Alveris.
4051 * Add missing '#include <arpa/inet.h>' to htons(). Seems to be implicitly
4052 included on most platforms, but Interix needs it. Reported by Eric Lindblad
4055 * Disable "<FUNCTION> is expected to return a value" warning from Sun's C++
4056 compiler, as it fires for functions ending in a "throw" statement. Genuine
4057 instances will be caught by compilers with superior warning machinery.
4059 * Prefer scalbn() to ldexp() where possible, since the former doesn't ever set
4062 * '#include <config.h>' in the "simple" examples, as when compiling with xlC on
4063 AIX, _LARGE_FILES gets defined by AC_SYS_LARGEFILE to enable large file
4064 support, and defining this changes the ABI of std::string, so it also needs
4065 to be defined when compiling code using Xapian.
4067 * On cygwin, include <arpa/inet.h> instead of winsock headers for htons() and
4070 * Include <cygwin/version.h> for CYGWIN_VERSION_API_MAJOR.
4072 * Avoid referencing static members via an object in that object's own
4073 definition, as this doesn't work with all compilers (noted with GCC 3.3), and
4074 is a bit of an odd construct anyway. Reported by Eric Lindblad on
4077 * GCC < 3.4.2 lacks operator<< overloads for unsigned long long on some
4078 platforms, so simply work around this by using str(), as this isn't
4079 performance sensitive code. Reported by Eric Lindblad on xapian-discuss.
4081 * Fix delete which should be delete[] in brass backend cursor code.
4083 Xapian-core 1.2.21 (2015-05-20):
4087 * QueryParser: Extend the set of characters allowed in the start of a range to
4088 be anything except for '(' and characters <= ' '. This better matches what's
4089 accepted for a range end (anything except for ')' and characters <= ' ').
4090 Reported by Jani Nikula.
4094 * Reimplement OP_PHRASE for non-exact phrases. The previous implementation was
4095 buggy, giving both false positives and false negatives in rare cases when
4096 three or more terms were involved. Fixes #653, reported by Jean-Francois
4099 * Reimplement OP_NEAR - the new implementation consistently requires the terms
4100 to occur at different positions, and fixes some previously missed matches.
4102 * Fix a reversed check for picking the shorter position list for an exact
4103 phrase of two terms. The difference this makes isn't dramatic, but can be
4104 measured (at least with cachegrind). Thanks to kbwt for spotting this.
4106 * When matching an exact phrase, if a term doesn't occur where we want, use
4107 its actual position to advance the anchor term, rather than just checking
4108 the next position of the anchor term.
4112 * Fix cursor versioning to consider cancel() and reopen() as events where
4113 the cursor version may need incrementing, and flag the current cursor version
4114 as used when a cursor is rebuilt. Fixes #675, reported by Germán M. Bravo.
4116 * Avoid using file descriptions < 3 for writable database tables, as it risks
4117 corruption if some code in the same process tries to write to stdout or
4118 stderr without realising it is closed. (Partly addresses #651)
4122 * Fix cursor versioning to consider cancel() and reopen() as events where
4123 the cursor version may need incrementing, and flag the current cursor version
4124 as used when a cursor is rebuilt. Fixes #675, reported by Germán M. Bravo.
4126 * Avoid using file descriptions < 3 for writable database tables, as it risks
4127 corruption if some code in the same process tries to write to stdout or
4128 stderr without realising it is closed. (Partly addresses #651)
4132 * Fix cursor versioning to consider cancel() and reopen() as events where
4133 the cursor version may need incrementing, and flag the current cursor version
4134 as used when a cursor is rebuilt. Fixes #675, reported by Germán M. Bravo.
4138 * Fix sort by value when multiple databases are in use and one or more are
4139 remote. This change necessitated a minor version bump in the remote
4140 protocol. Fixes #674, reported by Dylan Griffith. If you are upgrading a
4141 live system which uses the remote backend, upgrade the servers before the
4146 * The compiler ABI check in the public API headers now issues a warning
4147 (instead of an error) for an ABI mismatch for ABI versions 2 and later
4148 (which means GCC >= 3.4). The changes in these ABI versions are bug fixes
4149 for corner cases, so there's a good chance of things working - e.g. building
4150 xapian-bindings with GCC 5.1 (which defaults to ABI version 8) against
4151 xapian-core built with GCC 4.9 (which defaults to ABI version 2) seems to
4152 work OK. A warning is still useful as a clue to what is going on if linking
4153 fails due to a missing symbol.
4155 * xapian-config,xapian-core.pc: When compiling with xlC on AIX, the reported
4156 --cxxflags/--cflags now include -D_LARGE_FILES=1 as this is defined for the
4157 library, and defining it changes the ABI of std::string with this compiler,
4158 so it must also be defined when building code using the Xapian API.
4160 * xapian-core.pc: Include --enable-runtime-pseudo-reloc in --libs output for
4161 mingw and cygwin, like xapian-config does.
4163 * xapian-core.pc: Fix include directory reported by `pkg-config --cflags`.
4164 This bug was harmless if xapian-core was installed to a directory which was
4165 on the default header search path (such as /usr/include).
4167 * xapian-config: Fix typo so cached result of test in is_uninstalled() is
4168 actually used on subsequent calls. Fixes #676, reported (with patch) by Ryan
4171 * configure: Changes in 1.2.19 broke the custom macro we use to probe for
4172 supported compiler flags such that the flags never got used. This release
4175 * configure: Set default value for AUTOM4TE before AC_OUTPUT so the default
4176 will actually get used. Only relevant when building in maintainer mode
4179 * soaktest: Link with libtool's '-no-install' or '-no-fast-install', like we
4180 already do for other test programs, which means that libtool doesn't need to
4181 generate shell script wrappers for them on most platforms.
4185 * API documentation: Minor wording tweaks and formatting improvements.
4187 * docs/deprecation.rst: Add deprecation of omindex --preserve-nonduplicates
4188 which happened in 1.2.4.
4190 * HACKING: Update URL.
4192 * HACKING: libtool 2.4.6 is now used for bootstrapping snapshots and releases.
4196 * xapian-compact: Make sure we open all the tables of input databases at the
4197 same revision. (Fixes #649)
4199 * xapian-metadata: Add 'list' subcommand to list all the metadata keys.
4201 * xapian-replicate: Fix connection timeout to be 10 seconds rather than 10000
4202 seconds (the incorrect timeout has been the case since 1.2.3).
4204 * xapian-replicate: Set SO_KEEPALIVE for xapian-replicate's connection to the
4205 master, and add command line option to allow setting socket-level timeouts
4206 (SO_RCVTIMEO and SO_SNDTIMEO) on platforms that support them. Fixes #546,
4209 * xapian-replicate-server: Avoid potentially reading uninitialised data if a
4210 changeset file is truncated.
4214 * Add spaces between literal strings and macros which expand to literal strings
4215 for C++11 compatibility.
4217 * ValueCountMatchSpy::top_values_begin(): Fix the comparison function not to
4218 return true for two equal elements, which manifests as incorrect sorting in
4219 some cases when using clang's libc++ (which recent OS X versions do).
4221 * apitest: The adddoc5 testcase fails under clang due to an exception handling
4222 bug, so just #ifdef out the problematic part of the testcase when building
4225 * Fix clang warnings on OS X. Reported by Germán M. Bravo.
4227 * Fix examples to build with IBM's xlC compiler on AIX - they were failing due
4228 to _LARGE_FILES being defined for the library build but not for the examples,
4229 and defining this changes the ABI of std::string with this compiler.
4231 * configure: Improve the probe for whether the test harness can use RTTI to
4232 work for IBM's xlC compiler (which defaults to not generating RTTI).
4234 * Fix to build with Sun's C++ compiler.
4236 * Use F_DUPFD where available to dup to a file descriptor which is >= 2, rather
4237 than calling dup() until we get one.
4239 * When unserialising a double, avoid reading one byte past the end of the
4240 serialised value. In practice this was harmless on most platforms, as
4241 dbl_max_mantissa is 255 for IEEE-754 format doubles, and at least GCC's
4242 std::string keeps the buffer nul-terminated. Reported by Germán M. Bravo in
4245 * When unserialising a double, add missing cast to unsigned char when we check
4246 if the value will fit in the double type. On machines with IEEE-754 doubles
4247 (which is most current platforms) this happened to work OK before. It would
4248 also have been fine on machines where char is unsigned by default.
4250 * Fix incorrect use of "delete" which should be "delete []". This is
4251 undefined behaviour in C++, though the type is POD, so in practice this
4252 probably worked OK on many platforms.
4256 * Fix some overly strict assertions in flint, which caused apitest's
4257 cursordelbug1 to fail with assertions on.
4259 Xapian-core 1.2.20 (2015-03-04):
4263 * After splitting a block, we always insert the new block in the parent right
4264 after the block it was split from - there's no need to binary chop.
4268 * Generate and install a file for pkg-config. (Fixes#540)
4270 * configure: Update link to cygwin FAQ in error message.
4274 * include/xapian/weight.h: Document the enum stat_flags values.
4276 * docs/postingsource.rst: Use a modern class in postingsource example. (Noted
4279 * docs/deprecation.rst,docs/replication.rst: Fix typos.
4281 * Update doxygen configuration files to avoid warnings about obsolete tags from
4282 newer doxygen versions.
4284 * HACKING: Update details of building Xapian packages.
4288 * xapian-check: For chert and brass, cross-check the position and postlist
4289 tables to detect positional data for non-existent documents.
4293 * When locking a database for writing, use F_OFD_SETLK where available, which
4294 avoids having to fork() a child process to hold the lock. This currently
4295 requires Linux kernel >= 3.15, but it has been submitted to POSIX so
4296 hopefully will be widely supported eventually. Thanks to Austin Clements for
4297 pointing out this now exists.
4299 * Fix detection of fdatasync(), which appears to have been broken practically
4300 forever - this means we've probably been using fsync() instead, which
4301 probably isn't a big additional overhead. Thanks to Vlad Shablinsky for
4302 helping with Mac OS X portability of this fix.
4304 * configure: Define MINGW_HAS_SECURE_API under mingw to get _putenv_s()
4305 declared in stdlib.h.
4307 * Use POSIX O_NONBLOCK in preference to O_NDELAY - the semantics of the latter
4308 differ between BSD and System V.
4310 * According to POSIX, strerror() may not be thread safe, so use alternative
4311 thread-safe ways to translate errno values where possible.
4313 * On Microsoft Windows, avoid defining EADDRINUSE, etc if they're already
4314 defined, and use WSAE* constants un-negated - they start from a high value
4315 so won't collide with E* constants.
4319 * Add more assertions to the chert backend code.
4321 Xapian-core 1.2.19 (2014-10-21):
4325 * Xapian::BM25Weight:
4327 + Improve BM25 upper bound in the case when our wdf upper bound > our
4328 document length lower bound. Thanks to Craig Macdonald for pointing out
4331 + Pre-multiply termweight by (param_k1 + 1) rather than doing it for
4332 every weighted term in every document considered.
4336 * Don't report apparent leaks of fds opened on /dev/urandom - at least on
4337 Linux, something in the C library seems to lazily open it, and the report of
4338 a possible leak followed by assurance that it's OK really is just noise we
4343 * Fix false matches reported for non-exact phrases in some cases. Fixes the
4344 reduced testcase in #657, reported by Jean-Francois Dockes.
4348 * Only full sync after writing the final base file (only affects Max OS X).
4352 * Only full sync after writing the final base file (only affects Max OS X).
4356 * Only full sync after writing the final base file (only affects Max OS X).
4360 * For Sun's C++ compiler, pass -library=Crun separately since libtool looks for
4361 " -library=stlport4 " (with the spaces). (fixes#650)
4363 * Remove .replicatmp (created by the test suite) upon "make clean".
4367 * include/xapian/compactor.h: Fix formatting of doxygen comment.
4369 * HACKING: freecode no longer accepts updates, so drop that item from the
4372 * docs/overview.rst: Add missing database path to example of using
4373 xapian-progsrv in a stub database file.
4377 * Suppress unused typedef warnings from debugging logging macros, which occur
4378 in functions which always exit via throwing an exception when compiling with
4379 recent versions of GCC or clang.
4381 * Fix debug logging code to compile with clang. (fixes #657, reported by
4386 * Add missing RETURN() markup for debug logging in a few places, highlighted by
4387 warnings from recent GCC.
4389 * Fix incorrect return types in debug logging annotations so that code compiles
4390 when configured with --enable-log.
4392 Xapian-core 1.2.18 (2014-06-22):
4396 * Document: Fix get_docid() to return the docid for the sub-database (as it
4397 is explicitly documented to) for Document objects passed to functors like
4398 KeyMaker during the match. (fixes#636, reported by Jeff Rand).
4400 * Document: Don't store the termname in OmDocumentTerm - we were only using it
4401 in get_description() output and an exception message. Speeds up indexing
4402 etext.txt using simpleindex by 0.4%, and should reduce memory usage a bit
4403 too. (Change inspired by comments from Vishesh Handa on xapian-devel).
4405 * Database: Iterating the values in a particular slot is now a bit more
4406 efficient for inmemory and remote backends (but still slow compared to
4407 flint, chert and brass).
4411 * apitest: Expand crashrecovery1 to check that the expected base files exist
4412 and ones which shouldn't exist don't.
4414 * queryparsertest: Fix testcase for empty wildcard followed by negation to
4415 enable FLAG_LOVEHATE so the negation is actually parsed. Fortunately the
4416 fixed testcase passes.
4420 * OP_SYNONYM: avoid fetching the doclength if the weighting scheme doesn't
4421 need it and the calculated wdf for the synonym is <= doclength_lower_bound
4422 for the current subdatabase. (fixes #360)
4426 * Releases are now bootstrapped with libtool 2.4.2 instead of 2.4, and with
4427 config.guess and config.sub updated to the latest versions.
4431 * Add an example of initializing SimpleStopper using a file listing stopwords.
4432 (Patch from Assem Chelli)
4434 * Improve the descriptions of the stem_strategy values in the API docs.
4435 (Reported by "oilap" on #xapian)
4437 * docs/sorting.rst: Fix incorrect parameter types in Xapian::Weight
4440 * docs/glossary.rst: Add definition of "collection frequency".
4444 + makeindex is now in Debian package texlive-binaries.
4446 + Replace a link to the outdated autotools "goat book" with a link to the
4447 "Portable Shell" chapter of the autoconf manual.
4449 * include/xapian/base.h: Remove very out of date comments talking about atomic
4450 assignment and locking - since 0.5.0 we've adopted a "user locks" policy.
4451 (Reported by Jean-Francois Dockes)
4457 + Add -A <prefix> option to list all terms with a particular prefix.
4459 + Send errors to stderr not stdout.
4461 + If -v is specified more than once, show even more info in some cases.
4462 (NEWS file claimed this was backported in 1.2.15, but it actually wasn't).
4466 + Add --default-op option.
4468 + Add --weight option to allow the weighting scheme to be specified.
4472 * Explicitly '#include <algorithm>' for std::max(), fixing build with VS2013.
4473 (Fixes#641, reported by "boomboo").
4475 * Fix testcase blocksize1 not to try to delete an open database, which isn't
4476 possible under Windows. (Fixes #643, reported by Chris Olds)
4478 * docs/quickstart.rst: Split --cxxflags and --libs for portability (noted by
4479 "Hurricane Tong" on xapian-devel).
4481 * Fix warnings with clang 5.0.
4485 * Add assertions that weighting scheme upper bounds aren't exceeded.
4487 Xapian-core 1.2.17 (2014-01-29):
4491 * Enquire::set_sort_by_relevance_then_value() and
4492 Enquire::set_sort_by_relevance_then_key(): Fix sense of reverse parameter.
4493 Reported by "boomboo" on IRC.
4495 * BM25Weight: Fix case where (k1 == 0 || b == 0) but k2 != 0. Reported by
4498 * Unicode::tolower(): Fix to give correct results for U+01C5, U+01C8, U+01CB,
4499 and U+01F2 (previously these were left unchanged).
4503 * Automatically probe for and hook in eatmydata to the testsuite using the
4504 wrapper script it now includes.
4506 * Fix apitest to build when brass, chert or flint are disabled.
4510 * Fix handling of invalid block sizes passed to Xapian::Brass::open() - the
4511 size gets fixed as documented, but the uncorrected size was passed to the
4512 base file (and abort() was called if 0 was passed).
4514 * Validate "dir_end" when reading a block. (fixes #592)
4518 * Fix handling of invalid block sizes passed to Xapian::Chert::open() - the
4519 size gets fixed as documented, but the uncorrected size was passed to the
4520 base file (and abort() was called if 0 was passed).
4522 * Validate "dir_end" when reading a block. (fixes #592)
4526 * Fix handling of invalid block sizes passed to Xapian::Flint::open() - the
4527 size gets fixed as documented, but the uncorrected size was passed to the
4528 base file (and abort() was called if 0 was passed).
4530 * Validate "dir_end" when reading a block. (fixes #592)
4534 * configure: Improve reporting of GCC version.
4536 * Use -no-fast-install on platforms where -no-install causes libtool to emit a
4539 * docs/Makefile.am: Fix handling of MAINTAINER_NO_DOCS.
4541 * Include UnicodeData.txt and the script to generate the unicode tables from
4546 * postingsource.rst: Clarify a couple of points (reported by "vHanda" on IRC).
4550 * Protect the ValueIterator::check() method against Mac OS X SDK headers
4551 which define a check() macro.
4553 * Fix warning from xlC compiler.
4555 * Avoid use of grep -e in configure, as /usr/bin/grep on Solaris doesn't
4558 * Fix check for flags which might be needed for ANSI mode for compilers called
4561 * configure: Improve handling of Sun's C++ compiler - trick libtool into not
4562 adding -library=Cstd, and prefer -library=stdcxx4 if supported. Explicitly
4563 add -library=Crun which seems to be required, even though the documentation
4566 Xapian-core 1.2.16 (2013-12-04):
4570 * PositionIterator,PostingIterator,TermIterator,ValueIterator: Don't segfault
4571 if skip_to() or check() is called on an iterator which is already at_end().
4572 Reported by David Bremner.
4574 * ValueCountMatchSpy: get_description() on a default-constructed
4575 ValueCountMatchSpy object no longer fails when xapian-core is built with
4578 * ValueCountMatchSpy: get_total() on a default-constructed ValueCountMatchSpy
4579 object now returns 0 rather than segfaulting.
4583 * If -v/--verbose is specified more than once to a test program, show the
4584 diagnostic output for passing tests as well as failing/skipped ones.
4586 * queryparsertest: Change qp_scale1 to time 5 repetitions of the large query to
4587 help average out variations.
4589 * queryparsertest: Add test coverage for explicit synonym of a term with a
4590 prefix (e.g. ~foo:search).
4592 * apitest: Remove code from registry* testcases which tries to test the
4593 consequences of throwing an exception from a destructor - it's complex to
4594 ensure we don't leak memory while doing this (it seems GCC doesn't release
4595 the object in this case, but clang does), and it's generally frowned upon,
4596 plus C++11 makes destructors noexcept by default.
4598 * Fix "make check" to actually removed cached databases first, as is
4603 * When moving a cursor on a read-only table, check if the block we want is in
4604 the internal cursor. We already do this for a writable table, as it is
4605 necessary for correctness, but it's a cheap check and may avoid asking the
4606 OS for a block we actually already have.
4608 * Correctly report the database as closed rather than 'Bad file descriptor'
4611 * Reuse a cursor for reading values from valuestreams rather than creating
4612 a new one each time. This can dramatically reduce the number of blocks
4613 redundantly reread when sorting by value. The rereads will generally get
4614 served from VM cache, but there's still an overhead to that.
4618 * When moving a cursor on a read-only table, check if the block we want is in
4619 the internal cursor. We already do this for a writable table, as it is
4620 necessary for correctness, but it's a cheap check and may avoid asking the
4621 OS for a block we actually already have.
4623 * Correctly report the database as closed rather than 'Bad file descriptor'
4626 * Reuse a cursor for reading values from valuestreams rather than creating
4627 a new one each time. This can dramatically reduce the number of blocks
4628 redundantly reread when sorting by value. The rereads will generally get
4629 served from VM cache, but there's still an overhead to that.
4633 * When moving a cursor on a read-only table, check if the block we want is in
4634 the internal cursor. We already do this for a writable table, as it is
4635 necessary for correctness, but it's a cheap check and may avoid asking the
4636 OS for a block we actually already have.
4638 * Correctly report the database as closed rather than 'Bad file descriptor'
4643 * Compress source tarballs with xz instead of gzip.
4645 * Split XAPIAN_LIBS out of XAPIAN_LDFLAGS so that -l flags for libraries
4646 configure detects are needed appear after -L flags specified by the user
4647 that may be needed to find such libraries. (fixes#626)
4649 * XO_LIB_XAPIAN now handles the user specifying a relative path in
4650 XAPIAN_CONFIG, e.g.: "./configure XAPIAN_CONFIG=../xapian-core/xapian-config"
4652 * Adjust XO_LIB_XAPIAN to strip _gitNNN suffix from snapshot versions.
4654 * configure: Handle git snapshot naming when calculating REVISION.
4656 * configure: Enable -fshow-column for GCC - things like vim's quickfix mode
4657 will then jump to the appropriate column for a compiler error or warning, not
4658 just the appropriate line.
4660 * configure: Report GCC version in configure output.
4664 * The API documentation shipped with the release is now generated with
4665 doxygen 1.8.5 instead of 1.5.9, which is most evident in the different
4666 HTML styling newer doxygen uses.
4668 * Document how Utf8Iterator handles invalid UTF-8 in API documentation.
4670 * Improve how descriptions of deprecated features appear in the API
4673 * docs/remote_protocol.rst: Correct error in documentation of REPLY_DOCDATA
4676 * docs/overview.rst: Correct documentation for how to specify "prog" remote
4677 databases in stub files.
4679 * Direct users to git in preference to SVN - we'll be switching entirely in
4684 * xapian-chert-update: Fix -b to work rather than always segfaulting (reported
4685 in https://bugs.debian.org/716484).
4687 * xapian-chert-update: The documented alias --blocksize for -b has never
4688 actually been supported, so just drop mentions of it from --help and the man
4693 + Fix chert database check that first docid in each doclength chunk is more
4694 than the last docid in the previous chunk - previously this didn't actually
4697 + Fix database check not to falsely report "position table: Junk after
4698 position data" whenever there are 7 unused bits (7 is OK, *more* than 7
4701 + Fix to report block numbers correctly for links within the B-tree.
4703 + If the METAINFO key is missing, only report it once per table.
4705 + Fix database consistency checking to always open all the tables at the same
4706 revision - not doing this could lead to false errors being reported after a
4707 commit interrupted by the process being killed or the machine crashing.
4708 Reported by Joey Hess in https://bugs.debian.org/724610
4712 * quest: Add --check-at-least option.
4716 * configure: clang doesn't support -Wstrict-null-sentinel or -Wlogical-op, so
4717 don't pass it these options.
4719 * Fix build errors and warnings with mingw.
4721 * Suppress "unused local typedef" warnings from GCC 4.8.
4723 * If the compiler supports C++11, use static_assert to implement
4726 * tests/zlib-vg.c: Fix two warnings when compiled with clang.
4728 * Fix failure when built with -D_GLIBCXX_DEBUG - we were modifying the top()
4729 element of a heap before calling pop(), such that the heap comparison
4730 operation (which is called when -D_GLIBCXX_DEBUG is on to verify the heap is
4731 valid) would read off the end of the data. In a normal build, this issue
4732 would likely never manifest.
4734 * configure: When generating ABI compatibility checks in xapian/version.h, pass
4735 $CXXFLAGS and $CPPFLAGS to $CXXCPP as they could contain options which affect
4736 the ABI (such as -fabi-version for GCC). (Fixes #622)
4738 * Microsoft GUIDs in binary form have reversed byte order in the first three
4739 components compared to standard UUIDs, so the same database would report a
4740 different UUID on Windows to on other platforms. We now swap the bytes to
4741 match the standard order. With this fix, the UUIDs of existing databases
4742 will appear to change on Windows (except in rare "palindronic" cases).
4744 * Fix a couple of issues to get Xapian to build and work on AIX.
4746 * common/safeuuid.h: Remove bogus take-address-of from uuid handling code for
4749 * Under cygwin, use cygwin_conv_path() if using a new enough cygwin version,
4750 rather than the now deprecated cygwin_conv_to_win32_path(). Reported by
4751 "Haroogan" on the xapian-devel mailing list.
4753 * common/safeuuid.h: Add missing '#include <cstdlib>' and qualify free with std.
4755 * Fix 'unused label' warning when chert backend is disabled.
4757 * xapian.h: Add check for Wt headers being included before us and defining
4758 'slots' as a macro - if they are, give a clear error advising how to work
4759 around this (previously compilation would fail with a confusing error).
4763 * Fix assertion failure for when an OrPostList decays to an AndPostList - the
4764 ordering of the subqueries by estimated termfreq may not be the same as it
4765 was when the OrPostList was constructed, as the subqueries may themselves
4766 have decayed. Reported by Michel Pelletier.
4768 * Fix -Wcast-qual warning from GCC 4.7 when configured with --enable-log.
4770 Xapian-core 1.2.15 (2013-04-16):
4774 * QueryParser/TermGenerator: Don't include CJK codepoints which are
4775 punctuation in N-grams.
4777 * TermGenerator: Fix bug where we failed to generate the first bigram
4778 from the second sequence of N-grammable CJK characters in a piece of text.
4782 * Call fdatasync()/fsync() when creating the "iambrass" file.
4786 * Call fdatasync()/fsync() when creating the "iamchert" file.
4790 * Call fdatasync()/fsync() when creating the "iamflint" file.
4794 * XO_LIB_XAPIAN now handles the user specifying XAPIAN_CONFIG without a path,
4795 for example: ./configure XAPIAN_CONFIG=xapian-config-1.3
4799 * delve: If -v is specified more than once, show even more info in some cases.
4803 * Fix warning due to needlessly casting away const-ness in debug logging.
4805 * Fix pointer truncation bug in lemon parser generator, which probably affects
4806 regenerating the query parser on WIN64.
4810 * Fix to build when configured with --enable-log.
4812 Xapian-core 1.2.14 (2013-03-14):
4816 * MSet::get_document(): Don't cache retrieved Document objects unless they
4817 were requested with fetch(). This avoids using a lot of memory when many
4818 MSet entries are retrieved. (Fixes #604)
4822 * apitest: Improved test coverage.
4826 * Check if a candidate document has at least the minimum weight needed
4827 before checking positional information, which speeds up slow phrase
4828 searches (partly addresses #394).
4832 * Fix multipass compaction not to damage document values, and to merge the
4833 database stats correctly. (fixes #615)
4837 * Fix multipass compaction not to damage document values, and to merge the
4838 database stats correctly. (fixes #615)
4842 * Fix multipass compaction bug. (fixes #615)
4848 + Fix handling of delays between replication events - the subtraction of the
4849 target time and the current time was reversed, so we wouldn't sleep when
4850 before the deadline, but would sleep after it for the amount we'd missed it
4853 + On Microsoft Windows, we no longer sleep for more than 43 years if the
4854 target time for a replication event had already passed. (Fixes #472)
4858 * matcher/queryoptimiser.cc: Need <functional> for mem_fun().
4860 * tests/harness/testsuite.cc: Don't provide explicit template types to
4861 make_pair - it isn't useful, and breaks with C++11. Fixes build error with
4864 * examples/quest.cc: Fix to build with Sun Studio 12 compiler. (ticket#611)
4866 Xapian-core 1.2.13 (2013-01-09):
4870 * TermGenerator: Add new method TermGenerator::set_max_word_length() to allow
4871 this limit to be adjusted by the user.
4873 * QueryParser: Implicitly close any unclosed brackets at the end of the query
4874 string. Patch from Sehaj Singh Kalra.
4876 * DateValueRangeProcessor: Add extra constructor overloaded form so that in
4877 DateValueRangeProcessor(1, "date:"), the const char * gets interpreted as
4878 std::string rather than bool.
4882 * apitest: Assorted test coverage improvements.
4884 * When reporting valgrind errors, skip any warnings before the error in the
4889 * Improved fix for #590 - count all matching LeafPostList objects with a Weight
4890 object rather than trying to prune at the MultiAndPostList level based on
4891 max_wt (if wdf is always zero for a term, BM25 gives max_wt of 0, which lead
4892 to us never counting that subquery.
4894 * Fix calculation of 0.0/0.0 in some cases. This then got used as a minimum
4895 weight, but it seems this gives -nan (at least on x86-64 Linux) so it may
4896 have been harmless in practice.
4898 * We no longer use the highest weighted MSet entry to calculate percentages, so
4899 remove code which finds it.
4903 * Close excess file handles before we get the fcntl lock, which avoids the
4904 lock being released again if one is open on the lock file. Notably this
4905 avoids a situation where multiple threads in the same process could succeed
4906 in locking a database concurrently.
4910 * Close excess file handles before we get the fcntl lock, which avoids the
4911 lock being released again if one is open on the lock file. Notably this
4912 avoids a situation where multiple threads in the same process could succeed
4913 in locking a database concurrently.
4917 * Close excess file handles before we get the fcntl lock, which avoids the
4918 lock being released again if one is open on the lock file. Notably this
4919 avoids a situation where multiple threads in the same process could succeed
4920 in locking a database concurrently.
4924 * Improve the UnimplementedError message for a MatchSpy subclass which doesn't
4925 implement name() so it's clearer that it is this particular subclass which
4926 can't be used remotely, rather than all MatchSpy objects.
4930 * The build system is now generated with automake 1.11.6 rather than 1.11.1,
4931 which fixes a security issue in "make distcheck" (not something users will
4932 usually run, but it seems worth addressing).
4934 * Use user-specified LIBS for configure tests, which is what you'd expect to
4935 happen, and provides a way for the user to tell configure where to find
4936 library functions which configure can't find for itself.
4938 * INCLUDES is now deprecated in automake, so use AM_CPPFLAGS instead.
4940 * Test coverage rules now assume lcov 1.10 which allows them to be simpler
4941 and not to require a patched version of lcov.
4945 * valueranges.html: Update documentation to reflect change in Xapian 1.1.2 -
4946 DateValueRangeProcessor and StringValueRangeProcessor now support a prefix or
4949 * Clarify that the "reverse" parameter of set_sort_by_relevance_then_value()
4950 and set_sort_by_relevance_then_key() only affects the ordering of the
4951 value/key part of the sort.
4953 * docs/quickstart.html: Fix seriously outdated statement that Xapian doesn't
4954 create the database directory - that changed in 0.7.2 (released 2003-07-11).
4956 * HACKING: Try to make it clearer we're looking for a dual-licence on submitted
4963 + Add a --full-copy option to force a full copy to be sent. (ticket#436)
4965 + Add --quiet option, and be a little more verbose by default.
4967 + Allow files > 32G to be be copied by replication.
4969 + Fix "if (fd > 0)" tests in some replication code to be "if (fd >= 0)".
4970 In practice this is unlikely to actually have caused problems since
4971 stdin is typically still open and using fd 0.
4973 + Simplify how we open the .DB file on the replication slave to just call
4974 open() once with O_CREAT, rather than once without, than stat() if that
4975 fails, and then again with O_CREAT|O_TRUNC if stat() doesn't show an
4976 ordinary file exists.
4982 + New --flags command line option to allow setting arbitrary QueryParser
4985 + Align option descriptions in --help output, and make the initial letter of
4986 such descriptions consistently lowercase.
4990 * Fix testsuite harness to compile with GCC 4.7.
4992 * On platforms with the F_MAXFD fcntl but without closefrom(), we were failing
4993 to close the highest numbered open fd in our closefrom() replacement.
4995 * Our closefrom() replacement on Linux now works around valgrind not hiding
4996 some extra fds it has open, but then complaining if we try to close them.
4998 + Pass O_BINARY when opening replication related files in some cases where we
4999 weren't before, which will probably help solve ticket #472.
5001 * configure: socketpair() needs -lnetwork on Haiku.
5003 * Micro-optimisation in Unicode handling - GCC doesn't currently optimise the
5004 arithmetic shift right idiom we use, but it documents that signed right shift
5005 does sign extension so we now just use a right shift for GCC.
5009 * Preserve errno over debug logging calls, so they can safely be added to code
5010 which expects errno not to change.
5012 Xapian-core 1.2.12 (2012-06-27):
5016 * 1.2.11 had its library version information incorrectly set. This resulted in
5017 the shared library having an incorrect SONAME - e.g. on Linux,
5018 libxapian.so.21 instead of libxapian.so.22. This release has been made to
5023 * AUTHORS: Add the GSoC students.
5025 Xapian-core 1.2.11 (2012-06-26):
5029 * Add new QueryParser::STEM_ALL_Z stemming strategy, which stems all terms and
5030 adds a Z prefix. (Patch from Sehaj Singh Kalra, fixes ticket#562)
5032 * Add TermGenerator::set_stemming_strategy() method, with strategies which
5033 correspond to those of QueryParser. Based on patch from Sehaj Singh Kalra,
5034 with some tweaks for adding term positions in more cases. (Fixes ticket#563)
5036 * Correct "BM25Weight" to "TradWeight" in exception message from TradWeight.
5038 * We were failing to call init() for user-defined Weight objects providing the
5039 term-independent weight. These now get called with init(0.0).
5041 * Xapian::Auto::open_stub() now throws a Xapian::DatabaseOpeningError exception
5042 if the stub file can't be opened. Previously we failed to check for this
5043 condition, which resulted in us treating the file as empty.
5047 * When the testsuite is using valgrind, we used to run remote servers under
5048 valgrind too (but with --tool=none) to get consistent behaviour as valgrind's
5049 emulation of x87 excess precision isn't exact. Now we only do this if x87 FP
5050 instructions are actually in use (which means x86 architecture and configure
5051 run with --disable-sse).
5053 * Make sure XAPIAN_MAX_CHANGESETS gets unset after replication testcases which
5054 set it, so further testcases don't waste time generating changesets.
5056 * Improved test coverage (including more tests for closed databases -
5061 * After closing the database, methods which try to use the termlist would throw
5062 FeatureUnavailableError with message "Database has no termlist", assuming
5063 that the termlist table not being open meant it wasn't present. Fix to check
5064 if the postlist_table is open to determine which case we're in.
5068 * After closing the database, methods which try to use the termlist would throw
5069 FeatureUnavailableError with message "Database has no termlist", assuming
5070 that the termlist table not being open meant it wasn't present. Fix to check
5071 if the postlist_table is open to determine which case we're in.
5075 * Check if the database is closed in metadata_keys_begin() for InMemory
5080 * xapian-config: Don't interpret a missing .la file as meaning that we only
5081 have static libraries.
5085 * Fix API documentation for Query constructors - both XOR and ELITE_SET can
5086 take any number of subqueries, not only exactly two.
5088 * Backport missing API documentation comments for operator++ and operator*
5089 methods or PositionIterator, PostingIterator and TermGenerator.
5091 * docs/replication.rst: Update documentation - since 1.2.5, the value of
5092 XAPIAN_MAX_CHANGESETS determines how many changesets we keep.
5094 * docs/admin_notes.rst: Correction - we don't "create a lock file", we "lock a
5097 * Fix API documentation for TradWeight constructor - "k1" should be "k".
5101 * configure: Overhaul handling of compilers which pretend to be GCC. Clang
5102 is now detected, and we only pass it warning flags it actually understands.
5103 And we now check for symbol visibility support with Intel's compiler.
5105 * configure: Solaris automatically pulls in library dependencies, so set
5106 link_all_deplibs_CXX=no there.
5108 * configure: We now check -Bsymbolic-functions for all compilers.
5110 * configure: Enable -Wdouble-promotion for GCC >= 4.6.
5112 * Pass -ldl last when compiling zlib-vg.so, as that seems to be needed on
5115 * Fix incorrect use of "delete" which should be "delete []". This is
5116 undefined behaviour in C++, though the type is POD, so in practice this
5117 probably worked OK on many platforms.
5119 * In BM25Weight when k1 or b is zero (not the default), we used to multiply
5120 an uninitialised double by zero, which is undefined behaviour, but in
5121 practice will often give zero, leading to the desired results.
5123 * xapian.h: Add check for Qt headers being included before us and defining
5124 'slots' as a macro - if they are, give a clear error advising how to work
5125 around this (previously compilation would fail with a confusing error).
5127 Xapian-core 1.2.10 (2012-05-09):
5131 * apitest: Extend tradweight1 to test that TradWeight(0) means that wdf and
5132 document length don't affect the weight of a term.
5134 * termgentest: Check that TermGenerator discards words > 64 bytes.
5138 * Don't count unweighted subqueries of MultiAndPostList in percentage
5139 calculations, as OP_FILTER maps to MultiAndPostList now. (ticket#590)
5143 * When compacting, if the output database is empty, don't write out a metainfo
5144 tag. Take care not to divide by zero when computing the percentage size
5149 * When compacting, if the output database is empty, don't write out a metainfo
5150 tag. Take care not to divide by zero when computing the percentage size
5155 * API documentation:
5157 + Note version when Database::close() was added.
5159 + Fix switched lower and upper in API documentation for Weight methods
5160 get_doclength_lower_bound() and get_doclength_upper_bound(). Correct
5161 maximum to minimum in get_doclength_lower_bound() comment and note that this
5162 excludes zero length documents. Fix "An lower" to "A lower".
5164 * docs/admin_notes.html: Mention that postlist and termlist tables also hold
5165 value info for chert. Mention that xapian-chert-update was removed in 1.3.0.
5166 Mention that you need to use copydatabase from 1.2.x to convert flint to
5169 * HACKING: Update section on patches to mention git (git diff and git
5170 format-patch), and using "-r" with normal diff, and also that ptardiff offers
5171 a nice way to diff against an unpacked tarball.
5175 * Fix use of AssertEq() on NULL, which doesn't compile, at least with recent
5178 Xapian-core 1.2.9 (2012-03-08):
5182 * QueryParser: Fix FLAG_AUTO_SYNONYMS not to enable auto multi-word synonyms
5183 too (but in a different way to trunk so as to not break the ABI).
5187 * Fix issue with running AND, OR and XOR queries against a database with no
5188 documents in it - this was leading to a divide by zero, which led to
5189 MSet::get_matches_estimated() reporting 2147483648 on i386.
5193 * Remove configure's --with-stlport and --with-stlport-compiler options, as
5194 they don't allow you to actually specify what you need to (at least to use
5195 the Debian STLport package), and instead document what to pass to configure
5196 to enable building with STLport (though it seems to no longer be actively
5197 maintained, and the debug mode (which is probably the most interesting
5198 feature now) doesn't seem to work on Debian stable).
5202 * Document that OP_ELITE_SET with non-term subqueries might pick subqueries
5203 which don't match anything. Closes ticket#49.
5205 * Document that you can define a static operator delete method in your subclass
5206 if deallocation needs to be handled specially. (Closes ticket#554)
5208 * Assorted minor documentation improvements.
5212 * Address new warnings from GCC 4.6.
5214 * Fix argument order when linking xapian-check to fix mingw build.
5217 * Add some missing explicit header includes to fix build with STLport.
5219 Xapian-core 1.2.8 (2011-12-13):
5223 * Add support to TermGenerator and QueryParser for indexing and searching CJK
5224 text using n-grams. Currently this is only enabled when the environmental
5225 variable XAPIAN_CJK_NGRAM is set to a non-empty value.
5229 * Add link from index page to apidoc.pdf.
5231 * quickstart.html: Correct link which was to quickstartsearch.cc.html but
5232 should be to quickstartindex.cc.html.
5234 * overview.html,quickstart.html: Fix several factual errors.
5236 * API documentation:
5238 + Improve documentation comments for several methods.
5240 + Add documentation for function parameters which didn't have it.
5242 + Remove bogus paragraph in WritableDatabase::replace_document()
5243 documentation comment which had been cut and pasted from delete_document()
5244 documentation comment. (Fixes ticket#579)
5246 + Explicitly document which value slot numbers are valid. (Fixes ticket#555)
5248 + Escape < and > in doxygen comments so "<foo>" doesn't get eaten by doxygen.
5252 + Some fixes for warnings when cross-compiling to mingw.
5254 * tests/soaktest/soaktest.cc: With Sun's compiler, random() and srandom()
5255 aren't in <cstdlib> so we need to use <stdlib.h> instead.
5257 Xapian-core 1.2.7 (2011-08-10):
5261 * Document objects now track whether any document positions have been modified
5262 so that replacing a modified document can completely skip considering
5263 updating positions if none have changed. Currently the flint, chert, and
5264 brass backends implement this optimisation. A common case this speeds up is
5265 adding and/or removing boolean filter terms to/from existing documents - for
5266 example this gives an 18% speedup for adding tags in notmuch.
5270 * Make sure that perftest isn't run with libeatmydata preloaded, as making
5271 fsync() a no-op makes performance tests rather bogus.
5275 * Remove unnecessary call to reopen() in the remote servers in a case where
5276 either we had just called it or we are using a writable database and so
5277 reopen() doesn't do anything.
5281 * configure: -Wshadow gives bogus warnings with 4.0 (at least on Mac OS X), so
5282 disable it for GCC < 4.1 (like the comments already said we did!)
5286 * Improve the documentation comment for Database::close(). (ticket#504)
5288 * Fix typo in documentation comment for Enquire constructor which reversed the
5289 intended sense (though the text was fairly obviously wrong before).
5291 * Improve documentation of QueryParser::add_boolean_prefix()'s exclusive
5292 parameter to talk about terms and prefixes rather than values and fields
5293 (which was confusing since "document value" has a particular meaning in
5296 * docs/facets.html: Expand descriptions for indexing and finding facets.
5297 Fix errors in example code.
5299 * docs/index.html: Add links to Omega and bindings documentation.
5301 * docs/remote_protocol.html: Fixed typo which reversed the intended sense.
5303 * xapian-check --help: Document that checking a whole database performs
5304 additional cross-checks between the tables.
5306 * docs/admin_notes.html: Add note about xapian-chert-update.
5308 * docs/deprecation.html: Note here that WritableDatabase::flush() is
5309 deprecated in favour of WritableDatabase::commit().
5313 * Fix -Wshadow warnings from GCC 4.6.
5315 * Fix warning from GCC 3.3.
5319 * Fix some problems with the templates used to implement output of parameters
5320 and return values in debug logging.
5322 Xapian-core 1.2.6 (2011-06-12):
5328 + Add new set_max_wildcard_expansion() method to allow limiting the number of
5329 terms a wildcard can expand to. (ticket#350)
5331 + If default_op is OP_NEAR or OP_PHRASE then disable stemming of the terms,
5332 since we don't index positional information for stemmed terms by default.
5334 * Spelling correction was failing to correctly handle words which had the same
5335 trigram in an even number of times.
5339 * We now actually include the soaktest code in the release tarballs.
5343 * Eliminate some vector copies when handling phrase subqueries in the query
5348 * Kill the child process which holds the lock with SIGKILL as that can't be
5349 ignored, whereas SIGHUP can be in some cases.
5353 * Kill the child process which holds the lock with SIGKILL as that can't be
5354 ignored, whereas SIGHUP can be in some cases.
5358 * Kill the child process which holds the lock with SIGKILL as that can't be
5359 ignored, whereas SIGHUP can be in some cases.
5363 * The HTML documentation is now maintained in reStructured Text format.
5365 * docs/queryparser.html: Document the precedence order of operators.
5367 * docs/scalability.html: Bring up-to-date.
5369 * docs/overview.html: Document "remote" in stub databases.
5371 * docs/postingsource.html: Add PostingSource example. (ticket#503)
5373 * include/xapian/database.h: Add @exception InvalidArgumentError for
5374 Database::get_document() (ticket#542).
5376 * Ship ChangeLog.0 in the tarball.
5378 * Assorted minor improvements.
5382 * examples/delve: Report has_positions().
5384 * examples/simpleindex: Add short description to usage message.
5388 * Fix to build for mingw.
5390 Xapian-core 1.2.5 (2011-04-04):
5394 * Enquire::get_eset() now accepts a min_wt argument to allow the minimum wanted
5395 weight to be specified. Default is 0, which gives the previous behaviour.
5397 * QueryParser: Handle NEAR/<offset> and ADJ/<offset> where offset isn't an
5398 integer the same way at the end of the query as in the middle.
5402 + Only keep $XAPIAN_MAX_CHANGESETS changeset files when generating a new one
5403 (previously this variable only controlled if we generated changesets or
5404 not). Closes ticket#278.
5406 + $XAPIAN_MAX_CHANGESETS is reread each time, rather than only when the
5409 + If you build Xapian with DANGEROUS mode enabled, changeset files now
5410 actually have the appropriate flag set (the reader will currently throw an
5411 exception, but that's better than quietly handling them incorrectly).
5415 * Compaction tests which generate stub files now close them before performing
5416 the actual compaction, to avoid issues on Microsoft Windows (ticket#525).
5418 * Improve test coverage.
5422 * Fix memory leak if an exception is thrown during the match.
5426 * Bumped format version number (we now store the oldest revision for which we
5427 might have a replication changeset).
5429 * Optimise not to read the bitmaps from the base files when opening a database
5430 for reading (cross-port of equivalent change to chert).
5432 * Optimise not to update doclength when it hasn't changed (cross-port of
5433 equivalent change to chert).
5435 * If we try to delete an old base file and it isn't there, just continue rather
5436 than throwing an exception. We wanted to get rid of it anyway, and it may be
5437 NFS issues telling us the wrong thing. In particular, DatabaseCorruptError
5438 was rather a pessimistic assessment.
5442 * Optimise not to read the bitmaps from the base files when opening a database
5445 * Optimise not to update doclength when it hasn't changed.
5447 * xapian-chert-update: Fix to handle larger databases, and databases which
5450 * If we try to delete an old base file and it isn't there, just continue rather
5451 than throwing an exception. We wanted to get rid of it anyway, and it may be
5452 NFS issues telling us the wrong thing. In particular, DatabaseCorruptError
5453 was rather a pessimistic assessment.
5457 * Optimise not to read the bitmaps from the base files when opening a database
5458 for reading (cross-port of equivalent change to chert).
5460 * Optimise not to update doclength when it hasn't changed (cross-port of
5461 equivalent change to chert).
5463 * If we try to delete an old base file and it isn't there, just continue rather
5464 than throwing an exception. We wanted to get rid of it anyway, and it may be
5465 NFS issues telling us the wrong thing. In particular, DatabaseCorruptError
5466 was rather a pessimistic assessment.
5470 * xapian-tcpsrv: If we can't bind to the specified port because it is a
5471 privileged one, exit with code 77 (EX_NOPERM) to make it easier to
5472 automatically handle failure when starting the server from a script.
5476 * Snapshots and releases are now bootstrapped with autoconf 2.68 and libtool
5479 * configure: -Wstrict-null-sentinel was added in GCC 4.0.1 and so doesn't work
5480 with GCC 4.0.0. For simplicity, only enable it for GCC >= 4.1.
5484 * INSTALL: Note how to build for a non-default arch on a multi-arch platform.
5486 * include/xapian/enquire.h: Fix doxygen markup so alternative overloaded forms
5487 of Enquire::get_mset() appear in the API documentation.
5489 * collapsing.html: Add missing document (written some time ago, but never
5490 actually added to builds).
5492 * replication.html: Update documentation to make it clear that users shouldn't
5493 create the destination directory for replication themselves.
5495 * docs/intro_ir.html: Update link to a paper. Update text about book "to be
5498 * docs/deprecation.html:
5500 + PostingSource now offers a replacement for Enquire::set_bias().
5502 + OmegaScript: $set{spelling,true} is now deprecated.
5504 + Add note about botched removal of Enquire.get_matching_terms from Python
5505 bindings (now fully removed).
5507 + Note removal of "if idx in mset" from Python bindings.
5509 + Deprecate MSet.items and ESet.items from Python bindings (ticket#531).
5511 * docs/admin_notes.html: Update for 1.2.5.
5513 * Updates to documentation of internals.
5517 * xapian-replicate-server: Fix race condition between checking if a file
5518 exists and opening it to replicate it.
5520 * xapian-replicate: Complain unless host name and port number are specified -
5521 previously these defaulted to an empty string and 0, which resulted in
5522 potentially confusing error messages.
5524 * xapian-replicate: If --master isn't specified, default to DATABASE.
5528 * quest: Report any spelling correction (requires the database contains
5529 spelling data of course).
5531 * copydatabase: Add --no-renumber option.
5535 * api/compactor.cc: Add missing header <ctime> for time() (ticket#530).
5537 * api/compactor.cc: Use msvc_posix_rename() under __WIN32__ to atomically
5538 update stub file after compaction (ticket#525).
5540 * Fix uninitialised variable warnings with gcc -O3.
5542 * Eliminate std::string member of global static object used when compiled with
5543 --enable-log which was causes problems on Mac OS X.
5545 * Fix some issues highlighted by clang++ warnings.
5547 Xapian-core 1.2.4 (2010-12-19):
5553 + Avoid a double free if Query construction throws an exception in a
5554 particular case. Fixes ticket#515.
5556 + Allow phrase generators between a probabilistic prefix and the term itself
5557 (e.g. path:/usr/local).
5559 + The correct window size wasn't being set in some cases when default_op was
5562 * Enquire::get_mset():
5564 + Avoid pointlessly trying to allocate lots of memory if the first document
5565 requested is larger than the size of the database.
5567 + An empty query now returns an MSet with firstitem set correctly -
5568 previously firstitem was always 0 in this case.
5570 * Document: Initialise docid to 0 when creating a document from
5571 scratch, as documented.
5575 + Move the database compaction and merging functionality into this new class,
5576 and make xapian-compact a simple wrapper around this class. (ticket#175)
5578 + Inputs can now be stub database directories or files, in which case the
5579 databases in the stub are used as inputs.
5581 + Add support for compacting to a stub database, which can be one of the
5582 inputs (for atomic update).
5584 + If spellings and/or synonyms were only present in some source databases,
5585 they weren't copied to the output database, but now they are.
5589 * Improve test coverage (particularly for Xapian::Utf8Iterator and
5592 * Add zlib-vg.c to distribution tarballs.
5594 * tests/runtest: Add XAPIAN_TESTSUITE_LD_PRELOAD hook to allow libeatmydata to
5595 easily be used to speed up testsuite runs.
5599 * The matcher wasn't recalculating the max possible weight after a subquery of
5600 XOR reached its end. This caused an assertion failure in debug builds, and
5601 is a missed optimisation opportunity.
5603 * Implement SelectPostList::check() so that check() on OP_NEAR and OP_PHRASE
5604 subqueries will just check a single document, not a potentially huge numbers
5607 * BM25Weight: Fix calculation order to avoid inconsistent weights due to
5608 rounding when certain non-default parameter combinations are used.
5610 * TradWeight: Fix calculation order to avoid inconsistent weights due to
5611 rounding with TradWeight(0).
5613 * Fix regression in speed of OP_OR queries in certain cases due to optimisation
5614 added in 1.0.21/1.2.1.
5616 * In the query optimiser, use value range bounds to detect value ranges which
5621 * Add support for iterating metadata keys with the remote backend. This change
5622 necessitated an increase in the minor version of the remote protocol. If you
5623 are upgrading a live system which uses the remote backend, upgrade the
5624 servers before the clients.
5628 * xapian-config: Add --static option which makes other options report values
5631 * xapian-config is now removed by "make distclean" not "make clean".
5633 * configure: FreeBSD and OpenBSD don't need explicit dependency libraries, so
5634 set link_all_deplibs_CXX=no there.
5636 * This release uses autoconf 2.67 rather than 2.65.
5640 * INSTALL: Raise recommended GCC version from 3.3 to 4.1, since that's the
5641 oldest we regularly test with.
5643 * replication.html: Update and improve in various ways.
5645 * Remove lingering "experimental" marker from PostingSource and
5646 ValueCountMatchSpy API documentation.
5648 * index.html: Add links to replication and facets documents, and fix typo in
5649 serialisation document link.
5651 * internals.html: Add link to replication protocol.
5653 * Change the categorisation document to talk about facets, since that's the
5654 terminology that seems to be most widely used these days, and
5655 "categorisation" can also mean automatically assigning categories to
5656 documents. Also update to reflect the final API.
5658 * deprecation.html: Add guidelines for supporting other software.
5660 * Document cases where QueryParser's FLAG_WILDCARD and FLAG_PARTIAL aren't
5661 currently supported.
5663 * PLATFORMS: Move PLATFORMS information to the wiki and replace with a pointer.
5667 * xapian-compact: Fix access to empty priority_queue while merging synonyms.
5668 This could have caused problems, though we've had no reports of any (the
5669 bug was found with _GLIBCXX_DEBUG).
5671 * xapian-compact: Add --quiet/-q option to suppress progress output.
5674 * xapian-replicate: If a full copy was attempted, but was not put live, display
5675 an explanatory message (in verbose mode).
5679 * examples/quest: Add command line options to allow prefixes to be specified
5680 for the QueryParser.
5682 * examples/delve: Add '-z' option to count zero-length documents.
5684 * examples/simplesearch: Fix cut-and-paste errors in usage message and
5689 * configure: Add support for --enable-sse=sse and --enable-sse=sse2 to allow
5690 control of which SSE instructions to use.
5692 * configure: Enable use of SSE maths on x86 by default with Sun's compiler.
5694 * configure: Beef up the test for whether -lm is required and add a special
5695 case to force it to be for Sun's C++ compiler - there's some interaction with
5696 libtool and/or shared objects which means that the previous configure test
5697 didn't think -lm is needed here when it is.
5699 * Fix to build on OpenBSD 4.5 with GCC 3.3.5.
5701 * Need to avoid excess precision on m68k when targeting models 68010, 68020,
5702 68030 as well as 68000.
5704 * Fix compilation with Sun's C++ compiler.
5706 * Fix testsuite to build on Solaris < 10.
5708 Xapian-core 1.2.3 (2010-08-24):
5712 * Database::get_spelling_suggestion() will now suggest a correction even if the
5713 passed word is in the dictionary, provided the correction has at least the
5714 same frequency. Partly addresses #225.
5718 + Fix handling of groups of terms which are all stopwords - in situations
5719 where this causes a problem we now disable stopword checks for such groups.
5722 + Fix to be smarter about handling a boolean filter term containing ".." in
5723 the presence of valuerangeprocessors.
5727 * New "unittest" program for testing low level functions directly. Currently
5728 this has tests for the internal resolve_relative_path() function.
5733 * Retry select() if it fails with EINTR while waiting for connect(), and
5734 discriminate cases with same failure message to aid debugging.
5738 * Fix documentation comment for Xapian::timeout type - it holds a time interval
5739 in milliseconds not microseconds (the API docs for the methods which use it
5740 explicitly correctly document that the timeouts are in milliseconds).
5742 * libuuid moved from e2fsprogs to util-linux-ng about a year ago, so update
5743 documentation, comments, and configure error messages to reflect this.
5747 * configure: Don't pass -mtune=generic unless GCC >= 4.2 is in use
5750 * Fix handling of some obscure cases of resolving relative paths on Microsoft
5751 Windows. (ticket#243).
5753 * Optimise closing of all unwanted file descriptors after forking by using
5754 closefrom() if available, and otherwise providing our own implementation
5755 (optimised to some extent for many platforms).
5757 * Fix test harness to build under Microsoft Windows (ticket#495).
5761 * xapian-core.spec: Add xapian-metadata and cmake related files to RPM
5764 * xapian-core.spec: Update BuildRequires to specify libuuid-devel instead of
5769 * Improve logging of function parameter placeholder strings.
5771 Xapian-core 1.2.2 (2010-06-27):
5775 * Sync changes from each Btree table to disk right after syncing changes to
5776 its base file, which allows more time for the table changes to be written
5777 and may also be more efficient with some Linux kernel versions.
5781 * Sync changes from each Btree table to disk right after syncing changes to
5782 its base file, which allows more time for the table changes to be written
5783 and may also be more efficient with some Linux kernel versions.
5787 * xapian-check: Don't try to check document lengths are consistent between the
5788 postlist and termlist tables if it would use more than 1GB of memory, and
5789 handle std::bad_alloc or std::length_error when trying to allocate space
5790 for this. This issue affected sup users, as sup allocates docids such that
5791 they are sparse and large docids can easily occur.
5795 * delve: Show the database's UUID.
5799 * Revert 1.2.1 change to visibility of Xapian::Weight's copy constructor as
5800 it making it private broke compilation with GCC 4.1 (which seems to be a
5801 bug in this compiler version).
5803 * tests/harness/testsuite.cc: Need <cstdio> for sprintf(). Fixes compilation
5804 error which was masked if valgrind was installed. (ticket#489)
5808 * xapian-core.spec: Update for 1.2.x - add e2fsprogs-devel to BuildRequires and
5809 add new files to install.
5811 Xapian-core 1.2.1 (2010-06-22):
5813 This release includes all changes from 1.0.21 which are relevant.
5817 * QueryParser: Add support for open-ended ranges (ticket#480).
5819 * Add new optional parameter to QueryParser::add_boolean_prefix() to allow the
5820 user to indicate a prefix isn't "exclusive" and that multiple instances
5821 should be combined with OP_AND rather than OP_OR. Fixes ticket#402. This
5822 change should also improve efficiency as it avoids copying the lists of
5823 prefixes and compares them more efficiently.
5825 * You can now specify a custom stemming algorithm by subclassing
5826 Xapian::StemImplementation, mostly based on patch from Evgeny Sizikov in
5829 * Fix replication bug: when multiple commits were made to the master database
5830 while a client was performing a full copy, the client would only apply the
5831 first changeset and then try to make the database live, but fail due to
5832 trying to set the wrong revision number.
5834 * Replication no longer sleeps between applying changesets to an offline
5835 database. It's only necessary to sleep for a live database (to allow readers
5836 to complete a search without getting DatabaseModifiedErrror.
5838 * xapian-replicate: Add new "-r" command line option to specify how long
5839 replication sleeps for between applying changesets to a live database.
5841 * If a Btree table doesn't exist when applying a replication changeset, create
5842 it. This fixes replicating a revision where a lazy table is created.
5847 * zlib can produce "uninitialised" output from "initialised" input - the
5848 output does decode to the input, so this is presumably just some unused bits
5849 in the output, so we use an LD_PRELOAD hack to get valgrind to check the
5850 input is initialised and then tell it that the output is initialised.
5852 * Don't pass NULL to closedir(), which fixes test harness failures on platforms
5853 without /proc/self/fd.
5855 * Use safesyswait.h, fixing build failure on "make check" on FreeBSD.
5857 * Check is SA_SIGINFO is defined before using it as it isn't available
5858 everywhere. Fixes testsuite build failure on GNU Hurd.
5860 * Add a "soaktest" testsuite, intended to contain long-running tests with
5861 random data. Currently contains a single test which builds and runs random
5862 queries, checking that the results returned are consistent when asking for
5863 different result ranges.
5865 * Test UUID returned by Database::get_uuid() is 36 characters long.
5869 * Xapian no longer forces the wdf_max value to be at least one in
5870 BM25Weight::get_maxpart(). We used to do this so that a non-existent term in
5871 the query would cause it not to achieve 100%, but now we calculate
5872 percentages based on the number of matching subqueries, and it is more
5873 natural for a non-existent term to get zero weight (ditto for a term which
5876 * OP_VALUE_RANGE and OP_VALUE_GE now use value streams directly which is much
5877 more efficient for chert (the default backend in 2.2.x). As an example, a
5878 range query testcase which previously took 29 seconds now takes 0.4 seconds
5879 (70 times faster). (ticket#432)
5881 * The term statistics from multiple databases are now gathered in a simpler
5882 way which is a bit faster and uses less memory.
5886 * Install headers under PREFIX/include not PREFIX/include/xapian. If you used
5887 XO_LIB_XAPIAN or xapian-config in your build system, the headers would still
5890 * Releases and snapshots are now generated with libtool 2.2.10 instead of
5893 * Fix build failures with some combinations of backends disabled (partially
5894 addresses ticket#361 - some combinations still fail).
5896 * Add check to configure that GCC actually supports visibility for the platform
5897 being built for, which fixes compiler warnings with platforms which don't
5898 (such as Mac OS X and mingw).
5902 * Update documentation - replication and PostingSource aren't experimental in
5907 * Make use of built-in UUID API on FreeBSD and NetBSD. (ticket#470)
5913 * Add new pretty printer for values reported by calls and returns in debug
5914 logging - in particular, strings are now reported with non-printable
5917 * Debug logging should have less runtime overhead when built in but not in use.
5919 * Drop support for --enable-log=profile - dedicated profiling tools are likely
5920 to return more useful results.
5922 Xapian-core 1.2.0 (2010-04-28):
5924 This release includes all changes from 1.0.20 which are relevant.
5928 * Fix --abort-on-error to actually work.
5930 * Exit with status 1 not 0 if we caught an exception from the harness itself.
5932 Xapian-core 1.1.5 (2010-04-16):
5934 This release includes all changes from 1.0.19 which are relevant.
5938 * Database replication now handles an exception while applying a changeset
5941 * If environment variable XAPIAN_MAX_CHANGESETS is set on a replication client
5942 then any changesets read are saved so the replicated copy can itself be
5947 * Use sigsetjmp() and siglongjmp() where available so that the set of blocked
5948 signals get restored and the test harness can catch a second incidence of a
5949 particular signal in a run. Use sigaction() instead of signal() where
5950 available, which allows us to report the address associated with SIGSEGV,
5951 SIGFPE, SIGILL, and SIGBUS.
5953 * Add machinery to check for leaked file descriptors. Currently this requires
5954 /proc/self/fd to work (which is present on Linux and some other platforms).
5955 Remove the crude ulimit in runtest which has caused problems on some Debian
5958 * The test harness now explicitly catches const char * exceptions and reports
5963 * Ensure that the wdf upper bound is correctly updated when replacing
5966 * xapian-compact: Now sets lastdocid correctly when using --no-renumber.
5970 * Ensure that the wdf upper bound is correctly updated when replacing
5973 * xapian-compact: Now sets lastdocid correctly when using --no-renumber.
5975 * xapian-check: Check that the initial doclen chunk exists.
5979 * xapian-compact: Now sets lastdocid correctly when using --no-renumber.
5983 * Add remote backend support for WritableDatabase::add_spelling() and
5984 WritableDatabase::remove_spelling(). This bumps the remote protocol to
5985 version 35.0 (so both client and servers will need updating). Suggesting
5986 spelling corrections isn't yet supported. (ticket#178)
5990 * XO_LIB_XAPIAN: Give a more specific error message for the cases where
5991 XAPIAN_CONFIG isn't found, is a directory, or isn't executable.
5997 + If any documents are specified with "-d<docid>", "-V<slot>" now only show
5998 values for those documents.
6000 + Remove undocumented -k option, which has been a compatibility alias for -V
6001 since 0.9.10. Just use -V instead.
6003 * xapian-metadata: Add new example program which allows you to get and set
6004 individual user metadata entries.
6006 Xapian-core 1.1.4 (2010-02-15):
6008 This release includes all changes from 1.0.18 which are relevant.
6012 * Xapian::TermGenerator,Xapian::QueryParser,Xapian::Unicode::is_wordchar():
6013 Add ENCLOSING_MARK and COMBINING_SPACING_MARK categories to is_wordchar(),
6014 which is used by TermGenerator and QueryParser. Also make TermGenerator and
6015 QueryParser ignore several zero-width space characters. This is a better
6016 but less compatible version of a fix in 1.0.18.
6018 * Implement support for iterating valuestreams for multidatabases.
6020 * Xapian::Stem: Update the german and german2 stemming algorithms to the latest
6021 versions from Snowball. These add an extra rule for the "-nisse" ending.
6023 * Xapian::ValueCountMatchSpy: Replace get_values() with values_begin() and
6026 * Xapian::MatchSpy: Provide an iterator for accessing the top values found
6027 instead of taking a vector by reference to return them in.
6029 * Xapian::NumericRanges: Remove experimental API we aren't happy with yet.
6031 * Xapian::DatabaseReplica, Xapian::DatabaseMaster: Remove experimental
6032 API we aren't happy with. Replication is still supported via the
6033 command line programs. (ticket#347)
6035 * Xapian::score_evenness(): Remove as it turns out not to be useful in practice.
6038 * Xapian::ValueWeightPostingSource: A ValueWeightPostingSource with no entries
6039 would report -infinity as its upper bound, which could cause no results to be
6040 incorrectly returned for some queries involving such an object.
6042 * Xapian::WritableDatabase::close() fixed to commit() changes (unless a
6043 transaction is in progress).
6047 * apitest: Improve test coverage in various places.
6051 * Uses of values during the match (sorting by value or Sorter, MatchSpy,
6052 MatchDecider, and collapsing) now use value stream iteration which is
6053 a lot more efficient for chert and brass (but may be slower for flint).
6057 * New development backend. Changes over chert:
6059 + Batched posting list changes during indexing use significantly less memory.
6061 + Instead of using complex code to iterate modified posting lists and
6062 documents length lists, brass can flush individual such lists to disk
6063 and then iterates them from there.
6065 + To iterate all terms, chert flushes all pending postlist changes. In the
6066 case where a prefix is specified, brass only flushes postlist changes for
6067 terms starting with the specified prefix, and doesn't flush document length
6072 * Promote chert to being the stable backend.
6074 * Change the packing of integers and strings into sortable keys, which reduces
6075 database size by 2.5% in tests. This means an incompatible change in the
6076 chert format. You can use the new xapian-chert-update utility to update a
6077 chert database from the old format to the new format. It works much like
6078 xapian-compact so should take a similar amount of time (and results in a
6083 + Prune unused docids off the end of each database when merging multiple
6084 databases with renumbering.
6086 + Extend --no-renumber to support merging databases, but only if they have
6087 disjoint ranges of used document ids.
6089 + Ensure that the resultant database has a fresh UUID (previously chert
6090 copied the UUID from the first input).
6094 + Fix checking of the METAINFO key in chert. For small databases, the
6095 statistics fit in few enough bytes that incorrect check appeared to
6096 succeed and no errors were reported, but for larger databases an
6097 error was incorrectly reported.
6099 + Rework the checking of postlist chunks to use a cleaner approach which
6100 should report errors better.
6102 + Use a type wider than 32 bits to keep count of items in a table.
6103 Previously xapian-check would report the number of entries modulo
6106 * When iterating a value stream, skip_to() now only assigns the value to a
6107 std::string when it reaches its target. This saves a lot of unnecessary
6108 string copying - in a real-world test it improved the time for 100 queries
6109 from 3.66s to 3.10s.
6111 * When skipping through a chunk of postings to find the one we want, don't
6112 bother to unpack the wdf values we're skipping over. This should save a
6113 significant amount of time in certain cases where the profile data shows
6114 about a third of the time is spent in the function where this happens.
6116 * Report locking failure due to running out of file descriptors better.
6122 + Prune unused docids off the end of each database when merging multiple
6123 databases with renumbering.
6125 + Ensure that the resultant database has a fresh UUID (previously flint
6126 didn't set a UUID so one would be generated on demand when next requested,
6127 but only if the database was writable).
6129 * Report locking failure due to running out of file descriptors better.
6133 * Add support for WritableDatabase::set_metadata() and Database::get_metadata()
6134 to the remote backend (based largely on patch in #178).
6138 * Read the document data and values lazily for the inmemory backend like we do
6139 for other backends. They're much less costly to fetch than if a disk or
6140 network access is involved, but it avoids copying potentially large data
6141 which may not be needed. Consistency here also makes things easier to
6142 understand for both users and developers.
6146 * This release uses autoconf 2.65 rather than 2.64.
6150 * docs/replication.html: Add note about not using reopen() with databases being
6151 updated by the replication client.
6153 * docs/admin_notes.html: Update for chert and other recent changes.
6155 * Remove out-of-date reference in the API documentation comment to an
6156 add_slot() method. This no longer exists - you need to use multiple
6157 ValueCountMatchSpy objects to monitor more than one slot.
6161 * simpleexpand,simpleindex,simplesearch: Handle --help and --version.
6165 * The debug log now reports boolean values as "true" and "false" (instead of
6168 Xapian-core 1.1.3 (2009-09-18):
6170 This release includes all changes from 1.0.15-1.0.17 which are relevant.
6174 * Update Unicode character database to Unicode 5.2. (ticket#351)
6176 * Rename Xapian::Sorter to Xapian::KeyMaker, paving the way for using it to
6177 build collapse keys too. Xapian::Sorter remains for compatibility (and is
6178 now a subclass of Xapian::KeyMaker) but is deprecated.
6180 * Resolve the inconsistency in MultiValueSorter::add()'s "forward" parameter
6181 versus the "reverse" parameters which the Enquire sorting functions now take
6182 by replacing the class with MultiKeyMaker with a renamed method add_value()
6183 with a "reverse" parameter. MultiValueSorter remains with the old semantics
6184 for compatibility but is deprecated. (ticket#359)
6186 * QueryParser: Don't apply spelling correction to wildcarded terms, or to terms
6187 at the end of the query which we expand under FLAG_PARTIAL.
6189 * Add new Error subclass SerialisationError which we throw for serialisation
6190 related errors (which previously mostly threw NetworkError.
6192 * Rename Xapian::SerialisationContext to Xapian::Registry.
6194 * Add DecreasingValueWeightPostingSource class, which reads weights from a
6195 value slot in which a significant range of the values are in decreasing
6196 order. This functions similarly to ValueWeightPostingSource, but can be much
6199 * Add new Xapian::MatchSpy class:
6201 + This replaces the use of Xapian::MatchDecider as a "matchspy", which is now
6202 deprecated. The new class only inspects, and can't reject. It can work
6203 with remote databases, with the results being serialised to return them
6206 + Add subclass ValueCountMatchSpy, which counts the occurrences of each value
6207 in a slot in the search results seen (useful for faceted or categorisation
6208 systems). The results can be grouped into ranges using the NumericRange
6209 and NumericRanges classes, and the score_evenness() function. This API is
6210 currently experimental.
6212 * Remove default implementation of Weight::clone() which returns NULL. We
6213 always need clone() to be implemented because it's called for every term
6214 in the query, not just used for the remote backend.
6218 * Rewrite the low level packing and unpacking functions more efficiently. As
6219 well as being generally faster, the pack functions now take a reference to a
6220 string to append to, which avoids creating a lot of temporary string objects.
6221 Indexing HTML files with omindex is 5-10% faster. Searching for "The" on
6222 gmane (which results in a lot of unpacking of postings and document lengths)
6223 is about 35% faster. (ticket#326)
6225 * xapian-compact: Don't report an absent lazy input table as 0 size.
6227 * Fix ChertModifiedPostList to skip added-but-then-deleted-before-flush
6228 documents. (ticket#392)
6230 * Fix WritableDatabase::get_doclength() to work properly after a call to commit
6231 for the chert backend (ticket#397).
6233 * Fix to work with the metainfo key stored in the latest format of chert
6236 * Avoid doing pointless work by trying to delete non-existent lists of values
6237 when we're just adding documents.
6239 * Fix code to find the first docid in the next chunk (ticket#399).
6241 * Add support for chert databases without a termlist table (ticket#181).
6242 Currently the only way to create such a database is to create a chert
6243 database and do "rm termlist.*".
6247 * xapian-compact: Don't report an absent lazy input table as 0 size.
6251 * Remote protocol major version has changed to support serialising MatchSpy
6254 * Fixed not to sometimes read off the end of the returned matches when
6255 searching multiple databases, some of which are remote, and when the primary
6256 ordering is by relevance.
6260 * This release uses autoconf 2.64 rather than 2.63. This means configure now
6261 makes use of shell functions, which makes it ~13% smaller, and should also
6262 make it execute faster.
6264 * configure: Send stderr output from ldconfig to config.log.
6266 * Add optional third parameter to XO_LIB_XAPIAN autoconf macro which specifies
6267 the basename for the "xapian-config" script (defaults to "xapian-config" to
6268 give the current behaviour).
6270 * This release uses doxygen 1.5.9 to generate the API documentation.
6274 * Minor improvements to the formatting of the collated API documentation.
6278 * Fix code to compile with Sun's C++ compiler.
6280 * Fix our uuid_unparse_lower() replacement for older libuuid to actually
6281 compile (really fixes ticket#368).
6283 * Fix xapian-config to work with Solaris 10 /bin/sh. (ticket#405)
6287 * Use C++ syntax for NULL with a type in log output.
6289 Xapian-core 1.1.2 (2009-07-23):
6291 This release includes all changes from 1.0.14 which are relevant.
6295 * Move support for a prefix/suffix from NumberValueRangeProcessor to
6296 StringValueRangeProcessor, and change NumberValueRangeProcessor and
6297 DateValueRangeProcessor to inherit from StringValueRangeProcessor so all
6298 three now support a prefix/suffix. (ticket#220)
6300 * Query: Trim 4 bytes off the internals. (ticket#280)
6302 * QueryParser: If default_op is OP_NEAR or OP_PHRASE then make the window size
6303 (9 + no_of_terms) to match the default for an explicit NEAR or PHRASE.
6308 * Sort out the clash between two different patches to fix leaking file
6309 descriptors when running tests with the remotetcp backend (broken by
6314 * If the highest weighted document doesn't match all the terms in the query,
6315 its percentage weight is now calculated by simply counting how many weighted
6316 leaf subqueries match it instead of scaling by the proportion of the weight
6317 which matches (which required accessing the termlist for that document).
6320 * XOR with a SYNONYM subquery could previously achieve 100% - this has been
6325 * Backport the lazy update changes from chert to flint:
6327 WritableDatabase::replace_document() now updates the database lazily in
6328 simple cases - for example, if you just change a document's values and
6329 replace it with the same docid, then the terms and document data aren't
6330 needlessly rewritten. Caveats: currently we only check if you've looked at
6331 the values/terms/data, not if they've actually been modified, and only keep
6332 track of the last document read.
6336 * Update to always use C++ forms for ISO C standard headers (ticket#330).
6338 * Fix several places where Xapian::doccount is used instead of
6339 Xapian::termcount, and similar issues. It's still not possible to make
6340 these types different sizes, but we're now closer to this goal.
6345 * Note that PostingSource and Weight objects returned by clone() and
6346 unserialise() methods will be deallocated with "delete".
6350 * Fix debug logging not to segfault on NULL Query::Internal pointers.
6352 Xapian-core 1.1.1 (2009-06-09):
6354 This release includes all changes from 1.0.13 which are relevant.
6358 * New Query::OP_SYNONYM operator, which matches the same documents as OP_OR,
6359 but attempts to weight as if the all the subqueries were a single term with
6360 their combined wdf, which should give better relevance weights.
6362 * QueryParser's synonym, wildcard, and partial query features now use
6363 the new OP_SYNONYM operator.
6365 * PostingSource: Add new set_maxweight() method to allow subclasses to tell
6366 the matcher that their maximum weight has decreased. Make get_maxweight()
6367 a non-virtual method of the baseclass which returns the last set maxweight
6368 (which will require updates to most user subclasses. (ticket#340)
6370 * DatabaseReplica: Fix SEGV when calling get_description() on a default
6371 constructed DatabaseReplica.
6373 * Make Query::MatchAll and Query::MatchNothing const since they're immutable.
6374 All the public methods of Query are const, so this should be completely API
6377 * Methods returning an end iterator for a ValueIterator now actually return a
6378 proxy object which silently converts to ValueIterator if required. This
6379 proxy object allows a comparison with an "_end()" method to be optimised
6380 better so that it just ends up comparing the internal member of the iterator
6381 class with NULL (previously a call to ValueIterator's destructor remained).
6382 This should be API compatible, but note that it is definitely now more
6383 efficient just to compare against the return value of the relevant _end()
6384 method than to store the end iterator explicitly.
6388 * Testcase valuestats4 requires transactions, so indicate that and remove the
6389 explicit SKIP for inmemory.
6391 * Testcase changemaxweightsource1 uses ChangeMaxweightPostingSource, which
6392 doesn't work with multi or remote, so mark the test accordingly.
6394 * We've decided that "going back" with skip_to() or check() should have
6395 unspecified behaviour, so stop testing how this case behaves!
6399 * Subclass MultiPostList directly from PostList instead of from LeafPostList.
6400 This gets rid of two unused data members per MultiPostList in exchange for
6401 having to define 5 extra "never called" methods, but 4 of these just
6404 * Store termfreqs and reltermfreqs for query terms in a single map rather than
6405 one map for each, which saves is more compact and likely to be faster.
6409 * xapian-check: For chert, check value stats are the correct format and that
6410 the streamed values are consistent with their stats (ticket#277).
6412 * xapian-check: Chert doesn't store termlist entries for documents without
6413 terms, which resulted in us reporting an error when we found document ids in
6414 the doclength "postlist" which were greater than any with an entry in the
6415 termlist. Instead compare these entries against db.get_last_docid() if we
6416 are checking a whole db and the db can be opened. If not, suppress this
6421 * When serialising stats, serialise the termfreq and reltermfreq together,
6422 rather than in separate lists. This gives a smaller serialised form, and
6423 matches these both being stored in the same map now. This is an incompatible
6424 remote protocol change, so bump the major version to 32. (ticket#362)
6428 * Some build failures with --disable-backend-XXX options have been fixed, but
6429 we haven't exhaustively tested all combinations.
6431 * Ship common/win32_uuid.cc and common/win32_uuid.h (ticket#367).
6435 * Update PostingSource documentation to describe how init() is called again if
6436 a PostingSource is reused. Fixes #352.
6440 * Fixed to build with GCC 4.4.
6442 * Drop support for GCC 2.95.3 and 3.0.x - we now require at least 3.1 as doing
6443 so eliminates some preprocessor conditionals which we aren't able to test
6444 regularly as we don't have easy access to such old GCC versions. GCC 3.1 is
6445 nearly 7 years old now, and GCC3 didn't get widespread use until later
6446 versions anyway. If you still need to use GCC < 3.1, Xapian 1.0.x should
6447 build with 2.95.3 or newer.
6449 * Older versions of libuuid don't have uuid_unparse_lower() so probe for it in
6450 configure, and if it isn't present provide an inline version in safeuuid.h
6453 * Fixed to build with MSVC (ticket#379).
6455 * Add static_cast<char>() to str(bool) overload to suppress bogus MSVC warning
6460 * common/debuglog.h: Add missing initialisation of uncaught_exception variable
6461 in a couple of places.
6463 Xapian-core 1.1.0 (2009-04-22):
6467 * All deprecated xapian-core features listed for removal in 1.1.0 have been
6468 removed. See deprecation.html for details, and suggested updates.
6470 * The Unicode character categorisation functions have been updated from
6473 * Add NON_SPACING_MARK to is_wordchar() for better tokenisation of languages
6474 which use such marks - for example, Arabic. This is better than the stop-gap
6475 fix in 1.0 of treating NON_SPACING_MARK as a phrase-generator character
6476 when parsing queries, but it does mean that databases built from data
6477 containing such characters will need to be rebuilt. (ticket#355)
6479 * The details of how to subclass Xapian::Weight to implement your own
6480 weighting scheme have changed incompatibly to allow user weighting schemes
6481 to have access to the same statistics as built-in schemes (ticket#213)
6482 If you have a existing subclass of Xapian::Weight you'll need to update it.
6484 * New Database methods get_doclength_upper_bound(), get_doclength_lower_bound()
6485 and get_wdf_upper_bound(), primarily intended for allowing weighting schemes
6486 to calculate tighter upper bounds on weights (which BM25Weight and TradWeight
6487 now do) which allows matcher weight-based optimisations to be more effective.
6488 Chert actually tracks doclength bounds and a global (rather than per term)
6489 upper bound on wdf; other backends return much less tight bounds, but these
6490 still lead to better upper bounds on weights.
6492 * Enquire::get_eset() now uses an unmodified of probabilistic formula, and
6493 doesn't return terms which would get a negative weight from it (since that
6494 means they are expected to be harmful not helpful).
6496 * Add Database::close() method, which will release system resources (in
6497 particular, close filehandles) held by a database. This is particularly
6498 useful when wrapping the API for languages with garbage collection.
6500 * Change Database::positionlist_begin() not to throw exceptions if the term or
6501 document doesn't exist.
6503 * Xapian databases now have a UUID, readable with Database::get_uuid().
6505 * A new Database replication API has been added (currently experimental).
6507 * MSet::get_termfreq() will now fall back to looking up the term frequency in
6508 the database rather than raising an exception if a term wasn't present in
6511 * Calling RSet:add_document() with argument 0 now throws InvalidArgumentError.
6513 * QueryParser sped up (new version of lemon); queryparsertest runs 2.2% faster.
6515 * Add ValueSetMatchDecider, which is a matchdecider which is intended to be
6516 passed a set of values to look for in documents, and selects documents based
6517 on the presence of those values.
6519 * Add new Xapian::PostingSource class to allow passing custom sources of
6520 postings and weights to the matcher. Built-in PostingSource subclasses:
6521 FixedWeightPostingSource, ValueMapPostingSource, ValuePostingSource, and
6522 ValueWeightPostingSource. (Currently experimental).
6524 * Database: Add get_value_freq(), get_value_lower_bound() and
6525 get_value_upper_bound() methods to get statistics about the values stored in
6526 a slot. Add support for the value statistics methods to chert, inmemory,
6527 multi and remote databases.
6529 * Enquire::get_eset() now faster for large ESet size.
6531 * Xapian::Document objects now have a reduced memory footprint.
6533 * Enquire::set_collapse_key() now allows you to specify a maximum number of
6534 matches with each collapse key to keep (which defaults to 1, giving the
6535 previous behaviour). Enquire can now report bounds and an estimate of what
6536 the total number of matches would have been if collapsing wasn't in use.
6538 * WritableDatabase::commit() is a new, preferred alias for
6539 WritableDatabase::flush(). (ticket#266)
6541 * Add methods for serialising documents and queries to strings, and
6542 unserialising back from strings. (ticket#206)
6546 * stemtest: No longer checks environment variables OM_STEMTEST_SKIP_RANDOM,
6547 OM_STEMTEST_LANGUAGES, and OM_STEMTEST_SEED.
6549 * perftest: New performance testsuite. This is intended to contain intended to
6550 contain potentially time-consuming performance tests, which log output to
6551 an XML file for later analysis. It's not run by "make check" - use "make
6552 check-perf" to run it.
6554 * apitest: Now runs tests over both flint and chert for multi, remotetcp, and
6557 * Wait for subprocesses to finish at end of tests with remotetcp backend, to
6558 avoid test failures when the same database is used for the next testcase.
6562 * Internally, pass around non-normalised document lengths as Xapian::termcount
6563 (unsigned integer) not Xapian::doclength (double). This gives a 3% speedup
6564 for 10 term OR queries!
6568 * New development backend. Use Chert::open() to explicitly create a chert
6569 format database, or set XAPIAN_PREFER_CHERT=1 in the environment to
6570 prefer chert when creating a new database without an explicit type.
6572 * Quartz and Flint stored the document length alongside every posting list
6573 entry. Chert instead stores a chunked list of all the document lengths
6574 which saves a lot of space, and is a big win for large queries or those
6575 which don't need the document lengths. This structure is used to
6576 implement much faster iteration (six times faster in a test) over all
6577 document ids (which speeds up queries using unary NOT, e.g. `NOT apples'),
6578 and to test for the existence of documents (instead of checking the record
6579 table for an entry).
6581 * Document values are now stored in a chunked stream for each slot for
6582 efficient access to the same slot in lots of documents. This makes
6583 operations like sort by value much more efficient.
6585 * WritableDatabase::replace_document() now updates the database lazily in
6586 simple cases - for example, if you just change a document's values and
6587 replace it with the same docid, then the terms and document data aren't
6588 needlessly rewritten. Caveats: currently we only check if you've looked at
6589 the values/terms/data, not if they've actually been modified, and only keep
6590 track of the last document read.
6594 * If we can't obtain a write lock while trying to create a new database
6595 we now report the lock failure with DatabaseLockError, not
6596 DatabaseOpeningError - it's more useful to know that the lock attempt failed
6599 * Improve reporting of failures to obtain lock due to unexpected errors.
6601 * xapian-check: Don't stop checking a table after an error in certain cases -
6602 instead increment the error counter and try to continue checking from the
6607 * The remote database protocol major version has been increased, allowing
6608 a significant amount of compatibility code to be removed. This change means
6609 that new clients won't work with old servers, and old clients won't work
6610 with new servers. If upgrading a live system, you will need to take this
6613 * The remote servers now always default to opening a Database and the client
6614 has to send a protocol message to explicitly request write access. This
6615 allows a single server to support multiple readers and one writer
6616 simultaneously. (ticket#145)
6618 * Database::get_document() no longer does an unnecessary copy of the document's
6621 * Change serialisation of queries to be more compact and easier to parse.
6625 * Stub databases used to assume that any relative paths were relative to the
6626 current working directory. They now assume that relative paths are
6627 relative to the directory holding the stub database file.
6629 * Stub database lines which begin with a '#' character are now ignored,
6630 allowing comments in stub database files.
6632 * New "stub directory" database type - this is a directory containing a stub
6633 database file named "XAPIANDB".
6635 * Don't just ignore lines with no spaces in a stub database file.
6637 * Bad lines in a stub file were being ignored after we'd seen a good entry.
6639 * Add new Auto::open_stub() overload which opens a stub database file
6640 containing a single entry as a WritableDatabase.
6642 * Add support for "inmemory" to stub database (which is useful now that stub
6643 databases can be opened for writing).
6645 * A stub database file is now allowed to contain no database entries, which
6646 results in an empty Database object (this avoids user code having to special
6647 case to handle "0 or more" databases).
6651 * To allow installations of Xapian 1.0 and 1.1 to easily coexist, the library
6652 is now libxapian-1.1; xapian.m4 is now xapian-1.1.m4; headers are now
6653 installed in $prefix/include/xapian-1.1. If you use XO_LIB_XAPIAN or
6654 xapian-config as we recommend, this should all be transparent. Also
6655 programs and scripts have a default program suffix to -1.1 unless overridden
6656 using the --program-suffix argument to configure (if you really want no
6657 suffix, "./configure --program-suffix=" will achieve this).
6659 * On Linux and k*bsd-gnu, override libtool's link_all_deplibs_CXX to "no".
6661 * On Linux, override libtool's sys_lib_dlsearch_path_spec to a list generated
6662 in a more reliable way which includes all the default directories.
6664 * configure: --enable-debug and --enable-debug-verbose have been deprecated
6665 since 1.0.0, so remove specific errors pointing to the replacements.
6669 * Disable "JAVADOC_AUTOBRIEF" in doxygen configuration since we always try to
6670 write a brief description explicitly, and JAVADOC_AUTOBRIEF causes problems
6673 * docs/deprecation.html: Describe what "experimental" features are, and why
6674 replication and posting sources are currently experimental.
6676 * docs/deprecation.html: Deprecate Stem_get_available_languages() from the
6681 * Use C++ forms of C headers in examples (ticket#330).
6685 * xapian-core.spec: We no longer need to run autoreconf to work around
6686 libtool's incomplete sys_lib_dlsearch_path_spec or to pick up distro-specific
6687 patches for link_all_deplibs.
6691 * Report get_description() rather than the pointer value for
6692 Xapian::Query::Internal* parameters to internal functions.
6694 * The debug logging framework has been overhauled. See HACKING for details
6695 of how it now works.
6697 * Faster integer to string functions inside the library (this is a general
6698 improvement, but will particularly speed up debug logging as that converts a
6699 lot of integers to strings).
6701 Xapian-core 1.0.23 (2011-01-14):
6705 * QueryParser: Avoid a double free if Query construction throws an exception
6706 in a particular case. Fixes ticket#515.
6708 * QueryParser: Handle NEAR/<offset> and ADJ/<offset> where offset isn't an
6709 integer the same way at the end of the query as in the middle.
6711 * Enquire::get_mset(): Avoid pointlessly trying to allocate lots of memory
6712 if the first document requested is larger than the size of the database.
6714 * Enquire::get_mset(): An empty query now returns an MSet with firstitem set
6715 correctly - previously firstitem was always 0 in this case.
6719 * The matcher wasn't recalculating the max possible weight after a subquery of
6720 XOR reached its end. This caused an assertion failure in debug builds, and
6721 is a missed optimisation opportunity.
6725 * xapian-compact: Fix access to empty priority_queue while merging synonyms.
6726 This could have caused problems, though we've had no reports of any (the
6727 bug was found with _GLIBCXX_DEBUG).
6729 Xapian-core 1.0.22 (2010-10-03):
6733 * Xapian::Document: Initialise docid to 0 when creating a document from
6734 scratch, as documented.
6736 * Xapian::QueryParser: Allow phrase generators between a probabilistic prefix
6737 and the term itself (e.g. path:/usr/local).
6741 * Back out the OP_OR efficiency improvement made in 1.0.21 since this change
6742 slows down some other common cases. We'll address this fully in 1.2.4, but
6743 that fix is more invasive than we are comfortable with for 1.0.x at this
6748 * xapian-config: Add --static option which makes other options report values
6753 * deprecation.html: Add guidelines for supporting other software.
6755 * Document cases where QueryParser's FLAG_WILDCARD and FLAG_PARTIAL aren't
6756 currently supported.
6758 * Fix documentation for Xapian::timeout type - it holds a time interval in
6759 milliseconds not microseconds (the API docs for the methods which use it
6760 explicitly correctly document that the timeouts are in milliseconds).
6764 * configure: Don't pass -mtune=generic unless GCC >= 4.2 is in use
6767 * configure: Add support for --enable-sse=sse and --enable-sse=sse2 to allow
6768 control of which SSE instructions to use.
6770 * configure: Enable use of SSE maths on x86 by default with Sun's compiler.
6772 * configure: Beef up the test for whether -lm is required and add a special
6773 case to force it to be for Sun's C++ compiler - there's some interaction with
6774 libtool and/or shared objects which means that the previous configure test
6775 didn't think -lm is needed here when it is.
6777 * Fix test harness to build under Microsoft Windows (ticket#495).
6779 * Fix to build on OpenBSD 4.5 with GCC 3.3.5.
6781 * Need to avoid excess precision on m68k when targeting models 68010, 68020,
6782 68030 as well as 68000.
6786 * xapian-core.spec: Add cmake related files to RPM packaging.
6788 Xapian-core 1.0.21 (2010-06-18):
6792 * Xapian::Stem now recognises "nb" and "nn" as additional codes for the
6795 * Xapian::QueryParser now correctly parses a wildcarded term in between two
6796 other terms (ticket#484).
6800 * Improve test coverage of OP_VALUE_RANGE and MSet::get_percent().
6804 * OP_OR could skip a matching document if it decayed to OP_AND or OP_AND_MAYBE
6805 during the match in some cases. Fixes ticket#476.
6807 * OP_XOR with non-leaf subqueries could skip matching documents in some cases,
6808 and OP_XOR of three or more sub-queries could return incorrect weights.
6811 * OP_OR is now more efficient if a subquery is potentially expensive (e.g.
6812 ValueRangePostList, OP_NEAR, OP_PHRASE). A 10-fold speed-up with
6813 ValueRangePostList has been observed.
6817 * When iterating a table, if the table changes underneath we could end up
6818 returning the same entry twice. (Debian#579951)
6820 * A cancelled transaction (or a failing operation implicitly cancelling
6821 pending changes) now marks the tables as unmodified, which fixes an exception
6822 trying to read block 0 if one of the tables is empty on disk.
6826 * When iterating a table, if the table changes underneath we could end up
6827 returning the same entry twice. (Debian#579951)
6831 * When daemonising, read the max fd to close with sysconf() instead of using
6832 a hardcoded value of 256, and work even if stdin and stdout have been closed.
6836 * Install files to make Xapian easier to use with cmake.
6840 * Update the list of languages that the Xapian::Stem constructor recognises.
6842 * Assorted minor improvements to the collated API documentation.
6846 * On x86 processors, Xapian now defaults to using SSE2 FP instructions. This
6847 avoids issues with excess precision and it a bit faster too. If you need
6848 to support processors without SSE2 (this means pre-Pentium4 for Intel) then
6849 configure with --disable-sse. (ticket#387)
6851 * Fix warning when compiling for mingw with GCC 4.2.1.
6853 * Remove mutable from a couple of reference class members - mutable doesn't
6854 make sense for a reference and some compilers warn about it.
6856 Xapian-core 1.0.20 (2010-04-27):
6860 * MSet: Fix incorrect values reported by get_matches_estimated(),
6861 get_matches_lower_bound(), and get_matches_upper_bound() in certain cases
6862 when sorting and collapsing (ticket#464).
6866 * deprecation.html: Note how to disable deprecation warnings. (ticket#393)
6870 * delve: Add -a option to list all terms in a database.
6872 * delve: -d and -V command line options now report out of range and invalid
6877 * The getopt warning fix for Cygwin in 1.0.19 caused build failures on Mac OS X
6878 (and probably some other platforms with non-GNU getopt implementations), so
6879 replace with a fix which is only enabled for Cygwin. (ticket#469)
6881 Xapian-core 1.0.19 (2010-04-15):
6885 * QueryParser: Fix leak if Xapian::Database throws an exception during parsing
6890 * Explicitly flush after indexing for quartz and flint, so we see any
6891 exceptions from the flush (the implicit flush from the destructor swallows
6894 * apitest: Add databasemodified1 testcase to provide some test coverage for
6895 DatabaseModifiedError.
6899 * When updating a document, rather than decoding the old positions, comparing
6900 with the new, and then encoding the new if different, we now just encode the
6901 new and then compare the encoded forms. (ticket#428)
6903 * Avoid trying to delete the document positions when we know there aren't any.
6905 * Fix memory leak if Database::allterms_begin() throws an exception
6908 * xapian-check: Report document id for document length mismatch.
6910 * Fix potential issues with iterators over a WritableDatabase which is modified
6911 during iteration. No problems have actually been observed with flint, only
6912 in 1.1.4 with chert in cases which don't occur in flint, but it seems likely
6913 the issue can manifest for flint in other situations. Fixes ticket#455.
6915 * Initialise zlib z_stream structure members zalloc, zfree, and opaque with
6916 Z_NULL rather than 0 cast to the appropriate type, as that's what the zlib
6917 documentation says to do. Add missing initialisation of opaque for the
6918 inflate z_stream which the zlib docs say is needed (reading the zlib code,
6919 this isn't true for current versions, so this improves robustness rather
6920 than fixing an observable bug).
6922 * Don't memcpy() a block to itself - it's a waste of effort, and (probably)
6923 undefined behaviour (as a block overlaps itself).
6927 * Fix potential issues with iterators over a WritableDatabase which is modified
6928 during iteration. No problems have actually been observed with quartz, only
6929 in 1.1.4 with chert in cases which don't occur in quartz, but it seems likely
6930 the issue can manifest for quartz in other situations. Fixes ticket#455.
6932 * Don't memcpy() a block to itself - it's a waste of effort, and (probably)
6933 undefined behaviour (as a block overlaps itself).
6937 * Force -fno-strict-aliasing for GCC 4.2 to avoid bad code being generated due
6938 to a bug in that compiler version. Fixes ticket#449. This issue hasn't been
6939 observed to affect Xapian 1.0.x, but it seems prudent to backport the fix.
6943 * INSTALL: Correct description of --enable-assertions. It does NOT enable
6944 debugging symbols, and shouldn't control checks on bad data passed to API
6945 calls (if it does anywhere, that's a bug). Note that Xapian will run more
6946 slowly with assertions on.
6950 + Add section on indexing.
6952 + Add a note about removing automatically added spelling dictionary entries.
6954 + Move the "algorithm" section to the end, as it is really just background
6955 information for the curious.
6957 * include/xapian/queryparser.h: Document the possible exception messages from
6958 QueryParser::parse_query().
6960 * include/xapian/termgenerator.h: Note how TermGenerator handles stopwords.
6964 * delve: Display the lastdocid value when displaying general database
6967 * simpleindex: Explicitly call flush() on the database, as that is good
6968 practice (since you see any exceptions).
6972 * Fix compilation failure in testsuite on OpenBSD, introduced by new regression
6973 test in 1.0.18. Fixes ticket#458.
6975 * Fix getopt-related warning on Cygwin.
6977 Xapian-core 1.0.18 (2009-02-14):
6981 * Document: Add new add_boolean_term() method, which is an alias for add_term()
6986 + Add support for quoting boolean terms so they can contain arbitrary
6987 characters (partly addresses ticket#128).
6989 + Add ENCLOSING_MARK and COMBINING_SPACING_MARK categories, plus several
6990 zero-width space characters, as phrase generators. This mirrors a better
6991 fix in 1.1.4, but without losing compatibility with existing databases.
6993 + Fix handling of an explicit AND before a hated term (foo AND -bar).
6996 * TermIterator: Only include trailing '+' or '#' on a term if it isn't followed
6997 by a word character (makes more sense and matches QueryParser's behaviour).
7000 * Database: Fix many methods to behave better on a database with no
7001 subdatabases, such as is constructed by Database(). Fixes ticket#415.
7005 * Add test coverage for xapian-compact, and improve coverage for
7006 WritableDatabase::replace_document().
7008 * apitest: Rename matchfunctor<n> to matchdecider<n> to match current
7013 * When updating documents, don't update posting entries which haven't changed.
7014 Largely fixes ticket #250.
7016 * If the number of entries in the position table happened to be 4294967296 or
7017 an exact multiple, Xapian would ignore positional data for that table when
7018 running queries, and xapian-compact wouldn't copy its contents.
7020 * Iterating all the terms in the database with a prefix is now slightly more
7023 * Fix locking code to work if stdin and/or stdout have been closed.
7025 * If a document is replaced with itself unmodified, we no longer increase the
7026 automatic flush counter.
7028 * When iterating a posting list modified since the last flush(), the reported
7029 wdf is now correct (previously it was too high by its old value).
7031 * Replacing a document deleted since the last flush failed to update the
7032 collection frequency and wdf, and caused an assertion failure when assertions
7035 * WritableDatabase::replace_document() didn't always remove old positional
7036 data (the only effect is that the position table was bloated by unwanted
7041 + New "until" command which shows entries until a specified key is reached.
7043 + New "open" command which allows easy switching between tables.
7045 * xapian-compact: Fix typos in --help output.
7049 * Replacing a document deleted since the last flush failed to update the
7050 collection frequency and wdf, and caused an assertion failure when assertions
7053 * WritableDatabase::replace_document() didn't always remove old positional
7054 data (the only effect is that the position table was bloated by unwanted
7059 * Throw UnimplementedError if a MatchDecider is used with the remote backend.
7060 Previously Xapian returned incorrect results in this case.
7064 * configure: With --enable-maintainer-mode, enable -Werror for GCC >= 4.1
7065 rather than >= 4.0 as Apple's GCC 4.0 gives bogus uninitialised variable
7070 * The API documentation now includes Xapian::Error and subclasses, and doesn't
7071 mention Xapian::Query::Internal.
7073 * Make clear in the Xapian::Document API documentation that this class is a
7074 lazy handle and discuss the issues this can cause.
7076 * INSTALL: Improve text about zlib dependency.
7078 * HACKING: Add details of our licensing policy for accepting patches.
7082 * quest: If no database is specified, still parse the query and report
7083 Query::get_description() to provide an easy way to check how a query parses.
7087 * Fix GCC 4.2 warning.
7089 xapian-core 1.0.17 (2009-11-18):
7095 + Fix handling of a group of two or more terms which are all stopwords which
7096 notably caused issues when default_op was OP_AND, but could probably
7097 manifest in other cases too. Fixes ticket#406.
7099 + Fix interaction of FLAG_PARTIAL and FLAG_SYNONYM. (ticket#407)
7101 * Database: A database created via the default constructor no longer causes a
7102 segfault when the methods get_metadata() or metadata_keys_begin() are called.
7106 * Don't try to close the fd one more than the maximum allowable when locking
7107 the database. Harmless, except it causes a warning when running under
7108 valgrind. (ticket#408)
7112 * Xapian::Sorter isn't supported with the remote backend so throw
7113 UnimplementedError rather than giving incorrect results. (ticket#384)
7115 * Fix potential reading off the end of the MSet which is returned internally
7116 by the remote server.
7120 * Various documentation comment improvements for the Database class.
7124 * examples/quest.cc: Tighten up the type of the error we catch to detect an
7125 unknown stemming language.
7129 * xapian-config: Need to quote ^ for Solaris /bin/sh.
7131 * configure: Actually use any flags we determine are needed to switch the
7132 compiler to proper ANSI C++ mode, when building xapian-core - this stopped
7133 working in 1.0.12, breaking support for HP's aCC, Compaq's cxx, Sun's CC, and
7136 Xapian-core 1.0.16 (2009-09-10):
7140 * Fix a typo which stopped this fix in 1.0.12 from working (ticket #398):
7142 If we fail to get the lock after we spawn the child lock process (the common
7143 case is because the database is already open for writing) then we now clean
7144 up the child process properly.
7148 * Improve API documentation of QueryParser::set_default_op() and
7149 QueryParser::get_default_op().
7153 * Fix build failure on Mac OS X 10.6.
7155 Xapian-core 1.0.15 (2009-08-26):
7159 * Fix the test harness not to report heaps of bogus errors when using valgrind
7164 * Backport the lazy update changes from 1.1.2:
7166 WritableDatabase::replace_document() now updates the database lazily in
7167 simple cases - for example, if you just change a document's values and
7168 replace it with the same docid, then the terms and document data aren't
7169 needlessly rewritten. Caveats: currently we only check if you've looked at
7170 the values/terms/data, not if they've actually been modified, and only keep
7171 track of the last document read.
7173 * Fix PostingIterator::skip_to() on an unflushed WritableDatabase to skip
7174 documents which were added and deleted since the last flush. (ticket#392)
7178 * Overhaul the doxygen options we use and tweak various documentation comments
7179 to improve the generated API documentation.
7181 * Explicitly document that an empty prefix argument to
7182 QueryParser::add_prefix() means "no prefix".
7184 * Update the documentation comments for Enable::set_sort_by_value(),
7185 set_sort_by_value_then_relevance(), and set_sort_by_relevance_then_value() to
7186 mention sortable_serialise() as a good way to store numeric values for
7189 Xapian-core 1.0.14 (2009-07-21):
7193 * When using more than one ValueRangeProcessor, QueryParser didn't reset the
7194 begin and end strings to ignore any changes made by a ValueRangeProcessor
7195 which returned false, so further ValueRangeProcessors would see any changes
7196 it had made. This is now fixed, and test coverage improved.
7200 * The test harness code which launches xapian-tcpsrv child processes was
7201 failing to close a file descriptor for each one launched due to a bug in
7202 the code which is meant to track them. This was causing apitest to fail
7203 on OpenBSD (ticket#382). Also wait between testcases for any spawned
7204 xapian-tcpsrv processes to exit to avoid spurious failures when a database is
7205 reused by the next testcase.
7207 * tests/runtest.in: Use "ulimit -n" where available to limit the number of
7208 available file descriptors to 64 so we catch file descriptor leaks sooner.
7210 * When measuring CPU time used for scalability tests, we no longer try to
7211 include the CPU time used by child processes, as we can only get that for
7212 child processes which have exited and it's hard to ensure that they have
7213 with the current framework. Although this means we only tests the
7214 client-side scaling for remote tests, the local backend tests cover most of
7215 the work done by the server part of the remote backend.
7217 * apitest: In testcase topercent2, don't expect max_attained or max_possible to
7218 be exact as rounding errors in different ways of calculating can cause small
7219 variations. On trunk we already have similar code because the new weighting
7220 scheme stuff gives different bounds in the different cases. This should fix
7221 testsuite failures seen on some of the Debian and Ubuntu buildds.
7223 * The test harness now always reports the full exception message (was
7224 conditional on --verbose), and output for different exception types and
7225 other causes of failure is now more consistent.
7227 * For scalability tests, the test harness now increases the number of
7228 repetitions until the first run takes more than 0.001 seconds, to avoid
7229 trying to base calculations on a length of time we probably can't reliably
7230 measure to start with.
7232 * Add test coverage for Stem::get_description() for each supported language.
7234 * queryparsertest: Reenable tests which require the inmemory backend to be
7235 enabled by fixing typo XAPIAN_HAS_BACKEND_INMEMORY ->
7236 XAPIAN_HAS_INMEMORY_BACKEND.
7240 * Use F_FULLFSYNC where available (Mac OS X currently) to ensure that changes
7241 have been committed to disk. (ticket#288)
7245 * Fix handling of percentage weights in various cases when we're searching
7246 multiple remote databases or a mix of local and remote databases.
7250 * configure: -Wshadow produces false positives with GCC 4.0, so only enable it
7251 for >= 4.1 since we enable -Werror for maintainer-mode builds for GCC >= 4.0.
7253 * configure: Check that we can find the valgrind/memcheck.h header as well as
7254 the valgrind binary.
7256 * Change how snowball generates the data used by its among operation - instead
7257 of using pointers to the strings in struct among, store an offset into a
7258 constant pool, as this reduces the number of relocations by about 2300, which
7259 should decrease the time taken by the dynamic linker when loading the
7260 library. This also reduces the size of the shared library significantly
7261 (on x86-64 Linux, the stripped shared library is 4% smaller).
7263 Xapian-core 1.0.13 (2009-05-23):
7267 * Xapian::Document no longer ever stores empty values explicitly. This
7268 wasn't intentional behaviour, and how this case was handled wasn't
7269 documented. The amended behaviour is consistent with how user metadata
7270 is handled. This change isn't observable using Document::get_value(),
7271 but can be noticed when iterating with Document::values_begin(), using
7272 Document::values_count(), or trying to delete the value with
7273 Document::remove_value().
7277 * Fix testcase scaleweight4 not to fail on x86 when compiled with -O0. The
7278 problem was in the testcase code, and was caused by excess precision in
7279 intermediate FP values.
7281 * Testcases which check that operations have the expected O(...) behaviour now
7282 check CPU time instead of wallclock time on most platforms, which should
7283 eliminate occasional failures due to load spikes from other processes.
7286 * Fix test failures due to SKIP_TEST_FOR_BACKEND("inmemory") not skipping when
7287 it should due to comparing char * strings with == (on trunk the return value
7288 being tested is std::string rather than const char *).
7290 * Improve test coverage in several corner cases.
7292 * Fix testcase consistency2 to actually be run (fortunately it passes).
7294 * In the generated testcases, call get_description() on the default
7295 constructed object of each class to make sure that works (and doesn't try to
7296 dereference NULL, or fail some assertion, etc). All currently checked
7297 classes are fine - this is to avoid future regressions or such problems with
7300 * In the test coverage build, use "--coverage" instead of "-fprofile-arcs
7303 * The test harness now has the inmemory backend flagged as supporting
7304 user-specified metadata (apart from iteration over metadata keys).
7308 * If a query contains a MatchAll subquery, check for it before checking the
7309 other terms so that the loop which checks how many terms match can exit
7310 early if they all match.
7312 * When an OR or ANY_MAYBE decayed to an AND, we were carefully swapping the
7313 children for maximum efficiency, but the condition was reversed so we were
7314 in fact making things worse. This was noticed because it was resulting in
7315 the same query running faster when more results were asked for!
7317 * Only build the termname to termfreq and weight map for the first subdatabase
7318 instead of rebuilding it for each one. Also don't copy this map to return
7319 it. This should speed up searches a little, especially those over multiple
7322 * If a submatcher fails but ErrorHandler tells us to continue without it, we
7323 just use a NULL pointer to stand in rather than allocating a special dummy
7324 place-holder object.
7326 * Remove AndPostList, in favour of MultiAndPostList. AndPostList was only used
7327 as a decay product (by AndMaybePostList and OrPostList), and doesn't appear
7328 to be any faster. Removing it reduces CPU cache pressure, and is less code
7331 * Call check() instead of skip_to() on the optional branch of AND_MAYBE.
7335 * Fix a bug in TermIterator::skip_to() over metadata keys.
7339 * Fix xapian-tcpsrv --interface option to work on MacOS X (ticket#373).
7341 * Fix typo which caused us to return the docid instead of the maximum weight
7342 a document from a remote match could return! This could have led to wrong
7343 results when searching multiple databases with the remote backend, but
7344 probably usually didn't matter as with BM25 the weights are generally small
7345 (often all < 1) while docids are inevitably >= 1.
7349 * The inmemory backend doesn't support iterating over metadata keys. Trying
7350 to do so used to give an empty iteration, but has now been fixed to throw
7351 UnimplementedError (and this limitation has now been documented).
7355 * Remove a lot of unused header inclusions and some unused code which should
7356 make the build faster and slightly smaller.
7358 * Fix to compile under --disable-backend-flint, --disable-backend-remote, and
7359 --disable-backend-inmemory.
7361 * Don't remove any built sources in "make clean" even under
7362 --make-maintainer-mode as that breaks switching a tree away from
7363 maintainer-mode with: make distclean;./configure
7365 * configure: Enable more GCC warnings - "-Woverloaded-virtual" for all
7366 versions, "-Wstrict-null-sentinel" for 4.0+, "-Wlogical-op
7367 -Wmissing-declarations" for 4.3+. Notably "-Wmissing-declarations" caught
7368 that consistency2 wasn't being run.
7370 * Internally, fix the few places where we pass std::string by value to pass
7371 by const reference instead (except where we need a modifiable copy anyway) as
7372 benchmarking shows that const reference is slightly faster and generates
7373 less code with GCC's reference counted std::string implementation - with a
7374 non-reference counted implementation, const reference should be much faster.
7379 * INSTALL: We no longer regularly test build with GCC 2.95.4 and we're raising
7380 the minimum GCC version required to 3.1 for Xapian 1.1.x.
7382 * Document what passing maxitems=0 to Enquire::get_mset() does.
7384 * docs/queryparser.html: Add examples of using a prefix on a phrase or
7387 * Correct doxygen comments for user metadata functions:
7388 Database::get_metadata() can't throw UnimplementedError but
7389 WritableDatabase::set_metadata() can.
7391 * Document that Database::metadata_keys_begin() returns an end iterator if the
7392 backend doesn't support metadata.
7394 * HACKING: Update the list of Debian/Ubuntu packages needed for a development
7399 * Fix build with --enable-debug.
7401 * Added some more assertions.
7403 Xapian-core 1.0.12 (2009-04-19):
7407 * WritableDatabase::remove_spelling() now works properly.
7409 * The QueryParser now treats NON_SPACING_MARK Unicode characters as phrase
7410 generators, which improves handling of Arabic. This is a stop-gap solution
7411 for 1.0.x which will work with existing databases without requiring
7412 reindexing - in 1.1.0, NON_SPACING_MARK will be regarded as part of a word.
7415 * Fix undefined behaviour in distribution of OP_NEAR and OP_PHRASE over a
7416 non-leaf subquery (indentified by valgrind on testcase nearsubqueries1).
7419 * Enhance distribution of OP_NEAR/OP_PHRASE over non-leaf subqueries to work
7420 when there are multiple non-leaf subqueries (ticket#201).
7422 * Enquire::get_mset() no longer needlessly checks if the documents exist.
7424 * PostingIterator::get_description() output improved visually in some cases.
7428 * Add make targets to assist generating a testsuite code coverage report with
7429 lcov. See HACKING for details.
7431 * Improved test coverage in a number of places and removed some used code as
7432 shown by lcov's coverage report.
7438 + Now handles databases which contains no documents but have user metadata
7441 + Fix test for the total document length overflowing.
7443 * Release the database lock if the database is closed due to an unrecoverable
7444 error during modifications. (ticket#354)
7446 * If we fail to get the lock after we spawn the child lock process (the common
7447 case is because the database is already open for writing) then we now clean
7448 up the child process properly.
7452 * Overriding CXXFLAGS at make-time (e.g. "make CXXFLAGS=-Os") no longer
7453 overrides any flags configure detected to be required to make the compiler
7454 accept ISO C++ (for GCC, no such flags are required, so this doesn't
7459 * Update documentation and code comments to reflect that 1.1 will be a
7460 development series, and 1.2 the next release series.
7462 * docs/admin_notes.html: Document the child process used for locking which
7463 exec-s "cat" (ticket #258).
7465 * include/xapian/unicode.h: Fix documentation comment typos.
7467 * include/xapian/matchspy.h: Removed currently unused header to stop doxygen
7468 from generating documentation for it.
7470 Xapian-core 1.0.11 (2009-03-15):
7474 * Enquire::get_mset():
7476 + Now throws UnimplementedError if there's a percentage cutoff and sorting is
7477 primarily by value - this has never been correctly supported and it's
7478 better to warn people than give incorrect results.
7480 + No longer needlessly copies the results internally.
7482 + When searching multiple databases, now recalculates the maximum attainable
7483 weight after each database which may allow it to terminate earlier.
7486 + Fix inconsistent percentage scores when sorting primarily by value, except
7487 when a MatchDecider is also being used; document this remaining problem
7490 * Enquire::set_sort_by_value() (and similar methods): Rename the wrongly named
7491 "ascending" parameter to "reverse", and note that its value should always be
7492 explicitly given since defaulting to "reverse=true" is confusing and the
7493 default will be deprecated in 1.1.0. (ticket#311)
7495 * Database::allterms_begin(): Fix memory leak when iterating all terms from
7496 more than one database.
7498 * Query::get_terms_begin(): Don't return "" from the TermIterator (happened
7499 when the query contained or was Query::MatchAll).
7501 * Add QueryParser::FLAG_DEFAULT to make it easier to add flags to those set by
7506 * The testsuite now reports problems detected by valgrind with newer valgrind
7507 versions. Drop support for running the testsuite under valgrind < 3.3.0
7508 (well over a year old) as this greatly simplifies the configure tests.
7510 * Fix usage message for options which take arguments in --help output from test
7511 programs - "-x=foo" doesn't work, the correct syntax is "-x foo".
7513 * If comparing MSet percentages fails, report the differing percentages if in
7516 * Add test that backends don't truncate total document length to 32 bits.
7518 * Disable lockfileumask1 (regression testcase added in 1.0.10) on Cygwin and on
7523 * The configure test for pread() and pwrite() got accidentally disabled in
7524 0.8.4 and we've always been using llseek() followed by read() or write()
7525 since then. The configure test is now fixed, and gives a slight speedup
7526 (3% measured for searching).
7528 * The child process used to implement WritableDatabase locking now changes
7529 directory to / so that it doesn't block unmounting of any partitions and
7530 closes any open file descriptors which aren't relating to locking so that
7531 if those files are closed by our parent and deleted the disk space gets
7532 released right away.
7534 * We now reuse the same zlib zstream structures rather than using a fresh
7535 one for each operation. This doesn't make a measurable difference in
7536 our own tests on Linux but reportedly is measurably faster on some
7537 systems. (ticket #325)
7541 * The pread()/pwrite() fix also speeds up quartz.
7545 * Avoid copying Query::Internal objects needlessly when unserialising Query
7550 * Store the (non-normalised) document lengths as Xapian::termcount (unsigned
7551 int) rather than Xapian::doclength (double) which saves 4 bytes per document.
7555 * configure: The output of g++ --version changed format (again) with GCC 4.3
7556 which meant configure got "g++" for the version. Instead use the (hopefully)
7557 more robust technique of using g++ -E to pull out __GNUC__ and
7562 * API documentation:
7564 + WritableDatabase::flush() can't throw DatabaseLockError.
7566 + WritableDatabase's constructor can throw at least DatabaseCorruptError or
7569 + Document how to get all matches from Enquire::get_mset().
7571 + Other minor improvements.
7573 * docs/sorting.html: Clarify meaning.
7577 * Fix "#line" directives in generated file queryparser/queryparser_internal.cc
7578 to give a relative path - previously they had a full path when generated by a
7579 VPATH build (as release tarballs are), and this confused GCC 2.95 and
7582 * Fix for compiling with Sun's compiler (untested as we no longer have access
7585 Xapian-core 1.0.10 (2008-12-23):
7589 * Composing an OP_NEAR query with two non-term subqueries now throws
7590 UnimplementedError instead of AssertionError (in a --enable-assertions build)
7591 or leading to unexpected results (otherwise). This partly addresses bug#201.
7593 * Using a MultiValueSorter with no values set no longer causes a hang or
7594 segmentation fault (but it is still rather pointless!)
7598 * If we're using values for sorting and for another purpose, cache the
7599 Document::Internal object created to get the value for sorting, like we do
7604 * If the disk became full while flushing database changes to disk, the
7605 WritableDatabase object would throw a DatabaseError exception but be left in
7606 an inconsistent state such that further use could lead to the database on
7607 disk ending up in a "corrupt" state (theoretically fixable, but no tool
7608 to fix such a database exists). Now we try to ensure that the object is
7609 left in a consistent state, but if doing so throws a further exception, we
7610 put the WritableDatabase object in a "closed" state such that further
7611 attempts to use it throw an exception.
7613 * Create the lockfile "flintlock" with permissions 0666 so that the umask is
7614 honoured just like we do for the other files (previously we used 0600).
7615 Previously it wasn't possible to lock a database for update if it was
7616 owned by another user, even if you otherwise had sufficient permissions via
7619 * Fix garbled exception message when a base file can't be reread.
7623 * Fix garbled exception message when a base file can't be reread.
7627 * xapian-tcpsrv and xapian-progsrv now accept -w as a short form of --writable,
7628 as was always intended.
7632 * This release now uses newer versions of the autotools (autoconf 2.62 ->
7633 2.63; automake 1.10.1 -> 1.10.2).
7637 * INSTALL: Add new paragraphs about HP's aCC and IRIX (adapted from footnotes
7640 * PLATFORMS: HP testdrive has been shut down, so all mark all those machines as
7641 "no longer available". Update atreus' build report to 1.0.10.
7643 * docs/queryparser.html: Add link to valueranges.html.
7647 * delve: Add missing "and" to --help output. Report termfreq and collection
7648 freq for each term we're asked about.
7652 * Fix to build with GCC 4.4 snapshot.
7654 Xapian-core 1.0.9 (2008-10-31):
7658 * Database::get_spelling_suggestion() is now faster (15% speed up for parsing
7659 queries with FLAG_SPELLING_CORRECTION set in a test on real world data).
7661 * Fix OP_ELITE_SET segmentation fault due to excess floating point precision
7662 on x86 Linux (and possibly other platforms).
7664 * Database::allterms_begin() over multiple databases now gives a TermIterator
7665 with operations O(log(n)) rather than potentially O(n) in the number of
7668 * Add new Database methods metadata_keys_begin() and metadata_keys_end() to
7669 allow the complete list of metadata in a database to be retrieved (this
7670 API addition is needed so that copydatabase can copy database metadata).
7674 * Remove the cached test databases before running the testsuite.
7676 * apitest: Fix cursordelbug1 to work on Microsoft Windows (bug#301).
7678 * apitest,queryparsertest: Skip tests which fail because the timer granularity
7679 is too coarse to measure how long the test took. In practice, this is only
7680 an issue on Microsoft Windows (bug#300 and bug#308).
7684 * Adjust percent cutoff calculations in the matcher in a way which corresponds
7685 to the change to percentage calculations made in 1.0.7 to allow for excess
7688 * Query::MatchAll no longer gives match results ranked by increasing document
7693 * xapian-compact: Fix crash while compacting spelling table for a single
7694 database when built with MSVC, and probably other platforms, though Linux
7695 got lucky and happened to work (bug#305).
7699 * configure: Disable -Wconversion for now - it's not useful for older GCC and
7700 is buggy in GCC 4.3.
7702 * configure: Set -Wstrict-overflow to 1 instead of 5, to avoid unreasonable
7703 warnings under GCC 4.3.
7707 * Minor improvements to API documentation, including documenting the
7708 XAPIAN_FLUSH_THRESHOLD environmental variable in WriteableDatabase::flush()
7711 * valueranges.html: Fix typos in example code, and drop superfluous empty
7712 destructor from ValueRangeProcessor subclass.
7714 * HACKING: Several improvements.
7718 * copydatabase: Also copy user metadata.
7720 Xapian-core 1.0.8 (2008-09-04):
7724 * Fix output of RSet::get_description
7728 * Report subtotals per backend, rather than per testgroup per backend to make
7729 the output easier to read.
7733 * Fix WritableDatabase::add_document() and replace_document() not to be O(n*n)
7734 in the number of values in the new document.
7736 * Fix handling of a table created lazily after the database has had commits,
7737 and which is then cursored while still in sequential mode.
7739 * Fix failure to remove all the Btree entries in some cases when all the
7740 postings for a term are removed. (bug#287)
7742 * xapian-inspect: Show the help message on start-up. Correct the documented
7743 alias for next from ' ' to ''. Avoid reading outside of input string when it
7748 * Backport fix from flint for WritableDatabase::add_document() and
7749 replace_document() not to be O(n*n) in the number of values in the new
7754 * configure: Report bug report URL in --help output.
7756 * xapian-config: Report bug report URL in --help output.
7758 * configure: Fix deprecation error for --enable-debug=full to say to instead
7759 use '--enable-assertions --enable-log' not '--enable-debug --enable-log'.
7763 * valueranges.html: Expand on some sections.
7767 * quest: Fix to catch QueryParserError instead of const char * which
7768 QueryParser threw in Xapian < 1.0.0.
7770 * copydatabase: Use C++ forms of C headers. Only treat '\' as a directory
7771 separator on platforms where it is. Update counter every 13 counting up to
7772 the end so that the digits all "rotate" and the counter ends up on the exact
7777 * Eliminate literal top-bit-set characters in testsuite source code.
7779 Xapian-core 1.0.7 (2008-07-15):
7783 * OP_VALUE_RANGE, OP_VALUE_GE, and OP_VALUE_LE:
7785 + If there were gaps in the document id numbering, these operators could
7786 return document ids which weren't present in the database. This has been
7789 + These operators are now more efficient when there are a lot of "missing"
7790 document ids (bug#270).
7792 + Optimise Query(OP_VALUE_GE, <n>, "") to Query::MatchAll.
7794 * Xapian::QueryParser:
7796 + QueryParser now stops parsing immediately when it hits a syntax error.
7797 This doesn't change behaviour, but does mean failing to parse queries is
7800 + Cases of O(N*N) behaviour have been fixed.
7802 * Xapian::Stem now recognises "nl" as an alias for "dutch" (debian bug 484458).
7804 * Setting sort by value was being ignored by a Xapian::Enquire object which had
7805 previously had a Xapian::Sorter set (bug#256).
7809 * Improved test coverage in a few places.
7813 * When using a MatchDecider, we weren't reducing matches_lower_bound unless
7814 all the potential results were retrieved, which led to the lower bound
7815 being too high in some such cases.
7817 * We now track how many documents were tested by a MatchDecider and how many
7818 of those it rejected, and set matches_estimated based on this rate. Also,
7819 matches_upper_bound is reduced by the number of rejected documents.
7821 * Fixed matches_upper_bound in some cases when collapsing and using a
7824 * Fixed matches_lower_bound when collapsing and using a percentage cutoff.
7826 * When using two or more of a MatchDecider, collapsing, or a percentage
7827 cutoff, we now only round the scaled estimate once, and we also round it to
7828 the nearest rather than always rounding down. Hopefully this should
7829 improve the estimate a little in such cases.
7831 * Fix problem on x86 with the top match getting 99% rather than 100% (caused
7832 by excess precision in an intermediate value).
7836 * If Database::reopen() is called and the database revision on disk hasn't
7837 changed, then do as little work as possible. Even if it has changed, don't
7838 bother to recheck the version file (bug#261).
7842 + Fix check for user metadata key to not match other key types we may add in
7843 the future. When compacting, we can't assume how we should handle them.
7845 + If the same user metadata key is present in more than one source database
7846 with different tag values, issue a warning and copy an arbitrary tag value.
7848 + Fix potential SEGV when compacting database(s) with user metadata but no
7851 + In error message, refer to "iamflint" as the "version file", not the
7856 + Print top-bit-set characters as escaped hex forms as they often won't be
7857 valid UTF-8 sequences.
7859 + If we're passed a database directory rather than a single table, issue a
7860 special error message since this is an obvious mistake for users to make.
7862 * Fix cursor handling for a modified table which has previously only had
7863 sequential updates which usually manifested as zlib errors (bug#259).
7867 * Fix cursor handling for a modified table which has previously only had
7868 sequential updates which usually manifested as incorrect data being returned
7871 * Calling skip_to() as the first operation on an all-documents PostingIterator
7872 now works correctly.
7876 * Improve performance of matches with multiple databases at least one of which
7877 is remote, and when the top hit is from a remote database (bug#279).
7879 * When remote protocol version doesn't match, the error message displayed
7880 now shows the minor version number supplied by the server correctly.
7882 * We now wait for the connection to close after sending MSG_SHUTDOWN for a
7883 WritableDatabase, which ensures that changes have been written to disk
7884 and the lock released before the WritableDatabase destructor returns
7885 (as is the case with a local database).
7887 * We no longer ever send MSG_SHUTDOWN for a read-only Database - just closing
7888 the connection is enough (and is protocol compatible).
7892 * Fix bug which resulted in the values not being stored correctly when
7893 replacing an existing document, or if there are gaps in the document id
7898 * This release now uses newer versions of the autotools (autoconf 2.61 ->
7899 2.62; automake 1.10 -> 1.10.1; libtool 1.5.24 -> 1.5.26). The newer
7900 autoconf reportedly results in a faster configure script, and warns about
7901 use of unrecognised configure options.
7903 * Fix configure to recognise --enable-log=profile and fix build problems when
7906 * "make up" in the "tests" subdirectory now does "make" in the top-level.
7908 * Fix "make distcheck" by using dist-hook to install generated files from
7909 either srcdir or builddir, with the appropriate dependency to generate them
7910 automatically in maintainer mode builds.
7914 * intro_ir.html: Improve wording a bit.
7916 * The documentation now links to trac instead of bugzilla. For links to the
7917 main website, we now prefer xapian.org to www.xapian.org.
7919 * Doxygen-generated API documentation:
7921 + Improved documentation in several places.
7923 + The helper macro XAPIAN_VISIBILITY_DEFAULT no longer appears in the output.
7925 + Header and directory relationship graphs are no longer generated as they
7926 aren't actually informative here.
7928 * HACKING: Numerous updates and improvements.
7932 * quest: Output get_description() of the parsed query.
7936 * Fix build with GCC 2.95.3.
7938 * Fix build with GCC 4.3.
7940 * Newer libtool features improved support for Mac OS X Leopard and added
7941 support for AIX 6.1.
7945 * Database::get_spelling_suggestion() now debug logs with category APICALL
7946 rather than SPELLING, for consistency with all other API methods.
7948 * Added APICALL logging to a few Database methods which didn't have it.
7950 * Remove debug log tracing from get_description() methods since logging for
7951 other methods calls get_description() methods on parameters, so logging these
7952 calls just makes for more confusing debug logs. A get_description() method
7953 should have no side-effects so it's not very interesting even when explicitly
7956 Xapian-core 1.0.6 (2008-03-17):
7960 * Add new query operators OP_VALUE_LE and OP_VALUE_GE which perform "single
7961 ended" range checks, and a corresponding new Query constructor.
7963 * Add Unicode::toupper() to complement Unicode::tolower().
7965 * Xapian::Stem has been further optimised - stemtest now runs ~2.5% faster.
7969 * tests/runtest: Fixed to handle test programs with a ".exe" extension.
7971 * tests/queryparsertest: Add a couple more testcases which already work to
7972 improve test coverage.
7974 * tests/apitest: Add caseconvert1 testcase to test Unicode::tolower() and
7979 * xapian-check: Fix not to report an error for a database containing no
7980 postings but some user metadata.
7982 * Update the base files atomically to avoid problems with reading processes
7983 finding partially written ones.
7985 * Create lazy tables with the correct revision to avoid producing a database
7986 which we later report as "corrupt" (bug#232).
7988 * xapian-compact: Fix compaction for databases which contain user metadata
7993 * Update the base files atomically to avoid problems with reading processes
7994 finding partially written ones.
7998 * The addition of OP_VALUE_LE and OP_VALUE_GE required an update to the Query
7999 serialisation, which required a minor remote protocol version bump.
8001 * Fix to actually set the writing half as the connection as non-blocking when
8002 a timeout is specified. This would have prevented timeouts from operating
8003 correctly in some situations.
8007 * configure: GCC warning flag overhaul: Stop passing "-Wno-multichar" since
8008 any multi-character character literal is bound to be a typo (I believe we
8009 were only passing it after misinterpreting its sense!) Pass
8010 "-Wformat-security", and "-Wconversion" for all GCC versions. Add
8011 "-Winit-self" and "-Wstrict-overflow=5" for GCC >= 4.2. The latter might
8012 prove too aggressive, but seems reasonable so far. Fix some minor niggles
8013 revealed by "-Wconversion" and "-Wstrict-overflow=5".
8015 * Add XAPIAN_NORETURN() annotations to functions and non-virtual methods which
8020 * docs/intro_ir.html: Briefly mention how pure boolean retrieval is supported.
8022 * docs/valueranges.html: Fix example of using multiple VRPs to come out as a
8025 * include/xapian/queryparser.h: Fix incorrect example in doccomment.
8027 * docs/quickstart.html: Remove information covered by INSTALL since
8028 there's no good reason to repeat it and two copies just risks one
8029 getting out of date (as has happened here!)
8031 * docs/quickstart.html: Fix very out of date reference to MSet::items
8034 * PLATFORMS: Remove reports for 0.8.x as they're too old to be interesting.
8035 Separate out 0.9.x reports. Add Solaris 9 and 10 success reports from James
8036 Aylett. Update from Debian buildd logs.
8040 * Now builds on OS/2, thanks to a patch by Yuri Dario.
8042 * Fix testsuite to build on mingw (broken by changes in 1.0.5).
8046 * Fix --enable-assertions build, broken by changes in 1.0.5.
8048 Xapian-core 1.0.5 (2007-12-21):
8052 * More sophisticated sorting of results is now possible by defining a
8053 functor subclassing Xapian::Sorter (bug#100).
8055 * Xapian::Enquire now provides a public copy constructor and assignment
8058 * Xapian::Document::values_begin() didn't ensure that values had been read
8059 when working on a Document read from a database. However, values_end() did
8060 (and so did values_count()) so this wasn't generally a problem in practice.
8062 * Xapian::PostingIterator::skip_to() now works correctly when running over
8065 * Xapian::Database::postlist_begin() no longer adds a "MultiPostList" wrapper
8066 for the common case when there's only one subdatabase.
8068 * Xapian::TradWeight now avoids division by zero in the (rare) situation of the
8069 average document length being zero (which can only happen if all documents
8070 are empty or only have terms with wdf 0).
8072 * Calling Xapian::WritableDatabase methods when we don't have exactly one
8073 subdatabase now throws InvalidOperationError.
8079 + Testcases now describe the conditions they need to run, and are
8080 automatically collated by a Perl script. This makes it significantly
8081 easier to add a new testcase.
8083 + The test harness's "BackendManager" has been overhauled to allow
8084 cleaner implementations of testcases which are currently hard to
8085 write cleanly, and to make it easier to add new backend settings.
8087 + Add a "multi" backend setting which runs suitable tests over two
8088 subdatabases combined. There's a corresponding new make target
8091 + Add more feature tests of document values.
8093 + sortrel1 now runs for inmemory too.
8095 + Add simple feature test for TradWeight being used to run a query.
8097 + Fix spell3 to work on Microsoft Windows (bug#177).
8099 + API classes are now tested to check they have copy constructors and
8100 assignment operators, and also that most have a default constructor.
8102 + quartztest testcases adddoc2 and adddoc3 have been reworked as apitest
8103 testcases adddoc5 and adddoc6, which run for other backends.
8105 + stubdb1 now explicitly creates the database it needs - generally this
8106 bug didn't manifest because an earlier test has already created it.
8108 * queryparsertest: Add feature tests to check that ':' is being inserted
8109 between prefix and term when it should be.
8111 * Fix extracting of valgrind error messages in the test harness.
8113 * tests/valgrind.supp: Add more variants of the zlib suppressions.
8117 * Xapian::Enquire: When the "first" parameter to get_mset() is non-zero, avoid
8118 copying all the wanted items after performing the match.
8120 * Fix bug in handling a pure boolean match over more than one database under
8121 set_docid_order(ASCENDING) - we used to exit early which isn't correct.
8123 * When collapsing on a value, give a better lower bound on the number of
8124 matches by keeping track of the number of empty collapse values seen.
8126 * Xapian::BM25Weight: Fix bug when k2 is non-zero: a non-initialised value
8127 influenced the weight calculations. By default k2 is zero, so this bug
8128 probably won't have affected most users.
8130 * The mechanism used to collate term statistics across multiple databases has
8131 been greatly simplified (bug#45).
8137 + Update to handle flint databases produced by Xapian 1.0.3 and later.
8139 + Fix not to go into an infinite loop if certain checks fail.
8143 * quartzcompact: Fix equality testing of C strings to use strcmp() rather than
8144 '=='! In practice, using '==' often gives the desired effect due to pooling
8145 of constant strings, but this may have resulted in a bug on some platforms.
8149 * If we're doing a match with only one database which is remote then just
8150 return the unserialised MSet from the remote match. This requires an
8151 update to the MSet serialisation, which requires a minor remote protocol
8156 * XO_LIB_XAPIAN now hooks LT_INIT as well as AC_PROG_LIBTOOL and
8159 * Distribute preautoreconf, dir_contents, docs/dir_contents and
8162 * Fix preautoreconf to correctly handle all the sources passed to doxygen to
8163 create the collated internal source documentation, and to work in a VPATH
8168 * sorting.html: New document on the topic of sorting match results.
8170 * HACKING,admin_notes.html,bm25.html,glossary.html,intro_ir.html,overview.html,
8171 quickstart.html,scalability.html,termgenerator,html,synonyms.html: Assorted
8174 * valueranges.html: State explicitly that Xapian::sortable_serialise() is used
8175 to encode values at index time, and give an example of how it is called.
8177 * API documentation:
8179 + Clarify get_wdf() versus get_termfreq().
8181 + We now use pngcrush to reduce the size of PNG files in the HTML version.
8183 + The HTML version no longer includes various intermediate files which doxygen
8186 + Hide the v102 namespace from Doxygen as it isn't user visible.
8188 + Stop describing get_description() as an "Introspection method", as this
8189 doesn't help to explain what it does, and get_description() doesn't really
8190 fall under common formal definitions of "introspection".
8192 * index.html: Add a list of documents on particular topics and include links to
8193 previously unlinked-to documents. Weed down the top navigation bar which had
8194 grown to unwieldy length.
8196 * PLATFORMS: Update for Debian buildds.
8198 * Improve documentation comment for Document::termlist_count().
8200 * admin_notes.html: Note that this document is up-to-date for 1.0.5.
8202 * INSTALL: zlib 1.2.0 apparently fixes a memory leak in deflateInit2(), which
8203 we use, so that's another reason to prefer 1.2.x.
8207 * Add explicit includes of C headers needed to build with the latest snapshots
8208 of GCC 4.3. Fix new warnings.
8210 * xapian-config: On platforms which we know don't need explicit dependencies,
8211 --ltlibs now gives the same output as --libs.
8213 * The minimum supported GCC version is now 2.95.3 (rather than 2.95) as 2.95.3
8214 added support for '#include <sstream>' which means we no longer need to
8215 maintain our own version.
8217 * Fix build with SGI's compiler on IRIX.
8219 * Fix or suppress some MSVC warnings.
8223 * Remove incorrect assertion in MultiAndPostList (bug#209).
8225 * Fix build when configured with "--enable-log --disable-assertions".
8227 Xapian-core 1.0.4 (2007-10-30):
8233 + Add OP_SCALE_WEIGHT operator (and a corresponding constructor which
8234 takes a single subquery and a parameter of type "double"). This
8235 multiplies the weights from the subquery by the parameter, allowing
8236 adjustment of the importance of parts of the query tree.
8238 + Deprecate the essentially useless constructor Query(Query::op, Query).
8242 + A field prefix can now be set to expand to more than one term prefix.
8243 Similarly, multiple term prefixes can now be applied by default. This is
8244 done by calling QueryParser::add_boolean_prefix() or
8245 QueryParser::add_prefix() more than once with the same field name but a
8246 different term prefix (previously subsequent calls with the same field name
8249 + Trying to set the same field as probabilistic and boolean now throws
8250 InvalidOperationError.
8252 + Fix parsing of `term1 site:example.org term2', broken by changes in 1.0.2.
8254 + Drop special treatment for unmatched ')' at the start of the query, as it
8255 seems rather arbitrary and not particularly useful and was causing us to
8256 parse `(site:example.org) -term' incorrectly.
8258 + The QueryParser now generates pure boolean Query objects for strings such
8259 as `site:example.org' by applying OP_SCALE_WEIGHT with a factor of 0.0.
8261 + Fix handling of `"quoted phrase" +term' and `"quoted phrase" -term'.
8263 + Fix handling of `site:example.org -term'.
8265 + Fix problem with spelling correction of hyphenated terms (or other terms
8266 joined with phrase generators): the position of the start of the term
8267 wasn't being reset for the second term in the generated phrase, resulting
8268 in out of bounds errors when substituting the new value in the corrected
8271 + The parser stack is now a std::vector<> rather than a fixed size, so it
8272 will typically use less memory, and can't hit the fixed limit.
8274 + Fix handling of STEM_ALL and update the documentation comment for
8275 QueryParser::set_stemming_strategy() to explain how it works clearly.
8277 * PostingIterator: positionlist_begin() and get_wdf() should now always
8278 throw InvalidOperationError where they aren't meaningful (before in some
8279 cases UnimplementedError was thrown).
8283 * Add tests for new features.
8285 * Add another valgrind suppression for a slightly different error from zlib
8288 * Remove quartztest's test_postlist1 and test_postlist2, replacing the coverage
8289 lost by extending and adding tests which work with other backends as well.
8291 * If a test throws a subclass of std::exception, the test harness now
8292 reports the class name and the extra information returned by std::exception's
8297 * Several performance improvements have been made, mainly to the handling
8298 of OP_AND and related operations (OP_FILTER, OP_NEAR, and OP_PHRASE).
8299 In combination, these are likely to speed up searching significantly
8300 for most users - in tests on real world data we've seen savings of 15-55%
8301 in search times). These improvements are:
8303 + OP_AND of 3 or more sub-queries is now processed more efficiently.
8305 + Sub-queries from adjacent OP_AND, OP_FILTER, OP_NEAR, and OP_PHRASE are now
8306 combined into a single multi-way OP_AND operation, and the filters which
8307 implement the near/phrase restrictions are hoisted above this so they need
8308 to check fewer documents (bug#23).
8310 + If an OP_OR or OP_AND_MAYBE decays to OP_AND, we now ensure that the less
8311 frequent sub-query is on the left, which OP_AND is optimised to expect.
8313 * When the Enquire::get_mset() parameter checkatleast is set, and we're sorting
8314 by relevance with forward ordering by docid, and the query is pure boolean,
8315 the matcher was deciding it was done before the checkatleast requirement was
8316 satisfied. Then the adjustments made to the estimated and max statistics
8317 based on checkatleast meant the results claimed there were exactly msize
8318 results. This bug has now been fixed.
8320 * Queries involving an OP_VALUE_RANGE filter now run around 3.5 times faster
8323 * The calculations behind MSet::get_matches_estimated() were always rounding
8324 down fractions, but now round to the nearest integer. Due to cumulative
8325 rounding, this could mean that the estimate is now a few documents higher in
8326 some cases (and hopefully a better estimate).
8328 * Implement explicit swap() methods for internal classes MSetItem and ESetItem
8329 which should make the final sort of the MSet and ESet a little more
8334 * Fixed a bug introduced in 1.0.3 - trying to open a flint database for reading
8335 no longer fails if it isn't writable.
8337 * We no longer use member function pointers in the Btree implementation which
8338 seems to speed up searching a little.
8342 * The remote protocol minor version has been increased (to accommodate
8343 OP_SCALE_WEIGHT). If you are upgrading a live system which uses the
8344 remote backend, upgrade the servers before the clients.
8348 * Added macro machinery to allow branch prediction hints to be specified and
8349 used by compilers which support this (current GCC and Intel C++).
8351 * In a developer build, look for rst2html.py if rst2html isn't found as some
8352 Linux distros have it installed under with an extension.
8356 * In the API documentation, explicitly note that Database::get_metadata()
8357 returns an empty string when the backend doesn't support user-specified
8358 metadata, and that WritableDatabase::set_metadata() throws UnimplementedError
8359 in this case. Also describe the current behaviour with multidatabases.
8361 * README: Remove the ancient history lesson - this material is better left to
8362 the history page on the website.
8366 + Deprecate the non-pythonic iterators in favour of the pythonic ones.
8368 + Move "Stem::stem_word(word)" in the bindings to the right section (it was
8369 done in 1.0.0, as already indicated).
8371 + Improve formatting.
8373 * When running rst2html, using "--verbose" was causing "info" messages to be
8374 included in the HTML output, so drop this option and really fix this issue
8375 (which was thought to have been fixed by changes in 1.0.3).
8377 * install.html: Reworked - this document now concentrates on giving
8378 a brief overview of building which should be suitable for most common cases,
8379 and defers to the INSTALL document in each tarball for more details.
8381 * PLATFORMS: Update from tinderbox and buildbot.
8383 * remote.html: xapian-tcpsrv has been able to handle concurrent read
8384 access since 0.3.1 (7 years ago) so update the very out-of-date information
8385 here. Also, note that some newer features aren't supported by the remote
8388 * HACKING: Note specifically that std::list::size() is O(n) for GCC.
8390 * intro_ir.html: Add link to the forthcoming book "Introduction to
8391 Information Retrieval", which can be read online.
8393 * scalability.html: Update size of gmane.
8395 * quartzdesign.html: Note that Quartz is now deprecated.
8399 * The debug assertion code has been rewritten from scratch to be cleaner and
8400 pull in fewer other headers.
8402 Xapian-core 1.0.3 (2007-09-28):
8406 * Add support for user specified metadata (bug#143). Currently supported by
8407 the flint and inmemory backends.
8409 * Deprecate Enquire::register_match_decider() which has always been a no-op.
8411 * Improve the lower bound on the number of matching documents for an AND query
8412 - if the sum of the lower bounds for the two sides is greater than the
8413 number of documents in the database, then some of them must have both terms.
8415 * Spelling correction: Fix off-by-one error in loop bounds when initialising
8418 * If the check_at_least parameter to Enquire::get_mset() is used, but there
8419 aren't that many results, then MSet::get_matches_lower_bound() and
8420 MSet::get_matches_upper_bound() weren't always reported as equal - this
8423 * When sorting by value, and using the check_at_least parameter to
8424 Enquire::get_mset(), some potential matches weren't being counted.
8426 * Failing to create a flint or quartz database because we couldn't create the
8427 directory for it now throws DatabaseCreateError not DatabaseOpeningError.
8431 * Fix display of valgrind output when a test fails because valgrind detected
8434 * Add another version of valgrind suppression for the zlib end condition check
8435 as this gives a different backtrace for zlib in Ubuntu gutsy.
8439 * The Flint database format has been extended to support user metadata, and
8440 each termlist entry is now a byte shorter (before compression). As a
8441 result, Xapian 1.0.2 and earlier won't be able to read Xapian 1.0.3
8442 databases. However, Xapian 1.0.3 can read older databases. If you open an
8443 older flint database for writing with Xapian 1.0.3, it will be upgraded
8444 such that it cannot then be read by Xapian 1.0.2 and earlier.
8446 * Zlib compression wasn't being used for the spelling or synonym tables (due
8447 to a typo - Z_DEFAULT_COMPRESSION where it should be Z_DEFAULT_STRATEGY).
8449 * xapian-check: Allow "db/record." and "db/record.DB" as arguments.
8451 * Fix "key too long" exception message by substituting FLINT_BTREE_MAX_KEY_LEN
8452 with its numeric value.
8454 * Assorted minor efficiency improvements.
8456 * If we reach the flush threshold during a transaction, we now write out the
8457 postlist changes, but don't actually commit them.
8459 * Check length of new terms is at most 245 bytes for flint in add_document()
8460 and replace_document() so that the API user gets an error there rather
8461 than when flush() is called (explicitly or implicitly). Fixes bug#44.
8463 * Flint used to read the value of the environmental variable
8464 XAPIAN_FLUSH_THRESHOLD when the first WritableDatabase was opened and would
8465 then cache this value. However the program using Xapian may have changed
8466 it, so we now reread it each time a WritableDatabase is opened.
8468 * Implement TermIterator::positionlist_count() for the flint backend.
8472 * Fix the result of MSet::get_matches_lower_bound() when using the
8473 check_at_least parameter to get_mset().
8477 * Implement TermIterator::positionlist_count() for the inmemory backend.
8481 * xapian-config: We always need to include dependency_libs in the output of
8482 `xapian-config --libs` if shared libraries are disabled.
8484 * Distribution tarballs are now in the POSIX "ustar" format. This supports
8485 pathnames longer than 99 characters (which we now have a few instances of
8486 in the doxygen generated documentation) and also results in a distribution
8487 tarball that is about half the size! This format should be readable by any
8488 tar program in current use - if your tar program doesn't support it, we'd
8489 like to know (but note that the GNU tar tarball is smaller than the size
8490 reduction in the xapian-core tarball...)
8492 * configure no longer generates msvc/version.h - this is now entirely handled
8493 by the MSVC-specific makefiles.
8499 * docs/stemming.html: Reorder the initial paragraphs so we actually answer the
8500 question "What is a stemming algorithm?" up front.
8502 * When running rst2html, use "--exit-status=warning" rather than "--strict".
8503 The former actually gives a non-zero exit status for a warning or worse,
8504 while the former doesn't, but does include any "info" messages in the output
8507 * docs/deprecation.rst: Add "Database::positionlist_begin() throwing
8508 RangeError and DocNotFoundError".
8510 * valueranges.rst: Correct out-of-date reference to float_to_string.
8512 * HACKING: Document a few more "coding standards".
8514 * PLATFORMS: Updated.
8516 * docs/overview.html: Restore HTML header accidentally deleted in November
8519 * Fix several typos.
8523 * Add missing instances of "#include <string.h>" to fix compilation with recent
8526 * Fix some warnings for various compilers and platforms.
8528 Xapian-core 1.0.2 (2007-07-05):
8532 * Xapian now offers spelling correction, based on a dynamically maintained
8533 list of spelling "target" words. This is currently supported by the
8534 flint backend, and works when searching multiple databases.
8536 * Xapian now offers search-time synonym expansion, based on an externally
8537 provided synonym dictionary. This is currently supported by the flint
8538 backend, and works when searching multiple databases.
8540 * TermGenerator: now offers support for generating spelling correction
8545 + New flag FLAG_SPELLING_CORRECTION to enable spelling correction, and a new
8546 method, "get_corrected_query_string()" to get the spelling corrected
8549 + New flags have been added to allow the new synonym expansion feature to be
8550 enabled and controlled. Synonym expansion can either be automatic, or only
8551 for terms explicitly indicated in the query string by the new "~" operator.
8553 + The precedence of the boolean operators has been adjusted to match their
8554 usual precedence in mathematics and programming languages. "NOT" now binds
8555 as tightly as "AND" (previously "AND NOT" would bind like "AND", but just
8556 "NOT" would bind like "OR"!) Also "XOR" now binds more tightly than "OR",
8557 but less tightly than "AND" (previously it bound just like "OR").
8559 + '+' and '-' have been fixed to work on bracketed subexpressions as
8562 + If the stemmer is "none", no longer put a Z prefix on terms; this now
8563 matches the output of TermGenerator.
8565 * Add new Xapian::sortable_serialise() and Xapian::sortable_unserialise()
8566 functions which serialise and unserialise numbers (currently only
8567 doubles) to a string representation which sorts in numeric order. Small
8568 integers have a short representation.
8570 * NumberValueRangeProcessor has been changed to work usefully. Previously
8571 the numbers had to be the same length; now numbers are serialised to
8572 strings such that a string sort on the string orders the numbers correctly.
8573 Negative and floating point numbers are also supported now. The old
8574 NumberValueRangeProcessor is still present in the library to preserve
8575 ABI compatibility, but code linking against 1.0.2 or later will pick
8576 up the new implementation, which really lives in a sub-namespace.
8578 * Documents now have a get_docid() method, to get the document ID from the
8579 database they came from.
8581 * Add support for a new type of match decider, called a "matchspy". Unlike
8582 the old deciders, this will reliably be tested on every candidate
8583 document, so can be used to tally statistics on them.
8585 * Fixed a segfault when getting a description for a MatchNothing query
8586 joined with AND_NOT (bug #176).
8588 * Header files have been tidied up to remove some unnecessary includes.
8589 Applications using "#include <xapian.h>" will not be affected. We don't
8590 intend to support direct inclusion of individual header files from the xapian
8591 directory, but if you do that, you may have to update you code.
8595 * Feature tests added for all new features.
8597 * Improved test coverage in queryparsertest. Some tests in queryparsertest
8598 now use flint databases, so the test now ensures that the .flint
8599 subdirectory exists.
8601 * The test harness no longer creates <dbdir>/log for flint (flint doesn't
8602 create a log like quartz does).
8604 * apitest: "-bremote" must now be "-bremoteprog" (to better match
8605 "-bremotetcp"); "-bvoid" must now be "-bnone" (to better describe not
8606 using a database backend).
8608 * To complement "make check-flint", "make check-quartz", and "make
8609 check-remote", you can now run tests for the remotetcp backend with
8610 "make check-remotetcp", for the remoteprog backend with "make
8611 check-remoteprog", for the inmemory backend with "make check-inmemory", and
8612 tests not requiring a backend with "make check-none".
8614 * Several extra tests of the check_at_least parameter supplied to
8615 get_mset() were added.
8617 * Fix memory leak and fd leak in remotetcp handling, so apitest now passes
8620 * quartztest: no longer test QuartzPostList::get_collection_freq(), which
8623 * Add regression test emptyquery2 for bug #176.
8625 * Add regression test matchall1 for bug with MatchAll queries.
8627 * Enhanced test coverage of match functor, to check that it returns all
8632 * Fix bug when check_at_least was supplied - the matches after the
8633 requested MSet size were being returned to the user. The parameter is
8634 also now handled in a more efficient way - no extra memory is required
8635 (previously, extra memory proportional to the value of check_at_least was
8638 * Fix bug which used incorrect statistics, and caused assertion failures,
8639 when performing a search using a MatchAll query.
8641 * Optimisation for single term queries: we don't need to look at the top
8642 document's termlist to determine that it matches all the query terms.
8646 * The value and position tables are now only created if there is anything to
8647 add to them. So if you never use document values, there's no value.DB,
8648 value.baseA, or value.baseB. This means the table doesn't need to be opened
8649 for searching (saving a file handle and a number of syscalls) and when
8650 flushing changes, we don't need to update baseA/baseB just to keep the
8651 revisions in step. The flint database version has been increased, but the
8652 new code will happily open and read/update flint databases from Xapian 1.0.0
8653 and 1.0.1. Xapian 1.0.2 flint databases can't be read by Xapian 1.0.1 or
8656 * Two new optional tables are now supported: "spelling", which is used to
8657 store information for spelling correction, and "synonym", which is used
8658 to store synonym information.
8660 * xapian-compact: Now compacts and merges spelling and synonym tables.
8661 Also has a new option "--no-renumber" to preserve document ids from
8664 * xapian-check: Now checks the spelling and synonym tables (only the Btree
8665 structure is currently checked, not the information inside).
8667 * Database::term_exists(), Database::get_termfreq(), and
8668 Database::get_collection_freq() are now slightly more efficient for flint
8671 * New utility 'xapian-inspect' which allowing interactive inspection of key/tag
8672 pairs in a flint Btree. Useful for development and debugging, and an
8673 approximate equivalent to quartzdump.
8675 * WritableDatabase::delete_document() no longer cancels pending changes if the
8676 document doesn't exist.
8678 * Fix handling of exceptions during commit - previously, this could result
8679 in tables getting out-of-sync, perhaps even resulting in a corrupt database.
8681 * Optimise iteration of all documents in the case where all the document
8682 IDs up to lastdocid are used; in this case, we no longer need to access disk
8683 to get the document IDs.
8687 * WritableDatabase::delete_document() no longer cancels pending changes if the
8688 document doesn't exist.
8690 * We no longer create a postlist just to find the termfreq or collection
8695 * Calling WritableDatabase::delete_document() on a non-existent document now
8696 correctly propagates DocNotFoundError.
8698 * The minor remote protocol version has increased (to fix the previous issue).
8699 You should be able to cleanly upgrade a live system by upgrading servers
8700 first and then clients.
8702 * progclient: Reopen stderr on the child process to /dev/null rather than
8703 closing it. This fixes apitest with the remoteprog backend to pass when run
8704 under valgrind (it failed in this case in 1.0.0 and 1.0.1). It probably
8705 has no effect otherwise.
8707 * check_at_least is now passed to the remote server to reduce the work
8708 needed to produce the match, and the serialised size of the returned MSet.
8712 * Bug fix: using replace_document() to add a document with a specific
8713 document id above the highest currently used would create empty documents
8714 for all document ids in between.
8718 * Work around an apparent bug in automake which causes the entries in .libs
8719 subdirectories generated for targets of bin_PROGRAMS not to be removed on
8720 make clean. This was causing make distcheck to fail.
8722 * Snapshots and releases are now bootstrapped with automake 1.10, and
8725 * HTML documentation generated from RST files is now installed.
8729 * The API documentation is now generated with Doxygen 1.5.2, which fixes the
8730 missing docs for Xapian::Query.
8732 * Ship and install internals.html.
8734 * Generating the doxygen-collated documentation of the library internals (with
8735 "make doxygen_source_docs") now only tries to generate an HTML version. The
8736 PDF version kept exceeding TeX limits, and HTML is a more useful format for
8739 * API docs for Xapian::QueryParser now make it clear that the default value for
8740 the stemming strategy is STEM_NONE.
8742 * API docs now describe the NumberValueRangeProcessor more clearly.
8744 * Several typo fixes and assorted wording improvements.
8746 * queryparser.html: Mention "AND NOT" as an alternative way to write "NOT",
8747 and document synonym expansion.
8749 * admin_notes.html: Updated for changes in this release, and corrected a
8752 * spelling.rst: New file, documenting the spelling correction feature.
8754 * synonyms.rst: New file, documenting the synonyms expansion feature.
8756 * valueranges.rst: The NumberValueRangeProcessor is now documented.
8758 * HACKING: Mention new libtool, and more details about preferring
8759 pre-increment. Also add a note about 2 space indentation of protection
8760 level declarations in classes.
8762 * INSTALL: note that zlib must be installed before you can build.
8766 * copydatabase: Now copies synonym and spelling data. Also, fix a cosmetic
8767 bug with progress output when a specified database directory has a trailing
8772 * Fix to build on with OpenBSD's zlib (xapian-core 1.0.0 and 1.0.1 didn't).
8774 * Fixed to build with older zlib such as zlib 1.1.5 which Solaris apparently
8775 uses (xapian-core 1.0.0 and 1.0.1 didn't). However, we recommend using zlib
8776 1.2.x as decompressing is apparently about 20% faster.
8778 * msvc/version.h.in: Generated version.h for MSVC build no longer has the
8779 remote backend marked as disabled.
8781 * Fix warnings from Intel's C++ compiler.
8783 * Fixes for compilation with gcc-2.95 and GCC 4.3 snapshots.
8789 + Rename xapian.spec to xapian-core.spec to match tarball name.
8791 + Append the user name to BuildRoot.
8795 * Better debug logging from the queryparser internals.
8797 Xapian-core 1.0.1 (2007-06-11):
8803 + Make Error::error_string member std::string rather than char * to avoid
8804 problems with double free() with copied Error objects. Unfortunately
8805 this mean an incompatible ABI change which we had hoped to avoid until
8806 1.1.0, but in this case there didn't seem to be a sane way to fix the
8807 problem without an ABI change.
8809 + Error::get_description() now converts my_errno to error_string if it hasn't
8810 been already rather than not including any error description in this case.
8812 + Add new method "get_description()" to get a string describing the error
8813 object. This is used in various examples and scripts, improving their
8816 * Xapian::Database: Add new form of allterms_begin() and allterms_end()
8817 which allow iterating of all terms with a particular prefix. This
8818 is easier to use than checking the end condition yourself, and is
8819 more efficiently implemented for the remote backend (fixes bug#153).
8821 * Xapian::Enquire: Passing an uninitialised Database object to Enquire will
8822 now cause InvalidArgumentError to be thrown, rather than causing a segfault
8823 when you call Enquire::get_mset(). If you really want an empty database,
8824 you can use Xapian::InMemory::open() to create one.
8826 * Xapian::QueryParser: Multiple boolean prefixed terms with the same term
8827 prefix are now combined with OR before such groups are combined with AND
8828 (bug#157). Multiple value ranges on the same value are handled similarly.
8830 * Xapian::Query OP_VALUE_RANGE: Avoid calling db->get_lastdocid() repeatedly
8831 as we know the answer won't change - this reduces the run time of a
8832 particular test case by 25%.
8836 * Add test for serialisation of error strings.
8838 * Improved output in various situations:
8840 + Quote strings in TEST_STRINGS_EQUAL().
8842 + queryparsertest: Use TEST_STRINGS_EQUAL when comparing query descriptions
8843 against their expected output, since this makes it much easier to see the
8846 + Report whole message for exceptions, rather than a truncated version, in
8849 + Make use of Xapian::Error::get_description(), giving better error
8852 * queryparsertest: New test of custom ValueRangeProcessor subclass
8853 (qp_value_customrange1).
8855 * apitest: flintdatabaseformaterror1 and flintdatabaseformaterror2 now use a
8856 genuine Xapian 0.9.9 flint database for their tests, and more cases are
8857 tested. The two tests have also been split into 3 now.
8859 * Fix test harness not to invoke undefined behaviour in cases where a paragraph
8860 of test data contains two or fewer characters.
8862 * Implement a better fix for the MSVC ifstream issue which was fixed in 1.0.0.
8863 This fixes an unintentional side-effect of the previous fix which meant that
8864 apitest's consistency1 wasn't working as intended (it now has a regression
8865 test to make sure it is testing what we intend).
8869 * xapian-compact: Don't uncompress and recompress tags when compacting a
8870 database. This speeds up xapian-compact rather a lot (by more than 50% in a
8873 * If the docid counter wraps, Flint now throws DatabaseError (fixes bug#152).
8875 * Remove the special case error message for pre-0.6 databases since they'll
8876 be quartz format (the check is only in flint because this code was taken from
8881 * If the docid counter wraps, Quartz now throws DatabaseError (fixes bug#152).
8885 * The remote protocol now has a minor version number. If the major
8886 version number is the same, a client can work with any server with
8887 the same or higher minor version number, which makes upgrading live
8888 systems easier for most remote protocol changes - just upgrade the servers
8891 * When a read-only remote database is closed, the client no longer sends a
8892 (totally bogus) MSG_FLUSH to the server, and the reply is also eliminated.
8893 This reduces the time taken to close a remote database a little (fixes
8898 * skip_to() on an allterms TermIterator from an InMemory Database can no longer
8901 * An allterms TermIterator now initialises lazily, which can save some work if
8902 the first operation is a skip_to() (as it often will be).
8906 * Fix VPATH compilation in maintainer mode with gcc-2.95.
8908 * Fix multiple target rule for generating the queryparser source files in
8911 * Distribute missing stub Makefiles for "bin", "examples", and
8916 * Document the design flaw with NumberValueRangeProcessor and why it shouldn't
8919 * ValueRangeProcessor and subclasses now have API documentation and an overview
8922 * Expand documentation of value range Query constructor.
8924 * Improved API documentation for the TermGenerator class.
8926 * docs/deprecation.rst:
8928 + Fix copy and paste error - set_sort_forward() should be changed to
8931 + Improve entry for QueryParserError.
8933 * PLATFORMS: Updated from tinderbox.
8937 * copydatabase: Rewritten to use the ability to iterate over all the documents
8938 in a database. Should be much more efficient for databases with sparsely
8939 distributed document IDs.
8941 * simpleindex: Rewritten to use the TermGenerator class, which eliminates a
8942 lot of non-Xapian related code and is more typical of what a user is likely
8945 * simplesearch,simpleexpand: Rewritten to use the QueryParser class, which
8946 is more typical of what a user is likely to want to do.
8950 * xapian-config: Add special case check for host_os matching linux* or
8951 k*bsd-gnu since vanilla libtool doesn't correctly probe link_all_deplibs=no
8956 * RPMs: Add "# norootforbuild" comment which SuSE's build scripts look for.
8957 Rename "Source0:" to "Source:" as there's only one tarball now. Add gcc-c++
8958 and zlib-devel to "Build-Requires:".
8960 * The required automake version has been lowered to 1.8.3, so RPMs can now be
8961 built on RHEL 4 and SLES 9.
8963 Xapian-core 1.0.0 (2007-05-17):
8969 + The Database(const std::string &) constructor has been marked as "explicit".
8970 Hopefully this won't affect real code, but it's possible. Instead of
8971 passing a std::string where a Xapian::Database is expected, you'll now
8972 have to explicitly write `Xapian::Database(path)' instead of `path'.
8974 + Fixed problem when calling skip_to() on an allterms iterator over multiple
8975 databases which could cause a debug assertion in debug builds, and possible
8976 misbehaviour in normal builds.
8980 + The constructors of Error subclasses which take a `const std::string &'
8981 parameter are now explicit. This is very unlikely to affect any real code
8982 but if it does, just write `Xapian::Error(msg)' instead of `msg'.
8984 + Xapian::Error::get_type() now returns const char* rather than std::string.
8985 Generally existing code will just work (only one change was required in
8986 Xapian itself) - the simplest change is to write `std::string(e.get_type())'
8987 instead of `e.get_type()'.
8989 + Previously, the errno value was lost when an error was propagated from
8990 a remote server to the client, because errno values aren't portable
8991 between platforms. To fix this, Error::get_errno() is now deprecated and
8992 you should use Error::get_error_string() instead, which returns a string
8993 expanded from the errno value (or other system error code).
8995 * Xapian::QueryParser:
8997 + Now assumes input text is encoded as UTF-8.
8999 + We've made several changes to term generation strategy. Most notably:
9000 Unicode support has been added; '_' now counts as a word character; numbers
9001 and version numbers are now parsed as a single term; single apostrophes are
9002 now included in a term; we now store unstemmed forms of all terms; and we
9003 no longer try to "normalise" accents.
9005 + parse_query() now throws the new Xapian::Error subclass QueryParserError
9006 instead of throwing const char * (bug#101).
9008 + Pure NOT queries are now supported (for example, `NOT apples' will match
9009 all documents not indexed by the stemmed form of `apples'). You need
9010 to enable this feature by passing QueryParser::FLAG_PURE_NOT in flags
9011 to QueryParser::parse_query().
9013 + We now clear the stoplist when we parse a new query.
9015 + Queries such as `+foo* bar', where no terms in the database match the
9016 wildcard `foo*', now match no documents, even if `bar' exists. Handling
9017 of `-foo*' has also been fixed.
9019 + Now supports wildcarding the last term of a query to provide better support
9020 for incremental searching. Enabled by QueryParser::FLAG_PARTIAL.
9022 + The default prefix can now be specified to parse_query() to allow parsing
9023 of text entry boxes for particular fields.
9025 + QueryParser::set_stemming_options() has been deprecated since 0.9.0 and
9026 has now been removed.
9030 + Now assumes input text is encoded as UTF-8.
9032 + We've updated to the latest version of the Snowball stemmers. This means
9033 that a small number of words produce different (and generally better)
9034 stems and that some new stemmers are supported: german2 (like german but
9035 normalises umlauts), hungarian, kraaij_pohlmann (a different Dutch
9036 stemmer), romanian, and turkish.
9038 * Xapian::TermGenerator:
9040 + New class which generates terms from a piece of text.
9044 + The Enquire(const Database &) constructor has been marked as "explicit".
9045 This probably won't affect real code - certainly no Xapian API methods
9046 or functions take an Enquire object as a parameter - but calls to user
9047 methods or functions taking an Enquire object could be affected. In
9048 such cases, you'll now have to explicitly write `Xapian::Enquire(db)'
9051 + Enquire::get_eset() now produces better results when used with multiple
9052 databases - without USE_EXACT_TERMFREQ they should be much more similar to
9053 results from an equivalent single database; with USE_EXACT_TERMFREQ they
9054 should be identical.
9056 + Track the minimum weight required to be considered for the MSet separately
9057 from the minimum item which could be considered. Trying to combine the two
9058 caused several subtle bugs (bug#86).
9060 + Enquire::get_query() is now `const'. Should have no effect on user code.
9062 + Enquire::get_mset() now handles the common case of an "exact" phrase search
9063 (where the window size is equal to the number of terms) specially.
9065 + Enquire::include_query_terms and Enquire::use_exact_termfreq are now
9066 deprecated in favour of capitalised versions Enquire::INCLUDE_QUERY_TERMS
9067 and Enquire::USE_EXACT_TERMFREQ (for consistency with our other manifest
9068 constants, and general C/C++ conventions).
9072 + RSet::contains(MSetIterator) is now `const'. Should have no effect on user
9075 * Xapian::SimpleStopper::add() now takes `const std::string &' not `const
9076 std::string'. Should have no effect on user code.
9080 + We now only perform internal validation on a Query object when it's either
9081 constructed or changed, to avoid O(n^2) behaviour in some cases.
9083 + Xapian::Query::MatchAll (an alias for Query("")) matches all terms in the
9084 document (useful for "pure NOT" queries) and Xapian::Query:MatchNothing
9085 is now a more memorable alias for Query().
9087 * Instead of explicitly checking that a term exists before opening its
9088 postlist, we now do both in one operation, which is more efficient.
9090 * MatchDecider::operator() now returns `bool' not `int'.
9092 * ExpandDecider::operator() now returns `bool' not `int'.
9094 * Xapian::TermIterator::get_termfreq() now throws InvalidOperationError
9095 if called on a TermIterator from a freshly created Document (since
9096 there's no meaningful term frequency as there's no Database for
9099 * <xapian/output.h> is no longer available as an externally visible header.
9100 It's not been included by <xapian.h> since 0.7.0. Instead of using
9101 `cout << obj;' use `cout << obj.get_description();'.
9103 * New constant Xapian::BAD_VALUENO which is -1 cast to Xapian::valueno.
9105 * New Xapian::ValueRangeProcessor hierarchy: DateValueRangeProcessor,
9106 NumberValueRangeProcessor, and StringValueRangeProcessor. In
9107 conjunction with the new QueryParser::add_valuerangeprocessor()
9108 method and the new Query::OP_VALUE_RANGE op these allow you to
9109 implement ranges in the query parser, such as `$50..100',
9110 `10..20kg', `01/02/2007..03/04/2007'.
9114 * Many new and improved testcases in various areas.
9116 * If a test throws an unknown exception, say so in the test failure message.
9117 If it throws std::string, report the first 40 characters (or first line if
9118 less than 40 characters) of the string even in non-verbose mode.
9120 * Use of valgrind improved:
9122 + The test harness now only hooks into valgrind if environment variable
9123 XAPIAN_TESTSUITE_VALGRIND is set, which makes it easy to run test programs
9124 under valgrind in the normal way. The runtest script sets this
9127 + runtest now passes "--leak-resolution=high" to valgrind to prevent
9128 unrelated leak reports related to STL classes from being combined.
9130 + configure tests for valgrind improved and streamlined.
9132 + New runsrv script to run xapian-tcpsrv and xapian-progsrv. We need to
9133 run these under valgrind to avoid issues with excess numerical precision
9134 in valgrind's FP handling, but we can use "--tool=none" which is a lot
9135 faster than running them under valgrind's default memcheck tool.
9137 * The test harness now starts xapian-tcpsrv in a more reliable way - it will
9138 try sequentially higher port numbers, rather than failing because a
9139 xapian-tcpsrv (or something else) is already using the default port.
9140 It also no longer leaks file descriptors (which was causing later tests
9141 to fail on some platforms), and if xapian-tcpsrv fails to start, the error
9142 message is now reported.
9144 * remotetest has been removed and its testcases have either been added to
9145 apitest or just removed if redundant with tests already in apitest.
9147 * termgentest is a new test program which tests the Xapian::TermGenerator
9150 * TEST_EQUAL_DOUBLE() now uses a slightly less stringent threshold -
9151 DBL_EPSILON is too strict for calculations which include multiple
9152 steps. Also, we now use it instead of doubles_are_equal_enough() and
9153 weights_are_equal_enough() which try to perform the same job.
9155 * New macro TEST_STRINGS_EQUAL() which displays the strings on separate lines
9156 so the differences can be clearly seen.
9158 * Test programs are now linked with '-no-install' which means that libtool
9159 doesn't need to generate shell script wrappers for them on most platforms.
9161 * runtest: Now turns on MALLOC_CHECK_ and MALLOC_PERTURB_ for glibc if
9162 valgrind isn't being used.
9164 * Better support for Microsoft Windows:
9166 + test_emptyterm2 no longer tries to delete a database from disk while a
9167 WritableDatabase object still exists for it, since this isn't supported
9168 under Microsoft Windows.
9170 + Fallback handling when srcdir isn't specified how takes into account .exe
9171 extensions and different path separators.
9175 * Flint is now the default backend.
9177 * xapian-check: New program which performs consistency checks on a flint
9180 * xapian-compact: Now prunes unused docids off the start of each source
9181 database's range of docids.
9183 * Positional information is now encoded using a highly optimised fls()
9184 implementation, which is much faster than the FP code 0.9.x used.
9185 Unfortunately the old encoding could occasionally add extra bits
9186 on some architectures, which was harmless except the databases
9187 wouldn't be portable. Because of this, the flint format has had to
9188 be changed incompatibly.
9190 * The lock file is now called "flintlock" rather than "flicklock" (which
9193 * Flint now releases its lock correctly if there's an error in
9194 WritableDatabase's constructor. Previously the lock would remain until
9197 * Flint now throws new Xapian::Error subclass DatabaseVersionError instead of
9198 DatabaseOpeningError when it fails to open a database because it has an
9199 unsupported version. DatabaseVersionError is a subclass of
9200 DatabaseOpeningError so existing code should continue to work, but it's
9201 now much easier to determine if the problem is that a database needs
9204 * If you try to open a flint database with an older or newer version than
9205 flint understands, the exception message now gives the version understood,
9206 rather than "I only understand FLINT_VERSION" (literally).
9208 * If we fail to obtain the lock, report why in the exception message.
9210 * Flint now compresses tags in the record and termlist tables using zlib.
9212 * More robust code to handle the flint locking child process, in case of
9215 * If a document was replaced more than once between flushes, the document
9216 length wouldn't be updated after the first change.
9220 * Quartz is still supported, but use in new projects is deprecated (use Flint
9221 instead). Quartz will be removed eventually.
9223 * quartzcheck: Test if this is a quartz database by looking at "meta" not
9224 "record_DB". If "record_DB" is >= 2GB and we don't have a LFS aware stat
9225 function then stat can fail even though the file is there. Also open the
9226 database explicitly as a Quartz database for extra robustness.
9228 * If a document was replaced more than once between flushes, the document
9229 length wouldn't be updated after the first change.
9233 * The remote backend is now supported under Microsoft Windows.
9235 * Open a fresh copy of the database(s) on each connection to a xapian-tcpsrv
9236 rather than relying on being able to share a database across fork() or
9237 between threads (which we don't promise will work).
9239 * xapian-tcpsrv: New "--interface" option allows the hostname or address of the
9240 interface to listen on to be specified (the default is the previous behaviour
9241 of listening on all interfaces).
9243 * If name lookup fails, report the h_errno code from gethostbyname() rather
9244 than whatever value errno happens to currently have!
9246 * Fix bugs in query unserialisation.
9248 * The remote backend now supports all operations (get_lastdocid(), and
9249 postlist_begin() have now been implemented).
9251 * Currently a read-only server can be opened as a WritableDatabase (which is
9252 a minor bug we plan to fix). In this case, operations which write will fail
9253 and the exception is now InvalidOperationError not NetworkError.
9255 * If a remote server catches NetworkTimeoutError then it will now only
9256 propagate it if we can send it right away (since the connection is
9257 probably unhappy). After that (and for any other NetworkError) we now
9258 just rethrow it locally to close the connection and let it be logged if
9261 * The timeout parameter to RemoteDatabase wasn't being used, instead the
9262 client would wait indefinitely for the server to respond.
9264 * A timeout of zero to the remote backend now means "never timeout". This
9265 is now the default idle timeout for WritableDatabase (the connection
9266 timeout default is now 10 seconds, rather than defaulting to the idle
9269 * Fix handling of the document length in remote termlists.
9271 * The remote backend now checks when decoding serialised string that the
9272 length isn't more than the amount of data available (bug#117).
9274 * The remote backend now handles the unique term variants of delete_document
9275 and replace_document on the server side.
9277 * The RSet serialisation now encodes deltas between docids (rather than the
9278 docids themselves) which greatly reduces the size of the encoding of a
9279 sparse RSet for a large database.
9281 * We now encode deltas between term positions when sending data after calling
9282 positionlist_begin() on a remote database.
9284 * When using a MatchDecider with remote database(s), don't rerun the
9285 MatchDecider on documents which a remote server has already checked.
9287 * Apply the "decreasing weights with remote database" optimisation which we use
9288 in the sort_by_relevance case in the sort_by_relevance_then_value case too.
9290 * We now throw NetworkError rather than InternalError for invalid data received
9291 over the remote protocol.
9293 * We now close stderr of the spawned backend program when using the "prog" form
9294 of the remote backend. Previously stderr output would go to the client
9295 application's stderr.
9299 * Support for the old Muscat 3.6 backends has been completely removed. It's
9300 still possible to convert Muscat 3.6 databases to Xapian databases by
9301 building 0.9.10 and using copydatabase to create a quartz database, which can
9302 then be read by 1.0.0 (and converted to a flint database using copydatabase
9307 * We've added GCC visibility annotations to the library, which when using GCC
9308 version 4.0 or later reduce the size and load time of the library and
9309 increase the runtime speed a little. Under x86_64, the stripped library is
9310 6.4% smaller (1.5% smaller with debug information).
9312 * configure: If using GCC, use -Bsymbolic-functions if it is supported
9313 (it requires a very recent version of ld currently). This option reduces the
9314 size and load time of the shared library by resolving references within the
9315 library when it's created.
9317 * We automatically define _FORTIFY_SOURCE in config.h if GCC is in use
9318 and it's not already set (you can override this as documented in INSTALL).
9319 This adds some checking (mostly at compile time) that important return
9320 values aren't ignored and that array bounds aren't exceeded.
9322 * `./configure --enable-quiet' already allows you to specify at configure time
9323 to pass `--quiet' to libtool. Now you can override this at make-time by
9324 using `make QUIET=' (to turn off `--quiet') or `make QUIET=y' (to turn on
9327 * In non-maintainer mode, we don't need the tools required to rebuild some of
9328 the documentation, so speed up configure by not even probing for them in
9331 * The makefiles now use non-recursive make in all directories except "docs" and
9332 "tests". For users, this means that the build is faster and requires less
9333 disk space (bug#97).
9335 * configure: Add proper detection for SGI's C++ (check stderr output of
9336 "CC -v") and automatically pass -ptused in CXXFLAGS for xapian-core and any
9337 applications using xapian-config --cxxflags since it seems to be required to
9338 avoid template linking errors.
9340 * XO_LIB_XAPIAN now checks for the case where XAPIAN_CONFIG wasn't specified
9341 and xapian-config wasn't found, but the library appears to be installed -
9342 this almost certainly means that the user has installed xapian-core from
9343 a package, but hasn't installed the -dev or -devel package, so include
9344 that advice in the error message.
9346 * `./configure --with-stlport-compiler' now requires a compiler name as an
9349 * configure: Disable probes for f77, gcj, and rc completely by preventing
9350 the probe code from even appearing in configure - this reduces the size of
9351 configure by 209KB (~25%) and should speed it up significantly.
9353 * configure: Suppress more unhelpful warnings and "remarks" for HP's aCC, and
9354 turn on "+wlint", which seems useful.
9356 * A number of cases of unnecessary header inclusions have been addressed,
9357 which should speed up compilation (fewer headers to parse when compiling
9358 many source files). This also reduces dependencies within the source code,
9359 and thus the number of files which need to be rebuilt when a header is
9362 * configure: Cache the results of some of our custom tests.
9366 * The documentation has all been updated for changes in Xapian 1.0.0.
9368 * Many of the documentation comments in the API headers (which are collated
9369 using doxygen to generated the API reference) have been improved, and some
9370 missing ones added. Also, internal classes, members, and methods are now all
9371 marked as such so that none should appear in the generated documentation. In
9372 particular, the class inheritance graphs should be a lot clearer. A few other
9373 problems have also been addressed.
9375 * docs/internals.html: New separate index page for the "internal"
9378 * docs/deprecated.html: New document describing deprecation policy. This
9379 includes lists of features which have been removed, or which are deprecated
9380 and scheduled for removal, along with suggested replacements.
9382 * docs/admin_notes.html: New document introducing Xapian for sysadmins.
9384 * docs/termgenerator.html: New document describing the new term generation
9385 strategy implemented by the Term::Generator class.
9387 * docs/bm25.html,docs/intro_ir.html: These have been overhauled to make them
9388 fit better with the rest of the documentation, and with Xapian itself.
9390 * docs/overview.html: Fixed links to error classes in generated API
9393 * HACKING,INSTALL: Many updates and improvements.
9395 * xapian-config: Improve --version output so that help2man produces a better
9398 * PLATFORMS: Remove reports for 0.7.* and demote reports for 0.8.* to "older
9399 reports" status. All SF compilefarm machines are now "no longer available",
9400 so update the symbols and key to reflect this. Update with recent success
9401 reports from the tinderbox and other sources.
9403 * AUTHORS: Thanks several bug reporters I missed before, as well as recent
9406 * docs/code_structure.html now looks nicer and includes links to
9409 * docs/remote_protocol.html: Fixed several typos and other errors, and document
9410 all the new messages.
9412 * We no longer include docs/apidoc/latex/* in the xapian-core tarballs since
9413 it's just useless bloat.
9419 + Report the exception error string if open a database fails.
9421 + Rename "-k" to "-V" since "keys" were renamed to "values" long ago. Keep
9422 "-k" as an alias for now, but don't advertise it. Add handling so "-V3"
9423 shows value #3 for every document in the database.
9425 + No longer stems terms by default. Add "-s/--stemmer" option to allow a
9426 stemmer to be specified.
9428 * quest: Add "--stemmer" option to allow stemming language to be set, or
9429 stemming to be disabled.
9433 * Fix compilation with GCC 4.3 snapshot.
9435 * Always use pid_t not int for holding a process id, and use AC_TYPE_PID_T to
9436 `#define pid_t int' if <sys/types.h> doesn't provide pid_t.
9438 * Pass the 4th parameter of setsockopt() as char* which works whether the
9439 function actually takes char* or void* (since C++ allows implicit conversion
9440 from char* to void*).
9442 * Most warnings in the MSVC build have been fixed.
9444 * Refactored most portability workarounds into safeXXXX.h headers.
9446 * Building for mingw in a cygwin environment should work better now.
9452 + Updated for the changes in this release.
9454 + ChangeLog.examples is now packaged.
9458 * Rename --enable-debug* configure options - conflating the options to "turn on
9459 assertions" and "turn on logging" is confusing. `--enable-debug[=partial]'
9460 becomes `--enable-assertions'; `--enable-debug-verbose' becomes
9461 `--enable-log' and `--enable-debug=full' becomes `--enable-assertions
9462 --enable-log'. For now the old options give an error telling you the new
9465 * Debug logging from expand is now all of type EXPAND (some was of types
9466 MATCHER and WTCALC before).
9468 * Hook the debug tracing in the lemon generated parser into Xapian's debug
9471 * New assertion types: AssertEqParanoid() and AssertNeParanoid().
9473 * Retry write() if it fails when writing a debug log entry to ensure to avoid
9474 the risk of a partial write.
9476 Xapian-core 0.9.10 (2007-03-04):
9480 * Fix WritableDatabase::replace_document() not to lose positional information
9481 for a document if it is replaced with itself with unmodified postings.
9483 * QueryParser: Add entries to the "unstem" map for prefixed boolean filters
9486 * Fix inconsistent ordering of documents between pages with
9487 Enquire::set_sort_by_value_then_relevance (fixes bug#110).
9491 * Workaround apparent bug in MSVC's ifstream class.
9493 flint and quartz backends:
9495 * Fix possible double-free after a transaction fails.
9497 * Fix code for recovering from failing to open a table for reading
9498 mid-modification. If modifications are so frequent that opening for reading
9499 fails 100 times in a row, throw DatabaseModifiedError not
9500 DatabaseOpeningError.
9502 * Don't call std::string::append(ptr, 0) when ptr may be uninitialised
9503 or NULL (rather suspect, and reported to cause SEGV-like behaviour with
9506 * Ensure both_bases is set to false if we don't have both bases when
9507 opening a table using an existing object.
9509 * Use MS Windows API calls to delete files and open files we might want to
9510 delete while they are still open (i.e. the flint and quartz btree base
9511 files). This fixes a problem when a writer can't discard an old revision at
9512 the exact moment a reader is opening it (bug #108).
9516 * Fix WritableDatabase::has_positions() to refetch the cached value if it
9517 might be out of date.
9519 * Fix incorrect serialisation of a query with non-default termpositions.
9523 * If replace_document is used to set the docid of a newly added document which
9524 has previously existed, ensure we mark that document as valid.
9528 * Assorted improvements to API documentation.
9530 * docs/Makefile.am: The larger pool_size we set in 0.9.9 for building
9531 sourcedoc.pdf was a bit marginal, so increase it further.
9533 * docs/stemming.html,docs/install.html: Correct 2 references to "CVS" to say
9536 * HACKING: Update the release checklist.
9540 * Fix flint and quartz to allow 2GB+ B-tree tables when compiling with MSVC.
9544 * RPMs: Remove "." from end of "Summary:". Package the new man page for
9547 Xapian-core 0.9.9 (2006-11-09):
9551 * Use popen() to run xapian-tcpsrv and wait for "Listening..." before returning
9552 rather than just sleeping for 1 second and hoping that's enough.
9554 * If we can't start xapian-tcpsrv because the port is in use, try higher
9559 * xapian-tcpsrv: If the port requested is in use, exit with code 69
9560 (EX_UNAVAILABLE) which is useful if you're trying to automate launching of
9561 xapian-tcpsrv instances.
9563 * xapian-tcpsrv: Output "Listening..." once the socket is open and read for
9564 connections (this allows the testsuite to wait until xapian-tcpsrv is ready
9565 before connecting to it).
9567 * xapian-progsrv: Now supports --help, --version, and has a man page. Fixes
9570 * Turn on TCP_NODELAY for the TCP variant of the remote backend which
9571 dramatically improves the latency of operations on the database.
9575 * internaltest: Disable serialiselength1 and serialisedoc1 when the remote
9576 backend is disabled to fix build error in this case.
9578 * Move libbtreecheck.la from testsuite/ to backends/quartz/.
9580 * Move the testsuite harness from testsuite/ to tests/harness/.
9584 * Ship our custom INSTALL file rather than the generic one from autoconf which
9585 we've accidentally been shipping instead since 0.9.5.
9587 * docs/Makefile.am: Building sourcedoc.pdf needs a larger pool_size now we're
9590 * HACKING: Update debian packaging checklist.
9592 * PLATFORMS: Updated with results from tinderbox.
9596 * Create "safefcntl.h" as a replacement for <fcntl.h> instead of using
9597 "utils.h" for this purpose, since "utils.h" pulls in many other things we
9602 * RPMs: Prevent binaries getting an rpath for /usr/lib64 on FC6.
9604 Xapian-core 0.9.8 (2006-11-02):
9608 * QueryParser: Don't require a prefixed boolean term to start with an
9609 alphanumeric - allow the same set of characters as we do for the second
9610 and subsequent characters.
9614 * Only force a flush on WritableDatabase::allterms_begin() if there are
9615 actually pending changes.
9619 * Only force a flush on WritableDatabase::allterms_begin() if there are
9620 actually pending changes.
9622 * quartzcheck: Avoid dying because of an unhandled exception if the Btree
9623 checking code finds an error in the low-level Btree structure. Add a
9624 catch for any other unknown exceptions.
9628 * When building with GCC, turn on warning flag -Wshadow even when not in
9629 maintainer mode (provided it is supported by the GCC version being used).
9631 * testsuite/backendmanager.cc: Fix compilation when valgrind is detected by
9634 * If generating apidoc.pdf fails, display the logfile pdflatex generates since
9635 that is likely to show what failed.
9639 * Produce a PDF for apidoc rather than PostScript, since the PDF is smaller,
9640 plus at least as easy to print and easier to view for most users. Use
9641 pdflatex to generate the PDF directly rather than going via a DVI file which
9642 apparently produces a better result and also avoids problems on some Linux
9643 distros where latex is a symlink to pdfelatex (bug#81, bug#95).
9645 * HACKING: Mention automake 1.10 is out but we've not tested it yet.
9647 * HACKING: Add entries to release checklist: make sure new API methods
9648 are wrapped by the bindings, and that bug submitters are thanked.
9650 * HACKING: Note that on Debian, tetex-extra is needed for
9653 * HACKING: Note that dch can be used to update debian/changelog.
9655 * docs/code_structure.html: Document backends/remote.
9657 * PLATFORMS: Update from tinderbox.
9661 * configure: When checking if we need -lm, don't use a constant argument to
9662 log() as the compiler might simply evaluate the whole expression at compile
9665 * configure: Redhat's GCC 2.96 doesn't support -Wundef even though real GCC
9666 version before and after it do!
9668 * configure: Avoid use of double quotes in double-quoted backticks since
9669 it causes problems on some platforms.
9671 * backends/flint/flint_io.cc: Fix compilation on windows (needs to
9672 #include "safewindows.h" to get definition of SSIZE_T).
9674 * Fix our implementation of om_ostringstream to compile so that the build
9675 works once more on older compilers without <sstream> (regression probably
9676 introduced in 0.9.7).
9680 * xapian.spec: Package xapian-progsrv.
9682 Xapian-core 0.9.7 (2006-10-10):
9688 + Allow a distance to be optionally specified for NEAR - e.g.
9689 "cats NEAR/3 dogs" (bug#92).
9691 + Implement "ADJ" operator - like "NEAR" except the terms must
9692 appear in matching documents in the same order as in the query.
9694 + Fix bug in how we handle prefixed quoted phrases and prefixed brackets.
9696 + Fix parsing of loved and hated prefixed phrases and bracketted expressions.
9698 + Fix handling of stopwords in boolean expressions.
9700 + Don't ignore a stopword if it's the only query term.
9702 * Document::add_value() failed to replace an existing value with the same
9703 number, contrary to what the documentation says (bug #82).
9705 * Enquire::set_sort_by_value(): Don't fetch the document data when fetching
9706 the value to sort on. Simple benchmarking showed this to speed up sort by
9707 value by a factor of between 3 and 9!
9709 * Implement transactions for flint and quartz. Also supported are "unflushed"
9710 transactions, which provided an efficient way to atomically group a number
9711 of database modifications.
9713 * The Xapian::Error and Xapian::ErrorHandler classes have been reimplemented.
9714 The new versions have better, clearer documentation comments and are cleaner
9717 * Change how doubles are serialised by TradWeight, BM25Weight, and in the
9718 remote backend protocol. The new encoding allows us to transfer any double
9719 value which can be represented by both machines precisely and compactly.
9723 * Add targets "check-flint", "check-quartz", and "check-remote" in tests and at
9724 the top level which run the subset of tests which test the respective backend.
9726 * apitest: Run tests on flint if flint is enabled, rather than if quartz is
9729 * apitest: Speed up deldoc4 when run in verbose mode - some stringstream
9730 implementations are very inefficient when the string grows long.
9732 * Turn on GLIBCXX_FORCE_NEW when running tests under valgrind to stop the GNU
9733 C++ STL from using a pooling allocator. This helps make velgrind's leak
9734 tracking more reliable.
9736 * Probe for required valgrind logging options at configure time rather than
9737 when running the test program. This saves about 2 seconds per test program
9740 * Fix testsuite harness to show valgrind output when a test fails (when running
9741 under valgrind in verbose mode). This had stopped working, probably due to
9742 changes in valgrind 3.
9744 * internaltest: Check that the destructor on a temporary object gets called
9745 at the correct time (Sun C++ deliberately gets this wrong by default, and it
9746 would be good to catch any other compilers which do the same).
9748 * apitest: When running tests on the remote backend and running under valgrind,
9749 run xapian-tcpsrv and xapian-progsrv under valgrind too to avoid issues
9750 with the precision of doubles (bug#94).
9754 * Retry on EINTR from fcntl or waitpid when creating or releasing the flint
9757 * xapian-compact: Add --blocksize option to allow the blocksize to be set
9758 (default is 8K as before.)
9760 * WritableDatabase::replace_document(did, doc) was double-incrementing the
9761 "changes" counter when document did didn't exist so it would flush twice
9764 * WritableDatabase::postlist_begin(): Remove forced flush when iterating the
9765 posting list of a term which has modified postings pending.
9769 * quartzcompact: Add --blocksize option to allow the blocksize to be set
9770 (default is 8K as before.)
9772 * WritableDatabase::replace_document(did, doc) was double-incrementing the
9773 "changes" counter when document did didn't exist so it would flush twice
9778 * Most of the remote backend has been rewritten. It now supports most
9779 operations which a local database does (including writing!), the protocol
9780 used is more compact, and a number of layers of classes have been eliminated
9781 and the sequences of method calls simplified, so the code should be easier to
9782 understand and maintain despite doing more. A number of bugs have been fixed
9785 * xapian-tcpsrv: Report errno if we catch a Xapian::Error which has it set.
9787 * xapian-tcpsrv: Fix memory leak in query unserialisation.
9791 * Now using autoconf 2.60 for snapshots and releases. Also now using a
9792 libtool patch which improves support for Sun C++'s -library=stlport4 option.
9794 * configure: Fix generation of version.h to work with Solaris sed.
9796 * automake adds suitable rules for rebuilding doxygen_api_conf and
9797 doxygen_source_conf, so remove our less accurate versions. Also fix
9798 dependencies for regenerating the doxygen documentation, and make the
9799 documentation build work with parallel make.
9801 * Make use of the dist_ prefix to avoid having to list files in EXTRA_DIST as
9802 well as in *_DATA and man_MANS.
9804 * Removed a few unused #include-s.
9806 * include/xapian/error.h: Add hook to allow SWIG bindings to be built using
9807 GCC's visibility support.
9809 * configure: Turn on automake's -Wportability to help ensure our Makefile.am's
9810 are written in a portable way.
9812 * configure: Disable probing and short-cut tests for a FORTRAN compiler. We
9813 don't use one, but current libtool versions always check for it regardless.
9815 * xapian-config: Prune -L/usr/lib from output of `xapian-config --libs'.
9819 * docs/scalability.html: quartzcompact and xapian-compact now allow you to set
9820 the blocksize, so there's no need to use copydatabase if you want to migrate
9821 a database to a larger blocksize. Mention gmane. Other minor tweaks.
9823 * Eliminate "XAPIAN_DEPRECATED" from generated documentation.
9825 * PLATFORMS: Added success report for Nexenta (alpha 5), MSVC, and sparc linux.
9826 Updated other results from tinderbox.
9828 * Add links to the wiki from README and the documentation index.
9830 * docs/overview.html: Add discussion of uses of terms vs values.
9832 * docs/overview.html: Rewrite the section on Xapian::Document to remove some
9833 very out-of-date information and make it clearer.
9835 * include/xapian/database.h: Note that automatically allocated document IDs
9836 don't reuse IDs from deleted documents.
9838 * include/xapian/enquire.h: Note that "set_sort_by_relevance" is the default
9841 * docs/queryparser.html,include/xapian/queryparser.h: Add note that
9842 FLAG_WILDCARD requires you to call set_database.
9844 * HACKING: Add some advice regarding debugging using -D_GLIBCXX_DEBUG,
9847 * HACKING: Give URL to Alexandre Duret-Lutz's autotools tutorial, which is much
9848 more up-to-date than the "goat book".
9850 * HACKING: Update and expand the information about the debian packaging.
9852 * Add missing dir_contents files.
9856 * xapian/version.h: Add a check that _GLIBCXX_DEBUG is set compatibly if we're
9857 compiling with GNU C++ 3.4 or newer.
9859 * Add configure check to see if "-lm" is needed to get maths functions since
9860 newer versions of Sun's C++ compiler seem to require this.
9862 * Automatically put Sun's C++ compiler into "ANSI C++ compliant library" mode
9863 (using -library=stlport4). This allows us to remove most of the special
9864 case bits of code we've accumulated for just this compiler, which improves
9867 * Sun's C++ compiler implements non-standards-conforming lifetimes for
9868 temporary objects by default. This means database locks don't get released
9869 when they should, so we now always pass "-features=tmplife" for Sun C++
9870 which selects the behaviour specified by the C++ standard.
9872 Xapian-core 0.9.6 (2006-05-15):
9876 * Rename Xapian::xapian_version_string() and companions to
9877 Xapian::version_string(), etc. Keep the old functions as aliases which are
9878 marked as deprecated.
9880 * QueryParser: Add rules to handle a boolean filter with a "+" in front (such
9881 as +site:xapian.org).
9885 * queryparsertest: Add another prefix testcase to improve coverage.
9889 * configure: Simpler check for VALGRIND being set to empty value.
9891 * include/Makefile.am: Add xapian/version.h.timestamp as a dependency on
9892 all-local so that xapian/version.h actually gets regenerated when required.
9894 * Eliminate XAPIAN_BUILD_BACKEND_* from config.h and just use
9895 XAPIAN_HAS_*_BACKEND from xapian/version.h instead.
9899 * remote_protocol.html: Document keep-alive messages.
9901 * xapian/enquire.h: Remove bogus documentation for a parameter which doesn't
9904 * PLATFORMS: Added a summary. Updated and pruned old entries for which we
9905 have a newer close match.
9907 * HACKING: Expand on details of what's required when changing Xapian (discuss
9908 documentation requirements, and more on why feature tests are vital).
9910 * HACKING: Update section on building debian packages.
9914 * The tarball is generated with a patched version of libtool 1.5.22 which
9915 fixes libtool bugs on HP-UX and some BSD platforms.
9917 * configure: Fix problems with test for snprintf which affected cygwin, and
9918 possibly some other platforms.
9920 * configure: Tweak version.h generation to cope with CXXCPP putting carriage
9921 returns into its output as can happen on cygwin.
9923 * Fix renaming of "iamflint.tmp" for MS Windows where you can't rename an open
9926 * Fixed MSVC7 warnings.
9928 * Added workaround for newlib header bug.
9930 Xapian-core 0.9.5 (2006-04-08):
9936 + Fix FLAG_BOOLEAN_ANY_CASE to really allow any case combination - previously
9937 it only allowed all uppercase or all lowercase.
9939 + Fix QueryParser's handling of terms with trailing "#", "+", or "-" when
9940 set_database has been called and the term doesn't exist in the database
9943 * Add mechanism to allow xapian-bindings to override deprecation warnings so
9944 we can continue to wrap deprecated methods without lots of warnings.
9946 * Move Enquire::get_matching_terms_end() and Document::termlist_end() inline in
9949 * Database::termlist_begin(): Eliminate the MultiTermList wrapper in the common
9950 case where we're only dealing with a single database.
9952 * Fix TermIterator::positionlist_begin() to work on TermIterator from
9953 Database::termlist_begin(). Make TermList::positionlist_begin() pure
9954 virtual and put dummy implementations in BranchTermList and other
9955 subclasses which can't (or don't) implement it. This makes it hard to
9956 accidentally fail to implement it in a backend's TermList subclass.
9958 * TermIterator::positionlist_begin() with the remote backend now throws
9959 UnimplementedError instead of InvalidOperationError.
9961 * Implement Enquire::set_sort_by_relevance_then_value().
9965 * Added missing feature test for QueryParser::FLAG_BOOLEAN_ANY_CASE.
9967 * remotetest: Check mset size in tcpmatch1.
9971 * xapian-compact: Fixed segfault from passing an unknown option (e.g.
9972 "xapian-compact --foo").
9976 * quartzdump,quartzcompact: Fixed segfault from passing an unknown option
9977 (e.g. "quartzdump --foo").
9981 * xapian-tcpsrv: Don't perform a name lookup on the IP address which an
9982 incoming connection is from as that could easily slow down the search
9983 response - instead just print the IP address itself if output is verbose.
9985 * xapian-tcpsrv: Allow up to 5 connections in the listen queue instead of just
9990 * Removed unused code from the matcher and the remote, quartz, and flint
9995 * All installed binaries now support --help and --version and have a man page
9996 (which is generated using help2man).
9998 * docs/overview.html: Bring up to date.
10000 * docs/remote_protocol.html: Document messages for requesting and sending a
10001 termlist and a document.
10003 * PLATFORMS, AUTHORS: Updated.
10005 * INSTALL: Improve wording.
10007 * HACKING: Note that we now use a lightly patched version of libtool 1.5.22.
10009 * HACKING: aclocal is part of automake, not autoconf.
10013 * Added some tweaks to help support compilation with MSVC.
10017 * RPMs: package the new man pages.
10021 * Add missing spaces in some debug output.
10023 Xapian-core 0.9.4 (2006-02-21):
10027 * Flag deprecated methods such that the compiler gives a warning, for compilers
10028 which support such a feature (most notably GCC >= 3.1).
10030 * Correct typo in name of definition of function xapian_revision().
10034 * Updated uses of deprecated methods in the testsuite.
10038 * xapian-config: Set exec_prefix and prefix at top of script so that
10039 xapian-config works after xapian-core is installed.
10043 * Add documentation comment for Enquire::set_sort_by_value_then_relevance().
10045 * README: Add pointer to HACKING. Change "CVS access" to "SVN access".
10047 * PLATFORMS: Updated from tinderbox.
10049 * COPYING: Update second occurrence of old FSF address.
10051 Xapian-core 0.9.3 (2006-02-16):
10055 * Added 4 functions to report version information for the library version being
10056 used (which may not be the same as that compiled against if shared libraries
10057 are in use): xapian_version_string(), xapian_major_version(),
10058 xapian_minor_version(), xapian_revision().
10060 * Xapian::QueryParser:
10062 + Fix handling of "+" terms in a query when the default query operator is
10063 AND. Added regression test for this.
10065 + Added "AND NOT" as a synonym for "NOT". Added feature tests for this.
10067 * Fix prototype for ESet::operator[] to take parameter of type termcount
10068 instead of doccount (doccount and termcount are both typedefs to the same
10069 type so this really just makes the prototype more consistent).
10071 * Xapian::Stem: Check for malloc and calloc failing to allocate memory and
10072 throw an exception. Richard has fixed this upstream in snowball, so this is
10073 a temporary fix until we import a new version of snowball.
10075 * Xapian::Database: Trying to open a database for reading which doesn't exist
10076 now fails with DatabaseOpeningError instead of FeatureUnavailableError.
10077 Added regression test for this.
10079 * Add Stopper::get_description() and SimpleStopper::get_description().
10083 * Fixed testsuite harness to work with valgrind on 64 bit platforms.
10085 * Merged the "running tests" section of docs/tests.html into the similar
10086 section in HACKING, and make docs/tests.html refer the reader to HACKING for
10089 * Tidied and enhanced environmental variables which the test suite harness
10092 + OM_TEST_BACKEND: Removed support since the "-b" switch to apitest allows
10093 you control which backend is used, making OM_TEST_BACKEND pretty much
10096 + XAPIAN_SIG_DFL: Renamed to XAPIAN_TESTSUITE_SIG_DFL.
10098 + XAPIAN_TESTSUITE_OUTPUT: New environmental variable to control use of
10099 ANSI colour escape sequences in test output (set to "plain" to disable
10100 them, unset, empty, or "auto" to check if stdout is a tty, or anything
10101 else to force colour).
10105 * xapian-compact: Added "--multipass" option to merge postlists in pairs or
10106 triples until all are merged. Generally this is faster than an N-way merge,
10107 but it does require more disk space for temporary files so it's not the
10112 * quartzcheck: If the database is too broken to open, emit a warning message
10113 and bump the error count.
10117 * Now generate snapshots and releases with automake 1.9.6 (was 1.9.5) and
10118 libtool 1.5.22 (was 1.5.18).
10120 * configure: If not cross-compiling, try to actually run a test program built
10121 with the C++ compiler, not just link one.
10123 * configure: Fix to actually skip the check for valgrind if VALGRIND is set to
10126 * configure: Add sanity check for MS Windows that "find" is Unix-like find, not
10129 * Fix conditional compilation of flint backend - it was being disabled when
10130 quartz was, not when flint was supposed to be.
10134 * INSTALL,README: Updated.
10136 * Give pointer to replacements for the deprecated Enquire sorting methods
10137 in the doxygen collated documentation.
10139 * PLATFORMS: Added success reports for ppc64 linux and Fedora Core 4. Updated
10140 from the tinderbox.
10142 * HACKING: Note platforms valgrind now has solid support for; Improve
10143 phrasing in a few places.
10145 * Upgrade to using doxygen 1.4.6 for generating API documentation.
10147 * Change title of the "full source" documentation to "Internal Source
10148 Documentation" rather than "Full source documentation" to make it
10149 clearer it's only useful if you want to modify Xapian itself.
10151 * Fix documentation comments for the values of QueryParser::feature_flag so
10152 doxygen actually pulls out the documentation for them. Add documentation for
10153 the parameters of QueryParser::parse_query().
10155 * queryparser.html: Document wildcards.
10159 * Fix compilation with GCC 4.0.1 and later (need to forward declare class
10160 InMemoryDatabase) (bug #69).
10162 * Fix compilation under cygwin (broken in 0.9.2).
10164 * Don't pass NULL for the second parameter of execl() - the Linux man page
10165 says execl takes "one or more pointers to null-terminated strings". Also
10166 cast the NULL to (void*) to avoid "missing sentinel" warning from GCC4.
10168 * Use snprintf instead of sprintf where available (we were attempting to
10169 do this in some places before, but the configure test was broken so
10170 sprintf was always being used).
10172 * Enable more warnings under aCC and fix minor issues highlighted. Suppress
10173 "Entire translation unit was empty" warning which isn't useful to us.
10175 * Write top-bit set characters in the source using \xXX notation to avoid
10176 warnings from Intel's C++ compiler.
10178 * configure: TYPE_SOCKLEN_T fails hard, so only run it if we've successfully
10179 run other socket tests.
10181 * queryparser/accentnormalisingitor.h: #include <limits.h> for CHAR_BIT.
10183 * bin/xapian-compact.cc: Fix printf type mismatch on 64 bit platforms.
10185 * Replace pair<bool, string> with a simple class BoolAndString - the pair
10186 results in a 4328 byte symbol on HP-UX which gets truncated (to 4000 bytes).
10187 Most likely this is harmless, but it causes a warning.
10189 * configure: Disable flint backend by default if building for djgpp or msdos.
10191 * xapian-config: Previously when linking without libtool we've always thrown
10192 in dependency_libs, even though only some platforms need it (because it's
10193 generally pretty harmless). However some Linux distros have an unhelpful
10194 policy of not packaging .la files, so libxapian.la isn't available to
10195 extract dependency_libs from. Linux is a platform which doesn't require
10196 dependency_libs to be explicitly linked, so extend xapian-config to not
10197 pull in dependency_libs if libtool's link_all_deplibs_CXX=no.
10199 * xapian-config: If the current platform needs dependency_libs and
10200 libxapian.la's dependency_libs contains another .la file, transform it into a
10201 pair of -L and -l options, and recursively expand its dependency_libs (if
10204 * Don't pass functions with C++ linkage to places wanting pointers to functions
10205 with C linkage. So far this has worked for us, but it causes warnings with
10206 some compilers, and may not be portable.
10208 * Compaq C++ 7.1 doesn't suffer from the problem which previously prevented
10209 it from building Xapian. This release includes workarounds for some
10210 oddities with errno.h support in this compiler, but currently the build
10211 fails when trying to link a binary with the library.
10215 * RPM: Invoke %setup correctly in xapian.spec.
10219 * Add missing '#include <iostream>' when TIMING_PATCH is defined.
10221 Xapian-core 0.9.2 (2005-07-15):
10227 + Added optional "flags" argument to parse_query method.
10229 + Add flag FLAG_BOOLEAN_ANY_CASE which tells the QueryParser that boolean
10230 operators such as "AND", "OR", and "NEAR" should be recognised even if
10231 they aren't fully capitalised (so "and", "And", "aNd", etc will work too).
10233 + Add flag FLAG_WILDCARD which tells the QueryParser to allow right
10234 truncation e.g. "xap*".
10236 + Fixed to handle "-site:microsoft.com" where site is a boolean prefix.
10237 Added testcases for this.
10241 * The test harness was incorrectly creating a quartz database when a flint one
10242 was requested, which meant tests weren't being run against flint and so it
10243 had bugs rendering it pretty much unusable.
10245 * Added regression test longpositionlist1 (to check encoding/decoding a long
10246 position list, which flint had problems with).
10250 * Bumped format version number.
10252 * Added new "xapian-compact" program which can compact and merge flint
10253 databases in a similar way to how quartzcompact does for quartz databases.
10255 * Fixed to auto-detect database type when opening an existing Flint database
10256 as a WritableDatabase.
10258 * The code to encode the position list size, first entry, and last entry
10259 didn't match the code to decode them! Reworked both to match, using a
10260 slightly more compact encoding.
10262 * We were failing to append "DB" to the path when opening a table for reading.
10264 * Rewrite of FlintAllTermsList with several fewer member variables. The
10265 rewrite fixes a bug too - the old version wasn't ignoring the metainfo
10266 entry which is now in the postlist table.
10268 * It seems we need to explicitly kill the child process used for locking.
10269 Otherwise when we have two databases locked just closing the connection
10270 doesn't cause the child to die. I don't understand why it's needed, but this
10271 fix is at least clean.
10275 * quartzcompact: Fix mis-repacking of keys in positionlist table when merging
10278 * Disable assertion in allterms iteration which is incorrect in a corner case.
10279 This is only a problem if a termname contains zero bytes and you're using a
10280 debug build. Add regression test test_specialterms2.
10284 * Implement sorting on a value with the remote backend.
10288 * Pass automake options to AM_INIT_AUTOMAKE rather than specifying them in
10289 Makefile.am. This way, the version requirements for autoconf and automake
10290 are stated close together.
10292 * configure: -Wshadow causes false positives with GCC 3.0.4, so only enable it
10295 * configure: Eliminate use of "ln -s" when generating include/xapian/version.h
10296 since it seems to cause problems on Solaris in some setups and isn't really
10299 * Add dependency mechanism so version.h gets regenerated when the template is
10302 * configure: Check for spaces in build directory, source directory, or install
10303 prefix and die with a helpful message.
10305 * Add dependency to generate queryparser_token.h.
10307 * Eliminated TOP_SRCDIR and TOP_BUILDDIR - it's better to just use top_srcdir
10308 and top_builddir directly.
10310 * configure: Generate the list of source files to feed to doxygen by inspecting
10311 all the Makefile.am files prior to running autoreconf rather than by using
10312 "find" when the user runs ./configure. This speeds up configure, avoids
10313 generating docs for random .cc and .h files which aren't part of xapian-core,
10314 and avoids problems with picking up FIND.EXE on MS Windows.
10318 * Expanded explanation of the "descending docid with boolean weighting" trick
10319 for fast date ordered searching in Enquire::set_docid_order() API docs.
10321 * docs/intro_ir.html: Citeseer has moved, so update link.
10323 * testsuite/testsuite.cc: Update URL for valgrind FAQ in comment.
10325 * COPYING: Update FSF address.
10327 * HACKING: Minor updates to release checklist.
10331 * Assorted tweaks towards allowing compilation with MSVC.
10335 * xapian.spec.in: Package xapian-compact.
10337 Xapian-core 0.9.1 (2005-06-06):
10341 * Fix SEGV on get_terms_begin() on an empty Query object. This was causing
10342 a SEGV in Omega with an empty query.
10344 * Put Query::get_terms_end() inline in header.
10348 * Added the new "flint" backend, which starts out as a copy of the quartz
10349 backend plus some modifications and replacements. When creating a database
10350 without a specified backend, quartz is still used unless the environmental
10351 variable XAPIAN_PREFER_FLINT is set to a non-empty value.
10353 * apitest now runs tests on flint as well as the other backends.
10355 * Removed undocumented (and hence the little used) quartz "log" feature.
10357 * Implement new fork+fcntl+exec based locking (for Unix) and CreateFile based
10358 locking (for Windows - currently untested).
10360 * Move the special key/tag pair holding the total document length and doc id
10361 high water mark from the record table to the postlist table. This means that
10362 when appending documents, the insertion point will now always be at the end
10363 of the record table which is more efficient. We need to jump around the
10364 postlist table to merge postings in anyway.
10366 * Changed metafile magic to be different from quartz, and make the metafile
10367 version a datestamp which we'll change each time the format changes.
10369 * Check the return value of close() when writing the metafile.
10371 * Flint position list table now stores entries using interpolative coding
10372 (which is significantly more compact).
10376 * quartzcheck: Fixed corner case where you couldn't check a single Btree table
10377 which was just the DB and baseA/baseB files in a directory (Xapian doesn't
10378 produce anything like this, but btreetest does while unit testing the
10383 * Releases are now created using libtool 1.5.18 and automake 1.9.5.
10385 * configure: Pass more -W flags to g++ (including -Wundef which caught the
10386 getopt problem fixed in this release). Fixed new GCC warnings from these new
10389 * Fixed a lingering DOXYGEN_HAVE_DOT reference.
10391 * Fixed accidentally pruned #define which meant that getopt code was being
10392 included even on systems which use glibc (on such systems, we should use
10393 the glibc copy of the code instead).
10395 * queryparser/queryparser.lemony: Add missing '#include <config.h>'.
10399 * Added missing documentation comments for a QueryParser methods added in
10402 * docs/quartzdesign.html: Removed warning that quartz is still in development.
10404 * PLATFORMS: Updated from tinderbox.
10406 * configure: Describe CC_FOR_BUILD in configure --help output.
10408 * HACKING: Updated release instructions to refer to SVN, and note that release
10409 tarballs are now built specially rather than being copies of snapshots.
10410 Update information about the SVN tag name to use for debian files.
10412 * HACKING: Add "email Fabrice" to the release checklist so that RPM
10413 spec files don't lag behind.
10415 * Fixed a few spelling mistakes.
10419 * xapian.spec: Remove bogus %setup line left over from when we packaged
10420 xapian-core and xapian-examples together from separate tarballs.
10424 * api/omqueryinternal.cc: Fixed compilation with --enable-debug.
10426 * common/omdebug.h: Replace C style cast with static_cast<> which reveals that
10427 we were discarding const (harmlessly though).
10429 Xapian-core 0.9.0 (2005-05-13):
10433 * Query objects really need to be immutable after construction (otherwise we
10434 need a copy-on-write mechanism). To achieve this the following API changes
10437 + Remove Query::set_length() in favour of an optional length
10438 parameter to Enquire::set_query().
10440 + Eliminated Query::set_elite_set_size() in favour of optional parameter
10443 + Eliminated Query::set_window() in favour of an optional parameter to the
10446 * Removed OP_WEIGHT_CUTOFF, since it doesn't actually seem to add useful
10447 functionality over using Enquire::set_cutoff().
10449 * MSet::max_size() (which only exists so that MSet is an STL container) now
10450 returns MSet::size() and is inlined from the header.
10452 * Added ESet::max_size() (for STL compatibility).
10454 * Fixed Xapian::RSet to have the same "it's a handle" copy semantics as most of
10457 * Rewritten QueryParser class:
10459 + Uses Lemon instead of Bison to generate the parser, which enables us to
10460 stop using static data, so this class is at last reentrant.
10462 + QueryParser now uses a PIMPL style with reference counted internals like
10463 most of the other Xapian classes.
10465 + Direct access to member variables has gone, which unfortunately forces an
10466 API change (but this fixes bug #39). Instead of accessing
10467 QueryParser::termlist member variable, iterate over terms using
10468 Query::get_terms_begin() and get_terms_end() on the returned Query object.
10469 Direct access to stoplist is replaced by QueryParser::get_stoplist_begin()
10470 and get_stoplist_end(); and to unstem by get_unstem_begin() and
10473 + The rewrite parses many real world examples better than the old version.
10475 + Now allow searches for C#, etc. If a database has been set, for this and +
10476 and - suffixes, check if the term actually exists, and if not, ignore the
10477 suffix if the unsuffixed term exists.
10479 + Added QueryParser::get_description() method (not very descriptive yet!)
10481 + Added backward compatibility wrapper for old version of
10482 QueryParser::set_stemming_options().
10484 + xapian.h now automatically includes xapian/queryparser.h. Directly
10485 including xapian/queryparser.h will continue to work for now, but is
10488 + QueryParser::parse_query() was failing to clear termlist and unstem
10489 - the rewrite fixes this.
10491 + New QueryParser parses "term prefix:(term2 term3)" correctly.
10493 * Added Xapian::SimpleStopper which just stops terms specified by a pair of
10494 iterators. This should be sufficient for the majority of uses.
10496 * Tidied up the Enquire sorting API and added ability to reverse sort on a
10497 value. Removed sort_bands support.
10499 * Enquire::get_description() improved.
10501 * Methods which return an end iterator where the internals are just NULL are
10502 now inline in the header for efficiency. Should we ever need to change an
10503 implementation, we can easily move methods back into the library and bump the
10504 library version suitably.
10506 * Added Stem::operator() as preferred alternative to Stem::stem_word().
10508 * Simplified Stem internal design by restructuring to eliminate a few internal
10511 * BM25Weight: Avoid fetching document length if we're simply going to multiply
10516 * Fixed TEST_EQUAL_DOUBLE to use DBL_EPSILON correctly.
10518 * Rewrite of index_utils test harness code, removing unused and unusual
10519 features. Data files for tests are now easier to write. These changes
10520 also fix the bug that ^x didn't actually decode hex values correctly.
10522 * tests/testdata/etext.txt: Stripped carriage returns.
10524 * apitest: Extended stemlang1 to check that trying to create
10525 a stemmer for a non-existent language throws InvalidArgumentError.
10529 + Moved into tests/ subdirectory.
10531 + Reworked to use the standard testsuite harness.
10533 + Added tests for new features in the rewritten QueryParser.
10537 * quartzcheck: Now checks the structure of all the tables, not
10538 just the postlist table, and cross-checks doclen values between
10539 termlist and postlist tables. Recognises "--help" option. Should
10540 now continue after an error (typically it would crash before), and
10541 counts the number of errors found. Now exits with non-zero status
10542 if any errors were found. More readable output.
10544 * quartzcompact: Extended to allow merging several quartz
10545 databases to produce a single compact quartz database. This
10546 allows for faster building - simple index in chunks, then merge
10549 * quartzcompact: Made full compaction a tiny bit more compact.
10551 * quartzcompact: Added "fuller compaction" mode, which ignores the usual "at
10552 least 4 items per block" rule. This achieves slightly tighter compaction,
10553 though it's probably not advisable to use this option if you plan to update
10554 the compacted database.
10556 * Improved compaction by a few % in non-full case. Tighter bound on amount of
10557 memory to reserve to read the tag into.
10559 * Fix skip_to on an allterms TermIterator to set the current term when the
10560 skip_to-ed term is in the database. Add regression test for this
10563 * Values are stored in sorted order so we can stop unpacking the list once we
10564 get to one after the one we're looking for (in the case where the one we're
10565 looking for doesn't exist).
10569 * configure: Check that the C++ compiler can actually link a program.
10570 AC_LANG_CXX doesn't, and if it can't find a C++ compiler it'll just return
10571 "g++" which just leads to a later configure test failing in a confusing way.
10573 * configure: corrected configure output of "none known for yes" or "none known
10574 for no" to "none known for g++-3.2" or similar.
10576 * include/xapian/version.h: Define XAPIAN_HAS_xxx_BACKEND for each backend
10577 which is enabled. The bindings need this, and user code might find it useful
10580 * include/xapian/database.h: Don't declare the backend factory functions if the
10581 corresponding backend has been disabled. This means that trying to use a
10582 disabled backend will be caught at compile time rather than link time.
10584 * configure: Enhanced valgrind test to (a) see if --tool=memcheck
10585 is needed and (b) see if valgrind actually works (we don't want to
10586 try to use an x86 valgrind on an x86_64 box).
10588 * configure: Suppress 2 Intel C++ warnings which we can't easily code around,
10589 and enable -Werror automatically with --enable-maintainer-mode.
10591 * Clearer make rules for building Postscript doxygen docs.
10593 * Removed some no longer used code.
10595 * Moved a number of method definitions out of headers because they are virtual,
10596 or too large to be sensible candidates for inlining.
10598 * Eliminated the extra library for the queryparser - it's tiny compared to the
10599 main library and having it around just complicates things.
10601 * configure: We no longer need Bison, but we do need CC_FOR_BUILD to compile
10604 * Snapshot generator now appends _svn6789 or similar to the version string.
10605 Adjusted configure and XO_LIB_XAPIAN macro to take this into account.
10607 * configure: If any tools needed for documentation are missing
10608 and we're in maintainer mode, die with a suitable error in
10609 configure rather than with strange errors when building the
10612 * docs/Makefile.am: Explicitly set the pool_size for latex, because we
10613 now seem to overflow the default setting on some systems.
10615 * docs/Makefile.am: Use $(MAKE) instead of make.
10619 * Numerous improvements to documentation comments. Added documentation
10620 comments for QueryParser class.
10622 * HACKING: Added better description of how reference-counted API
10623 classes are structured.
10625 * HACKING: Note that '#include <limits>' isn't supported by GCC 2.95,
10626 and other assorted minor tweaks.
10628 * HACKING: Note how to disable use of VALGRIND on the make check
10629 command line, or when using runtest directly.
10631 * Updated all documentation mentions of CVS to talk about Subversion
10634 * PLATFORMS: Updated from tinderbox and other sources.
10636 * PLATFORMS: Added minimal testcase which fails to compile with
10637 Compaq's C++ compiler (cxx).
10639 * INSTALL,README: Updated.
10641 * docs/queryparser.html: Note that + and - work on phrases and
10642 bracketed expressions.
10644 * docs/intro_ir.html: Corrected two errors.
10646 * docs/stemming.html: Stemming appears to be applicable to Japanese
10647 so don't say it isn't!
10651 * Moved xapian-examples module to examples subdirectory of xapian-core.
10653 * quest: Added stopword handling.
10657 * configure: autoconf identifies Intel's C++ compiler as GCC, so probe for
10658 which we actually have.
10660 * Xapian will now compile cleanly with Intel C++ 8.1 on ia64 Linux and
10663 * backends/quartz/btree.cc: Fixed GCC compilation warning.
10665 * tests/api_db.cc: Fixed warning from Sun's C++ compiler.
10667 * configure: Automatically enable ANSI C++ mode for SGI's compiler
10668 with '-LANG:std'; check that any automatically determined flags
10669 for ANSI C++ mode actually allow us to compile a trivial program
10670 - if they don't it probably means the compiler isn't the one we
10671 were expecting, but one installed with the same name, so we now
10672 drop the flags in this case.
10674 * The compile on IRIX with SGI compiler is now warning free, apart from two
10675 "unused variable" warnings in Snowball generated code.
10677 * On WIN32, don't define NOMINMAX if it is already defined.
10681 * xapian.spec: Don't say "%makeinstall" in a comment since rpm
10682 tries to expand it and explodes.
10684 * xapian.spec: '/usr/share' -> '%{_datadir}'.
10686 * xapian.spec: Put the .so in the -devel package (it's only useful
10687 for linking to - the .so.* files are all that's needed at runtime).
10691 * net/socketserver.cc: Fixed typo in debug code.
10693 Xapian-core 0.8.5 (2004-12-23):
10697 * quartzcompact: When full_compaction is enabled, don't fill the last few bytes
10698 of a block if that would mean we needed an extra item and the overhead for
10699 that item would use up more of the next block than we save. This reduces the
10700 table size after full compaction by up to 0.2% in my tests!
10702 * quartzcompact: Tables sizes will always be a whole number of Kbytes, since
10703 the blocksize is, so report the size in K. Also report the change in size as
10704 well as the before and after sizes.
10706 * quartzcompact: Added missing '#include <config.h>' so that largefile support
10707 is enabled when we call stat() and we report compression statistics for
10710 * quartzcompact: Added --no-full / -n option to disable full compaction. This
10711 may be useful if you want to update the database after compacting it (need to
10712 test to see if this option is actually useful).
10714 * Renamed Btree::compress() to Btree::compact() for consistency with
10715 "full_compaction" and "quartzcompact". Also, "compress" is confusing since
10716 we use that term in the zlib patch.
10720 * xapian-config: Fixed --libs output to not include libxapian.la.
10722 * Added missing '#include <config.h>' to various .cc files (the omissions were
10723 probably harmless, but config.h should be included as the first thing any
10732 * RPM spec file: %makeinstall puts the wrong paths in the .la files so use
10733 "make DESTDIR=... install" instead.
10737 * Fixed to build with AssertParanoid enabled.
10739 Xapian-core 0.8.4 (2004-12-08):
10743 * Added constructors to Database and WritableDatabase which fulfil the role
10744 that the Auto::open() factory functions currently do. Auto::open() is
10747 * Removed the ability to write a Xapian object to an ostream directly, as
10748 it's little used and potentially dangerous ('cout << mset[i];' will
10749 compile, but you almost certainly meant 'cout << *mset[i];'). You can
10750 get the old effect by writing 'cout << obj->get_description();' instead
10751 of 'cout << obj;'. Note that including xapian.h no longer pulls in
10752 fstream, which code may have been implicitly relying on - if this is
10753 a problem add '#include <fstream>' after '#include <xapian.h>'.
10755 * QueryParser: Be smarter about when to add a ':' when adding a term prefix.
10757 * BoolWeight::unserialise() now returns BoolWeight*, and similarly for
10758 TradWeight and BM25Weight. BoolWeight::clone() now returns BoolWeight *.
10760 * If a database contains no positional information, change NEAR and PHRASE
10761 queries into AND queries (as otherwise they'd return no matches at all)
10762 (bug #56). Added feature test phraseorneartoand1.
10764 * Renamed BM25 parameters to match standard naming in papers and elsewhere
10765 (A->k3, B->k1, C->k2, D->b), eliminated the extra factor of 2 which our C
10766 had, and reordered the parameters to k1, k2, k3. This is an incompatible API
10767 change for BM25Weight(), so if you are using custom parameters for BM25
10768 you'll need to update your code.
10770 * During query expansion, if we estimate the term frequency, ensure it has a
10771 sane value (>= r and <= N - R + r) rather than bodging around the problem
10774 * TradWeight, BM25Weight: termfreq is always exact for matching (we only
10775 approximate it for query expansion) so replace code to work around bad
10776 approximations with Assert() to make sure this never happens.
10780 * runtest: Enhanced to allow it to run test programs under valgrind and other
10781 tools (gdb was already supported).
10783 * runtest: now works with valgrind 2.1.2 and later (valgrind's --logfile-fd
10784 option was renamed to --log-fd).
10786 * runtest: Allow VALGRIND environmental variable to override the value we got
10789 * Added a dependency so "make check" regenerates runtest if necessary.
10791 * The test programs now point the user to the runtest script if srcdir can't
10792 be guessed. And they no longer look for the test program in the tests
10793 subdirectory of the current directory.
10795 * btreetest: Fixed memory leaks in test_cursor1 (the testcase itself was
10796 causing the leak, not the library).
10798 * apitest: Fixed mset_range_is_same() and mset_range_is_same_weights() helper
10799 functions which were only comparing the first item in the range. Thankfully
10800 the tests still all pass so this wasn't hiding any bugs.
10802 * apitest: A modified version of changequery1 fails - the bug is obscure and
10803 subtle, and the fix is tricky so set the modified test to SKIP for now.
10805 * apitest: Added test_weight1 which tests the built-in Xapian::Weight
10806 subclasses and test_userweight1 which tests user defined weighting schemes
10809 * quartztest: Test with DB_CREATE_OR_OPEN in writelock1.
10813 * An interrupted update could cause any further updates to fail with "New
10814 revision too low" because the new revision was being calculated incorrectly -
10817 * Fixed Bcursor::del() which didn't always leave the cursor on the next item
10818 like it should. This may have been causing problems when trying to remove
10819 the last references to a particular term.
10821 * Fixed ultra-obscure bug in the code which finds a key suitable to
10822 discriminating between two blocks in a B-tree branch (discovered by reading
10823 the code). Comparing the keys didn't consider the length of the second, so
10824 it is possible the code would miscompare. But in reality this is extremely
10825 unlikely to happen, and even then would probably just mean that the
10826 discriminating key wouldn't be as short as it could be (wasting a few bytes
10827 but otherwise harmless).
10829 * If we're removing a posting list entirely, often there will only be one
10830 chunk, so avoid creating a Bcursor in this case.
10832 * Simplified Btree::compare_keys() by removing the last case which was dead
10833 code as it was covered by an earlier case.
10835 * Check that any user specified block size is a power of 2. If the block
10836 size passed is invalid, use the default of 8192 rather than throwing an
10839 * Started to refactor the Btree manager by introducing Item and Key classes
10840 which take care of handling the on-disk format, and eliminated duplicated
10841 tag reading code in Btree and Bcursor. These changes will pave the way for
10842 improvements to the on disk format.
10844 * Applied the Quartz "DANGEROUS" patch, but disabled for now. This way it
10845 won't keep being broken by changes to the code.
10847 * quartzcompact: Added --help and --version; Check that the source path and
10848 desitination path aren't the same; Report each table name when we start
10849 compacting it, and some simple stats on the compaction achieved when we
10854 * Removed a default parameter value from one variant of
10855 Xapian::Muscat36::open_db() so that there's only one candidate for
10860 * xapian-config: If flags are needed to select ANSI mode with the current
10861 compiler, then make xapian-config --cxxflags include them so that Xapian
10862 users don't have to jump through the same hoops we do.
10864 * xapian-config: Added --swigflags option for use with SWIG.
10866 * XO_LIB_XAPIAN now passes ac_top_srcdir to xapian-config which uses it
10867 (if provided) to say "configure.ac" or "configure.in" rather than
10868 "configure.in (or configure.ac)" in the "Add AC_PROG_LIBTOOL"
10871 * Cleaned up the build system in a few places.
10873 * Removed a few totally unneeded header includes.
10875 * Moved a number of functions and methods out of headers because they're not
10876 good inlining candidates (too big or virtual methods).
10878 * Changed C style casts to C++ style. The syntax is ugly, but they do make the
10879 intent clearer which is a good thing. Note this as a coding style guideline
10882 * configure.ac: Automatically add -Werror to CFLAGS and CXXFLAGS if
10883 maintainer mode is enabled and we're using GCC3 or newer. Don't do
10884 this for older GCCs as GCC 2.95 issues spurious warnings.
10886 * Reworked how include/xapian/version.h is generated so that it works
10887 better with compilers other than GCC, and with HP-UX sed.
10889 * XAPIAN_VERSION is now a string (e.g. "0.8.4").
10891 * Added new #define XAPIAN_REVISION (which is 4 for version 0.8.4).
10895 * docs/bm25.html,docs/intro_ir.html: Reworked to talk about Xapian
10896 rather than Muscat. Also improved the appearance of the formulae.
10898 * HACKING: Valgrind now supports x86 FreeBSD and PowerPC Linux.
10900 * Documented parameters of Enquire::register_match_decider().
10902 * We now use doxygen 1.3.8 to build documentation for snapshots and releases.
10904 * PLATFORMS: Updated from the tinderbox (which now runs builds on machines
10905 available in HP's testdrive scheme) and other assorted reports.
10907 * PLATFORMS: Removed reports from versions prior to 0.7.0. So much
10908 has changed that these are of little value.
10910 * docs/scalability.html: Added note warning about benchmarking from cold.
10912 * Assorted other minor documentation improvements.
10916 * configure.ac: Improved snprintf configure test to actually
10917 check that it works (older implementations may have different
10918 semantics for the return value, and at least one ignores the length
10919 restriction entirely!)
10921 * Reworked the GNU getopt source we use so that the header is clean and
10922 suitable for use from a reasonably ISO-conforming C++ compiler instead of
10923 being full of cruft for working around quirky C compilers which C++ compilers
10924 tend to stumble over.
10926 * Use SOCKLEN_T for the type we need to pass to various socket calls, since
10927 HPUX defines socklen_t yet wants int in those calls. Reworked the
10928 TYPE_SOCKLEN_T test we use.
10930 * On Windows, we want winsock2.h instead of sys/socket.h. Mingw doesn't seem
10931 to even have the latter, so I think previously we've been compiling by
10932 picking one up from somewhere random!
10934 * Change the small number of C sources we have to be C++ so we can compile
10935 everything with the C++ compiler. This way we don't need to worry about
10936 configure choosing a mismatching pair of compilers, or about whether
10937 configure tests with the C compiler don't apply to the C++ compiler, or vice
10940 * Compiles and passes testsuite with HP's aCC (we have to compile in
10941 ANSI mode, so we automatically add -AA to CXXFLAGS).
10943 * If the link test detects pread and pwrite are present, get configure to try
10944 out prototypes for pread and pwrite. This is much cleaner than trying to
10945 find the right combination of preprocessor defines to get each platform's
10946 system headers to provide prototypes.
10948 * configure: Disable probing for pread/pwrite on HP-UX as they're present but
10949 don't work when LFS (Large File Support) is enabled, and we definitely want
10952 * Fixed some warnings from Sun's C++ compiler.
10954 * Provide our own C_isalpha(), etc replacements for isalpha(), etc
10955 which always work in the C locale and avoid signed char problems.
10957 * For mingw/cygwin, pass -no-undefined when linking libxapianqueryparser.la
10958 so libtool builds a shared library. Also pass the magic linker flag
10959 -Wl,--enable-runtime-pseudo-reloc if configure has determined it is needed.
10961 * For cygwin, use the underlying MoveFile API call for locking, as link()
10962 doesn't work on FAT partitions. And don't rely on HAVE_LINK to control
10963 whether we use link() otherwise - if the configure test somehow misfires, a
10964 compilation error is better than using rename() on Unix as that would cause a
10965 second writer to smash the lock of the first.
10967 * Closer to building with Compaq C++ - add "-std strict_ansi" to CXXFLAGS, and
10968 tweaked the code in several places. It currently dies trying to compile
10969 the PIMPL smart pointer template code which looks hard to fix.
10973 * HACKING: Document that %% in XAPIAN_DEBUG_LOG is substituted with
10974 the process-id, and that setting XAPIAN_DEBUG_FLAGS to -1 enables
10975 all debug messages.
10977 * Removed compatibility code for checking environment variables OM_DEBUG_FILE
10978 and OM_DEBUG_TYPES.
10980 Xapian-core 0.8.3 (2004-09-20):
10984 * Fixed bug which caused a segmentation fault or odd "Document not found"
10985 exceptions when new check_at_least parameter to Enquire::get_mset() was used
10986 and there weren't many matches (regression test checkatleast1).
10990 * Renamed omtcpsrv to xapian-tcpsrv and omprogsrv to xapian-progsrv.
10994 * RPM packaging now has a separate package for the runtime libraries to
10995 allow 32 and 64 bit versions to be installed concurrently.
10997 * RPM for xapian-core now includes binaries from xapian-examples.
11001 * Fixed to compile with debug tracing enabled.
11003 Xapian-core 0.8.2 (2004-09-13):
11007 * Removed the compatibility layer which allowed programs written against the
11008 pre-0.7.0 API to be compiled.
11010 * Added new ESet methods swap(), back() and operator[].
11012 * Xapian::WritableDatabase::replace_document can now be used
11013 to add a document with a specific docid (to allow keeping docids
11014 in sync with numeric UIDs from another system).
11016 * Added Xapian::WritableDatabase::replace_document and
11017 delete_document variants which take a unique id term name rather
11018 than a document id.
11020 * Enquire::get_mset(): If a matchdecider is specified and no matches
11021 are requested, the lower bound on the number of matches must be 0
11022 (since the matchdecider could reject all the matches).
11024 * Renamed Query::is_empty() to Query::empty() for consistency. Keep
11025 Query::is_empty() for now as a deprecated alias.
11027 * Enquire::set_sorting() now takes an optional third parameter which allows
11028 you to specify a sort by value, then relevance, then docid instead of
11029 by value then docid.
11031 * Enquire::get_mset() now takes an optional "check_at_least" parameter
11032 which allows Omega's MIN_HITS functionality to be implemented in the matcher
11033 (where it can be done a bit more efficiently).
11037 * Reworked quartztest's positionlist1 into a generic api test as apitest's
11040 * apitest: Reenabled allterms2, but with the iterator copying parts removed -
11041 TermIterator is an input_iterator so that part was invalid.
11043 * Overhauled btreetest and quartztest - tests at the Btree level are now all
11044 in btreetest. Those at the QuartzDatabase level are in quartztest.
11046 * Split api_db.cc into 3 files as it has grown rather large.
11048 * tests/runtest: Added support for easily running gdb on a test program,
11049 automatically sorting out srcdir and libtool.
11053 * Refactored the quartz backend code to reduce the number of layered classes
11054 and eliminate unnecessary buffering, reducing memory usage so that more
11055 posting list changes can be batched together (see next change) and database
11056 building can be done several times faster.
11058 * Added tunable flush threshold - set XAPIAN_FLUSH_THRESHOLD=50000 to flush
11059 every 50000 documents. The default is now every 10000 documents (was
11060 every 1000 documents previously). The optimum value will most likely
11061 depend on your data and hardware.
11063 * WritableDatabase::get_document() no longer forces pending changes to be
11064 flushed. The document will read things lazily from the database, and that
11065 reading may trigger a forced flush).
11067 * WritableDatabase::get_avlength() no longer forces pending changes to be
11068 flushed. This means you can now search a modified WritableDatabase without
11069 causing a flush unless the search includes a term whose postlist has pending
11072 * Reduced quartz postlist chunk threshold from "2048 or a few bytes more" to
11073 "2000 or a few bytes more" so that full size chunks won't get split by the
11076 * Improved the "Db block overwritten" message. The DatabaseCorruptError
11077 version now suggests multiple writers may be the cause, while the
11078 DatabaseModifiedError version uses less alarming wording and says to call
11079 Database::reopen().
11081 * QuartzWritableDatabase now stores the total document length and the last
11082 docid itself rather than tallying added and removed document length and
11083 writing the last docid back every time a document is added. This gives
11084 cleaner code and a small performance win.
11086 * Make the first key null for blocks more than 1 away from the leaves.
11087 It saves disk space for a tiny CPU and RAM cost so is bound to be
11090 * matcher/localmatch.cc: Fixed problems handling termweights in queries with
11091 the same term repeated (bug #37) and added regression test (qterminfo2).
11093 * Sped up iteration over all the terms in a database (QuartzCursor now only
11094 reads the tag from the Btree if asked to).
11096 * Cancelling an operation is now implemented more efficiently.
11100 * Fixed bugs with deleting a document while a PostingIterator over it is
11105 * Fixed to compile now that internal_end_session() has gone (broken in 0.8.1).
11109 * Fixed to compile when configured with --disable-inmemory (bug #33).
11111 * XO_LIB_XAPIAN now AC_SUBSTs XAPIAN_VERSION so your application's build
11112 system can easily check for a particular version of Xapian.
11114 * When compiling with GCC, we check that the compiler used to compile the
11115 library and the compiler used to compile the application have compatible
11116 C++ ABI versions. Unfortunately GCC 3.1 incorrectly reports the same
11117 ABI version as GCC 3.0, so we now special case that test.
11119 * Bumped the versions of the autotools we require for bootstrapping, and
11120 updated the documentation of these in the HACKING document.
11122 * Quote macro names to fix warnings from newer aclocal.
11126 * Improved API documentation for Xapian::WritableDatabase::replace_document and
11129 * Added documentation comments for MSet methods size(), empty(), swap(),
11130 begin(), end(), back().
11132 * Removed bogus documentation comments saying that some Enquire methods can
11133 throw DatabaseOpeningError.
11135 * Updated quartz design docs to reflect recent changes. Also pulled
11136 out the Btree and Bcursor API docs and slotted them in as doxygen
11137 documentation comments - this way they're much more likely to
11138 be kept up-to-date.
11140 * Corrected multiple occurrences of "an Xapian::XXX" to "a Xapian::XXX"
11141 (presumably these all resulted from replacing "Om" with "Xapian::").
11143 * Various minor updates and improvements.
11147 * Reworked how we cope with fcntl.h #define-ing open on Solaris. This change
11148 finally allows Sun's C++ compiler to produce a working Xapian build on
11151 * configure.ac: Don't define DATADIR - we no longer use it and clashes
11152 with more recent mingw headers.
11154 * matcher/andpostlist.cc: Initialise lmax and rmax to 0. This cures
11155 the SIGFPE on apitest's qterminfo2 on alpha linux.
11157 Xapian-core 0.8.1 (2004-06-30):
11161 * New method Xapian::Database::get_lastdocid which returns the highest used
11162 document id for a database (useful for re-synchronizing an indexer which
11163 was interrupted). Implemented for quartz and inmemory.
11165 * Xapian::MSet::get_matches_*() methods now take collapsing into account, and
11166 the documentation has been clarified to state explicitly that collapsing and
11167 cutoffs are taken into account (bug#31).
11169 * Xapian::MSet: Need to adjust index by firstitem when indexing into items
11172 * MSetIterator and ESetIterator are now bidirectional iterators (rather than
11173 just input iterators)
11175 * Fixed post-increment forms of PostingIterator, TermIterator,
11176 PositionIterator, and ValueIterator so that *i++ works (as it must for them
11177 to be true input iterators).
11179 * Xapian::QueryParser: If we fail to parse a query, try stripping out
11180 non-alphanumerics (except '.') and reparsing.
11182 * Fixed memory leaked upon Xapian::QueryParser destruction.
11184 * Removed several unused Xapian::Error subclasses (these were used by the
11185 indexer framework which we decided was a failed experiment).
11189 * queryparsertest: Pruned near-duplicate queryparsertest testcases.
11191 * queryparsertest: Added test case for `term NOT "a phrase'.
11193 * remotetest: Use 127.0.0.1 instead of localhost so that tcpmatch1 doesn't fail
11194 just because the network setup is broken.
11196 * apitest: Make emptyquery1 check that Query("") causes an InvalidArgumentError
11201 * Fixed bug which meant we sometimes failed to remove a posting when deleting
11202 or replacing a document.
11204 * Fixed PostlistChunkReader to take a copy of the postlist data being read to
11205 avoid problems with reading data from a string that's been deleted.
11207 * Fixed bug in postlist merging which could occasionally extend a postlist
11208 chunk to overlap the docid range of the next chunk.
11210 * Eliminated the split cursor in each Btree object - we only actually need a
11211 single block buffer to handle splitting blocks. This reduces the memory
11212 overhead of each Bcursor (and hence each QuartzPostList).
11214 * Changed 2 calls to abort() to throw Xapian::DatabaseCorruptError instead,
11216 * If Btree is writable, throw DatabaseCorruptError if we detect overwritten.
11218 * Check the return value of fdatasync()/fsync()/_commit() and raise an error.
11219 If they fail, we really want to know as it could cause data corruption.
11221 * Assorted clean ups, improved comments, debug tracing, assertions.
11223 * When merging in postlist changes, removed an unneeded call to
11224 QuartzBufferedTable::get_or_make_tag() in a case when we're using a cursor
11225 which has already fetched the tag.
11227 * Added SON_OF_QUARTZ define to disable incompatible changes to database
11228 formats by default, and use it to control the docid encoding for keys such
11229 that we're always inserting at the end of the table when added new documents.
11231 * Reopening the readonly version of a writable Btree is now more efficient
11232 (we used to close and reopen all the files and destroy and recreate a lot
11233 of objects and buffers).
11235 * Share file descriptors between the read and write Btree objects so that a
11236 quartz WritableDatabase now uses 5 fds rather than 10.
11238 * Added configure test for glibc, because otherwise we need to include a header
11239 before we can check for glibc in order to define something we should be
11240 defining before we include any headers! Defining _XOPEN_SOURCE on OpenBSD
11241 seems to do the opposite to Linux and *disable* pread and pwrite!
11245 * Stripped out the session machinery - all that is actually required is to
11246 ensure that any unflushed changes are flushed when the destructor runs.
11248 * A few other backend interface cleanups.
11252 * Unified the shlib version numbers (the small benefit of tracking them
11253 individually makes it hard to justify the extra work required, and having one
11254 version simplifies debian packaging too).
11256 * configure.in: Fix typo (STLPORT_CXXLAGS -> STLPORT_CXXFLAGS)
11258 * Removed trivial m4/Makefile.am and autoconf/Makefile.am and do the work
11259 from the top level Makefile.am instead. It's easier to see the structure
11260 this way, and it also removes a couple of recursive make invocations which
11261 will speed up builds a little.
11265 * HACKING: Added a list of subtasks when doing a release.
11266 Currently it's always me that does this, but it may not always be
11267 and anyhow it'll help me to have a list to run through.
11269 * include/xapian/database.h: Remove references to sessions in doxygen
11272 * docs/quickstart.html: Corrected lingering reference to "om.h" and
11273 note that we need <iostream>.
11275 * docs/quickstartindex.cc.html,docs/quickstartexpand.cc.html,
11276 docs/quickstartsearch.cc.html: Add <iostream>.
11278 * PLATFORMS,AUTHORS: Updated.
11280 * docs/quartzdesign.html: Corrected various pieces of out of date
11281 information, and improved wording in a couple of places.
11283 * docs/scalability.html: Removed the reference to the Quartz update bottleneck
11284 "currently being addressed for Xapian 0.8" as it's now been addressed! Also
11285 reworded to remove use of first person (it was originally a message sent to
11288 Xapian-core 0.8.0 (2004-04-19):
11290 * Omega, xapian-examples and xapian-bindings now have their own NEWS files.
11294 * Throw an exception when an empty query is used to build in the binary
11295 operator Query constructor (previously this caused a segfault. Added
11298 * Made the TradWeight constructor explicit. This is technically an API change
11299 as before you could pass a double where a Xapian::Weight was required - now
11300 you must pass Xapian::TradWeight(2.0) instead of 2.0. That seems desirable,
11301 and it's unlikely any existing code will be affected.
11303 * Added "explicit" qualifier to constructors for internal use which take a
11306 * Renamed Xapian::Document::add_term_nopos to Xapian::Document::add_term
11307 (with forwarding wrapper method for compatibility with existing code).
11309 * The reference counting mechanism used by most API classes now handles
11310 creating a new object slightly more efficiently.
11312 * Xapian::QueryParser: Don't use a raw term for a term which starts with a
11317 * apitest, quartztest: Added a couple of tests, and commented out some test
11318 lines which fail in debug builds.
11320 * quartztest: cause a test to fail if there's still a directory after a call
11321 to rmdir(), or if there isn't a directory after calling mkdir().
11323 * apitest: Check returned docids are the expected values in a couple more
11324 cases. Improved wording of a comment.
11328 * We now merge a batch of changes into a posting list in a single pass which
11329 relieves an update bottleneck in previous versions.
11331 * When storing the termlist, pack the wdf into the same byte as the reuse
11332 length when possible - doing so typically makes the termlist 14% smaller!
11333 This change is backward compatible (0.7 database will work with 0.8, but
11334 databases built or updated with 0.8 won't work with 0.7).
11336 * quartzcheck: Check the structure within the postlist Btree as well as
11337 the Btree structures themselves.
11339 * Reduced code duplication in the btree manager and btreechecking code.
11341 * quartzdump: Backslash escape space and backslash in output rather than hex
11342 encoding them; renamed start-term and end-term to start-key and end-key;
11343 removed rather pointless "Calling next" message; if there's an error, write
11344 it to stderr not stdout, and exit with return code 1.
11346 * Corrected a number of comments in the source.
11348 * Removed several needless inclusions of quartz_table_entries.h.
11350 * Removed OLD_TERMLIST_FORMAT code - it has been disabled for since 0.6.0.
11352 * Removed all the quartz lexicon code and docs. It's been disabled for ages,
11353 and we've not missed it.
11357 * XO_LIB_XAPIAN autoconf macro can now be called without arguments in the
11358 common case where you want the test to fail if Xapian isn't found.
11360 * Fixed the configure test for valgrind - it wasn't working correctly when
11361 valgrind was installed but was too a version to support VALGRIND_COUNT_ERRORS
11362 and VALGRIND_COUNT_LEAKS.
11364 * GCC 2.95 supported -Wno-long-long and is our minimum recommended version, so
11365 unconditionally use -Wno-long-long with GCC, and don't test for it on other
11366 compilers (the old test incorrectly decided to use it with SGI's compiler
11367 resulting in a warning for every file compiled).
11371 * Updated the quickstart tutorial and removed the warning that "this
11372 document isn't up to date".
11374 * docs/intro_ir.html: Added a link to "Information Retrieval" by Keith van
11375 Rijsbergen which can be downloaded from his website!
11377 * docs/quartzdesign.html: Some minor improvements.
11379 * docs/matcherdesign.html: Merged in more details from a message sent to the
11382 * docs/queryparser.html: Grammar fixes.
11384 * Doxygen wasn't picking up the documentation for PostingIterator and
11385 PositionListIterator - fixed. Added doxygen comments for Xapian::Stopper
11386 and Xapian::QueryParser.
11388 * PLATFORMS: Updated with many results from tinderbox and from users.
11390 * AUTHORS: Updated the list of contributors.
11392 * HACKING: XAPIAN_DEBUG_TYPES should be XAPIAN_DEBUG_FLAGS.
11394 * HACKING: Updated to mention that building from CVS requires
11395 `./configure --enable-maintainer-mode' (or use bootstrap).
11397 * HACKING: Added notes about using "using", and pointers to a couple of useful
11402 * Solaris: Code tweaks for compiling with Sun's C++ compiler.
11404 * IRIX: Code tweaks for compiling with SGI's C++ compiler.
11406 * NetBSD mkdir() doesn't cope with a trailing / on the path - fixed our code to
11409 * mingw/cygwin: Only use O_SYNC (on the debug log) if the headers define it.
11411 * backends/quartz/quartz_table_manager.cc: Fix for building on mingw.
11413 * mingw: Added configure test for link() to avoid infinite loop in our C++
11416 * mingw and cygwin both need -Wl,--enable-runtime-pseudo-reloc passing when
11417 linking. Arrange for xapian-config to include this, and check that the ld
11418 installed is a new enough version (or at least that it was at configure
11419 time). Also pass to programs linked as part of the xapian-core build.
11421 * cygwin: Close a QuartzDatabase or QuartzWritableDatabase before trying to
11422 overwrite it - cygwin doesn't allow use to delete open/locked files...
11424 * backends/quartz/quartz_termlist.cc: Use Xapian::doccount instead of
11425 unsigned int in set_entries().
11427 * Database::Internal::Internal::keep_alive() should be
11428 Database::Internal::keep_alive().
11430 * Make Xapian::Weight::Weight() protected rather than private as we want to be
11431 able to call it from derived classes (GCC 3.4 flags this, other compilers
11436 * Open debug log with flag O_WRONLY so that we can actually write to it!
11438 * backends/quartz/quartz_values.cc: Fixed problem with dereferencing
11439 a pointer to the end of a string in debug output.
11441 Xapian 0.7.5 (2003-11-26):
11445 * Xapian::QueryParser now supports prefixes on phrases and expressions (e.g.
11446 author:(twain OR poe) subject:"space flight").
11448 * Added missing default constructors for TermIterator, PostingIterator, and
11449 PositionIterator classes.
11451 * Fixed PositionIterator assignment operator.
11455 * queryparsertest: Added testcase for new phrase and expression prefix support.
11457 * apitest: Added regression tests for API fixes.
11461 * quartzcompact: Fix the name that the meta file gets copied to (was
11462 /path/to/dbdirmeta rather than /path/to/dbdir/meta).
11466 * Changed to using AM_MAINTAINER_MODE. If you're doing development work on
11467 Xapian itself, you should configure with "--enable-maintainer-mode" and
11468 ideally use GNU make.
11470 * Fixed configure test for fdatasync to work (I suspect a change in a recent
11471 autoconf broke it as it relied on autoconf internal naming).
11473 * Fully updated to reflect move of libbtreecheck.la from backends/quartz
11474 to testsuite. btreetest and quartzcheck should build correctly now.
11478 * Added first cut of documentation for Xapian::QueryParser query syntax.
11480 * Fixed incorrectly formatted doxygen documentation comments which resulted in
11481 some missing text in the collated API and internal classes documentation.
11483 * Documented --enable-maintainer-mode and problems with BSD make in HACKING.
11485 * Fixed typo in docs/scalability.html.
11487 * PLATFORMS: Updated from the tinderbox.
11491 * omega: Parsing of the probabilistic query is now delayed until we need some
11492 information from it. This means that we can now use options set by the
11493 omegascript template to control the behaviour of the query parser.
11494 $set{stemmer,...} now controls the stemming language (e.g. $set{stemmer,fr})
11495 and $setmap{prefix,...} now sets the QueryParser prefix map (e.g.
11496 $setmap{prefix,subject,XT,abstract,XA}).
11498 * omega: Fixed $setmap not to add bogus entries.
11500 * docs/omegascript.txt: Expanded documentation of $set and $setmap to list
11501 values which Omega itself makes use of.
11503 * omega: Cleaned up the start up code quite a bit.
11505 * omega: Removed the unfinished code for caching omegascript command
11506 expansions. Added code to cache $dbsize. The only other value correctly
11507 marked for caching is already being cached!
11509 Xapian 0.7.4 (2003-10-02):
11513 * Fixed small memory leak if Xapian::Enquire::set_query() is called more than
11516 * Xapian::ESet now has reference counted internals (library interface version
11517 bumped because of this).
11519 * Removed unused OmDocumentTerm::termfreq member variable.
11521 * OmDocumentTerm ctor now takes wdf, and replaced set_wdf() with inc_wdf() and
11524 * Removed unused open_document() method from SubMatch and derived classes.
11526 * Calls made by the matcher to Document::Internal::open_document() now use the
11527 lazy flag provided for precisely this purpose, but apparently never used -
11528 this should give quite a speed boost to any matcher options which use values
11529 (e.g. sort, collapse).
11533 * Finished off support for running tests under valgrind to check for memory
11534 leaks and access to uninitialised variables.
11536 * apitest: Sped up deldoc4.
11538 * btreetest: Removed superfluous `/'s from constructed paths.
11540 * quartztest: adddoc2 now checks that there weren't any extra values created.
11544 * quartz: don't start the document's TermIterator from scratch on every
11545 iteration in replace_document(). Should be a small performance win.
11547 * quartz: Pass 0 for the lexicon/postlist table when creating a termlist just
11548 to find the doc length.
11550 * quartz: quartz_table_entries.cc: Removed rather unnecessary use of
11553 * quartz: quartz_table.cc: Removed unused variable.
11555 * quartz: Improved encapsulation of class Btree.
11559 * libbtreecheck.la now has an explicit dependency on libxapian.la.
11561 * We now set the dependencies for libxapian correctly so that linking
11562 applications will pull in other required libraries.
11564 * matcher/Makefile.am: Ship networkmatch.cc even if "make dist" is run from a
11565 tree with the remote backend disabled.
11567 * configure.in: Sorted out tests for gethostbyname and gethostbyaddr using
11568 standard autoconf macros.
11570 * configure.in: If fork is found, but socketpair isn't, automatically disable
11571 the remote backend rather than configure dying with an error.
11573 * autoconf/: Removed various unused autoconf macros.
11577 * xapian-config.in: Link with libxapianqueryparser before libxapian, since
11578 that's the dependency order.
11580 * Removed or replaced uses of <iostream> and <iosfwd> in the library sources
11581 - we don't need or want the library to pull in cin and friends.
11583 * extra/queryparser.yy: Fixed to build with Sun's C++ compiler.
11585 * Make the dummy source file C++ rather than C so that automake tells libtool
11586 that this is a C++ library - vital for correct linking on some platforms.
11588 * Makefile.am: Pass -no-undefined to libtool so that we can build build a DLL
11591 * configure.in: Fixed check for socketpair - we were automatically disabling
11592 the remote backend on platforms where socketpair is in libsocket
11595 * Use O_BINARY for binary I/O if it exists.
11597 * common/utils.h: mkdir() only takes one argument on mingw.
11599 * common/utils.h,testsuite/backendmanager.cc: Touch file using open() rather
11602 * common/utils.cc: Fixed to compile if snprintf isn't available.
11606 * docs/scalability.html: Fixed slip (32GB should be 32TB); Added note about
11607 Linux 2.4 and ext2 filesize limits.
11609 * PLATFORMS: Updated.
11611 * NEWS: Fixed a few typos.
11615 * xapian.i: using namespace std in SWIG parsed segment to sort out typemaps.
11619 * Updated RPM packaging.
11623 * omega: $topdoc now ensures the match has been run; $date no longer ensures
11624 the match has been run.
11626 * omega: Fixed to build with Sun's C++ compiler.
11628 Xapian 0.7.3 (2003-08-08):
11632 * MSetIterator: Fixed MSetIterator::get_document() to work when get_mset() was
11633 called with first != 0 (regression test msetiterator3).
11637 * internaltest: Changed test exception1 to actually test something (hopefully
11638 what was originally intended!)
11640 * Added long option support to the testsuite programs (and quartzdump).
11642 * Testsuite now builds on platforms for which we use our own stringstream
11645 * Only use \r in test output if the output is a tty.
11647 * Increased default timeout used by tests running on the remote backend from 10
11648 seconds to 5 minutes to avoid tests failing just because the machine running
11649 them is slow and/or busy.
11651 * Fixed check for broken exception handling - we were getting "Xapian::"
11652 prefixed to one version and not on the other.
11654 * tests/runtest: Set srcdir if it isn't already to make it easy to manually run
11655 test programs from a VPATH build.
11657 * apitest: Check termfreq in allterms4.
11661 * quartz: Fixed allterms TermIterator to not give duplicate terms when a
11662 posting list is chunked; added regression test (allterms4).
11664 * quartz: Check for EINTR when reading or writing blocks and retry the
11665 operation. This should mean quartz won't fail falsely if a signal is
11666 received (e.g. if alarm() is used).
11670 * Renamed libomqueryparser to libxapianqueryparser - for backward compatibility
11671 we still provide a library with the old name for now.
11673 * xapian.m4: Added XO_LIB_XAPIAN to replace OM_PATH_XAPIAN. XO_LIB_XAPIAN will
11674 automagically enable use of "xapian-config --ltlibs" if A[CM]_PROG_LIBTOOL is
11675 used in configure.in.
11677 * xapian-config: Now supports linking with libtool - using libtool means that
11678 the run-time library path is set and that you can now link with an
11679 uninstalled libxapian. Also xapian-config will now work once xapian-core's
11680 configure has been run, rather than only after "make all".
11682 * xapian-config: Now automatically tries to link libxapianqueryparser too.
11684 * bootstrap: Removed bootstrap scripts in favour of top-level bootstrap which
11685 creates a top-level configure you can optionally use to configure all checked
11686 out Xapian modules with one command, and which creates a top level Makefile
11687 to build all checked out Xapian modules with one command.
11689 * Added versioning information to libxapian and libxapianqueryparser.
11691 * xapian-example/omega: Use libtool and XO_LIB_XAPIAN so we can link with an
11692 uninstalled Xapian, and so the run time load path gets built into the
11693 binaries (no need to set LD_LIBRARY_PATH just because you install Xapian with
11694 a non-standard prefix).
11696 * configure: Stop the API documentation from being regenerated when
11697 include/xapian/version.h changes (since it's generated by configure).
11699 * Fixed "make dist" in VPATH builds.
11703 * common/getopt.h: #include <stdlib.h>, <stdio.h>, and <unistd.h> before
11704 defining getopt as a macro - this avoids problems with clobbering prototypes
11705 of getopt() in system headers.
11707 * bin/quartzcompact.cc: Need stdio.h for rename().
11709 * languages/Makefile.am: Fixed compilation for compilers other than GCC.
11711 * Moved rset serialisation into a method of RSet::Internal, so
11712 omrset_to_string() is now just glue code. This eliminates the need for it to
11713 be a friend of RSet::Internal which Sun's C++ compiler didn't seem to be able
11718 * Fix incorrect documentation comment for Enquire::set_set_forward(). (Looked
11719 like a cut&paste error)
11721 * COPYING: Updated FSF address, and reinstated missing section: "How to Apply
11722 These Terms to Your New Programs"
11724 * PLATFORMS: Updated some linux results: RH7.3 on x86, and Debian on alpha and
11725 arm; Updated FreeBSD success report; Updated with results from the tinderbox.
11727 * docs/mkdoc.pl: Don't choke on a comment at the end of the DIST_SUBDIRS line
11730 * HACKING: Improved note about why libtool 1.5 is needed.
11732 * HACKING: Added note about additional tools needed for building a
11737 * Fixed VPATH builds.
11739 * python: Fixed to link with libomqueryparser.
11741 * guile,tcl8: Updated typemaps to SWIG 1.3 style.
11745 * omindex.cc: Added missing `#include <errno.h>'.
11747 * omindex/scriptindex: Fixed signed character issue in accent normalisation.
11749 * omindex: fixed memory and file descriptor leak on indexing a zero-sized file.
11751 * omindex: Fixed sense of test for unreadable files.
11753 * omindex: Improved log messages to distinguish re-indexed/added.
11755 * omindex,omega,scriptindex: Fixed to compile with mingw.
11757 * omindex: Fixed to compile with GNU getopt so we can build on non-glibc
11762 * msearch: Quick fix to get mingw building going.
11764 * getopt: Copied over our fixes for better C++ compatibility.
11766 * simplesearch: Stem search terms.
11768 * simpleindex: Fixed not to run words together between lines.
11770 * simpleindex: Create database if it doesn't exist.
11772 Xapian 0.7.2 (2003-07-11):
11776 * Fixed NULL pointer dereference when a test threw an unexpected exception.
11780 * Quartz: When asked to create a quartz database, try to create the directory
11781 if it doesn't already exist. Then we don't have to do it in every single
11782 Xapian program which wants to create a database...
11786 * common/getopt.h: Fixed to work better with C++ compilers on non-glibc
11789 * common/utils.h: missing #include <ctype.h>
11791 * Quartz: Defined _XOPEN_SOURCE=500 for GLIBC so we get pread() and pwrite().
11793 * common/utils.h: Improved mingw implementation of rmdir().
11797 * PLATFORMS: Added MacOS X 10.2 success report.
11799 * Improvements to doxygen-generated documentation.
11803 * Moved to separate xapian-bindings module.
11805 * Added configure check for SWIG version (require at least 1.3.14).
11807 * bindings/swig/xapian.i: Fixed over-enthusiastic automatic conversion of
11808 termname to std::string.
11810 * PHP4 bindings much closer to working once again; updated guile and tcl8
11815 * omega: If the same database is listed more than once, only search the first
11818 * omega: use snprintf to help guard against buffer overflows.
11820 Xapian 0.7.1 (2003-07-08):
11824 * Fixed testsuite programs to not try to use "rm -rf" under mingw.
11828 * Quartz: Use pread() and pwrite() on platforms which support them. Doing so
11829 avoids one syscall per block read/write.
11831 * Quartz block count is now unsigned, which should nearly double the size of
11832 database for a given block size. Not tested this yet.
11836 * omindex: Fixed compilation problem in 0.7.0.
11840 * Added new document discussing scalability issues.
11842 * PLATFORMS: Updated.
11844 Xapian 0.7.0 (2003-07-03):
11848 * Moved everything into a Xapian namespace, which the main header now being
11849 xapian.h (rather than om/om.h).
11851 * Three classes have been renamed for better naming consistency:
11852 OmOpeningError is now Xapian::DatabaseOpeningError, OmPostListIterator is
11853 now Xapian::PostingIterator, and OmPositionListIterator is now
11854 Xapian::PositionIterator.
11856 * xapian.h includes <iosfwd> rather than <iostream> - if you were relying on
11857 the implicit inclusion, you'll need to add an explicit "#include <iostream>".
11859 * Replaced om_termname with explicit use of std::string - om_termname was just
11860 a typedef for std::string and the typedef doesn't really buy us anything.
11862 * Older code can be compiled by continuing to use om/om.h which uses #define
11863 and other tricks to map the old names onto the new ones.
11865 * Define XAPIAN_VERSION (e.g. 0.7.0), XAPIAN_MAJOR_VERSION (e.g. 0), and
11866 XAPIAN_MINOR_VERSION (e.g. 7).
11868 * Updated omega and xapian-examples to use Xapian namespace.
11872 * Xapian::QueryParser: Accent normalisation added; Improved error reporting;
11873 Fixed to handle the most common examples found in the wild which used to give
11878 * Python bindings brought up to date - use ./configure --enable-bindings to
11879 build them. Requires Python >= 2.0 - may require Python >= 2.1.
11881 * Enabled optional building of bindings as part of normal build process. Old
11882 Perl and Java bindings dropped; for Perl, use Search::Xapian from CPAN; Java
11883 JNI bindings will be replaced with a SWIG-based implmentation.
11885 internal implementation changes:
11887 * Removed one wrapper layer from the internal implementation of most API
11890 * Xapian::Stem now uses reference counted internals.
11892 * Internally a lot of cases of unnecessary header inclusion have been removed
11893 or replaced with forward declarations of classes. This should speed up
11894 compilation and recompilation of the Xapian library.
11896 * Suppress warnings in Snowball generated C code.
11898 * Reworked query serialisation in the remote backend so that the code is now
11899 all in one place. The serialisation is now rather more compact and no longer
11900 relies on flex for parsing.
11904 * Moved all the core library tests to tests subdirectory.
11906 * apitest now allows backend to be specified with "-b" rather than having to
11907 mess with environmental variables.
11909 * Testsuite programs can now hook into valgrind for leak checking, undefined
11910 variable checking, etc.
11914 * Fixed parsing of port number in remote stub databases.
11916 * Quartz: Improved error message when asked to open a pre-0.6 Quartz database.
11918 * Quartz backend: Workaround for shared_level problem turns out to
11919 be arguably the better approach, so made it permanent and tidied up
11924 * Build system fixed to never leave partial files in place of the expected
11925 output if a build is interrupted.
11927 * quartzcheck, quartzdump, and quartzcompact are now built by "make" rather
11928 than only by "make check".
11930 * xapian-config: Removed --prefix and --exec-prefix - you can't reliably
11931 install Xapian with a different prefix to the one it was configured with,
11932 yet these options give the impression you can.
11936 * Fixed sending debug output to a file with XAPIAN_DEBUG_LOG with a value which
11937 didn't contain "%%" (%% expands to the current PID).
11939 * Fixed Xapian::MSetIterator::get_collapse_count() to work as intended.
11943 * omindex,scriptindex: Normalise accents in probabilistic terms.
11945 * omindex: Read output from pstotext and pdftotext via pipes rather
11946 than temporary files to side-step the whole problem of secure temporary file
11947 creation; Use pdfinfo to get the title and keywords from when indexing a PDF;
11948 Safe filename escaping tweaked to not escape common safe punctuation.
11950 * omindex: Implement an upper limit on the length of URL terms - this is a
11951 slightly conservative 240 characters. If the URL term would be longer than
11952 this, its last few bytes are replaced by a hash of the tail of the URL. This
11953 means that (apart from hopefully very rare collisions) urlterms should still
11954 be unique ids for documents. This is forward and backward compatible for
11955 URLs less than 240 characters.
11957 * omindex: Clean up processing of HTML documents:
11958 - Ignore the contents of <script> and <style> tags in HTML.
11959 - Strip initial whitespace in each tag in an HTML document.
11960 - Try not to split words in half when truncating title and summary.
11962 * query.cc: Set STEM_LANGUAGE near the start of the file so it's easy
11963 for users to change until we get better configurability.
11965 * omega: Replaced half-hearted logging support with flexible OmegaScript-based
11966 approach with new $log command. Also added $now to allow the current
11967 date/time to be logged.
11969 * templates/xml: added collapse info to xml template.
11973 * Assorted minor documentation improvements.
11975 * PLATFORMS: Updated.
11979 * Improved RPM packaging of xapian-core and omega.
11981 Xapian 0.6.5 (2003-04-10):
11983 * OmEnquire: optimised the handling when sort_bands == 1 and fixed incorrect
11984 results in this and some other sorting cases; added some sorting testcases.
11986 * OmMSetIterator: added get_collapse_count() which returns a lower bound on
11987 the number of items which were removed by collapsing onto the current item.
11989 * OmStem: added default OmStem constructor and "none" language. Both of these
11990 give a stemmer object which leaves terms unchanged which should allow for
11991 simpler logic in programs using Xapian. The default constructor also removes
11992 the need to mess with pointers in some cases.
11994 * Automatically disable the remote backend if we don't have fork() since the
11995 remote backend requires it in several places.
11997 * Fixed to build with debug enabled.
11999 * testsuite: fixed to still build when some backends are disabled.
12001 * extra/parsequerytest.cc: Fixed to build with GCC 2.95.
12003 * Testsuite: Added regression test for Quartz bug which caused problems with
12004 long terms on machines with signed chars.
12006 * testsuite/index_utils.cc: Handling of ^x was just downright wrong due to a
12009 * Improved portability: Fix for 64 bit machines. Fixed btreetest to build with
12010 older compilers lacking <sstream>. Xapian is now much closer to building
12011 with Sun's CFront-based Sun Pro C++ compiler, and with a Linux to mingw
12014 * PLATFORMS: Updated with the results of many test builds.
12016 * Improved RPM packaging of xapian-core and omega.
12018 * Documentation: Use http://www.doxygen.org/ as URL for doxygen; Fixed bad link
12019 to our own website in overview.html; code_structure.html now only includes
12020 directories in the build system.
12022 * HACKING: updated.
12024 * Removed bugs/todo.xml, TODO, TODO.release, docs/todo.html, and
12025 docs/todo-release.html from the distribution. Bugs and todo items will be
12026 tracked in Bugzilla instead.
12028 * Install docs in /usr/share/doc/xapian-core instead of /usr/share/xapian-core.
12030 * omega: If xP and P are both empty, there may be a boolean query, so don't
12031 force first page of hits.
12033 * omega: Fixed off-by-one error in rounding down topdoc - it was possible to
12034 get to an empty page of hits if there were exactly a multiple of HITSPERPAGE
12035 matches and the matcher over-estimated the number of matches and Omega
12036 displayed page links.
12038 * omega: Fixed handling of multiple DB parameters to be as documented.
12040 * omega: Added $collapsed to report get_collapse_count() for the current hit.
12042 * omega: Added $transform{} which does regexp manipulation (currently disabled
12043 until configure tests for regexp library are added)
12045 * omega: Added $uniq{} to eliminate duplicates from a sorted list.
12047 * omega: Don't force page 1 for a query with repeated terms!
12049 * omega: removed duplicates from terms listed in term frequencies.
12051 * omega: Added cgi parameter COLLAPSE to collapse on key values
12053 * omega: Added $value{key[,docid]} support to omegascript
12055 * omega: Renamed DATE1, DATE2, and DAYSMINUS to the more meaningful START, END,
12056 and SPAN (NB SPAN is days before END, or after START, or before today -
12057 whereas SPAN was before *DATE1* or before today). The old parameters names
12058 are supported (with the original semantics) for now.
12060 * omega: Actually install documentation!
12062 * templates/query: propagate B boolean filters
12064 * templates/godmode: removed link to EuroFerret image
12066 * templates/godmode: added value dumping, for values from 0-255
12068 * omindex: Report correct version number (was hard-wired to 1.0!)
12070 * scriptindex: Allow '_' in fieldnames. Diagnose bad characters in fieldnames
12073 * dbi2omega: Added DBUSER and DBPASSWD environmental variable support so that
12074 password protected DBs can easily be used
12076 * scriptindex.cc: added missing "#include <stdio.h>" which caused builds
12077 to fail for some platforms.
12079 Xapian 0.6.4 (2002-12-24):
12081 * Quartz backend: Fixed double setting of position list when updating a
12082 document with term position information (overall result was correct, just
12083 inefficient); when deleting a position_list, don't check if it's empty,
12084 just ask the layer below to delete it and let it handle the case when
12085 there's nothing to delete; Fixed unpacking of termlist on platforms where
12088 * OmQueryParser: Added support for searching probabilistic fields (using
12089 <field>:<term>); the unstem multimap now includes "." on the end of a
12090 term if it was there in the query.
12092 * Don't include "om.h" as a dependency for the api docs since it's generated
12093 a configure time and the dependency was forcing users to regenerate the
12094 documentation, which requires doxygen to be installed.
12096 * Bindings: Python bindings updated to work with the updated API (still
12097 disabled by default).
12099 * Muscat 3.6 backend: Fixed to build with the new database factory functions;
12100 fixed compilation warnings; Muscat 3.6 DA and DB databases don't support
12101 positional information. Instead of throwing an exception when we try to
12102 access it, return an empty position list (like a quartz database with no
12103 position information would). This allows copydatabase to be used to convert
12104 a Muscat 3.6 database to a quartz one.
12106 * Documentation: quartzdesign and todo list updated.
12108 * quartzcheck: default mode changed to "v" rather than "+", since "+" is too
12109 verbose for a btree of any size; if you pass a quartz database directory,
12110 quartzcheck will now check all the tables which make up a quartz database.
12112 * quartzcompact: new tool which makes a copy of a quartz database with full
12113 compaction turned on - this results in a smaller database which is faster
12114 to search. The next update will result in a lot of block splitting though
12115 (since all blocks are as full as possible).
12117 * omega: Added $unstem to map a stemmed term to the form(s) used in the query;
12118 $queryterms now only includes the first occurrence of each stemmed form;
12119 $prettyterm makes use of the unstem map; prefer MINHITS to MIN_HITS and
12120 RAWSEARCH to RAW_SEARCH since none of the other CGI parameter names have
12121 _ separating words (continue to support old names for now); fixed default
12122 template to not generate topterms twice, and fixed topterms to not stick
12123 outside the green box; corrected omegascript docs - it's $setrelevant
12126 * scriptindex: index=nopos with new indexnopos action; index and indexnopos now
12127 take an optional prefix argument; index=nopos is handled specially for
12128 backwards compatibility; added new data action to generate terms for date
12131 Xapian 0.6.3 (2002-12-14):
12133 * Updated PLATFORMS and todo list. Noted in HACKING that Bison 1.50 seems to
12136 * OmQueryParser now creates an "unstem" multimap to allow probabilistic
12137 query terms to be converted back to the form the user originally typed.
12139 * Updated documentation for remote protocol description and the quickstart
12140 tutorial which were both very out of date.
12142 * No longer use OmSettings to pass matcher parameters. This completes the
12143 removal of OmSettings.
12145 * Added workaround for problem with cursors sharing levels in the btree.
12146 This should fix sporadic problems with large databases (small databases
12147 have fewer btree levels so aren't affected).
12149 * Stub databases now work again, though with a different format. The new
12150 format allows multiple databases to be specified in the stub file.
12152 * OmEnquire::get_eset() now takes a flags argument of bit constants |-ed
12153 together instead of 2 bools.
12155 * Applied Martin Porter's better fix for the btree sequential addition bug
12156 which Richard fixed a few months ago. Richard's fix resulted in a correct
12157 btree, but didn't always utilise space as efficiently as possible.
12159 * Fixed the remote backend to handle weighting schemes after the OmSettings
12160 changes. You can now even implement your own weighting scheme and use it
12161 with the remote backend provided you register it with SocketServer at
12162 runtime (this feature has been on the todo list for ages).
12164 Xapian 0.6.2 (2002-12-07):
12166 * Set env var XAPIAN_SIG_DFL to stop the testsuite installing its
12167 signal handler (may be useful with some debugging tools).
12169 * backends/quartz/btree.cc: max_item_size wasn't being set due to
12170 some over-zealous code pruning. It was defaulting to 0, and
12171 was causing the code to write off the end of allocated memory
12174 * matcher/localmatch.cc: fixed handling of wtscheme() - we were
12175 trying to use it for the extra weights, and then double
12178 * common/omdebug.cc,common/omdebug.h: Fixed permissions on newly
12179 created log file (was getting 000!); Simplified class internals;
12180 Renamed env vars: OM_DEBUG_FILE is now XAPIAN_DEBUG_LOG,
12181 OM_DEBUG_TYPES is now XAPIAN_DEBUG_FLAGS (old versions still work
12184 * testsuite/testsuite.cc: Fixed so running "gdb .libs/apitest"
12185 finds srcdir (for an in-tree build at least).
12187 * Fixed to compile with --enable-debug=full.
12189 * docs/remote.html: Updated from OmSettings to factory functions.
12191 * PLATFORMS: ixion is actually Linux 2.2.
12193 * OmWritableDatabase now has a default constructor.
12195 * Weighting scheme now specified by passing OmWeight object to OmEnquire.
12196 This also allows user weighting schemes (just subclass OmWeight and
12197 pass in an instance of this new class). [This doesn't currently work
12198 with the remote backend.]
12200 * No longer use OmSettings to specify parameters for constructing databases.
12201 Instead there's a factory function for each database type - temporary naming
12202 scheme is OmXxx__open(), mostly because it's easy to grep for later.
12203 Instead of create and overwrite flags, we pass in a value - a new possible
12204 opening mode is "create or open". [At present stub databases and the
12205 machinery in InMemory to allow the multierrhandler1 test aren't working.
12206 Everything else should be.]
12208 * OmEnquire::get_eset() takes parameters instead of an OmSettings object.
12210 * Fixed reversed sense of use_query_terms (and fixed reversed sense test in
12211 apitest which meant this wasn't spotted).
12213 * Documentation: Link to annotated class lists in doxygen generated
12214 documentation instead of the rather empty index pages; added doxygen
12215 markup so that apidoc now documents header files; updated todo list.
12217 * Documentation: intro doc thing was very out of date in places - fixed.
12219 * Omega: index .php files as HTML, with the PHP code stripped out; omindex
12220 return non-zero return code if an unexpected exception is caught; fixed
12221 HTML parser to not read one character past the end of the document in
12222 some cases; updated in line with OmSettings related changes to the API;
12223 Fixed $dbname to return "default" for the default database instead of "";
12224 templates/query: Removed now unused xDEFAULTOP hidden field, and superfluous
12225 "}"; dbi2omega now more efficient and can be restricted to listed fields.
12227 Xapian 0.6.1 (2002-11-28):
12229 * Fixed to compile with GCC 3.0.
12231 * PLATFORMS: Updated.
12233 Xapian 0.6.0 (2002-11-27):
12235 * Quartz database backend: lexicon disabled (./configure CXXFLAGS=-DUSE_LEXICON
12236 to reenable it), and encoding schemes simplified and made more compact;
12237 extended and added test cases; minimum block size is now 2048 bytes (as
12238 documented before, but now we actually enforce this); btree checking code
12239 split off and only linked in when required; tidied up btreetest's output.
12241 * Replaced our stemmers with those from Snowball. These give better results,
12242 and are actively maintained by Martin Porter (who wrote the original Xapian
12243 stemmers too). It also means that Xapian now has stemmers for Finnish,
12244 and Russian, and an implementation of Lovins' English stemmer.
12246 * Assorted improvements to the documentation, especially the documentation
12247 of the internals of the Quartz backend.
12249 * Removed the three uses of RTTI (typeid() and dynamic_cast<>) - one was
12250 totally superfluous, and the other two easily avoided.
12252 * Omega and simpleindex example: limit probabilistic term length to 64
12253 characters to stop the index filling up with junk terms which nobody will
12256 * Omega: Added dbi2omega perl script to dump any database which perl DBI can
12257 access into the dump format expected by scriptindex.
12259 Xapian 0.5.5 (2002-12-04):
12261 * Fixed compilation with --enable-debug.
12263 * Minor documentation updates.
12265 * Omega: Fixed paging on default database; removed xDEFAULTOP from the query
12266 template as it's no longer used; removed bogus unmatched '}' from query
12267 template; added dbi2omega perl script to dump any database which perl DBI
12268 can access into the dump format expected by scriptindex; limit length of
12269 probabilistic terms generated to 64 characters.
12271 Xapian 0.5.4 (2002-10-16):
12273 * Fixed a compilation error with "make check" when using GCC 3.2.
12275 * PLATFORMS: checked 0.5.3 works on OpenBSD and Solaris 7.
12277 Xapian 0.5.3 (2002-10-12):
12279 Notable changes: Improvements to the test suite, and internal code cleanups:
12281 * Internal code cleanups on Quartz Btree implementation.
12283 * Minor documentation updates (TODO and PLATFORMS updated; Martin Porter's
12284 stemming paper removed - see the Snowball site for background stemmer
12287 * Implemented QuartzAllTermsList::get_approx_size().
12289 * Removed a couple of occurrences of "using std::XXX;" from externally
12292 * With GCC, add warning flags "-Wall -W" rather than "-Wall -Wunused" (-Wall
12293 implies -Wunused anyway). Fixed all the warnings this throws up, except in
12294 languages/ (that code is to be replaced with Snowball soon).
12296 * Test suite: Disable colour test output if stdout isn't a terminal and
12297 reworked check for broken exception handling as the previous version never
12298 seemed to fire. Other assorted minor improvements.
12300 * include/om/om.h is now removed on "make distclean" rather than "make clean".
12302 Xapian 0.5.2 (2002-10-06):
12304 Further improvements to documentation and portability:
12306 * docs/: converted all text docs to HTML (except omsettings which will
12307 has odd markup (LaTeX?) and will probably soon be obsolete anyway).
12309 * remote backend: Fixed handling of timeouts which are now in the past - fixes
12310 test failures with redhat/x86.
12312 * quartz backend: now works on 64 bit platforms.
12314 * test suite: try to spot mishandled exceptions and stop them causing bogus
12317 Xapian 0.5.1 (2002-10-02):
12319 This release fixes features improved documentation and some build system
12322 * PLATFORMS: updated with more test results.
12324 * docs/: tidied up layout of HTML documentation; converted the notes about
12325 BM25 into HTML; updated stemmer docs to reflect intention to use Snowball
12326 instead; included HTML versions of quickstart*.cc.
12328 * automake 1.6.3 and autoconf 2.54 are now required for those working
12329 from CVS to fix a problem with the generated Makefiles and Solaris
12332 * net/Makefile.am: Fixed building of readquery.cc from readquery.ll.
12334 * buildall script is now deprecated - use the new streamlined bootstrap script
12337 Xapian 0.5.0 (2002-09-20):
12339 The last release of the software that is now known as Xapian was Open Muscat
12340 0.4.1 on November 24th 2000, not far from 2 years ago.
12342 There's been a significant amount of development in this time, so we've
12343 summarised the most notable changes and improvements:
12345 * The project is now called "Xapian". We've renamed the modules in the light
12348 + "om" is now "xapian-core"
12349 + "om-examples" is now "xapian-examples", and now contains small,
12350 instructive examples which demonstrate how to use Xapian to implement
12351 particularly features.
12352 + Added "xapian-applications" which contains larger sample applications
12354 * Much improved build system - should now build "out of the box" on many Unix
12355 platforms. Can now VPATH build with vendor tools on most platforms. Builds
12356 as cleanly as we can achieve with GCC 2.95.* (some bogus warnings due to
12357 compiler bugs). Should build without warnings on GCC 3.0, 3.1, and 3.2.
12359 * If using GCC, om/om.h now contains a check that the compiler used to build
12360 Xapian and the compiler used to build the application have compatible C++
12361 ABIs. So you get a clear error message early from the first attempt to
12362 compile a file rather than a confusing error from the linker near the end
12365 * RPM packages are now available. We intend to prepare Debian packages in the
12368 * xapian-config no longer support "--uninst". It's hard to make this work
12369 reliably and portably, and the effort is better expended elsewhere.
12370 Configure with a prefix and install to a temporary directory instead.
12372 * Xapian can now work with files > 2Gb on OSes which support them.
12374 * Restructured and reworked documentation.
12376 * Removed thread locks. We intend to be "thread-friendly" so different
12377 threads can access different objects without problems. In the rare event
12378 that you want to concurrently call methods on the same object from
12379 different threads you need to create a mutex and lock it. Thus the thread
12380 lock overhead is only incurred when it's necessary.
12382 * Indexgraph removed from core library. It will reappear as an add-on library
12385 * Omega's query parser has now been reworked as a separate library.
12387 * Terminology change - "keys" are now known as "values" to avoid confusion,
12388 since they're not like keys in a relational database. The exception is when
12389 a value is used as a key in some operation, e.g. "match_collapse_key".
12391 * Database backends:
12393 + Auto backend: can now be used to create a new database.
12394 + Auto backend: added support for "stub" databases - a text file
12395 specifying the settings for the database to be opened (particularly
12396 useful for allowing easy access to specific remote databases).
12397 + Quartz backend: many fixes and improvements, and the code has been
12398 cleaned up a lot. Implemented deleting of items from postlists.
12399 + Remote backend: implemented term_exists() and get_termfreq();
12400 + Multi-backend: the document length is now fetched from the sub-postlist
12401 rather than the database, which provides a huge speed-up in some cases.
12402 + Sleepycat backend: this experimental backend has been removed.
12403 + Muscat 3.6 backends: now disabled by default.
12407 + Test cases added for most bug fixes and new features.
12408 + stemtest: rewritten in C++ rather than part C++, part perl. Now 15%
12410 + includetest: removed - it's no longer useful now the code has matured.
12411 + Removed problematic leak checking from testsuite. We plan to use
12412 valgrind instead soon.
12416 + Fixed several matcher bugs which could cause incorrect results in some
12418 + Fix bug in expander due to nth_element being called on the wrong
12420 + Added sorting within relevance bands to the matcher.
12421 + Matcher now calculates percentages differently, such that 100%
12422 relevance is actually achievable.
12423 + Matcher now uses a min-heap rather than nth-element to maintain the
12424 proto-mset. This is cleaner and more efficient.
12425 + New operator OP_ELITE_SET replaces match_max_or_terms option.
12426 + Implemented multiple XOR queries.
12427 + Add a new query operator, OP_WEIGHT_CUTOFF, which returns only those
12428 documents from a query which have a weight greater than a specified
12430 + Removed OmBatchEnquire from system: it may return at a later date, but
12431 for now it is simply out of date and a maintenance liability, and
12432 gives no significant advantage.
12433 + Added experimental match bias functors.
12435 * The API has been cleaned up in various places:
12437 + OmDocumentContents and OmIndexDoc merged to become OmDocument
12438 + OmQuery interface cleaned up
12439 + OmData and OmKey removed - methods which used them now just pass a
12441 + OmESetItem replaced by OmESetIterator; OmMSetItem by OmMSetIterator;
12442 om_termname_list by OmTermIterator
12443 + OmDocumentTerm and OmDocumentParams removed
12444 + OmMSet::mbound replaced by OmMSet::matches_
12445 {lower_bound,estimated,upper_bound}, giving more information
12446 + Xapian iterators now have default constructors
12447 + Most API classes now have reference counted internals, so assignment
12448 and copying are cheap
12449 + OmStem now has copy constructor and assignment operator