1 Xapian-core 1.4.18 (2021-01-14):
5 * QueryParser::FLAG_ACCUMULATE: New flag. Previously the unstem and stoplist
6 data was always reset by a call to QueryParser::parse_query(), which makes
7 sense if you use the same QueryParser object to parse a series of independent
8 queries. If you're using the same QueryParser object to parse several fields
9 on the same query form, you may want to have the unstem and stoplist data
10 combined for all of them, in which case you can use this flag to prevent this
11 data from being reset.
13 * QueryParser::unstem_begin(): Eliminate unnecessary copying of the data.
15 * Fix typo in Swedish stopword list, syncing change made to Snowball by Daniel
18 * Remove some French stop words with other meanings, syncing change made to
19 Snowball by PhilippeOuellet.
23 * Run testcase testlock4 using backend chert, not just using glass
25 * Skip testcase testlock4 on platforms that don't allow us to implement
26 Database::locked() (which notably include GNU Hurd and Microsoft Windows).
30 * List DB_NO_TERMLIST in the WritableDatabase constructor API documentation
31 where we already list the other DB_* constants.
35 * Eliminate single use of std::mem_fun() which was deprecated in C++11 and
36 removed in C++17. Reported by Mateusz Pusz in #806.
38 * Add missing includes for std::numeric_limits<>. Reported by stac47 in #805.
40 * Work around mingw.org header issue. MSVC seems to implicitly include
41 <winerror.h> but mingw.org's headers don't, leading to ERROR_PIPE_CONNECTED
42 not being defined. Fixes https://github.com/xapian/xapian/pull/318, reported
45 * Suppress MSVC warnings about possible loss of data. The values involved are
46 the number of set bits in a value of integer type, so these warnings are
49 * Include <sys/types.h> for size_t and off_t, which is the appropriate header,
50 and needed with Android's bionic libc. Patch from Matthieu Gautier.
52 * Use a temporary file for the Doxygen configuration to work around Doxygen
53 1.8.19 bug which truncates a config file read from stdin to 4096 bytes
54 (https://github.com/doxygen/doxygen/issues/7975).
56 Xapian-core 1.4.17 (2020-08-21):
60 * Database::get_average_length(): Add this as an alias for
61 Database::get_avlen(). In git master we've added this as a preferred new
62 name - adding it to 1.4.x too will make it easier for users to update to
65 * Database::get_spelling_suggestion(): Optimise edit distance initialisation
66 loop to significantly reduce the cost of a typical edit distance calculation.
68 * Fix query expansion on sharded databases. The mechanism for passing in which
69 shard a TermList is from wasn't hooked up and as a result we'd always think
70 it's from the first shard, meaning the statistics would be wrong and that our
71 suggested terms may not have been as good as they should be in this
74 * Enquire::get_eset(): Use string::compare() to avoid 1/3 of the string compares
79 * Update doxygen HTML headers and footers to resolve issues with some
80 interactive features of the API docs not working. Reported by Enrico Zini.
82 * Stop specifying obsolete doxygen settings PERL_PATH and MSCGEN_PATH.
84 * Clarify API docs for MSet::get_termfreq() to make it clear that this
85 considers all documents in the database, not only those that matched the
86 searched (it would sometimes be useful to be able to report the number of
87 occurrences of a term in the matched documents, but it's not something we
88 currently keep track of). Reported by Tadeusz Sośnierz and Peter Salomonsen.
90 Xapian-core 1.4.16 (2020-06-08):
94 * MSet::snippet(): The snippet now includes trailing punctuation which carries
95 meaning or gives useful context. See
96 https://github.com/xapian/xapian/pull/180, reported by Robert Stepanek.
98 * MSet::snippet(): Fix segfault generating snippet from default-constructed
99 MSet. This probably isn't something you'd typically do, but it shouldn't
100 crash. Found during extended testing of #803 (which only affected git
101 master) which was reported by Robert Stepanek.
103 * Remove trailing full stop from exception messages. We conventionally don't
104 include one, but a few cases didn't follow that convention.
108 * Replace direct use of ftime() which gives deprecation warnings with recent
109 mingw. Reported by srinivasyadav22.
113 * Fix segfault in rare cases in the query optimiser. We keep a pointer to the
114 most recent posting list to use as a hint for opening the next posting list,
115 but the existing mechanism to take ownership of this hint had a flaw. We now
116 invalidate the hint in situations where it might be indirectly deleted which
117 is safe, but somewhat conservative.
119 * Improve the optimisation of an always-matching OP_VALUE_GE to also take
120 effect when the value slot's lower bound is equal to the limit of the
121 OP_VALUE_GE. Patch from boda sadalla.
125 * Report the correct errno value if commit() fails. We were potentially
126 reporting ENOENT from an unlink() call cleaning up a temporary file prior to
127 throwing the exception instead.
131 * Fix missing menus in API documentation. Newer doxygen generates .js files
132 which we also need to distribute and install. Reported by sec^nd on #xapian.
134 * Note OP_FILTER ignored subquery bug fixed in 1.4.15 as present in 1.4.14 and
139 * Use our own autoconf cache variable namespace (xo_cv_ prefix instead of
140 ac_cv_) to avoid colliding with standard autoconf macro use if config.site or
141 a shared config.cache is used. The former case caused a build failure for
142 the OpenBSD port with 1.4.15, reported by Lucas R.
144 * Use clock_gettime() and nanosleep() under modern mingw as these allow higher
145 precision than what we previously used.
147 Xapian-core 1.4.15 (2020-02-24):
151 * Database::check(): Fix checking of replication changesets. This reverts a
152 change incorrectly made in 1.3.7.
154 * Database::locked(): Return false instead of true for a closed inmemory DB.
156 * Database::commit(): If commit() failed with an exception while trying to add
157 pending changes (e.g. InvalidArgumentError due to a long term containing zero
158 bytes) then a subsequent commit() on the same object would throw the same
159 exception. Now we clear the pending changes in this situation (like we
160 already did for failure at other stages in the commit). This bug remains
161 unfixed for the chert backend as it's harder to fix there and the effort to
162 fix it and extra risk of breakage don't seem justified for a backend we
163 recommend people migrate away from.
165 * QueryParser::parse_query(): Optimise parsing of multi-word synonyms.
169 * Use 50-word synonym for qp_scale1 "large" case. 50 divides exactly into the
170 number of repetitions we do for the "small" case, which 60 (as used before)
171 doesn't. This makes the two cases a little more comparable and should help
172 make this testcase less flaky (see #764).
174 * Adjust testcase matches1 to work with remote shards where the matcher can
175 return slightly better bounds on the number of matches in some cases.
178 * The testharness get_remote_database() method is now supported for sharded
179 databases. This is needed for keepalive1 to run successfully under multi
180 test backends. Resolves 2 XFAILs of keepalive1.
182 * Improved test coverage:
184 + Test locked() on a closed WritableDatabase, which already returns false (as
185 expected) in 1.4.x (but was broken on master).
187 + Check multi databases in testsuite - this has been supported by
188 Database::check() since 1.4.12.
190 + Also test OP_SYNONYM and OP_MAX in emptydb1.
192 + Backport testcases boolorbug1, emptynot1, emptymaybe1 and
193 phraseweightcheckbug1 from git master - these are regression tests for
194 fixed bugs which only affected git master, but it's useful to confirm that
195 these bugs don't currently affect 1.4, and ensure they don't get introduced.
197 * perftest: Store memory sizes as long long since on Microsoft Windows long is
198 only 32 bits, which is less than common memory sizes.
202 * Hoist positional check above OP_FILTER.
204 * Handle OP_FILTER with more than two subqueries correctly. Previously we'd
205 only check the first two subqueries in some situations.
209 * For a remote WritableDatabase, the client now keeps track of whether there
210 are pending changes, and if there aren't then we now do nothing for commit()
211 or cancel() calls. In particular this saves a message exchange when the
212 WritableDatabase destructor is called when changes have already been
213 committed with an explicit call to commit() (which is what we recommend
214 doing, since with an explicit call to commit() you get to see any exception
217 * When closing a remote prog WritableDatabase, previously an exception could
218 leave the remote connection open with the remote server running, and we'd
219 then wait for the specified timeout before closing the connection. Now we
220 close the connection before letting the exception propagate.
222 * Don't swallow exceptions from Database::close() on a remote database. If
223 we aren't in a transaction and so try to commit() and that fails then
224 previously the caller would have no indication of the failure.
226 * Fix handling the reported term weight when remote shards are searched.
227 Fixes 5 XFAILs in the testsuite.
229 * Add missing space to mismatching protocol versions error message.
233 * Fix to build when configured with --disable-backend-remote, broken by changes
234 in 1.4.14. Fixes #797, reported by Дилян Палаузов.
236 * The clang and icc compilers both define __GNUC__, which led our ABI mismatch
237 message to report them as "g++" with a bogus version (the version of GCC that
238 these compilers advertise themselves as, which for clang is always 4.2.0) -
239 now we report clang++ or icc along with the actual version of that compiler.
243 * AUTHORS: Apply missed update to the thankyou list for 1.4.14.
245 * INSTALL: Note that MSVC 2019 works.
247 * INSTALL: Note that Xapian can use the system uuid.h on AIX and OpenBSD.
251 * Simplify probes for snprintf. The broken snprintf in libbsd in Linux libc4
252 is from ~25 years ago so way too ancient to matter now, and all callers
253 already handle the pre-ISO semantics of returning -1 for an undersize buffer
254 so we don't need to run a test program to probe for this at configure time,
255 which is more cross-compile friendly.
257 * Don't quote messages in #error - the quotes aren't required and appear in the
258 compiler output (at least with GCC and clang) making it less readable.
260 * Use a different approach for getting a 64-bit capable stat() for mingw32.
261 This means we now use the same stat variant for mingw32 and MSVC, which
264 * Work around unhelpful config.status behaviour. It comments out any #undef
265 lines in config.h, even those added via AH_TOP and AH_BOTTOM. Splitting
266 these lines means they don't match the regex hammer config.status uses.
268 * Avoid -Wdeprecated-copy warnings from clang 10.
270 * Avoid deprecation warning on recent Linux. We were including sys/sysctl.h if
271 it existed, which it does on Linux but we don't actually use it there.
272 Including it now warns that it is deprecated, so skip including it under
273 Linux. Reported on IRC by kumaran.
275 * Suppress GCC -Wduplicated-branches warning from our API headers in a
276 different way which avoids needing a compiler-specific #pragma.
278 * Workaround closefrom1 failure on macOS. It seems under macOS our fd tracking
279 can end up using fd 10 so start from 13 when testing closefrom() so we don't
280 close the fd which our fd tracking is using internally.
284 * Log RemoteConnection::read_at_least() return value.
286 Xapian-core 1.4.14 (2019-11-23):
290 * Xapian::QueryParser: Handle "" inside a quoted phrase better. In a quoted
291 boolean term, "" is treated as an escaped ", so handle it in a compatible way
292 for quoted phrases. Previously we'd drop out of the phrase and start a new
293 phrase. Fixes #630, reported by Austin Clements.
295 * Xapian::Stem: The constructor which takes a stemmer name now takes an
296 optional second bool parameter - if this is true, then an unknown stemmer
297 name falls back to using the "none" stemmer instead of throwing an exception.
298 This allows simply constructing a stemmer from an ISO language code without
299 having to worry about whether there's a stemmer for that language, and
300 without having to handle an exception if there isn't.
302 * Xapian::Stem: Fix a bug with handling 4-byte UTF-8 sequences which
303 potentially affects most of the stemmers. None of the stemmers work in
304 languages where 4-byte UTF-8 sequences are part of the alphabet, but this
305 bug could result in invalid UTF-8 sequences in terms generated from text
306 containing high Unicode codepoints such as emoji, which can cause issues (for
307 example, in some language bindings). Fix synced from Snowball git post
308 2.0.0. Reported by Ilari Nieminen in
309 https://github.com/snowballstem/snowball/issues/89.
311 * Xapian::Stem: Add a new is_none() method which tests if this is a "none"
314 * Xapian::Weight: The total length of all documents is now made available to
315 Xapian::Weight subclasses, and this is now used by DLHWeight, DPHWeight and
316 LMWeight. To maintain ABI compatibility, internally this still fetches the
317 average length and the number of documents, multiplies them, then rounds the
318 result, but in the next release series this will be handled directly.
320 * Xapian::Database::locked() on an inmemory database used to always return
321 false, but an inmemory Database is always actually a WritableDatabase
322 underneath, so now we always report true in this case because it's really
323 always report being locked for writing.
327 * Fix failing multi_glass_remoteprog_glass tests on x86. When the tests are
328 run under valgrind, remote servers should be run using the runsrv wrapper
329 script, but this wasn't happening for remote servers in multi-databases - now
330 it is. Also, previously runsrv only used valgrind for the remote for an x86
331 build that didn't use SSE, but it seems there are x87 instructions in libc
332 that are affected by valgrind not providing excess precision, so do this for
333 x86 builds which use SSE too. Together these changes fix failures of
334 topercent2, xor2, tradweight1 under backend multi_glass_remoteprog_glass on
337 * Fix C++ One-Definition Rule (ODR) violation in testsuite code. Two different
338 source files linked into apitest were each defining a different `struct
339 test`. Wrap each in an anonymous namespace to localise it to the file it is
340 defined and used in. This was probably harmless in practice, unless trying
341 to build with Link-Time Optimisation or similar (which is how it was
344 * Test all language codes in stemlangs1. The testsuite hardcodes a list of
345 supported language codes which hadn't been updated since 2008.
347 * Improve DateRangeProcessor test coverage.
351 * Handle pruning under a positional check. This used to be impossible, but
352 since 1.4.13 it can happen as we now hoist AND_NOT to just below where we
353 hoist the positional checks. The code on master already handles pruning here
354 so this bug is specific to the RELEASE/1.4 branch. Fixes #796, reported by
357 * When searching with collapsing over multiple shards, at least some of which
358 are remote, uncollapsed_upper_bound could be too low and
359 uncollapsed_lower_bound too high. This was causing assertion failures in
360 testcases msize1 and msize2 under test harness backends
361 multi_glass_remoteprog_glass and multi_remoteprog_glass.
363 * Internally we no longer calculate a bogus total_term_count as the sum of
364 total_length * doc_count for all shards. Instead we just use the sum of
365 total_length, which gives the total number of term occurrences. This change
366 should improve the estimated collection_freq values for synonyms.
368 * Several places where we might divide zero by zero in a database where wdf was
369 always zero have been fixed.
373 * configure: Stop using AC_FUNC_MEMCMP. The autoconf manual marks it as
374 "obsolescent", and it seems clear that nobody's relying on it as we're
375 missing the "'AC_LIBOBJ' replacement for 'memcmp'" which it would try to
380 * HACKING: Replace release docs with pointer to the developer guide where they
385 * Eliminate 2 uses of atoi(). These are potentially problematic in a
386 multithreaded application if setlocale() is called by another thread at the
389 * Don't check __GNUC__ in visibility.h as the configure probe before defining
390 XAPIAN_ENABLE_VISIBILITY checks that the visibility attributes work. This
391 probably makes no difference in practice, as all compilers we're aware of
392 which support symbol visibility also define __GNUC__.
394 * Document Sun C++ requires --disable-shared. Closes #631.
396 Xapian-core 1.4.13 (2019-10-14):
400 * Fix write one past end of std::vector on certain QueryParser parser errors.
401 This is undefined behaviour, but the write was always into reserved space, so
402 in practice we'd actually get away with it (it was noticed because it
403 triggers an error when running under ubsan and using libc++). Reported by
406 * MSet::get_matches_estimated(): Improve rounding of result - a bug meant we
407 would almost always round down.
409 * Optimise test for UTF-8 continuation character. Performing a signed char
410 comparison shaves an instruction or two on most architectures.
412 * Database::get_revision(): Return revision 0 for a Database with no shards
413 rather that throwing InvalidOperationError.
415 * DPHWeight: Avoid dividing by 0 when searching a sharded database when one
416 shard is empty. The result wasn't used in this case, but it's still
417 undefined behaviour. Detected by UBSan.
421 * The "singlefile" test harness backend manager now creates databases by
422 compacting the corresponding underlying backend database (creating it first
423 if need be) rather than always creating a temporary database to compact.
425 * Enable compaction testcases for multi and singlefile test harness backends.
427 * Add generated database support for remoteprog and remotetcp test harness
428 backends. Implemented by Tanmay Sachan.
430 * Add test harness support for running testcases using a multi database
431 comprised of one local and one remote shard, or two remote shards.
432 Implemented by Tanmay Sachan.
434 * Check if removing existing multi stub failed. Previously if removing an
435 existing stub failed, the test harness would create a temporary new stub and
436 then try to rename it over the old one, which will always fail on Microsoft
439 * Wait for xapian-tcpsrv processes to finish before moving on to the next
440 testcase under __WIN32__ like we already do on POSIX platforms.
444 * Optimise OP_AND_NOT better. We now combine its left argument with other
445 connected and-like subqueries, and gather up and hoist the negated subqueries
446 and apply them together above the combined and-like subqueries, just below
447 any positional filters.
449 * Optimise OP_AND_MAYBE better. We now combine its left argument with other
450 connected and-like subqueries, and gather up and hoist the optional
451 subqueries and apply them together above the combined and-like subqueries and
452 any hoisted positional filters.
454 * Treat all BoolWeight queries as scaled by 0 - we can optimise better if we
455 know the query is unweighted.
459 * Allow zlib compression to reduce size by one byte. We were specifying an
460 output buffer size one byte smaller than the input, but it appears zlib won't
461 use the final byte in the buffer, so we actually need to pass the input size
462 as the output buffer size.
464 * Only try to compress Btree item values > 18 bytes, which saves CPU time
465 without sacrificing any significant size savings.
469 * Fix match stats when searching with collapsing over multiple shards and at
470 least some shards are remote. Bug discovered by Tanmay Sachan's test harness
473 * Ignore orphaned remote protocol replies which can happen when searching with
474 a remote shard if an exception is thrown by another shard. Bug discovered
475 by Tanmay Sachan's test harness improvements.
477 * Wait for xapian-progsrv child to exit when a remote Database or
478 WritableDatabase object is closed under __WIN32__ like we already do for
483 * Correct documentation of initial messages in replication protocol.
487 * quest: Report bounds and estimate of number of matches.
489 * xapian-delve: Improve output when database revision information is not
490 available. We now specially handle the cases of a DB with multiple shards
491 and a backend which doesn't support get_revision().
495 * Fix warning from GCC 9 with -Wdeprecated-copy (which is enabled by -Wextra)
496 if a reference to an Error object is thrown.
498 * Suppress GCC warning in our API headers when compiling code using Xapian with
499 GCC and -Wduplicated-branches.
501 * Mark some internal classes as final (following GCC -Wsuggest-final-types
502 suggestions to allow some method calls to be devirtualised).
504 * Fix to build with --enable-maintainer-mode and Perl < 5.10, which doesn't
505 have the `//=` operator. It's unlikely developers will have such an old
506 Perl, but the mingw environment on appveyor CI does. The use of `//=` was
507 introduced by changes in 1.4.10.
509 Xapian-core 1.4.12 (2019-07-23):
513 * Xapian::PostingSource: When a PostingSource without a clone() method is used
514 with a Database containing multiple shards, the documented behaviour has
515 always been that Xapian::InvalidOperationError is thrown. However, since at
516 least 1.4.0, this exception hasn't been thrown, but instead a single
517 PostingSource object would get used for all the shards, typically leading to
518 incorrect results. The actual behaviour now matches what was documented.
520 * Xapian::Database: Add size() method which reports the number of shards.
522 * Xapian::Database::check(): You can now pass a stub database which will check
523 all the databases listed in it (or throw Xapian::UnimplementedError for
524 backends which don't support checking).
526 * Xapian::Document: When updating a document use a emplace_hint() to make the
527 bulk insertion O(n) instead of O(n·log(n)), and use std::move() to avoid
528 copying OmDocumentTerm objects.
530 * Xapian::Query: Add missing get_unique_terms_end() method.
532 * Xapian::iterator_valid(): Implement for Utf8Iterator
536 * Fix keepalive1 failures on some platforms. On some platforms a timeout
537 gives NetworkTimeoutError and on others NetworkError - since 1.4.10 changed
538 to checking the exact exception type, keepalive1 has been failing on the
539 former set of platforms. We now just check for NetworkError or a subclass
540 here (since NetworkTimeoutError is a subclass of NetworkError).
542 * Run cursordelbug1 testcase with multi databases too.
546 * Ownership of PostingSource objects during the match now makes use of the
547 optional reference-counting mechanism rather than a separate flag.
551 * Fix remote protocol design bug. Previously some messages didn't send a reply
552 but could result in an exception being sent over the link. That exception
553 would then get read as a response to the next message instead of its actual
554 response so we'd be out of step. Fixes #783, reported by Germán M. Bravo.
555 This fix necessitated a minor version bump in the remote protocol (to 39.1).
556 If you are upgrading a live system which uses the remote backend, upgrade the
557 servers before the clients.
559 * Fix socket leaks on errors during opening a database. Fixes
560 https://github.com/xapian/xapian/pull/237 and #781, reported by Germán M.
563 * Don't close remote DB socket on receiving EOF as the levels above won't
564 know it's been closed and may try to perform operations on it, which would be
565 problematic if that fd gets reused in the meantime. Leaving it open means
566 any further operations will also get EOF. Reported by Germán M. Bravo.
568 * We add a wrapper around the libc socket() function which deals with the
569 corner case where SOCK_CLOEXEC is defined but socket() fails if it is
570 specified (which can happen with a newer libc and older kernel).
571 Unfortunately, this wrapper wasn't checking the returned value from socket()
572 correctly, so when SOCK_CLOEXEC was specified and non-zero it would create
573 the socket() with SOCK_CLOEXEC, then leak that one and create it again
574 without SOCK_CLOEXEC. We now check the return value properly.
576 * Fix potential infinite loop in ValueCountMatchSpy::merge_results() if passed
577 serialised results with extra data appended (which shouldn't happen in normal
582 * Current versions of valgrind result in false positives on current versions of
583 macOS, so on this platform configure now only enables use of valgrind if it's
584 specified explicitly. Fixes #713, reported by Germán M. Bravo.
586 * Refactor macros to probe for compiler flags so they automatically cache
587 their results and consistently report success/failure.
589 * Rename our custom TYPE_SOCKLEN_T macro to XAPIAN_TYPE_SOCKLEN_T. The
590 AX_TYPE_SOCKLEN_T macro defines an alias of TYPE_SOCKLEN_T for itself which
591 means it can get used instead in some situations, but it isn't compatible
592 with our macro. We can't just switch to AX_TYPE_SOCKLEN_T as it doesn't
593 handle cases we need, so just rename our macro to avoid potential problems.
597 * Improve API documentation for Xapian::Query class. Add missing doc
598 comments and improve some of the existing ones. Problems highlighted by
599 Дилян Палаузов in #790.
601 * Add Unicode consortium names and codes for categories from Chapter 4, Version
602 11 of the Unicode standard. Patch from David Bremner.
604 * Improve configure --help output - drop "[default=no]" for --enable-*
605 options which default off. Fixes #791, reported by and patch from Дилян
608 * Fix API documentation typo - Query::op (the type) not op_ (a parameter name).
610 * Note which version Document::remove_postings() was added in.
612 * In the remote protocol documentation, MSG_REPLACEDOCUMENTTERM was documented
613 as not having a reply, but actually REPLY_ADDDOCUMENT is sent.
615 * Update list of <xapian/iterator.h> users.
619 * copydatabase: A change in 1.4.6 which added support for \ as directory
620 separator on platforms where that's the norm broke the code in copydatabase
621 which removes a trailing slash from input databases. Bug reported and
622 culprit commit identified by Eric Wong.
626 * Resolve crash on Windows when using clang-cl and MSVC. Reported by Christian
627 Mollekopf in https://github.com/xapian/xapian/pull/256.
629 * Add missing '#include <cstring>'. Patch from Tanmay Sachan.
631 * Fix str() helper function when converting the most negative value
632 of a signed integer type.
634 * Avoid calling close() on fd we know must actually be a WIN32 SOCKET.
636 * Include <ios> not <iomanip> for std::boolalpha.
638 * Rework setenv() compatibility handling. Now that Solaris 9 is dead we can
639 assume setenv() is provided by Unix-like platforms (POSIX requires it). For
640 other platforms, provide a compatibility implementation of setenv() which
641 so the compatibility code is encapsulated in one place rather than replicated
644 * Fix maintainer-mode builds on Solaris where /bin/tr is not POSIX compliant.
645 We now use the simple workaround suggested by the autoconf manual.
647 * Improve support for Sun C++ (see #631):
649 + Suppress unhelpful warning for lambda with multiple return statements.
651 + Enable reporting the tags corresponding to warnings, which we need
652 to know in order to suppress any new unhelpful warnings.
654 + Adjust our workaround for bug with this compiler's <cmath> header to avoid
657 + Use -xldscope=symbolic for Sun C++. This flag is roughly equivalent to
658 -Bsymbolic-functions which we've probed for with GNU ld since Xapian 1.0.0.
660 Xapian-core 1.4.11 (2019-03-02):
664 * MSet::SNIPPET_CJK_NGRAM - new flag for use with MSet::snippet() to enable
665 support for selecting and highlighting snippets which works with the
666 QueryParser and TermGenerator FLAG_CJK_NGRAM flags. This mode can also be
667 enabled by setting environment variable XAPIAN_CJK_NGRAM to a non-empty
668 value. (There was nominally already support for XAPIAN_CJK_NGRAM in
669 MSet::snippet(), but it didn't work usefully - the highlighting added was all
670 empty start/end pairs at the end of the span of CJK characters containing the
671 CJK ngram terms, which to the user would typically look like it was selecting
672 the end of the text and not highlighting anything).
674 * Deprecate XAPIAN_CJK_NGRAM environment variable. There are now flags which
675 can be used instead in all cases, and there's sadly no portable thread-safe
676 way to read an environment variable so checking environment variables is
677 problematic in library code that may be used in multithreaded programs.
679 * Query::OP_ELITE_SET currently incorrectly recursively flattens any OP_OR (or
680 OP_OR-like) subqueries into the list of subqueries it selects from - until
681 that's fixed, we now select from the full exploded list rather than the last
682 n (where n is the number of direct subqueries of the OP_ELITE_SET).
686 * Testcases which need a generated database now get run with a sharded
689 * Avoid using strerror() in the testsuite which removes an obstacle to running
690 tests in parallel in separate threads.
694 * Extend detection of cases of OP_SYNONYM with disjoint subqueries (which means
695 we don't need document length) which was added in 1.4.8 - we now detect when
696 all subqueries are different terms, or when all subqueries are
697 non-overlapping wildcards. The second case is what QueryParser produces for
698 a wildcard or partial query with a query prefix which maps to more than one
703 * Handle an empty value slot lower bound gracefully. This shouldn't happen for
704 a non-empty slot, but has been reported by a notmuch user so it seems there
705 is (or perhaps was as the database was several years old) a way it can come
706 about. We now check for this situation and set the smallest possible valid
707 lower bound instead, so other code assuming a valid lower bound will work
708 correctly. Reported by jb55.
712 * Handle an empty value slot lower bound gracefully, equivalent to the change
717 * HACKING: We no longer use auto_ptr<>.
719 * NEWS: Correct factual error in old entry - the 0.4.1 release was Open Muscat
720 not OmSee (the OmSee name was only applied after that final release was made,
721 and only used internally to BrightStation).
725 * Suppress more clang -Wself-assign-overloaded warnings in testcases which are
726 deliberately testing handling of self-assignment.
728 * Add missing includes of <cerrno>. Fixes #776, reported by Matthieu Gautier.
732 * When configured with --enable-log, the O_SYNC flag was always specified when
733 opening the logfile, with the intention that the most recent log entries
734 wouldn't get lost if there was a crash, but O_SYNC can incur a significant
735 performance overhead and most debugging is not of such crashes. So we no
736 longer specify O_SYNC by default, but you can now request synchronous logging
737 by including %! anywhere in the filename specified with XAPIAN_DEBUG_LOG
738 (the %! is replaced with the empty string). We also now use O_DSYNC if
739 available in preference to O_SYNC, since the mtime of the log file isn't
742 Xapian-core 1.4.10 (2019-02-12):
746 * DatabaseClosedError: New exception class thrown instead of DatabaseError when
747 an operation is attempted which can't be completed because it involves a
748 database which close() was previously called on. DatabaseClosedError is a
749 subclass of DatabaseError so existing code catching DatabaseError will still
750 work as before. Fixes #772, reported by Germán M. Bravo. Patch from
753 * DatabaseNotFoundError: New exception class thrown instead of
754 DatabaseOpeningError when the problem is the problem is "file not found" or
755 similar. DatabaseNotFoundError is a subclass of DatabaseOpeningError so
756 existing code catching DatabaseOpeningError will still work as before. Fixes
757 #773, reported by Germán M. Bravo. Patch from Vaibhav Kansagara.
759 * Query: Make &=, |= and ^= on Query objects opportunistically append to
760 an existing query with a matching query operator which has a reference
761 count of 1. This provides an easy way to incrementally build flatter query
764 * Query: Support `query &= ~query2` better - this now is handled exactly
765 equivalent to `query = query & ~query2` and gives `query AND_NOT query2`
766 instead of `query AND (<alldocuments> AND_NOT query2)`.
768 * QueryParser: Now uses &=, |= and ^= to produce flatter query trees. This
769 fixes problems with running out of stack space when handling Query object
770 trees built by abusing QueryParser to parse very large machine-generated
773 * Stopper: Fix incorrect accents in Hungarian stopword list. Patch from David
778 * Test MSet::snippet() with small and zero lengths. Fixes #759. Patch from
781 * Fix testcase stubdb4 annotations - this testcase doesn't need a backend.
783 * Add PATH annotation for testcases needing get_database_path() to avoid having
784 to repeatedly list the backends where this is supported in testcase
787 * TEST_EXCEPTION helper macro now checks that the exact specified exception
788 type is thrown. Previously it would allow a subclass of the specified
789 exception type, but in testcases we really want to be able to test for an
790 exact type. Issue noted by Vaibhav Kansagara on IRC.
794 * Map OP_VALUE_GE/OP_VALUE_LE on an empty slot to EmptyPostList. We already do
795 this for OP_VALUE_RANGE, and it's a little more efficient than creating a
796 postlist object which checks the empty value slot.
800 * We no longer flush all pending positional changes when a postlist, termlist
801 or all-terms is opened on a modified WritableDatabase. Doing so was
802 incurring a significant performance cost, and the first of these happens
803 internally when `replace_document(term, doc)` is used, which is the usual way
804 to support non-numeric unique ids. We now only flush pending positional
805 changes when committing. Reported and diagnosed by Germán M. Bravo.
809 * Use poll() where available instead of select(). poll() is specified by
810 POSIX.1-2001 so should be widely available by now, and it allows watching any
811 fd (select() is limited to watching fds < FD_SETSIZE). For any platforms
812 which still lack poll() we now workaround this select() limitation when a
813 high numbered fd needs to be watched (for example, by trying a non-blocking
814 read or write and on EAGAIN sleeping for a bit before retrying).
816 * Stop watching fds for "exceptional conditions" - none of these are relevant
819 * Remove 0.1s timeout in ready_to_read(). The comment says this is to avoid a
820 busy loop, but that's out of date - the matcher first checks which remotes
821 are ready to read and then does a second pass to handle those which weren't
822 with a blocking read.
826 * Stop probing for header sys/errno.h which is no longer used - it was only
827 needed for Compaq C++, support for which was dropped in 1.4.8.
831 * docs/valueranges.html: Update to document RangeProcessor instead of
832 ValueRangeProcessor - the latter is deprecated and will be gone in the next
835 * Document RangeProcessor::operator()() returns OP_INVALID to signal it doesn't
838 * Update some URLs for pages which have moved.
840 * Use https for URLs where available.
842 * HACKING: Update "empty()" section for changes in C++11.
846 * Suppress clang warnings for self-assignment tests. Some testcases trigger
847 this new-ish clang warning while testing that self-assignment works, which
848 seems a useful thing to be testing - at least one of these is a regression
851 * Add std::move to fix clang -Wreturn-std-move warning (which is enabled by
854 * Add casts to fix ubsan warnings. These cases aren't undefined behaviour, but
855 are reported by ubsan extra checks implicit-integer-truncation and/or
856 implicit-conversion which it is useful to be able to enable to catch
859 * Fix check for when to use _byteswap_ulong() - in practice this would only
860 have caused a problem if a platform provided _byteswap_ushort() but not
861 _byteswap_ulong(), but we're not aware of any which do.
863 * Fix return values of do_bswap() helpers to match parameter types (previously
864 we always returned int and only supported swapping types up to 32 bits, so
865 this probably doesn't result in any behavioural changes).
867 * Only include <intrin.h> if we'll use it instead of always including it when
868 it exists. Including <intrin.h> can result in warnings about duplicate
869 declarations of builtin functions under mingw.
871 * Remove call to close()/closesocket() when the argument is always -1 (since
872 the change to use getaddrinfo() in 1.3.3).
874 Xapian-core 1.4.9 (2018-11-02):
878 * Document::add_posting(): Fix bugs with the change in 1.4.8 to more
879 efficiently handle insertion of a batch of extra positions in ascending
880 order. These could lead to missing positions and corrupted encoded
885 * Avoid hang if remote connection shutdown fails by not waiting for the
886 connection to close in this situation. Seems to fix occasional hangs seen on
887 macOS. Patch from Germán M. Bravo.
889 Xapian-core 1.4.8 (2018-10-25):
893 * QueryParser,TermGenerator: Add new stemming mode STEM_SOME_FULL_POS.
894 This stores positional information for both stemmed and unstemmed terms,
895 allowing NEAR and ADJ to work with stemmed terms. The extra positional
896 information is likely to take up a significant amount of extra disk space so
897 the default STEM_SOME is likely to be a better choice for most users.
899 * Database::check(): Fetch and decompress the document data to catch problems
900 with the splitting of large data into multiple entries, corruption of the
901 compressed data, etc. Also check that empty document data isn't explicitly
904 * Fix an incorrect type being used for term positions in the TermGenerator API.
905 These were Xapian::termcount but should be Xapian::termpos. Both are
906 typedefs for the same 32-bit unsigned integer type by default (almost always
907 "unsigned int") so this change is entirely compatible, except that if you
908 were configuring 1.4.7 or earlier with --enable-64bit-termcount you need to
909 also use the new --enable-64bit-termpos configure option with 1.4.8 and up or
910 rebuild your applications. This change was necessary to make
911 --enable-64bit-termpos actually useful.
913 * Add Document::remove_postings() method which removes all postings in a
914 specified term position range much more efficiently than by calling
915 remove_posting() repeatedly. It returns the number of postings removed.
917 * Fix bugs with handling term positions >= 0x80000000. Reported by Gaurav
920 * Document::add_posting(): More efficiently handle insertion of a batch of
921 extra positions in ascending order.
923 * Query: Simplify OP_SYNONYM with single OP_WILDCARD subquery by converting to
924 OP_WILDCARD with combiner OP_SYNONYM, which means such cases can take
925 advantage of the new matcher optimisation in this release to avoid needing
926 document length for OP_WILDCARD with combiner OP_SYNONYM.
930 * Catch and report std::exception from the test harness itself.
932 * apitest: Drop special case for not storing doc length in testcase postlist5 -
933 all backends have stored document lengths for a long time.
935 * test_harness: Create directories in a race-free way.
939 * Avoid needing document length for an OP_WILDCARD with combiner OP_SYNONYM.
940 We know that we can't get any duplicate terms in the expansion of a wildcard
941 so the sum of the wdf from them can't possibly exceed the document length.
943 * OP_SYNONYM: No longer tries to initialise weights for its subquery, which
944 should reduce the time taken to set up a large wildcard query.
946 * OP_SYNONYM: Fix frequency estimates when OP_SYNONYM is used with a
947 subquery containing OP_XOR or OP_MAX - in such cases the frequency
948 estimates for the first subquery of the OP_XOR/OP_MAX were used for
949 all its subqueries. Also the estimated collection frequency is
950 now rounded to the nearest integer rather than always being rounded
955 * Revert change made in 1.4.6:
957 Enable glass's "open_nearby_postlist" optimisation (which especially helps
958 large wildcard queries) for writable databases without any uncommitted
961 The amended check isn't conservative enough as there may be postlist changes
962 in the inverter while the table is unmodified. This breaks testcase
963 T150-tagging.sh in notmuch's testsuite, reported by David Bremner.
965 * When indexing a document without any terms we now avoid some unnecessary work
966 when storing its termlist.
970 * New --enable-64bit-termpos configure option which makes Xapian::termpos a
971 64-bit type and enables support for storing 64-bit termpos values in the
972 glass backend in an upwardly compatible way. Few people will actually want
973 to index documents more than 4 billion words long, but the extra numbering
974 space can be helpful if you want to use term positions in "interesting" ways.
976 * Hook up configure --disable-sse/--enable-sse=sse options for MSVC.
978 * Fix configure probes for builtin functions for clang. We need to specify the
979 argument types for each builtin since otherwise AC_CHECK_DECLS tries to
980 compile code which just tries to take a pointer to the builtin function
981 causing clang to give an error saying that's not allowed. If the argument
982 types are specified then AC_CHECK_DECLS tries to compile a call to the
983 builtin function instead.
987 * Fix documentation comment typo.
991 * xapian-delve: Test for all docs empty using get_total_length() which is
992 slightly simpler internally than get_avlength(), and avoids an exact floating
993 point equality check.
997 * quest: Support --weight=coord.
999 * xapian-pos: New tool to show term position info to help debugging when using
1000 positional information in more complex ways.
1004 * Fix undefined behaviour from C++ ODR violation due to using the same name
1005 two different non-static inline functions. It seems that with current GCC
1006 versions the desired function always ends up being used, but with current
1007 clang the other function is sometimes used, resulting in database corruption
1008 when using value slots in docid 16384 or higher with the default glass
1009 backend. Patch from Germán M. Bravo.
1011 * Suppress alignment cast warning on sparc Linux. The pointer being cast is to
1012 a record returned by getdirentries(), so it should be suitable aligned.
1014 * Drop special handling for Compaq C++. We never actually achieved a working
1015 build using it, and I can find no evidence that this compiler still exists,
1016 let alone that it was updated for C++11 which we now require.
1018 * Create new database directories in race-free way.
1020 * Avoid throwing and handling an exception in replace_document() when
1021 adding a document with a specified docid which is <= last_docid but currently
1024 * Use our portable code for handling UUIDs on all platforms, and only use
1025 platform-specific code for generating a new UUID. This fixes a bug with
1026 converting UUIDs to and from string representation on FreeBSD, NetBSD and
1027 OpenBSD on little-endian platforms which resulted in reversed byte order in
1028 the first three components, so the same database would report a different
1029 UUID on these platforms compared to other platforms. With this fix, the
1030 UUIDs of existing databases will appear to change on these platforms
1031 (except in rare "palindronic" cases). Reported by Germán M. Bravo.
1033 * Fix to build with a C++17 compiler. Previously we used a "byte" type
1034 internally which clashed with "std::byte" in source files which use
1035 "using namespace std;". Fixes #768, reported by Laurent Stacul.
1037 * Adjust apitest testcase stubdb2 to allow for NetBSD oddity: NetBSD's
1038 getaddrinfo() in IPv4 mode seems to resolve ::1 to an IPv4 address on the
1041 * Avoid timer_create() on OpenBSD and NetBSD. On OpenBSD it always fails with
1042 ENOSYS (and there's no prototype in the libc headers), while on NetBSD it
1043 seems to work, but the timer never seems to fire, so it's useless to us (see
1046 * Use SOCK_NONBLOCK if available to avoid a call to fcntl(). It's supported by
1047 at least Linux, FreeBSD, NetBSD and OpenBSD.
1049 * Use O_NOINHERIT for O_CLOEXEC on Windows. This flag has essentially the same
1050 effect, and it's common in other codebases to do this.
1052 * On AIX O_CLOEXEC may be a 64-bit constant which won't fit in an int. To
1053 workaround this stupidity we now call the non-standard open64x() instead
1054 of open() when the flags don't fit in an int.
1056 * Add functions to add/multiply with overflow check. These are implemented
1057 with compiler builtins or equivalent where possible, so the overflow check
1058 will typically just require a check of the processor's overflow or carry
1061 Xapian-core 1.4.7 (2018-07-19):
1065 * Database::check(): Fix bogus error reports for documents with length zero
1066 due to a new check added in 1.4.6 that the doclength was between the stored
1067 upper and lower bounds, which failed to allow for the lower bound ignoring
1068 documents with length zero (since documents indexed only by boolean terms
1069 aren't involved in weighted searches). Reported by David Bremner.
1071 * Query: Use of Query::MatchAll in multithreaded code causes problems because
1072 the reference counting gets messed up by concurrent updates. Document that
1073 Query(string()) should be used instead of MatchAll in multithreaded code, and
1074 avoid using it in library code. Reported by Germán M. Bravo.
1078 + Stemming algorithms added for Irish, Lithuanian, Nepali and Tamil.
1080 + Merge Snowball compiler changes which improve code generation.
1082 + Merge optimisations to the Arabic and Turkish stemmers.
1086 + Fix duplicate test in apitest closedb10 testcase. Patch from Guruprasad
1091 * A long-lived cursor on a table in a WritableDatabase could get into
1092 an invalid state, which typically resulted in a DatabaseCorruptError
1093 being thrown with the message:
1095 Db block overwritten - are there multiple writers?
1097 But in fact the on-disk database is not corrupted - it's just that
1098 the cursor in memory has got into an inconsistent state. It looks
1099 like we'll always detect the inconsistency before it can cause on-disk
1100 corruption but it's hard to be completely certain.
1102 The bug is in code to rebuild the cursor when the underlying table
1103 changes in ways which require that, which is a fairly rare occurrence
1104 to start with, and only triggers when a block in the cursor has been
1105 released, reallocated, and we tried to load it in the cursor at the
1106 same level - the cursor wrongly assumes it has the current version
1109 Reported with a reproducer by Sylvain Taverne. Confirmed by David
1110 Bremner as also fixing a problem in notmuch for which he hadn't managed
1111 to find a reduced reproducer.
1115 * INSTALL: Document need to have MSVC command line tools on PATH.
1119 * Cygwin: Work around oddity where unlink() sometimes seems to indicate failure
1120 with errno set to ECHILD.
1122 Xapian-core 1.4.6 (2018-07-02):
1126 * API classes now support C++11 move semantics when using a compiler which
1127 we are confident supports them (currently compilers which define
1128 __cplusplus >= 201103 plus a special check for MSVC 2015 or later).
1129 C++11 move semantics provide a clean and efficient way for threaded code to
1130 hand-off Xapian objects to worker threads, but in this case it's very
1131 unhelpful for availability of these semantics to vary by compiler as it
1132 quietly leads to a build with non-threadsafe behaviour. To address this,
1133 user code can #define XAPIAN_MOVE_SEMANTICS before #include <xapian.h> to
1134 force this on, and will then get a compilation failure if the compiler lacks
1139 + We were only escaping output for HTML/XML in some cases, which would
1140 potentially allow HTML to be injected into output (this has been assigned
1143 + Include certain leading non-word characters in snippets. Previously we
1144 started the snippet at the start of the first actual word, but there are
1145 various cases where including non-word characters in front of the actual
1146 word adds useful context or otherwise aids comprehension. Reported by
1147 Robert Stepanek in https://github.com/xapian/xapian/pull/180
1149 * Add MSetIterator::get_sort_key() method. The sort key has always been
1150 available internally, but wasn't exposed via the public API before, which
1151 seems like an oversight as the collapse key has long been available.
1152 Reported by 张少华 on xapian-discuss.
1154 * Database::compact():
1156 + Allow Compactor::resolve_duplicate_metadata() implementations to delete
1157 entries. Previously if an implementation returned an empty string this
1158 would result in a user meta-data entry with an empty value, which isn't
1159 normally achievable (empty meta-data values aren't stored), and so will
1160 cause odd behaviour. We now handle an empty returned value by interpreting
1161 it in the natural way - it means that the merged result is to not set a
1162 value for that key in the output database.
1164 + Since 1.3.5 compacting a WritableDatabase with uncommitted changes throws
1165 Xapian::InvalidOperationError when compacting to a single-file glass
1166 database. This release adds similar checks for chert and when compacting
1167 to a multiple-file glass database.
1169 + In the unlikely event that the total number of documents or the total
1170 length of all documents overflow when trying to compact a multi-database,
1171 we throw an exception. This is now a DatabaseError exception instead of a
1172 const char* exception (a hang-over from before this code was turned into a
1173 public API in the library).
1175 * Document::remove_term(): Handle removing term at current TermIterator
1176 position - previously the underlying iterator was invalidated, leading to
1177 undefined behaviour (typically a segmentation fault). Reported by Gaurav
1180 * TermIterator::get_termfreq() now always returns an exact answer. Previously
1181 for multi-databases we approximated the result, which is probably either a
1182 hang-over from when this method was used during Enquire::get_eset(), or else
1183 due to a thinking that this method would be used in that situation (it
1184 certainly is not now). If the user creates a TermIterator object and asks it
1185 for term frequencies then we really should give them the correct answer - it
1186 isn't hugely costly and the documentation doesn't warn that it might be
1189 * QueryParser::parse_query():
1191 + Now adds a colon after the prefix when prefixing a boolean term which
1192 starts with a colon. This means the mapping is reversible, and matches
1193 what omega actually does in this case when it tries to reverse the mapping.
1194 Thanks to Andy Chilton for pointing out this corner case.
1196 + The parser now makes use of newer features in the lemon parser generator to
1197 make parsing faster and use less memory.
1199 * Enquire::get_mset(): Fix bug with get_mset(0, 0, X) when X > 0 which was
1200 causing an attempt to access an element in an empty vector. Reported by
1201 sielicki in #xapian.
1205 + Add Indonesian stemming algorithm.
1207 + Small optimisations to almost all stemming algorithms.
1211 + Add Indonesian stopword list.
1213 + The installed version of the Finnish stopword list now has one word per
1214 line. Previously it had several space-separated words on some lines, which
1215 works with C++'s std::istream_iterator but may be inconvenient for use from
1216 some other languages.
1218 + The installed versions of stopword lists are now sorted in byte order
1219 rather than whatever collation order is specified by LC_COLLATE or similar
1220 at build time. This makes the build more reproducible, and also may be
1221 more efficient for loading into some data structures.
1223 * WritableDatabase::replace_document(term, doc): Check for last_docid wrapping
1224 when used on a sharded database.
1226 * Database::locked(): Consistently throw FeatureUnavailableError on platforms
1227 where we can't test for a database lock without trying to take it.
1228 Previously GNU Hurd threw DatabaseLockError while platforms where we don't
1229 use fcntl() locking at all threw UnimplementedError.
1231 * Database and WritableDatabase constructors: Fix handling of entries for
1232 disabled backends in stub database files to throw FeatureUnavailableError
1233 instead of DatabaseError.
1235 * Database::get_value_lower_bound() now works correctly for sharded databases.
1236 Previously it returned the empty string if any shard had no values in the
1239 * PostingIterator was failing to keep an internal reference to the parent
1240 Database object for sharded databases.
1242 * ValueIterator::skip_to() and check() had an off-by-one error in their docid
1243 calculations in some cases with sharded databases.
1249 + Enable testcases flagged metadata, synonym and/or writable to run on
1252 + Enable testcases flagged writable to run on sharded databases. Writing to
1253 a sharded WritableDatabase has been supported since 1.3.2, but the test
1254 harness wasn't running many of the tests that could be with a sharded
1255 WritableDatabase. This uncovered three bugs which are fixed in this
1258 + Support "generated" testcases for the inmemory backend, which uncovered a
1259 bug which is fixed in this release.
1261 + Skip testcase testlock1 on platforms that don't allow us to implement
1262 Database::locked() (which notably include GNU Hurd and Microsoft Windows).
1264 + Disable testlock2 on sharded databases as it fails for platforms which
1265 don't actually support testing the lock.
1267 + Extend tests of behaviour after database close. Patch from Guruprasad
1268 Hegde. Fixes https://trac.xapian.org/ticket/337
1270 + Enable testcase closedb5 for remote backends. This testcase failed for
1271 remote backends when it was added and the cause wasn't clear, but it turns
1272 out it was actually a bug in the disk based backends, which was fixed way
1273 back in 2010. Reported by Guruprasad Hegde.
1275 + Check for select() failing in retrylock1 testcase. Retry on EINTR or
1276 EAGAIN, and report other errors rather than trying the read() anyway.
1277 Previously the read() would likely fail for the same reason the select()
1278 did, but at best this is liable to make what's going on less clear if the
1281 * Report bool values as true/false not 1/0.
1283 * Assorted minor testcase improvements.
1285 * The test harness now supports testcases which are expected to fail (XFAIL).
1286 Based on patch from Richard Boulton in https://trac.xapian.org/ticket/156.
1288 * Fix demangling of std::exception subclass names which wasn't happening due
1289 to a typo in the preprocessor check for the required header. This was broken
1290 by changes in 1.4.2.
1292 * Make TEST_EQUAL() arguments side-effect free. The TEST_EQUAL() macro
1293 evaluates its arguments a second time if the test fails in order to report
1294 their values. This isn't ideal and really ought to be addressed, but for now
1295 fix uses where the argument has side-effect (e.g. *i++) such that the
1296 reported value should match the tested value.
1298 * runtest: Show usage if first option starts '-'. Previously we ended up
1299 passing such options to libtool, so putting -v on runtest instead of apitest
1300 would run the tests but -v would effectively do nothing (it would make
1301 libtool verbose, but that doesn't make any difference in this case):
1302 ./runtest -v ./apitest
1304 * Suppress output from xcopy on MS Windows.
1306 * The test harness machinery for detecting file descriptor leaks should now
1307 work on any platform which has /dev/fd.
1309 * Implement recursive delete of a database directory in the test harness
1310 using nftw() if available (and not buggy like mingw64's seems to be), rather
1311 than running "rm -rf" as an external command. This avoids the overhead of
1312 starting a new process each time we clean up a test database, which happens a
1313 lot during a test run.
1315 * Speed up generated test databases a little by adding a stat() check to avoid
1316 throwing and catching an exception when the database doesn't yet exist.
1318 * Skip timed tests when configured with --enable-log. The logging can easily
1319 turn O(1) operations into O(n), and that's hard to avoid. Fixes
1320 https://trac.xapian.org/ticket/757, reported by Guruprasad Hegde.
1324 * OP_VALUE_*: When a value slot's lower and upper bound are equal, we know
1325 that exactly how many documents the subquery can match (either 0 or those
1326 bounds). This also avoids a division by zero which previously happened
1327 when trying to calculate the estimate.
1329 * Speed up sorting by keys. Use string::compare() to avoid having to call
1330 operator< if operator> returns false.
1332 * Fix clamping of maxitems argument to get_mset() - it was being clamped
1333 to db.get_doccount(), now it's clamped to db.get_doccount() - first. In
1334 practice this doesn't actually seem to cause any issues.
1336 * If a match time limit is in effect, when it expires we now clamp
1337 check_at_least to first + maxitems instead of to maxitems. In practice this
1338 also doesn't seem to actually cause any issues (at least we've failed to
1339 construct a testcase where it actually makes an observable difference).
1341 * Fix percentages when only some shards have positions. If the final shard
1342 didn't have positions this would lead to under-counting the total number leaf
1343 of subqueries which would lead to incorrect positional calculations (and a
1344 division by zero if the top level of the query was positional. This bug was
1345 introduced in 1.4.3.
1347 * OP_NEAR: Fix "phantom positions", where OP_NEAR would think a term without
1348 positional information occurred at position 1 if it had the lowest term
1349 frequency amongst the OP_NEAR's subqueries.
1351 * Fix termfreq used in weight calculations for a term occurring more than once
1352 in the query. Previously the termfreq for such terms was multiplied by the
1353 number of different query positions they appeared at.
1355 * OP_SYNONYM: We use the doclength upper bound for the wdf upper bound of a
1356 synonym - now we avoid fetching it twice when the doclength upper bound is
1359 * Short-cut init() when factor is 0 in most Weight subclasses. This indicates
1360 the object is for the term-independent weight contribution, which is always 0
1361 for most schemes, so there's no point fetching any stats or doing any
1362 calculations. This fixes a divide by zero for TfIdfWeight, detected by
1365 * OP_OR: Fix bug which caused orcheck1 to fail once hooked up to run with the
1370 * Fix glass freelist bug when changes to a new database which didn't modify the
1371 termlist table were committed. In this corner case, a block which had been
1372 allocated to be the root block in the termlist table was leaked. This was
1373 largely harmless, except that it was detected by Database::check() and caused
1374 it to report an error. Reported by Antoine Beaupré and David Bremner.
1376 * Fix glass freelist bug with cancel_transaction(). The freelist wasn't
1377 reset to how it was before the transaction, resulting in leaked blocks.
1378 This was largely harmless, except that it was detected by Database::check()
1379 and caused it to report an error.
1381 * Improve the per-term wdf upper bound. Previously we used min(cf(term),
1382 wdf_upper_bound(db)) which is tight for any terms which attain that
1383 upper bound, and also for terms with termfreq == 1 (the latter are common
1384 in the database (e.g. 66% for a database of wikipedia), but probably
1385 much less common in searches). When termfreq > 1 we now use
1386 max(first_wdf(term), cf(term) - first_wdf(term)), which means terms with
1387 termfreq == 2 will also attain their bound (another 11% for the same
1388 database) while terms with higher termfreq but below the global bound will
1389 get a tighter bound.
1391 * Fix Database::locked() on single-file glass db to just return false (such
1392 databases can't be opened as a WritableDatabase so there can't be a write
1393 lock). Previously this failed with: "DatabaseLockError: Unable to get write
1394 lock on /flintlock: Testing lock"
1396 * Fix compaction when both the input and output are specified as a file
1397 descriptor. Previously this threw an exception due to an overeager check
1398 that destination != source.
1400 * Use O_TRUNC when compacting to single file. If the output already exists but
1401 is larger than our output we don't want to just overwrite the start of it.
1402 This case also used to result in confusing compaction percentages.
1404 * Enable glass's "open_nearby_postlist" optimisation (which especially helps
1405 large wildcard queries) for writable databases without any uncommitted
1408 * Make get_unique_terms() more efficient for glass. We approximate
1409 get_unique_terms() by the length of the termlist (which counts boolean terms
1410 too) but clamp this to be no larger than the document length. Since we need
1411 to open the termlist to get its length, it makes more sense to get the
1412 document length from that termlist for no extra cost rather than looking it
1413 up in the postlist table.
1415 * Database::check() now checks document lengths against the stored document
1416 length lower and upper bounds. Patch from Uppinder Chugh. Fixes
1417 https://trac.xapian.org/ticket/617.
1419 * Fix bogus handling of most-recently-read value slot statistics. It seems
1420 that we get lucky and this can't actually cause a problem in practice due
1421 to another layer of caching above, but if nothing else it's a bug waiting to
1424 * If we fail to create the directory for a new database because the path
1425 already exists, the exception now reports EEXIST as the errno value rather
1426 than whatever errno value happened to be set from an earlier library call.
1430 * xapian-tcpsrv --one-shot no longer forks. We need fork to handle multiple
1431 concurrent connections, but when handling a single connection forking just
1432 adds overhead and potentially complicates process management for our caller.
1433 This aligns with the behaviour under __WIN32__ where we use threads instead
1434 of forking, and service the connection from the main thread with --one-shot.
1436 * Fix repeat call to ValueIterator::check() on the same docid to not always
1437 set valid to true for remote backend.
1441 * Fix repeat call to ValueIterator::check() on the same docid to not always
1442 set valid to true for inmemory backend.
1446 * configure: Fix potentially confusing messages suggesting snprintf was added
1447 in C90 - it was actually standardised in C99.
1449 * Eliminate configure probes related to off_t by using C++11 features.
1451 * The installed xapian-config script is now cleaned up by removing code to
1452 handle use before installation. This extra code contained build paths
1453 which meant the build wasn't bit-for-bit reproducible unless the same
1454 build directory name was used. This change also eliminates use of
1455 automake's $(transform) (which seems to be intended an internal mechanism)
1456 and fixes "make uninstall" to remove xapian-config when a program-prefix or
1457 -suffix is in use (e.g. there's a default -1.5 suffix for git master
1460 * Directory separator knowledge is now factored out into configure, based on
1461 $host_os and __WIN32__ (it seems hard to probe for this in a way which works
1462 when cross-compiling).
1464 * Fix build with --disable-backend-remote.
1466 * In an out-of-tree build configured with --enable-maintainer-mode
1467 and --disable-dependency-tracking we would fail to create the
1468 "tests/soaktest" and "unicode" directories in the build directory.
1469 Patch from Gaurav Arora.
1471 * Improve handling of multitarget rule stamp files. Clean them on "make
1472 maintainer-clean" and ship them so that --enable-maintainer-mode when
1473 building from a tarball doesn't needlessly rerun the multitarget rules.
1475 * Split out allsnowballheaders.h again to avoid include path issues with
1476 unittest in out-of-tree maintainer-mode builds.
1478 * xapian-core.pc: Both the Name and Description were too long compared to
1479 pkg-config norms, and the Description was trying to be multi-line which it
1480 seems pkg-config doesn't support. Fixes
1481 https://github.com/xapian/xapian/pull/203, reported by orbea.
1485 * Stop describing Xapian as "Probabilistic" - we've also had non-probabilistic
1486 weighting schemes since 1.3.2.
1488 * Improve API docs for MSet::snippet().
1490 * Correct some class names in doxygen file documentation comments.
1492 * Mark up shell command as code-block:: sh.
1498 + Document values can contain binary data, so escape them by default for
1499 output. Other options now supported are to decode as a packed integer
1500 (like omindex uses for last modified), decode using
1501 Xapian::sortable_unserialise(), and to show the raw form (which was the
1502 previous behaviour).
1504 + Report current database revision.
1508 + Report entry count when opening table
1510 + Support inspecting single file DBs via a new --table option (which can also
1511 be used with a non-single-file DB instead of specifying the path to the
1514 + Add "first" and "last" commands which jump to the first/last entry in the
1515 current table respectively.
1517 + "until" now counts and reports the number of entries advanced by.
1519 + Document "until" with no arguments - this advances to the end of the table,
1520 but wasn't mentioned in the help.
1522 + Commands "goto" and "until" which take a key as an argument now expect the
1523 key in the same escaped form that's used for display. This makes it much
1524 simpler to interact with tables with binary keys.
1526 + Fix to expect .glass not .DB extension of glass tables.
1530 * Sort out building using MSVC with the standard build system, and fix assorted
1531 problems. MSVC 2015 or later is required for decent C++11 support. Both 32-
1532 and 64-bit builds are now supported.
1534 * Remove code specific to old MSVC nmake build system. The latter has been
1537 * Don't use WIN32 API to parse/unparse UUIDs. So much glue code is needed that
1538 it's simpler to just do the parsing and unparsing ourselves, and we already
1539 have an implementation which is used when generating UUIDs using /proc on
1540 Linux. We still use UuidCreate() to generate a new UUID.
1542 * Improve compiler visibility attribute detection to check that using the
1543 attributes doesn't result in a warning - previously we'd enable them even on
1544 platforms which don't support them, which would result in a compiler warning
1545 for every file compiled. We now probe for -fvisibility=hidden and
1546 -fvisibility-inlines-hidden together as it seems all compilers implement both
1547 or neither, and it's faster to do one probe instead of two.
1549 * Don't pass the same FDSET twice in same select() - this appears not to be
1550 allowed by current POSIX, and causes warnings with GCC8.
1552 * Fix compacttofd testcases to specify O_BINARY so they pass on platforms
1553 where O_BINARY matters.
1555 * configure: Probe for declaration of _putenv_s. It seems that the symbol is
1556 always present in the MSVCRT DLL, but older mingw may not provide a
1559 * Fix "may be used uninitialised" warning with GCC 4.9.2 and -Os.
1561 * Suppress mingw32 deprecation warning for useconds_t. We've already switched
1562 away from useconds_t on git master, but it's not easy to do for 1.4.x without
1565 * Fix signed vs unsigned warnings with assertions on.
1567 * Use $(SED) instead of hard-coding "sed". The rules concerned are all ones
1568 that only maintainers currently need to run, but we're likely to enable
1569 maintainer-mode by default at some point and then portability here will
1572 * Add missing explicit <algorithm> for std::max()/std::min().
1574 * Check for EAGAIN as well as EINTR from select(). The Linux select(2) man
1575 page says: "Portable programs may wish to check for EAGAIN and loop, just as
1576 with EINTR" and that seems to be necessary for Cygwin at least.
1578 * Probe for exp10() declaration as Cygwin seems to have the symbol but lacks a
1579 declaration in the headers. Just ignoring it is simplest and we'll use GCC's
1580 __builtin_exp10() instead.
1582 * Fix warnings when building Snowball compiler with recent GCC.
1584 * Fix Perl script used during maintainer builds to work with Perl < 5.10. Such
1585 old perl versions shouldn't really be relevant for maintainer builds at this
1586 point, but appveyor's mingw install has such a Perl version.
1588 * Remove unused macro STATIC_ASSERT_TYPE_DOMINATES (unused, except by
1589 internaltest unit test for it, since the flint backend was removed in 2011)
1590 and replace uses of STATIC_ASSERT_UNSIGNED_TYPE with C++11 features
1591 static_assert and std::is_unsigned instead.
1593 * Don't retry on (errno == EINTR) when read() or pread() indicates end-of-file.
1594 This could potentially have put us into an infinite loop if we encountered
1595 this situation and errno happened to be EINTR from a previous library call.
1597 * Make read-only data arrays consistently static and const.
1599 * Avoid casting invalid value to enum reply_type if an invalid reply code is
1600 received from a remote server. This is technically undefined behaviour,
1601 though in practice probably not a problem.
1603 * Eliminate an array of function pointers and some char* array members in
1604 library, reducing the number of relocations needed at shared library load
1605 time, which reduces the total time to load the library.
1609 * Use https for tarball URLs in .spec files. This provides protection against
1610 MITM attacks on people building packages using these spec files, and is also
1611 slightly more efficient as the http: URLs redirect to the https: versions
1616 * Fix build when configured with --enable-log due to bugs in debug logging
1617 annotations. Patch from Uppinder Chugh.
1619 * Fix assertion for value range on empty slot.
1621 * Use AssertEq() rather than Assert with ==, the former reports the two
1622 values if the assertion fails.
1624 Xapian-core 1.4.5 (2017-10-16):
1628 * Add Database::get_total_length() method. Previously you had to calculate
1629 this from get_avlength() and get_doccount(), taking into account rounding
1630 issues. But even then you couldn't reliably get the exact value when total
1631 length is large since a double's mantissa has more limited precision than an
1634 * Add Xapian::iterator_rewound() for bidirectional iterators, to test if the
1635 iterator is at the start (useful for testing whether we're done when
1636 iterating backwards).
1638 * DatabaseOpeningError exceptions now provide errno via get_error_string()
1639 rather than turning it into a string and including it in the exception
1642 * WritableDatabase::replace_document(): when passed a Document object which
1643 came from a database and has unmodified values, we used to always read
1644 those values into a memory structure. Now we only do this if the document
1645 is being replaced to the same document ID which it came from, which should
1646 make other cases a bit more efficient.
1648 * Enquire::get_eset(): When approximating term frequencies we now round to the
1649 nearest integer - previously we always rounded down.
1653 * Improve Xapian::Document test coverage.
1655 * Pass --child-silent-after-fork=yes to valgrind which stops us creating a
1656 .valgrind.log.* file for every remote testcase run. This option was added in
1657 valgrind 3.3.0 which is already the minimum version we support.
1659 * Open and unlink valgrind log before option parsing so we no longer leave a
1660 log file behind if there's an error parsing options or for options like
1661 --help which report and exit.
1663 * Delete .valgrind.log.* on "make clean" - if tests are run under valgrind and
1664 the test is killed at just the wrong moment then a log file may be left
1667 * Fix the NetworkError with ECHILD check added in 1.4.4 - this will no longer
1668 segfault if the test harness catches a NetworkError without an error string.
1672 * Iterating of positions has been sped up, which means phrase matching is now
1673 faster (by a little over 5% in some simple tests).
1675 * Fix use after free of QueryOptimiser hint in certain cases involving
1676 multiple databases only some of which have positional information.
1677 This bug was introduced by changes in xapian-core 1.4.3. Fixes #752,
1678 reported and analysed by Robert Stepanek.
1680 * An unweighted OP_AND_MAYBE is now optimised to just its left branch - the
1681 other branch or branches only contribute weight, so can be completely ignored
1682 when the operator is unweighted.
1686 * Use binary chop instead of linear search in all places where we're searching
1687 for a term or document - we weren't taking advantage of the sorted order
1692 * xapian-core.pc: Specify Libs.private in pkgconfig file, which is needed for
1693 static linking, and probably also for shared libraries on platforms without
1694 DT_NEEDED or something equivalent. Fixes #751, reported by Matthieu Gautier.
1698 * Document that QueryParser::set_default_op() supports OP_MAX - this
1699 has been the case since OP_MAX was added, but the API docs for
1700 set_default_op() weren't updated to reflect this.
1702 * Document OP_MAX and OP_WILDCARD.
1704 * Fix documentation of TermGenerator stop_strategy values STOP_ALL and
1705 STOP_STEMMED. Reported by Matthieu Gautier in #750. Thanks to Gaurav Arora
1706 for additional investigation.
1708 * net/remote_protocol.rst: Update the current version of the remote protocol
1709 version (39 not 38). The differences between the two are only in the Query
1710 and MSet serialisations which aren't documented in detail here.
1712 * Link get_unique_terms_begin() and get_terms_begin() API documentation -
1713 the cross-referencing is useful in itself, but also helps to highlight
1714 the difference between the two.
1716 * Fix "IPv5" -> "IPv6" comment typo. Noted by James Clarke
1720 + Add deprecated Enquire::get_eset() overload - this was marked as deprecated
1721 in the header file, but hadn't been added here.
1723 + Move deprecated typedefs to the "to be removed" list - they'd been
1724 accidentally added to the "removed" list.
1726 + Improve descriptions of several deprecated features.
1728 * QueryParser::set_max_expansion() is now discussed in the API documentation
1729 instead of the deprecated set_max_wildcard_expansion().
1731 * Clarify PostList::check() API documentation: If valid is set to false, then
1732 NULL must be returned (pruning in this situation doesn't make sense) and
1733 at_end() shouldn't be called (because it implicitly depends on the current
1734 position being valid).
1738 + Update re -Wold-style-cast which we enabled and then had to disable again.
1740 + Update links to C++ FAQ and libstdc++'s debug mode.
1742 + Update several URLs to use https.
1744 + The 1.2 release branch has now been retired, so remove 1.2-specific
1749 * Also check <errno.h> for sys_nerr and sys_errlist. This is probably a more
1750 common location for them than Linux's <stdio.h> (even on Linux the man page
1751 says they're in <errno.h> but that doesn't match reality).
1753 * Use $(CC) not $(CC_FOR_BUILD) to build zlib-vg.so. The test for whether we
1754 need it is based on the host OS, so it makes more sense to use the host
1755 compiler to build it when cross compiling.
1757 * On Hurd F_GETLK currently always fails with errno set to ENOSYS - treat this
1758 the same way as ENOLCK. This fixes the testsuite on GNU Hurd, broken since
1759 the addition on Database::locked() in 1.4.3.
1761 * Add missing #include "safesyssocket.h", needed on at least FreeBSD to get
1762 AF_INET and SOCK_STREAM defined. Fixes
1763 https://github.com/xapian/xapian/pull/154, reported by Po-Chuan Hsieh
1764 (alternative fix applied was suggested by James Aylett).
1766 * configure: Fixed the probe for whether the test harness can use RTTI with
1767 IBM's xlC compiler (which defaults to not generating RTTI). Previously the
1768 probe would always think RTTI was available.
1772 * Fix some incorrect class/method names in debug logging.
1774 * Stop disabling ccache for coverage builds as ccache 3.2.2 now supports
1775 caching compilations with --coverage, and they work as far back as ccache 3.0
1776 (caching is automatically disabled by these older versions).
1778 * Drop --enable-quiet from in COVERAGE_CONFIGURE - this option no longer does
1779 anything since 1.3.1.
1781 Xapian-core 1.4.4 (2017-04-19):
1785 * Database::check():
1787 + Fix checking a single table - changes in 1.4.2 broke such checks unless you
1788 specified the table without any extension.
1790 + Errors from failing to find the file specified are now thrown as
1791 DatabaseOpeningError (was DatabaseError, of which DatabaseOpeningError is
1792 a subclass so existing code should continue to work). Also improved the
1793 error message when the file doesn't exist is better.
1795 * Drop OP_SCALE_WEIGHT over OP_VALUE_RANGE, OP_VALUE_GE and OP_VALUE_LE in the
1796 Query constructor. These operators always return weight 0 so OP_SCALE_WEIGHT
1797 over them has no effect. Eliminating it at query construction time is cheap
1798 (we only need to check the type of the subquery), eliminates the confusing
1799 "0 * " from the query description, and means the OP_SCALE_WEIGHT Query object
1800 can be released sooner. Inspired by Shivanshu Chauhan asking about the query
1803 * Drop OP_SCALE_WEIGHT on the right side of OP_AND_NOT in the Query
1804 constructor. OP_AND_NOT takes no weight from the right so OP_SCALE_WEIGHT
1805 has no effect there. Eliminating it at query construction time is cheap
1806 (just need to check the subquery's type), eliminates the confusing "0 * "
1807 from the query description, and means the OP_SCALE_WEIGHT object can be
1812 * Add more tests of Database::check(). Fixes #238, reported by Richard
1815 * Make apitest testcase nosuchdb1 fail if we manage to open the DB.
1817 * Skip testcases which throw NetworkError with errno value ECHILD - this
1818 indicates system resource starvation rather than a Xapian bug. Such failures
1819 are seen on Debian buildds from time to time, see:
1820 https://bugs.debian.org/681941
1824 * Fix incorrect results due to uninitialised memory. The array holding max
1825 weight values in MultiAndPostList is never initialised if the operator is
1826 unweighted, but the values are still used to calculate the max weight to pass
1827 to subqueries, leading to incorrect results. This can be observed with an OR
1828 under an unweighted AND (e.g. OR under AND on the right side of AND_NOT).
1829 The fix applied is to simply default initialise this array, which should lead
1830 to a max weight of 0.0 being passed on to subqueries. Bug reported in
1831 notmuch by Kirill A. Shutemov, and forwarded by David Bremner.
1835 * Correct "Query::feature_flag" -> "QueryParser::feature_flag". Fixes #747,
1836 reported by James Aylett.
1838 * Rename set_metadata() `value` parameter to `metadata`. This change is
1839 particularly motivated by making it easier to map this case specially in SWIG
1840 bindings, but the new name is also clearer and better documents its purpose.
1842 * Rename value range parameters. The new names (`range_limit` instead of
1843 `limit`, `range_lower` instead of `begin` and `range_upper` instead of `end`)
1844 are particularly motivated by making it easier to map them specially in SWIG
1845 bindings, but they're also clearer names which better document their
1848 * Change "(key, tag)" to "(key, value)" in user metadata docs. The user
1849 metadata is essentially what's often called a "key-value store" so users
1850 are likely to be familiar with that terminology.
1852 * Consistently name parameter of Weight::unserialise() overridden forms.
1853 In xapian/weight.h it was almost always named `serialised`, but LMWeight
1854 named it `s` and CoordWeight omitted the name.
1856 * Fix various minor documentation comment typos.
1860 * Fix configure probe for __builtin_exp10() to work around bug on mingw - there
1861 GCC generates a call to exp10() for __builtin_exp10() but there is no exp10()
1862 function in the C library, so we get a link failure. Use a full link test
1863 instead to avoid this issue. Reported by Mario Emmenlauer on xapian-devel.
1865 * Fix configure probe for log2() which was failing on at least some platforms
1866 due to ambiguity between overloaded forms of log2(). Make the probe
1867 explicitly check for log2(double) to avoid this problem.
1869 * Workaround the unhelpful semantics of AI_ADDRCONFIG on platforms which follow
1870 the old RFC instead of POSIX (such as Linux) - if only loopback networking is
1871 configured, localhost won't resolve by name or IP address, which causes
1872 testsuites using the remote backend over localhost to fail in auto-build
1873 environments which deliberately disable networking during builds. The
1874 workaround implemented is to check if the hostname is "::1", "127.0.0.1" or
1875 "localhost" and disable AI_ADDRCONFIG for these. This doesn't catch all
1876 possible ways to specify localhost, but should catch all the ways these might
1877 be specified in a testsuite. Fixes https://bugs.debian.org/853107, reported
1878 by Daniel Schepler and the root cause uncovered by James Clarke.
1882 * Adjust assertion in InMemoryPostList. Calling skip_to() is fine when the
1883 postlist hasn't been started yet (but the assertion was failing for a term
1884 not in the database). Latent bug, triggered by testcases complexphrase1 and
1885 complexnear1 as updated for addition of support for OP_OR subqueries of
1888 Xapian-core 1.4.3 (2017-01-25):
1892 * MSet::snippet(): Favour candidate snippets which contain more of a diversity
1893 of matching terms by discounting the relevance of repeated terms using an
1894 exponential decay. A snippet which contains more terms from the query is
1895 likely to be better than one which contains the same term or terms multiple
1896 times, but a repeated term is still interesting, just less with each
1897 additional appearance. Diversity issue highlighted by Robert Stepanek's
1898 patch in https://github.com/xapian/xapian/pull/117 - testcases taken from his
1901 * MSet::snippet(): New flag SNIPPET_EMPTY_WITHOUT_MATCH to get an empty snippet
1902 if there are no matches in the text passed in. Implemented by Robert
1905 * Round MSet::get_matches_estimated() to an appropriate number of significant
1906 figures. The algorithm used looks at the lower and upper bound and where the
1907 estimate sits between them, and then picks an appropriate number of
1908 significant figures. Thanks to Sébastien Le Callonnec for help sorting out a
1909 portability issue on OS X.
1911 * Add Database::locked() method - where possible this non-invasively checks if
1912 the database is currently open for writing, which can be useful for
1913 dashboards and other status reporting tools.
1917 * Use terms that exist in the database for most snippet tests. It's good to
1918 test that snippet highlighting works for terms that aren't in the database,
1919 but it's not good for all our snippet tests to feature such terms - it's
1920 not the common usage.
1924 * Improve value range upper bound and estimated matches. The value slot
1925 frequency provides a tighter upper bound than Database::get_doccount().
1926 The estimate is now calculated by working out the proportion of possible
1927 values between the slot lower and upper bounds which the range covers
1928 (assuming a uniform distribution). This seems to work fairly well in
1929 practice, and is certainly better than the crude estimate we were using:
1930 Database::get_doccount() / 2
1932 * Handle arbitrary combinations of OP_OR under OP_NEAR/OP_PHRASE, partly
1933 addressing #508. Thanks to Jean-Francois Dockes for motivation and testing.
1935 * Only convert OP_PHRASE to OP_AND if full DB has no positions. Until now the
1936 conversion was done independently for each sub-database, but being consistent
1937 with the results from a database containing all the same documents seems more
1940 * Avoid double get_wdf() call for first subquery of OP_NEAR and OP_PHRASE,
1941 which will speed them up by a small amount.
1945 * INSTALL: Update section about -Bsymbolic-functions which is not a new
1946 GNU ld feature at this point.
1950 * xapian-delve: Uses new Database::locked() method to report if the database
1951 is currently locked.
1955 * Fix build failure cross-compiling for android due to not pulling in header
1958 * Fix compiler warnings.
1960 Xapian-core 1.4.2 (2016-12-26):
1964 * Add XAPIAN_AT_LEAST(A,B,C) macro.
1966 * MSet::snippet(): Optimise snippet generation - it's now ~46% faster in a
1969 * Add Xapian::DOC_ASSUME_VALID flag which tells Database::get_document() that
1970 it doesn't need to check that the passed docid is valid. Fixes #739,
1971 reported by Germán M. Bravo.
1973 * TfIdfWeight: Add support for the L wdf normalisation. Patch from Vivek Pal.
1975 * BB2Weight: Fix weights when database has just one document. Our existing
1976 attempt to clamp N to be at least 2 was ineffective due to computing
1977 N - 2 < 0 in an unsigned type.
1979 * DPHWeight: Fix reversed sign in quadratic formula, making the upper bound a
1982 * DLHWeight: Correct upper bound which was a bit too low, due to flawed logic
1983 in its derivation. The new bound is slightly less tight (by a few percent).
1985 * DLHWeight,DPHWeight: Avoid calculating log(0) when wdf is equal to the
1988 * TermGenerator: Handle stemmer returning empty string - the Arabic stemmer
1989 can currently do this (e.g. for a single tatweel) and user stemmers can too.
1990 Fixes #741, reported by Emmanuel Engelhart.
1992 * Database::check(): Fix check that the first docid in each doclength chunk is
1993 more than the last docid in the previous chunk - this code was in the wrong
1994 place so didn't actually work.
1996 * Database::get_unique_terms(): Clamp returned value to be <= document length.
1997 Ideally get_unique_terms() ought to only count terms with wdf > 0, but that's
1998 expensive to calculate on demand.
2002 * When compacting we now only write the iamglass file out once, and we write it
2003 before we sync the tables but sync it after, which is more I/O friendly.
2005 * Database::check(): Fix in SEGV when out == NULL and opts != 0.
2007 * Fix potential SEGV with corrupt value stats.
2011 * Fix potential SEGV with corrupt value stats.
2015 * Add XO_REQUIRE autoconf macro to provide an easy way to handle version checks
2016 in user configure scripts.
2020 * quest: Support BM25+, LM and PL2+ weighting schemes.
2022 * xapian-check: Fix when ellipses are shown in 't' mode. They were being shown
2023 when there were exactly 6 entries, but we only start omitting entries when
2024 there are *more* than 6. Fix applies to both glass and chert.
2028 * Avoid using opendir()/readdir() in our closefrom() implementation as these
2029 functions can call malloc(), which isn't safe to do between fork() and exec()
2030 in a multi-threaded program, but after fork() is exactly where we want to
2031 use closefrom(). Instead we now use getdirentries() on Linux and
2032 getdirentriesattr() on OS X (OS X support bugs shaken out with help from
2035 * Support reading UUIDs from /proc/sys/kernel/random/uuid which is especially
2036 useful when building for Android, as it avoids having to cross-build a UUID
2039 * Disable volatile workaround for excess precision SEGV for SSE - previously it
2040 was only being disabled for SSE2.
2042 * When building for x86 using a compiler where we don't know how to disable
2043 use of 387 FP instructions, we now run remote servers for the testsuite under
2044 valgrind --tool=none, like we do when --disable-sse is explicitly specified.
2046 * Add alignment_cast<T> which has the same effect as reinterpret_cast<T> but
2047 avoids warnings about alignment issues.
2049 * Suppress warnings about unused private members. DLHWeight and DPHWeight
2050 have an unused lower_bound member, which clang warns about, but we need to
2051 keep them there in 1.4.x to preserve ABI compatibility.
2053 * Remove workaround for g++ 2.95 bug as we require at least 4.7 now.
2055 * configure: Probe for <cxxabi.h>. GCC added this header in GCC 3.1, which
2056 is much older than we support, so we've just assumed it was available if
2057 __GNUC__ was defined. However, clang lies and defines __GNUC__ yet doesn't
2058 seem to reliably provide <cxxabi.h>, so we need to probe for it.
2060 * Fix "unused assignment" warning.
2062 * configure: Probe for __builtin_* functions. Previously we just checked for
2063 __GNUC__ being defined, but it's cleaner to probe for them properly -
2064 compilers other than GCC and those that pretend to be GCC might provide these
2067 * Use __builtin_clz() with compilers which support it to speed up encoding
2068 and especially decoding of positional data. This speeds up phrase searching
2069 by ~0.5% in a simple test.
2071 * Check signed right shift behaviour at compile time - we can use a test on a
2072 constant expression which should optimise away to just the required version
2073 of the code, which means that on platforms which perform sign-extension
2074 (pretty much everything current it seems) we don't have to rely on the
2075 compiler optimising a portable idiom down to the appropriate right shift
2078 * Improve configure check for log2(). We include <cmath> so the check really
2079 should succeed if only std::log2() is declared.
2081 * Enable win32-dll option to LT_INIT.
2087 + Support glass instead of chert.
2089 + Allow control of showing keys/tags.
2091 + Use more mnemonic letters than X for command arguments in help.
2093 Xapian-core 1.4.1 (2016-10-21):
2097 * Constructing a Query for a non-reference counted PostingSource object will
2098 now try to clone the PostingSource object (as happened in 1.3.4 and
2099 earlier). This clone code was removed as part of the changes in 1.3.5 to
2100 support optional reference counting of PostingSource objects, but that breaks
2101 the case when the PostingSource object is on the stack and goes out of scope
2102 before the Query object is used. Issue reported by Till Schäfer and analysed
2103 by Daniel Vrátil in a bug report against Akonadi:
2104 https://bugs.kde.org/show_bug.cgi?id=363741
2106 * Add BM25PlusWeight class implementing the BM25+ weighting scheme, implemented
2107 by Vivek Pal (https://github.com/xapian/xapian/pull/104).
2109 * Add PL2PlusWeight class implementing the PL2+ weighting scheme, implemented
2110 by Vivek Pal (https://github.com/xapian/xapian/pull/108).
2112 * LMWeight: Implement Dir+ weighting scheme as DIRICHLET_PLUS_SMOOTHING.
2113 Patch from Vivek Pal.
2115 * Add CoordWeight class implementing coordinate matching. This can be useful
2116 for specialised uses - e.g. to implement sorting by the number of matching
2119 * DLHWeight,DPHWeight,PL2Weight: With these weighting schemes, the formulae
2120 can give a negative weight contribution for a term in extreme cases. We
2121 used to try to handle this by calculating a per-term lower bound on the
2122 contribution and subtracting this from the contribution, but this idea
2123 is fundamentally flawed as the total offset it adds to a document depends on
2124 what combination of terms that document matches, meaning in general the
2125 offset isn't the same for every matching document. So instead we now clamp
2126 each term's weight contribution to be >= 0.
2128 * TfIdfWeight: Always scale term weight by wqf - this seems the logical
2129 approach as it matches the weighting we'd get if we weighted every non-unique
2130 term in the query, as well as being explicit in the Piv+ formula.
2132 * Fix OP_SCALE_WEIGHT to work with all weighting schemes - previously it was
2133 ignored when using PL2Weight and LMWeight.
2135 * PL2Weight: Greatly improve upper bound on weight:
2136 + Split the weight equation into two parts and maximise each separately as
2137 that gives an easily solvable problem, and in common cases the maximum is
2138 at the same value of wdfn for both parts. In a simple test, the upper
2139 bounds are now just over double the highest weight actually achieved -
2140 previously they were several hundred times. This approach was suggested by
2141 Aarsh Shah in: https://github.com/xapian/xapian/pull/48
2142 + Improve upper bound on normalised wdf (wdfn) - when wdf_upper_bound >
2143 doclength_lower_bound, we get a tighter bound by evaluating at
2144 wdf=wdf_upper_bound. In a simple test, this reduces the upper bound on
2145 wdfn by 36-64%, and the upper bound on the weight by 9-33%.
2147 * PL2Weight: Fix calculation of upper_bound when P2>0. P2 is typically
2148 negative, but for a very common term it can be positive and then we should
2149 use wdfn_lower not wdfn_upper to adjust P_max.
2151 * Weight::unserialise(): Check serialised form is empty when unserialising
2152 parameter-free schemes BoolWeight, DLHWeight and DPHWeight.
2154 * TermGenerator::set_stopper_strategy(): New method to control how the Stopper
2155 object is used. Patch from Arnav Jain.
2157 * QueryParser: Fix handling of CJK query over multiple prefixes. Previously
2158 all the n-gram terms were AND-ed together - now we AND together for each
2159 prefix, then OR the results. Fixes #719, reported by Aaron Li.
2161 * Add Database::get_revision() method which provides access to the database
2162 revision number for chert and glass, intended for use by xapiand. Marked
2163 as experimental, so we don't have to go through the usual deprecation cycle
2164 if this proves not to be the approach we want to take. Fixes #709,
2165 reported by Germán M. Bravo.
2167 * Mark RangeProcessor constructor as `explicit`.
2171 * OP_SCALE_WEIGHT: Check top weight is non-zero - if it is zero, tests which
2172 try to check that OP_SCALE_WEIGHT works will always pass.
2174 * testsuite: Check SerialisationError descriptions from Xapian::Weight
2175 subclasses mention the weighting scheme name.
2179 * Fix stats passed to Weight with OP_SYNONYM. Previously the number of
2180 unique terms was never calculated, and a term which matched all documents
2181 would be optimised to an all-docs postlist, which fails to supply the
2184 * Use floating point calculation for OR synonym freq estimates. The division
2185 was being done as an integer division, which means the result was always
2186 getting rounded down rather than rounded to the nearest integer.
2190 * Fix allterms with prefix on glass with uncommitted changes. Glass aims to
2191 flush just the relevant postlist changes in this case but the end of the
2192 range to flush was wrong, so we'd only actually flush changes for a term
2193 exactly matching the prefix. Fixes #721.
2197 * Improve handling of invalid remote stub entries: Entries without a colon now
2198 give an error rather than being quietly skipped; IPv6 isn't yet supported,
2199 but entries with IPv6 addresses now result in saner errors (previously the
2200 colons confused the code which looks for a port number).
2204 * XO_LIB_XAPIAN: Check for user trying to specify configure for XAPIAN_CONFIG
2205 and give a more helpful error.
2207 * Fix XO_LIB_XAPIAN to work without libtool. Modern versions of GNU m4 error
2208 out when defn is used on an undefined macro. Uncovered by Amanda Jayanetti.
2210 * Clean build paths out of installed xapian-config, mostly in the interests of
2211 facilitating reproducible builds, but it is also a little more robust as the
2212 "uninstalled tree" case can't then accidentally be triggered.
2214 * Drop compiler options that are no longer useful:
2215 + -fshow-column is the default in all GCC versions we now support
2216 (checked as GCC 4.6).
2217 + -Wno-long-long is no longer necessary now that we require C++11 where
2218 "long long" is a standard type.
2222 * Add API documentation comments for all classes, methods, constants, etc which
2223 were lacking them, and improve the content of some existing comments.
2225 * Stop hiding undocumented classes and members. Hiding them silences doxygen's
2226 warnings about them, so it's hard to see what is missing, and the stub
2227 documentation produced is perhaps better than not documenting at all.
2228 Fixes #736, reported by James Aylett.
2230 * xapian-check: Make command line syntax consistent with other tools.
2232 * Note when MSet::snippet() was added.
2234 * deprecation.rst: Recommend unsigned over useconds_t for timeout values (but
2235 leave the API using useconds_t for 1.4.x for ABI compatibility. The type
2236 useconds_t is now obsolete and anyway was intended to represent a time in
2237 microseconds (confusing when Xapian's timeouts are in milliseconds). The
2238 Linux usleep man page notes: "Programs will be more portable if they never
2239 mention this type explicitly."
2243 * Suppress compiler warnings about pointer alignment on some architectures.
2244 We know the data is aligned in these cases.
2246 * Fix replicate7 under Cygwin.
2250 * Add missing forward declaration needed by --enable-log build.
2252 Xapian-core 1.4.0 (2016-06-24):
2256 * Update to Unicode 9.0.0.
2260 * Fix build on big-endian architectures. The new unaligned word access
2261 functions expect WORDS_BIGENDIAN to be set, but configure.ac wasn't invoking
2262 AC_C_BIGENDIAN to arrange for this to be set.
2264 * Suppress compiler warnings about pointer alignment. We know the data is
2265 suitably aligned, because the whole point of these functions is to allow
2266 reading an aligned word.
2268 Xapian-core 1.3.7 (2016-06-01):
2272 * Reimplement ESet and ESetIterator as we did for MSet and MSetIterator in
2273 1.3.5. ESetIterator internally now counts down to the end of the ESet, so
2274 the end test is now against 0, rather than against eset.size(). And more of
2275 the trivial methods are now inlined, which reduces the number of relocations
2276 needed to load the library, and should give faster code which is a very
2277 similar size to before.
2279 * MSetIterator and ESetIterator are now STL-compatible random_access_iterators
2280 (previously they were only bidirectional_iterators).
2284 * Merge queryparsertest and termgentest into apitest. Their testcases now use
2285 the backend manager machinery in the testharness, so we don't have to
2286 hard-code use of inmemory and chert backends, but instead run them under all
2287 backends which support the required features. This fixes some test failures
2288 when both chert and glass are disabled due to trying to run spelling tests
2289 with the inmemory backend.
2291 * Avoid overflowing collection frequency in totaldoclen1. We're trying to test
2292 total document length doesn't wrap, so avoid collection freq overflowing in
2293 the process, as that triggers errors when running the testsuite under ubsan.
2294 We should handle collection frequency overflow better, but that's a separate
2297 * Add some test coverage for ESet::get_ebound().
2301 * Fix upper bound on matches for OP_XOR. Due to a reversed conditional, the
2302 estimate could be one too low in some cases where the XOR matched all the
2303 documents in the database.
2305 * Improve lower bound on matches for OP_XOR. Previously the lower bound was
2306 always set to 0, which is valid, but we can often do better.
2310 * Fix Database::check() parsing of glass changes file header. In practice this
2311 was unlikely to actually cause problems.
2315 * --disable-backend-remote now disables replication too which makes it
2316 actually usable (currently replication and the remote backend share most of
2317 their network code, so disabling them together probably makes sense anyway).
2319 * Improve builds with various combinations of backends disabled (see #361).
2323 * Revert change to handle a self-initialised PIMPL object (e.g. Xapian::Query
2324 q(q);), added in 1.3.6. It seems this case is actually undefined behaviour,
2325 so there's not much point trying to do anything about it. Clang warns about
2326 the testcase for it (tested with 3.5), but sadly current GCC doesn't (tested
2329 * Use <cstdint> for integer types of known widths now we require C++11.
2331 * Replace unaligned word access functions with optimised versions which use
2332 memcpy() and (on little-endian platforms) a byte-swap (via compiler builtins
2333 where available). Access revision numbers in database blocks with an aligned
2334 load, since we know they are suitably aligned.
2336 * Simplify handling of platforms where timer_create() exists but isn't
2337 suitable for our needs - AIX and GNU Hurd both have timer_create() but it
2338 always seems to fail (on Hurd this is because there's a dummy implementation
2339 in glibc which always fails with ENOSYS). Trying a call at runtime which
2340 will never succeed is a waste of time, so we want to avoid defining
2341 HAVE_TIMER_CREATE in such cases. Probing for this properly in configure
2342 would need us to compile and run a test program, which is unhelpful when
2343 cross-compiling, so for now just test against a blacklist of platforms we
2344 know don't provide a suitable timer_create() function.
2346 * Check _POSIX_MONOTONIC_CLOCK and if it's not defined, use CLOCK_REALTIME
2347 instead of CLOCK_MONOTONIC. The existing hard-coded platform checks still
2348 seem to be needed, as on these platforms CLOCK_MONOTONIC is available for
2349 some functions, but doesn't work with timer_create() for one reason or
2350 another. But the new check should avoid failures on platforms without any
2351 monotonic clock support.
2353 * Make opt_intrusive_base symbols visible to avoid UBSAN warnings.
2355 * Avoid potential set-but-unused warning - with both chert and glass disabled,
2356 last_docid's final set value isn't used, which GCC doesn't warn about, but
2357 other compilers might.
2359 * Avoid explicit recursive return of void - we've had warnings for such cases
2360 from some compilers in the past, and it's an odd thing to do outside of a
2363 Xapian-core 1.3.6 (2016-05-09):
2367 * TfIdfWeight: Support freq and squared IDF normalisations. Patch from Vivek
2370 * New Xapian::Query::OP_INVALID to provide an "invalid" query object.
2372 * Reject OP_NEAR/OP_PHRASE with non-leaf subqueries early to avoid a
2373 potential segmentation fault if the non-leaf subquery decayed at
2374 just the wrong moment. See #508.
2376 * Reduce positional queries with a MatchAll or PostingSource subquery to
2377 MatchNothing (since these subqueries have no positional information, so
2378 the query can't match).
2380 * Deprecate ValueRangeProcessor and introduce new RangeProcessor class as
2381 a replacement. RangeProcessor()::operator()() method returns Xapian::Query,
2382 so a range can expand to any query. OP_INVALID is used to signal that
2383 a range is not recognised. Fixes #663.
2385 * Combining of ranges over the same quantity with OP_OR is now handled by
2386 an explicit "grouping" parameter, with a sensible default which works
2387 for value range queries. Boolean term prefixes and FieldProcessor now
2388 support "grouping" too, so ranges and other filters can now be grouped
2391 * Formally deprecate WritableDatabase::flush(). The replacement commit()
2392 method was added in 1.1.0, so code can be switched to use this and still
2395 * Fix handling of a self-initialised PIMPL object (e.g. Xapian::Query q(q);).
2396 Previously the uninitialised pointer was copied to itself, resulting in
2397 undefined behaviour when the object was used. This isn't something you'd see
2398 in normal code, but it's a cheap check which can probably be optimised away
2399 by the compiler (GCC 6 does).
2403 * Fix testcase notermlist1 to check correct table extension - ".glass" not
2404 ".DB" (chert doesn't support DB_NO_TERMLIST).
2408 * Bootstrap with autoconf 2.69. This requires GNU m4 >= 4.6, but that should
2409 no longer be an issue on developer machines.
2411 * Fix build with --enable-log. Debug logging was trying to log
2412 compress_strategy parameter which was removed recently. Reported by Ankit
2413 Paliwal on xapian-devel.
2417 * Fix misfiled deprecation notes. Various things marked as deprecated and
2418 removed in 1.3.x have in fact been deprecated but not removed (they were just
2419 added to the wrong list). One instance queried by David Bremner on #xapian,
2420 and a review found several more.
2422 * Improve docs for lcov makefile targets - say that these are targets in the
2423 xapian-core directory (noted by poe_ on #xapian), document
2424 coverage-reconfigure-maintainer-mode target, and clarify what the example of
2425 how to use GENHTML_ARGS actually does.
2427 * Note that Java bindings use xapian/iterator.h.
2429 * Update release checklist. The script to build the release tarballs now
2430 automates some of the changes needed in trac.
2434 * Fix build with Android NDK which declares sys_errlist and sys_nerr in the
2435 C library headers, but doesn't actually define them in the library itself.
2436 The configure test now tries to link a trivial program which uses these
2437 symbols. Patch from Tejas Jogi.
2439 Xapian-core 1.3.5 (2016-04-01):
2441 This release includes all changes from 1.2.23 which are relevant.
2445 * The Snipper class has been replaced with a new MSet::snippet() method.
2446 The implementation has also been redone - the existing implementation was
2447 slower than ideal, and didn't directly consider the query so would sometimes
2448 selects a snippet which doesn't contain any of the query terms (which users
2449 quite reasonably found surprising). The new implementation is faster, will
2450 always prefer snippets containing query terms, and also understands exact
2451 phrases and wildcards. Fixes #211.
2453 * Add optional reference counting support for ErrorHandler, ExpandDecider,
2454 KeyMaker, PostingSource, Stopper and TermGenerator. Fixes #186, reported
2455 by Richard Boulton. (ErrorHandler's reference counting isn't actually used
2456 anywhere in xapian-core currently, but means we can hook it up in 1.4.x if
2457 ticket #3 gets addressed).
2459 * Deprecate public member variables of PostingSource. The new getters and/or
2460 setters added in 1.2.23 and 1.3.5 are preferred. Fixes #499, reported by
2463 * Reimplement MSet and MSetIterator. MSetIterator internally now counts down
2464 to the end of the MSet, so the end test is now against 0, rather than against
2465 mset.size(). And more of the trivial methods are now inlined, which reduces
2466 the number of relocations needed to load the library, and should give faster
2467 code which is a very similar size to before.
2469 * Only issue prefetch hints for documents if MSet::fetch() is called. It's not
2470 useful to send the prefetch hint right before the actual read, which was
2471 happening since the implementation of prefetch hints in 1.3.4. Fixes #671,
2472 reported by Will Greenberg.
2474 * Fix OP_ELITE_SET selection in multi-database case - we were selecting
2475 different sets for each subdatabase, but removing the special case check for
2476 termfreq_max == 0 solves that.
2478 * Remove "experimental" marker from FieldProcessor, since we're happy with the
2479 API as-is. Reported by David Bremner on xapian-discuss.
2481 * Remove "experimental" marker from Database::check(). We've not had any
2482 negative feedback on the current API.
2484 * Databse::check() now checks that doccount <= last_docid.
2486 * Database::compact() on a WritableDatabase with uncommitted changes could
2487 produce a corrupted output. We now throw Xapian::InvalidOperationError in
2488 this case, with a message suggesting you either commit() or open the database
2489 from disk to compact from. Reported by Will Greenberg on #xapian-discuss
2491 * Add Arabic stemmer. Patch from Assem Chelli in
2492 https://github.com/xapian/xapian/pull/45
2494 * Improve the Arabic stopword list. Patch from Assem Chelli.
2496 * Make functions defined in xapian/iterator.h 'inline'.
2498 * Don't force the user to specify the metric in the geospatial API -
2499 GreatCircleMetric is probably what most users will want, so a sensible
2502 * Xapian::DBCHECK_SHOW_BITMAP: This was added in 1.3.0 (so has never been in
2503 a stable release) and was superseded by Xapian::DBCHECK_SHOW_FREELIST in
2504 1.3.2, so just remove it.
2506 * Make setting an ErrorHandler a no-op - this feature is deprecated and we're
2507 not aware of anyone using it. We're hoping to rework ErrorHandler in 1.4.x,
2508 which will be simpler without having to support the current behaviour as well
2513 * unittest: We can't use Assert() to unit test noexcept code as it throws an
2514 exception if it fails. Instead set up macros to set a variable and return if
2515 an assertion fails in a unittest testcase, and check that variable in the
2520 * Make glass the default backend. The format should now be stable, except
2521 perhaps in the unlikely event that a bug emerges which requires a format
2524 * Don't explicitly store the 2 byte "component_of" counter for the first
2525 component of every Btree entry in leaf blocks - instead use one of the upper
2526 bits of the length to store a "first component" flag. This directly saves 2
2527 bytes per entry in the Btree, plus additional space due to fewer blocks and
2528 fewer levels being needed as a result. This particularly helps the position
2529 table, which has a lot of entries, many of them very small. The saving would
2530 be expected to be a little less than the saving from the change which shaved
2531 2 bytes of every Btree item in 1.3.4 (since that saved 2 bytes multiple times
2532 for large entries which get split into multiple items). A simple test
2533 suggests a saving of several percent in total DB size, which fits that. This
2534 change reduces the maximum component size to 8194, which affects tables
2535 with a 64KB blocksize in normal use and tables with >= 16KB blocksize with
2538 * Refactor glass backend key comparison - == and < operations are replaced by
2539 a compare() function returns negative, 0 or positive (like strcmp(), memcmp()
2540 and std::string::compare()). This allows us to avoid a final compare to
2541 check for equality when binary chopping, and to terminate early if the binary
2542 chop hits the exact entry.
2544 * If a cursor is moved to an entry which doesn't exist, we need to step back to
2545 the first component of previous entry before we can read its tag. However we
2546 often don't actually read its tag (e.g. if we only wanted the key), so make
2547 this stepping back lazy so we can avoid doing it when we don't want to read
2550 * Avoid creating std::string objects to hold data when compressing and
2551 decompressing tags with zlib.
2553 * Store minimum compression length per table in the version file, with 0
2554 meaning "don't compress". Currently you can only change this setting with a
2555 hex editor on the file, but now it is there we can later make use of it
2556 without needing a database format change.
2558 * Database::check() now performs additional consistency checks for glass.
2559 Reported by Jean-Francois Dockes and Bob Cargill via xapian-discuss.
2561 * Database::check(): check docids don't exceed db_last_docid when checking
2562 a single glass table.
2564 * We now throw DatabaseCorruptError in a few cases where it's appropriate
2565 but we didn't previously, in particular in the case where all the files in a
2566 DB have been truncated to zero size (which makes handling of this case
2567 consistent with chert).
2569 * Fix compaction to a single file which already exists. This was hanging.
2570 Noted by Will Greenberg on #xapian.
2574 * When using 64-bit Xapian::docid, consistently use the actual maximum valid
2575 docid value rather instead of the maximum value the type can hold.
2579 * Default to only building shared libraries. Building both shared and static
2580 means having to compile the files which make up the library twice on most
2581 platforms. Shared libraries are the better option for most users, and if
2582 anyone really wants static libraries they can configure with --enable-static
2583 (or --enable-static=xapian-core if configuring a combined tree with the
2586 * Fix XAPIAN_TEST_LINKER_FLAG macro to actually test if it's possible to link
2587 with the option in LDFLAGS - previously we attempted to guess based on
2588 whether the error message from $CXX $flag contained the option name, which
2589 doesn't actually work very well.
2593 * Document that OP_WILDCARD expansion limits currently work per sub-db.
2595 * Remove reference to ChangeLog files, as we are no longer updating them.
2597 * Remove link to apidoc.pdf which we no longer generate this by default.
2599 * Clarify LatLongCoord::operator< purpose in API documentation.
2601 * Fix documentation comment typo - LatLongDistancePostingSource is a posting
2602 source, not a match decider!
2604 * HACKING: Recommend lcov 1.11 as it uses much less memory
2608 * xapian-replicate: Obviously corrupt replicas now self-heal. If a replica
2609 database fails to open with DatabaseCorruptError then a full copy is now
2614 * Eliminate arrays of C strings, which result in relocations at library load
2615 time, slowing startup and making pages containing them unsharable.
2617 * Refactor MSet::fetch() to reduce load time relocations.
2621 * Fix to build when configured with --enable-assertions.
2623 * Fix to build when configured with --enable-log. Reported by Tim McNamara
2626 Xapian-core 1.3.4 (2016-01-01):
2628 This release includes all changes from 1.2.22 which are relevant.
2632 * Update to Unicode 8.0.0. Fixes #680.
2634 * Overhaul database compaction API. Add a Xapian::Database::compact() method,
2635 with the Database object specifying the source database(s).
2636 Xapian::Compactor is now just a functor to use if you want to control
2637 progress reporting and/or the merging of user metadata. The existing API
2638 has been reimplemented using the new one, but is marked as deprecated.
2640 * Add support for a default value when sorting. Fixes #452, patch from
2643 * Make all functor objects non-copyable. Previously some were, some weren't,
2644 but it's hard to correctly make use of this ability. Fixes #681.
2646 * Fix use after free with WILDCARD_LIMIT_MOST_FREQUENT. If we tried to open a
2647 postlist after processing such a wildcard, the postlist hint could be
2648 pointing to a PostList object which had been deleted. Fixes #696, reported
2651 * Add support for optional reference counting of MatchSpy objects.
2653 * Improve Document::get_description() - the output is now always valid UTF-8,
2654 doesn't contain implementation details like "Document::Internal", and more
2655 clearly reports if the document is linked to a database.
2657 * Remove XAPIAN_CONST_FUNCTION marker from sortable_serialise_() helper, as it
2658 writes to the passed in buffer, so it isn't const or pure. Fixes
2659 decvalwtsource2 testcase failure when compiled with clang.
2661 * Make PostingSource::set_maxweight() public - it's hard to wrap for the
2662 bindings as a protected method. Fixes #498, reported by Richard Boulton.
2666 * Add unit test for internal C_isupper(), etc functions.
2670 * Optimise value range which is a superset of the bounds. If the value
2671 frequency is equal to the doccount, such a range is equivalent to MatchAll,
2672 and we now avoid having to read the valuestream at all.
2674 * Optimise OP_VALUE_RANGE when the upper bound can't be exceeded. In this
2675 case, we now use ValueGePostList instead of ValueRangePostList.
2679 * Shave 2 bytes of every Btree item (which will probably typically reduce
2680 database size by several percent).
2682 * More compact item format for branch blocks - 2 bytes per item smaller. This
2683 means each branch block can branch more ways, reducing the number of Btree
2684 levels needed, which is especially helpful for cold-cache search times.
2686 * Track an upper bound on spelling word frequency. This isn't currently used,
2687 but will be useful for improving the spelling algorithm, and we want to
2688 stabilise the glass backend format. See #225, reported by Philip Neustrom.
2690 * Support 64-bit docids in the glass backend on-disk format. This changes the
2691 encoding used by pack_uint_preserving_sort() to one which supports 64 bit
2692 values, and is a byte smaller for values 16384-32767, and the same size for
2693 all other 32 bit values. Fixes #686, from original report by James Aylett.
2695 * Use memcpy() not memmove() when no risk of overlap.
2697 * Store length of just the key data itself, allowing keys to be up to 255 bytes
2698 long - the previous limit was 252.
2700 * Change glass to store DB stats in the version file. Previously we stored
2701 them in a special item in the postlist table, but putting them in the version
2702 file reduces the number of block reads required to open the database, is
2703 simpler to deal with, and means we can potentially recalculate tight upper
2704 and lower bounds for an existing database without having to commit a new
2707 * Add support for a single-file variant for glass. Currently such databases
2708 can only be opened for reading - to create one you need to use
2709 xapian-compact (or its API equivalent). You can embed such databases within
2710 another file, and open them by passing in a file descriptor open on that file
2711 and positioned at the offset the database starts at). Database::check() also
2712 supports them. Fixes #666, reported by Will Greenberg (and previously
2713 suggested on xapian-discuss by Emmanuel Engelhart).
2715 * Avoid potential DB corruption with full-compaction when using 64K blocks.
2717 * Where posix_fadvise() is available, use it to prefetch postlist Btree blocks
2718 from the level below the root block which will be needed for postlists of
2719 terms in the query, and similarly for the docdata table when MSet::fetch() is
2720 called. Based on patch by Will Greenberg in #671.
2724 * Where posix_fadvise() is available, use it to prefetch postlist Btree blocks
2725 from the level below the root block which will be needed for postlists of
2726 terms in the query, and similarly for the record table when MSet::fetch() is
2727 called. Based on patch by Will Greenberg in #671.
2731 * Fix hook for remote support of user weighting schemes. The commented-out
2732 code used entirely the wrong class - now we use the server object we have
2733 access to, and forward the method to the class which needs it.
2737 * New configure options --enable-64bit-docid and --enable-64bit-termcount,
2738 which control the size of these types. Because these types are used in
2739 the API, libraries built with different combinations of them won't be ABI
2740 compatible. Based heavily on patch from James Aylett and Dylan Griffith.
2743 * Sort out hiding most of the internal symbols which had public visibility
2744 for various reason. Mostly addresses #63.
2748 * xapian-inspect: We no longer install this - it's really an aid to Xapian
2749 development rather than a user tool.
2753 * Minimum supported GCC version is now documented as GCC 4.7, for C++11
2754 support. Previously we documented 4.7 as the oldest known to work.
2756 * Use CLOCK_REALTIME with timer_create() on Cygwin.
2758 * Don't include winsock headers on Cygwin. Instead include <arpa/inet.h> for
2759 htons() and htonl().
2761 * Handle AI_ADDRCONFIG not being defined by some mingw versions.
2763 * Fix to handle mingw now providing a nanosleep() function.
2765 * Use WSAAddressToString instead of inet_ntop under __WIN32__ - at least under
2766 mingw we don't seem to have inet_ntop().
2768 * Fix testsuite to compile when S_ISSOCK() isn't defined.
2772 * Add missing parameters to debug logging for a few methods.
2774 Xapian-core 1.3.3 (2015-06-01):
2776 This release includes all changes from 1.2.20-1.2.21 which are relevant.
2782 + Add new flag Xapian::DB_RETRY_LOCK which allows opening a database for
2783 writing to wait until it can get a write lock. (Fixes #275, reported by
2786 + Fix Database::get_doclength_lower_bound() over multiple databases when some
2787 are empty or consist only of zero-length documents. Previously this would
2788 report a lower bound of zero, now it reports the same lowest bound as a
2789 single database containing all the same documents.
2791 + Database::check(): When checking a single table, handle the ".glass"
2792 extension on glass database tables, and use the extension to guide the
2793 decision of which backend the table is from.
2797 + Add new OP_WILDCARD query operator, which expands wildcards lazily, so now
2798 we create the PostList tree for a wildcard directly, rather than creating
2799 an intermediate Query tree. OP_WILDCARD offers a choice of ways to limit
2800 wildcard expansion (no limit, throw an exception, use the first N by term
2801 name, or use the most frequent N). (See tickets #48 and #608).
2805 + Add new set_max_expansion() method which provides access to OP_WILDCARD's
2806 choice of ways to limit expansion and can set limits for partial terms as
2807 well as for wildcards. Partial terms now default to the 100 most frequent
2808 matching terms. (Completes #608, reported by boomboo).
2810 + Deprecate set_max_wildcard_expansion() in favour of set_max_expansion().
2812 * Add support for optional reference counting of FieldProcessor and
2813 ValueRangeProcessor objects.
2817 * If command line option --verbose/-v isn't specified, set the verbosity level
2818 from environmental variable VERBOSE.
2820 * Re-enable replicate3 for glass, as it no longer fails.
2822 * Add more test coverage for get_unique_terms().
2824 * Don't leave an extra fd open when starting xapian-tcpsrv for remotetcp tests.
2828 * When reporting freelist errors during a database check, distinguish between a
2829 block in use and in the freelist, and a block in the freelist more than once.
2831 * Fix compaction and database checking for the change to the format of keys
2832 in the positionlist table which happened in 1.3.2.
2834 * After splitting a block, we always insert the new block in the parent right
2835 after the block it was split from - there's no need to binary chop.
2837 * Avoid infinite recursion when we hit the end of the freelist block we're
2838 reading and the end of the block we're writing at the same time.
2840 * Fix freelist handling to allow for the newly loaded first block of the
2841 freelist being already used up.
2845 * Fix problems with get_unique_terms() on a modified chert database.
2847 * Fix xapian-check on a single chert table, which seg faulted in 1.3.2.
2851 * Avoid dividing zero by zero when calculating the average length for an empty
2856 * Merge generate-allsnowballheaders script into collate-sbl.
2860 * A compiler with good support for C++11 is now required to build Xapian.
2861 Most of the actively developed C++ compilers already have decent support,
2862 or are close to having it, and it makes development easier and more
2863 efficient. Currently known to work: GCC >= 4.7, recent versions of clang
2864 (3.5 works). Solaris Studio 12.4 compiles the code, but tests currently
2865 fail. IBM's xlC doesn't support enough of C++11 yet. HP's aCC hasn't
2866 been tested, but its documentation suggests it also doesn't support enough
2869 * Drop workarounds and special cases for old versions of various compilers
2870 which don't support C++11.
2872 * Use C++11's static_assert() and unique_ptr instead of custom implementations
2873 of equivalent functionality.
2875 * Building on OS/2 with EMX is no longer supported - EMX was last updated in
2876 2001 and comes with GCC 3.2.1, which is much too old to support C++11.
2878 * Building with SGI's and Compaq's C++ compilers is no longer supported -
2879 both seem to have ceased development, and don't support C++11.
2881 * Building with STLport is no longer supported - STLport was last released in
2882 2008, so it's no longer actively developed and won't support C++11.
2884 * Building on IRIX is no longer supported, because IRIX has reached end of
2887 * Disable "<FUNCTION> is expected to return a value" warning from Sun's C++
2888 compiler, as it fires for functions which end in a "throw" statement.
2889 Genuine instances of missing return values will be caught by compilers with
2890 superior warning machinery.
2892 * Fix warning from GCC 5.1 where template expansion leads to the comparison
2893 (bool_value < 255) which is always true. Warning introduced by changes in
2896 * Use getaddrinfo() instead of gethostbyname(), since the latter may not be
2897 thread-safe, and as a step towards IPv6 support (see #374), but currently we
2898 still only look for IPv4 addresses.
2900 * timer_create() seems to always fail on AIX with EAGAIN, so just skip the
2901 matchtimelimit1 testcase there.
2903 * Under __WIN32__, we need to specify Vista as the minimum supported version to
2904 get the AI_ADDRCONFIG flag. Older versions seem to all be out of support
2907 * Change configure probe for log2() to check for a declaration in <cmath>
2908 to get it to fix build on Solaris with Sun C++. C++11 compilers should all
2909 provide log2(), but let's not rely on that just yet as it's easy to provide a
2910 fallback implementation.
2912 * Use scalbn() instead of ldexp() where possible (which we can in all cases
2913 when FLT_RADIX == 2, as it is on pretty much all current platforms). On
2914 overflow and underflow ldexp() sets errno, which it seems better to avoid
2917 * The list of stemmers is now in the same static const struct as the version
2918 info, and Stem::get_available_languages() is just an inlined wrapper which
2919 fetches this structure and returns the appropriate member. This saves a
2920 relocation, reducing library load time a little.
2922 * Remove "pure" attribute from API functions which could throw an exception.
2923 These functions aren't really pure, and while we're happy for calls to them
2924 to be CSE-ed or eliminated entirely, the compiler might make more assumptions
2925 than that about a pure function - clang seems to assume pure => nothrow and
2926 an exception from such a function can't be caught.
2928 * Remove "pure" attribute from sortable_unserialise(), which can raise floating
2929 point exceptions FE_OVERFLOW and FE_UNDERFLOW.
2931 * Add "nothrow" attribute to more API functions which will never throw an
2934 * Make sortable_serialise() an inlined wrapper around a function which won't
2935 throw and can be flagged with attribute 'const'.
2937 * Tweak sortable_unserialise() not to compare with a fixed string by
2938 constructing a temporary std::string object (which could throw
2939 std::bad_alloc), and mark it as XAPIAN_NOTHROW.
2943 * Only enable assertions in sortable_serialise() and sortable_unserialise() in
2944 the testsuite (since these functions shouldn't throw exceptions), and move
2945 the tests of these functions from queryparsertest to unittest to facilitate
2948 * Add more assertions to the glass backend code.
2950 Xapian-core 1.3.2 (2014-11-24):
2952 This release includes all changes from 1.2.16-1.2.19 which are relevant.
2956 * Update Unicode character database to Unicode 7.0.0.
2958 * New Xapian::Snipper class from Mihai Bivol's GSOC 2012 project. (mostly
2961 * Fix all get_description() methods to always return UTF-8 text. (fixes #620)
2963 * Database::check():
2965 + Alter to take its "out" parameter as a pointer to std::ostream instead of a
2966 reference, and make passing NULL mean "do not produce output", and make
2967 the second and third parameters optional, defaulting to a quiet check.
2969 + Escape invalid UTF-8 data in keys and tags reported by xapian-check, using
2970 the same code we use to clean up strings returned by get_description()
2973 + Correct failure message which talks above the root block when it's actually
2976 + Rename DBCHECK_SHOW_BITMAP to DBCHECK_SHOW_FREELIST (old name still
2977 provided for now, but flagged as deprecated - DBCHECK_SHOW_BITMAP was new
2978 in 1.3.0, so will likely be removed before 1.4.0).
2980 * Methods and functions which take a string to unserialise now consistently
2981 call that parameter "serialised".
2983 * Weight: Make number of distinct terms indexing each document and the
2984 collection frequency of the term available to subclasses. Patch from
2985 Gaurav Arora's Language Modelling branch.
2987 * WritableDatabase: Add support for multiple subdatabases, and support opening
2988 a stub database containing multiple subdatabases as a WritableDatabase.
2990 * WritableDatabase can now be constructed from just a pathname (defaulting to
2991 opening the database with DB_CREATE_OR_OPEN).
2993 * WritableDatabase: Add flags which can be bitwise OR-ed into the second
2994 argument when constructing:
2996 + Xapian::DB_NO_SYNC: to disable use of fsync, etc
2998 + Xapian::DB_DANGEROUS: to enable in-place updates
3000 + Xapian::DB_BACKEND_CHERT: if creating, create a chert database
3002 + Xapian::DB_BACKEND_GLASS: if creating, create a glass database
3004 + Xapian::DB_NO_TERMLIST: create a database without a termlist (see #181)
3006 + Xapian::DB_FULL_SYNC flag - if this is set for a database, we use the Mac
3007 OS X F_FULL_SYNC instead of fdatasync()/fsync()/etc on the version file
3010 * Database: Add optional flags argument to constructor - the following can be
3011 bitwise OR-ed into it:
3013 + Xapian::DB_BACKEND_CHERT (only open a chert database)
3015 + Xapian::DB_BACKEND_GLASS (only open a glass database)
3017 + Xapian::DB_BACKEND_STUB (only open a stub database)
3019 * Xapian::Auto::open_stub() and Xapian::Chert::open() are now deprecated in
3020 favour of these new flags.
3022 * Add LMWeight class, which implements the Unigram Language Modelling weighting
3023 scheme. Patch from Gaurav Arora.
3025 * Add implementations of a number of DfR weighting schemes (BB2, DLH, DPH,
3026 IfB2, IneB2, InL2, PL2). Patches from Aarsh Shah.
3028 * Add support for the Bo1 query expansion scheme. Patch from Aarsh Shah.
3030 * Add Enquire::set_time_limit() method which sets a timelimit after which
3031 check_at_least will be disabled.
3033 * Database: Trying to perform operations on a database with no subdatabases now
3034 throws InvalidOperationError not DocNotFoundError.
3036 * Query: Implement new OP_MAX query operator, which returns the maximum weight
3037 of any of its subqueries. (see #360)
3039 * Query: Add methods to allow introspection on Query objects - currently you
3040 can read the leaf type/operator, how many subqueries there are, and get a
3041 particular subquery. For a query which is a term, Query::get_terms_begin()
3042 allows you to get the term. (see #159)
3044 * Query: Only simplify OP_SYNONYM with a single subquery if that subquery is a
3047 * Avoid two vector copies when storing term positions in most common cases.
3049 * Reimplement version functions to use a single function in libxapian which
3050 returns a pointer to a static const struct containing the version
3051 information, with inline wrappers in the API header which call this. This
3052 means we only need one relocation instead of 4, reducing library load time a
3055 * Make TermGenerator flags an anonymous enum, and typedef TermGenerator::flags
3056 to int for backward compatibility with existing user code which uses it.
3058 * Stem: Fix incorrect Unicode codepoints for o-double-acute and u-double-acute
3059 in the Hungarian Snowball stemmer. Reported by Tom Lane to snowball-discuss.
3061 * Stem: Add an early english stemmer.
3063 * Provide the stopword lists from Snowball plus an Arabic one, installed in
3064 ${prefix}/share/xapian-core/stopwords/. Patch from Assem Chelli, fixes #269.
3066 * Improve check for direct inclusion of Xapian subheaders in user code to
3069 * Add simple API to help with creating language-idiomatic iterator wrappers
3070 in <xapian/iterator.h>.
3074 * Extend checkstatsweight1 to check that Weight::get_collection_freq() returns
3075 the same number as Database::get_collection_freq().
3077 * queryparsertest: Add testcase for FieldProcessor on boolean prefix with
3080 * queryparsertest: Enable some disabled cases which actually work (in some
3081 cases with slightly tweaked expected answers which are equivalent to those
3084 * Make use of the new writable multidatabase feature to simplify the
3085 multi-database handling in the test harness.
3087 * Change querypairwise1_helper to repeat the query build 100 times, as with a
3088 fast modern machine we were sometimes trying with so many subqueries that we
3089 would run out of stack.
3091 * apitest: Use Xapian::Database::check() in cursordelbug1. (partly addresses
3094 * apitest: Test Query ops with a single MatchAll subquery.
3096 * apitest: New testcase readonlyparentdir1 to ensure that commit works with a
3097 read-only parent directory.
3101 * Streamline collation of statistics for use by weighting schemes - tests show
3102 a 2% or so increase in speed in some cases.
3104 * If a term matches all documents and its weight doesn't depend on its wdf, we
3105 can optimise it to MatchAll (the previous requirement that maxpart == 0 was
3106 unnecessarily strict).
3108 * Fix the check for a term which matches all documents to use the sub-db
3109 termfreq, not the combined db termfreq.
3111 * When we optimise a postlist for a term which matches all documents to use
3112 MatchAll, we still need to set a weight object on it to get percentages
3113 calculated correctly.
3117 * 'brass' backend renamed to 'glass' - we decided to use names in ascending
3118 alphabetical order to make it easier to understand which backend is newest,
3119 and since 'flint' was used recently, we skipped over 'd', 'e' and 'f'.
3121 * Change positionlist keys to be ordered by term first rather than docid first,
3122 which helps phrase searching significantly. For more efficient indexing,
3123 positionlist changes are now batched up in memory and written out in key
3126 * Use a separate cursor for each position list - now we're ordering the
3127 position B-tree by term first, phrase matching would cause a single cursor
3128 to cycle between disparate areas of the B-tree and reread the same blocks
3131 * Reference count blocks in the btree cursor, so cursors can cheaply share
3132 blocks. This can significantly reduce the amount of memory used by cursors
3133 for queries which contain a lot of terms (e.g. wildcards which expand to a
3136 * Under glass, optimise the turning of a query into a postlist to reuse the
3137 cursor blocks which are the same as the previous term's postlist. This is
3138 particularly effective for a wildcard query which expands to a lot of terms.
3140 * Keep track of unused blocks in the Btrees using freelists rather than
3141 bitmaps. (fixes #40)
3143 * Eliminate the base files, and instead store the root block and freelist
3144 pointers in the "iamglass" file.
3146 * When compacting, sync all the tables together at the end.
3148 * In DB_DANGEROUS mode, update the version file in-place.
3150 * Only actually store the document data if it is non-empty. The table which
3151 holds the document data is now lazily created, so won't exist if you never
3152 set the document data.
3156 * Improve DBCHECK_FIX:
3158 + if fixing a whole database, we now take the revision from the first table
3159 we successfully look at, which should be correct in most cases, and is
3160 definitely better than trying to determine the revision of each broken
3161 table independently.
3163 + handle a zero-sized .DB file.
3165 + After we successfully regenerate baseA, remove any empty baseB file to
3166 prevent it causing problems. Tracked down with help from Phil Hands.
3170 * Bump remote protocol version to 38.0, due to extra statistics being tracked
3173 * Make Weight::Internal track if any max_part values are set, so we don't need
3174 to serialise them when they've not been set.
3178 * Fix conditional for enabling replication code - if chert is disabled but
3179 glass isn't, we should still enable it.
3181 * configure: Add hint for which package to install for rst2html
3185 * Don't build, ship or install PDF versions of the API docs by default, but
3186 provide an easy way for people to build it for themselves if they want it.
3188 * Convert equations in rst docs to use LaTeX via the math role and directive.
3190 * Actually ship, process and install geospatial.rst.
3192 * postingsource.rst: Use a modern class in postingsource example. (Noted by
3195 * Move the protocol docs for the remote and replication protocols into the net/
3198 * Remove the dir_contents files and all the machinery to handle them.
3200 * HACKING: Note we now use doxygen 1.8.8 for 1.3.x snapshots and releases.
3202 * HACKING: Now using libtool 2.4.3 to bootstrap snapshots and 1.3.x releases.
3204 * HACKING: Now using automake 1.14.1 to bootstrap snapshots and 1.3.x releases.
3206 * HACKING: Drop note about needing git-svn if you're using git - bootstrap now
3207 only uses git-svn if your Xapian tree was checked out using git-svn.
3209 * HACKING: Need sphinx-doc to generate API docs for Python and Python 3 bindings.
3211 * HACKING: Note that MacTeX seems to be the best option if using homebrew.
3215 * Don't pass an integer argument to log(), to avoid ambiguity errors with xlC
3216 and Sun's C++ compiler. (fixes #627)
3218 * Fix compilations issues with Sun's C++ compiler (mostly missing library
3221 * Implement RealTime::now() using clock_gettime() where it's available, since
3222 it can provide nanosecond resolution.
3224 * Implement RealTime::sleep() using nanosleep() where it's available, since it
3225 has a simpler API and a finer resolution than select().
3227 * Use lround() instead of round() in geospatial code, since we want the result
3228 as an int. GCC 4.4.3 seems to optimise to use lround() anyway, but other
3231 * Include <math.h> for lround()/round(). (fixes #628)
3233 * Drop code supporting Microsoft Windows 9x which reached EOL in 2006.
3235 * Under C++11, use unique_ptr for AutoPtr.
3237 * Stop using a reference where we may end up passing *NULL, as that's invalid.
3238 Thanks Nick Lewycky and ubsan for helping track this down.
3240 * In DLHWeight and DPHWeight, avoid dividing by zero when the collection size
3245 * Fix assertion failure when built with --enable-assertions. The behaviour
3246 when built without assertions happened to be correct.
3248 * Fix assertion in BitReader::decode(), and remove 'Assert(rd);' in two places
3249 where rd is no longer a pointer.
3251 Xapian-core 1.3.1 (2013-05-03):
3253 This release includes all changes from 1.2.10-1.2.15 which are relevant.
3257 * Give an compilation error if user code tries to include API headers other
3258 than xapian.h directly - these other headers are an internal implementation
3259 detail, but experience has shown that some people try to include them
3260 directly. Please just use '#include <xapian.h>' instead.
3262 * Update Unicode character database to Unicode 6.2.0.
3264 * Add FieldProcessor class (ticket#128) - currently marked as an experimental
3265 API while we sort out how best to sort out exactly how it interacts with
3266 other QueryParser features.
3268 * Add implementation of several TF-IDF weighting schemes via a new TfIdfWeight
3271 * Add ExpandDeciderFilterPrefix class which only return terms with a particular
3272 prefix. (fixes #467)
3274 * QueryParser: Adjust handling of Unicode opening/closing double quotes - if a
3275 quoted boolean term was started with ASCII double quote, then only ASCII
3276 double quote can end it, as otherwise it's impossible to quote a term
3277 containing Unicode double quotes.
3279 * Database::check(): If the database can't be opened, don't emit a bogus
3280 warning about there being too many documents to cross-check doclens.
3282 * TradWeight,BM25Weight: Throw SerialisationError instead of NetworkError if
3283 unserialise() fails.
3285 * QueryParser: Change the default stemming strategy to STEM_SOME, to eliminate
3286 the API gotcha that setting a stemmer is ignored until you also set a
3289 * Deprecate Xapian::ErrorHandler. (ticket#3)
3291 * Stem: Generate a compact and efficient table to decode language names. This
3292 is both faster and smaller than the approach we were using, with the added
3293 benefit that the table is auto-generated.
3297 + Add check for Qt headers being included before us and defining
3298 'slots' as a macro - if they are, give a clear error advising how to work
3299 around this (previously compilation would fail with a confusing error).
3301 + Add a similar check for Wt headers which also define 'slots' as a macro
3306 * tests/generate-api_generated: Test that the string returned by a
3307 get_description() method isn't empty.
3309 * Use git commit hash in title of test coverage reports generated from a git
3314 * Drop MatchNothing subqueries in OR-like situations in add_subquery() rather
3315 than adding them and then handling it later.
3317 * Handle the left side of AND_NOT and AND_MAYBE being MatchNothing in
3318 add_subquery() rather than in done().
3320 * Handle QueryAndLike with a MatchNothing subquery in add_subquery() rather
3323 * Query: Multi-way operators now store their subquery pointers in a custom
3324 class rather than std::vector<Xapian::Query>. The custom class take the
3325 same amount of space, or often less. It's particularly efficient when
3326 there are two subqueries, which is very desirable as we no longer flatten a
3327 subtree of the same operator as we build the query.
3329 * Optimise an unweighted query term which matches all the documents in a
3330 subdatabase to use the "MatchAll" postlist. (ticket#387)
3334 * Iterating positional data now decodes it lazily, which should speed up
3335 phrases which include common words.
3337 * Compress changesets in brass replication. Increments the changeset version.
3340 * Restore two missing lines in database checking where we report a block with
3343 * When checking if a block was newly allocated in this revision, just look
3344 at its revision number rather than consulting the base file's bitmap.
3348 * Iterating positional data now decodes it lazily, which should speed up
3349 phrases which include common words.
3353 * Prefix compress list of terms and metadata keys in the remote protocol.
3354 This requires a remote protocol major version bump.
3358 * Fix the 'libxapian' to be 'libxapian-1.3' and 'xapian.m4' to be
3359 'xapian-1.3.m4' (this was supposed to be the case for 1.3.0, but the
3360 change wasn't made correctly).
3362 * Remove support for 'configure --enable-quiet', 'make QUIET=' and 'make
3363 QUIET=y' - automake now supports 'configure --enable-silent-rules', 'make
3364 V=1' and 'make V=0' which are broadly equivalent and more standard.
3366 * configure: If we fail to find a function needed for the remote backend, don't
3367 autodisable it - it's more helpful to error out so the use can decide if they
3368 want to pass --disable-backend-remote to disable it, or work out what values
3369 to pass for LIBS, etc to make it work. This also matches what we do for the
3370 disk based backends.
3372 * automake 1.13.1 is now used to generate snapshots and releases.
3374 * Add check-syntax make target to support editor syntax checks.
3376 * Fix to build when configured with --disable-backend-brass
3377 --disable-backend-chert. (ticket#586)
3379 * Generate a check for compatible _DEBUG settings if built with MSVC.
3382 * If you run "make coverage-check" by hand, the previous default of compressed
3383 HTML is unhelpful, so don't default to passing --html-gzip to genhtml, but
3384 instead add support for GENHTML_ARGS.
3386 * API methods and functions are now marked as 'const', 'pure', or 'nothrow'
3387 allowing compilers which support such annotations to generate more efficient
3388 code. (tickets #151, #454)
3392 * HACKING: Note which MacPorts are needed for development work.
3394 * docs/remote_protocol.rst: Correct error in documentation of REPLY_DOCDATA
3399 * xapian-check: Add "fix" option, which currently will regenerate iamchert if
3400 it isn't valid, and will regenerate base files from the .DB files (only
3401 really tested on databases which have just been compacted).
3405 * Fix warning with GCC in build with assertions enabled.
3407 * common/fileutils.cc: Add safeunistd.h for mkdir, required by GCC 4.7
3408 (reported by Gaurav Arora).
3410 * backends/brass/brass_databasereplicator.cc: Use new/delete to avoid variable
3411 length array gcc extension and comply with c++98
3413 * Mark file descriptors as close-on-exec where supported.
3415 * api/queryinternal.cc: Need <functional> for mem_fun().
3417 * Work around Apple's OS X SDK defining a check() macro.
3419 * Add an option to use a flock() based locking implementation for brass and
3420 chert - this is much simpler than using fcntl() due to saner semantics around
3421 releasing locks when closing other descriptors on the same file (at least on
3422 platforms where flock() isn't just a compatibility wrapper around fcntl()).
3423 Sadly we can't simply switch to this without breaking locking compatibility
3424 with previous releases, but it's useful for platforms without fcntl()
3425 locking (it's enabled for DJGPP) and may be useful for custom builds for
3430 * xapian-core.spec: Remove xapian-chert-update.
3434 * Building with --enable-log works once again.
3436 Xapian-core 1.3.0 (2012-03-14):
3440 * Update Unicode character database to Unicode 6.1.0. (ticket#497)
3442 * TermIterator returned by Enquire::get_matching_terms_begin(),
3443 Query::get_terms_begin(), Database::synonyms_begin(),
3444 QueryParser::stoplist_begin(), and QueryParser::unstem_begin() now stores the
3445 list of terms to iterate much more compactly.
3449 + Allow Unicode curly double quote characters to start and/or end phrases.
3451 + The set_default_op() method will now reject operators which don't make
3452 sense to set. The operators which are allowed are now explicitly
3453 documented in the API docs.
3455 * Query: The internals have been completely reimplemented (ticket#280). The
3456 notable changes are:
3458 + Query objects are smaller and should be faster.
3460 + More readable format for Query::get_description().
3462 + More compact serialisation format for Query objects.
3464 + Query operators are no longer flattened as you build up a tree (but the
3465 query optimiser still combines groups of the same operator). This means
3466 that Query objects are truly immutable, and so we don't need to copy Query
3467 objects when composing them. This should also fix a few O(n*n) cases when
3468 building up an n-way query pair-wise. (ticket#273)
3470 + The Query optimiser can do a few extra optimisations.
3472 * There's now explicit support for geospatial search (this API is currently
3473 marked as experimental). (ticket#481)
3475 * There's now an API (currently experimental) for checking the integrity of
3476 databases (partly addresses ticket#238).
3478 * Database::reopen() now returns true if the database may have been reopened
3479 (previously it returned void). (ticket#548)
3481 * Deprecate Xapian::timeout in favour of POSIX type useconds_t.
3483 * Deprecate Xapian::percent and use int instead in the API and our own code.
3485 * Deprecate Xapian::weight typedef in favour of just using double and change
3486 all uses in the API and our own code. (ticket#560)
3488 * Rearrange members of Xapian::Error to reduce its size (from 48 to 40 bytes on
3491 * Assignment operators for PositionIterator and TermIterator now return *this
3494 * PositionIterator, PostingIterator, TermIterator and ValueIterator now
3495 handle their reference counts in hand-crafted code rather than using
3496 intrusive_ptr/RefCntPtr, which means the compiler can inline the destructor
3497 and default constructor, so a comparison to an end iterator should now
3498 optimise to a simple NULL pointer check, but without the issues which the
3499 ValueIteratorEnd_ proxy class approach had (such as not working in templates
3500 or some cases of overload resolution).
3504 + Previously, Enquire::get_matching_terms_begin() threw InvalidArgumentError
3505 if the query was empty. Now we just return an end iterator, which is more
3506 consistent with how empty queries behave elsewhere.
3508 + Remove the deprecated old-style match spy approach of using a MatchDecider.
3510 * Remove deprecated Sorter class and MultiValueSorter subclass.
3514 + Add stemmers for Armenian (hy), Basque (eu), and Catalan (ca).
3516 + Stem::operator= now returns a reference to the assigned-to object.
3520 * Make unittest use the test harness, so it gets all the valgrind and fd leak
3521 checks, and other handy features all the other tests have.
3523 * Improve test coverage in several places.
3525 * Compress generated HTML files in coverage report.
3529 * Remove flint backend.
3533 * When propagating exceptions from a remote backend server, the protocol now
3534 sends a numeric code to represent which exception is being propagated, rather
3535 than the name of the type, as a number can be turned back into an exception
3536 with a simple switch statement and is also less data to transfer.
3539 * Remote protocol (these changes require a protocol major version bump):
3541 + Unify REPLY_GREETING and REPLY_UPDATE.
3543 + Send (last_docid - doccount) instead of last_docid and (doclen_ubound -
3544 doclen_lbound) instead of doclen_ubound.
3546 * Remove special check which gives a more helpful error message when a modern
3547 client is used against a remote server running Xapian <= 0.9.6.
3551 * Various changes allow us to now remove XAPIAN_VISIBILITY_DEFAULT from a
3552 number of functions which aren't in the public API (partly addresses
3555 * configure: For this development series, the library gets a -1.3 suffix and
3556 include files are installed with an extra /xapian-1.3 component to make
3557 parallel installs easier.
3559 * configure: Enable -fshow-column for GCC - things like vim's quickfix mode
3560 will then jump to the appropriate column for a compiler error or warning, not
3561 just the appropriate line.
3563 * Snowball compiler now reports "FILE:LINE:" before each error so tools like
3564 vim's quickfix mode can parse this and bring up the line with the error
3567 * docs/doxygen_api.conf.in: Don't generate XML from doxygen for the bindings -
3568 the bindings now do this for themselves. (ticket#262)
3572 * INSTALL: Update GCC details - we now recommend 4.3 or newer (was 4.1), and
3573 note that while 3.1 is the hard minimum requirement, the oldest we've tested
3574 with at all recently was 3.3.
3576 * docs/deprecation.rst: Updated.
3582 + Move delve from examples to bin and rename to xapian-delve.
3584 + Send errors to stderr not stdout.
3586 * xapian-check: Now reports useful descriptions rather than cryptic numeric
3587 codes for B-tree errors.
3591 * Add assertions that the index is in range when dereferencing MSetIterator and
3594 * Fix various errors in debug logging statements.
3596 * Add QUERY category for debug logging.
3598 Xapian-core 1.2.23 (2016-03-28):
3602 * PostingSource: Public member variables are now wrapped by methods (mostly
3603 getters and/or setters, depending on whether they should be readable,
3604 writable or both). In 1.3.5, the public members variables have been
3605 deprecated - we've added the replacement methods in 1.2.23 as well to make
3606 it easier for people to migrate over.
3610 * xapian-check now performs additional consistency checks for chert. Reported
3611 by Jean-Francois Dockes and Bob Cargill via xapian-discuss.
3615 * Update links to Xapian website and trac to use https, which is now supported,
3616 thanks to James Aylett.
3620 * On older Linux kernels, rename() of a file within a directory on NFS can
3621 sometimes erroneously fail with EXDEV. This should only happen if you
3622 try to rename a file across filing systems, so workaround this issue by
3623 retrying up to 5 times on EXDEV (which should be plenty to avoid this
3624 bug, and we don't want to risk looping forever). Fixes #698, reported by
3627 Xapian-core 1.2.22 (2015-12-29):
3631 * Add FLAG_CJK_NGRAM for QueryParser and TermGenerator. Has the same effect as
3632 setting the environment variable XAPIAN_CJK_NGRAM. Fixes #180, reported by
3633 Richard Boulton, with contributions from Pavel Strashkin, Mikkel Kamstrup
3634 Erlandsen and Brandon Schaefer.
3636 * Fix bug parsing multiple non-exclusive filter terms - previously this could
3637 result in such filters effectively being ignored.
3639 * Fix Database::get_doclength_lower_bound() over multiple databases when some
3640 are empty or consist only of zero-length documents. Previously this would
3641 report a lower bound of zero, now it reports the same lowest bound as a
3642 single database containing all the same documents.
3644 * Make Database::get_wdf_upper_bound("") return 0.
3646 * Mark constructors taking a single argument as "explicit" to avoid unwanted
3647 implicit conversions.
3651 * If command line option --verbose/-v isn't specified, set the verbosity level
3652 from environmental variable VERBOSE.
3654 * Skip timed tests if $AUTOMATED_TESTING is set. Fixes #553, reported by
3657 * Don't leave an extra fd open when starting xapian-tcpsrv for remotetcp tests.
3659 * apitest: Revert disabling of part of adddoc5 for clang - the test failure was
3660 in fact due to a bug in 1.3.x, and 1.2.x was never affected.
3662 * apitest: Tweak bounds checks in dbstats1 testcase - multi backends should
3667 * Format limit on docid now correctly imposed when sizeof(int) > 4.
3669 * Avoid potential DB corruption with full-compaction when using 64K blocks.
3673 * Format limit on docid now correctly imposed when sizeof(int) > 4.
3675 * Avoid potential DB corruption with full-compaction when using 64K blocks.
3679 * Format limit on docid now correctly imposed when sizeof(int) > 4.
3681 * Avoid potential DB corruption with full-compaction when using 64K blocks.
3685 * Fix to handle total document length exceeding 34,359,738,368. (Fixes #678,
3688 * Avoid dividing by zero when getting the average length for an empty database.
3690 * Stop apparent error from remote server when read-only client disconnects. A
3691 read-only client just closes the connection when done, but the server
3692 previously reported "Got exception NetworkError: Received EOF", which sounds
3693 like there was a problem. Now we just say "Connection closed" here, and
3694 "Connection closed unexpectedly" if the client connects in the middle of an
3695 exchange. Possibly fixes #654, reported by Germán M. Bravo.
3697 * Give a clearer error message when the client and server remote protocol
3698 versions aren't compatible.
3700 * Check length of key in MSG_SETMETADATA.
3704 * pkg-config: Fix library name in .pc file to say "xapian" not "xapian-core".
3705 Reported by Eric Lindblad to the xapian-devel list.
3707 * Private symbol decode_length() is no longer visible outside the library.
3711 * Stop maintaining ChangeLog files. They make merging patches harder, and stop
3712 'git cherry-pick' from working as it should. The git repo history should be
3713 sufficient for complying with GPLv2 2(a).
3715 * Strip out "quickstart" examples which are out of date and rather redundant
3716 with the "simple" examples.
3718 * Correct documentation of Enquire::get_query(). If no query has been set,
3719 the documentation said Xapian::InvalidArgumentError was thrown, but in
3720 fact we just return a default initialised Query object (i.e. Query()). This
3721 seems reasonable behaviour and has been the case since Xapian 0.9.0.
3723 * Document xapian-compact --blocksize takes an argument.
3725 * Update snowball website link to snowballstem.org.
3729 * xapian-replicate: Fix replication for files > 4GB on 32-bit platforms.
3730 Previously replication would fail to copy a file whose size didn't fit in
3731 size_t. Fixes #685, reported by Josh Elsasser.
3733 * xapian-tcpsrv: Better error if -p/--port not specified
3735 * quest: Support `-f cjk_ngram`.
3739 * xapian-metadata: Extend "list" subcommand to take optional key prefix.
3743 * Fix new warnings from recent versions of GCC and clang.
3745 * Add spaces between literal strings and macros which expand to literal strings
3746 for C++11 compatibility in __WIN32__-specific code.
3748 * Need <unistd.h> for unlink() on FreeBSD, reported by Germán M. Bravo via
3751 * Fix testsuite to build when S_ISSOCK() isn't defined.
3753 * Don't provide our own implementation of sleep() under __WIN32__ if there
3754 already is one - mingw provides one, and in some situations it seems to clash
3755 with ours. Reported to xapian-discuss by John Alveris.
3757 * Add missing '#include <arpa/inet.h>' to htons(). Seems to be implicitly
3758 included on most platforms, but Interix needs it. Reported by Eric Lindblad
3761 * Disable "<FUNCTION> is expected to return a value" warning from Sun's C++
3762 compiler, as it fires for functions ending in a "throw" statement. Genuine
3763 instances will be caught by compilers with superior warning machinery.
3765 * Prefer scalbn() to ldexp() where possible, since the former doesn't ever set
3768 * '#include <config.h>' in the "simple" examples, as when compiling with xlC on
3769 AIX, _LARGE_FILES gets defined by AC_SYS_LARGEFILE to enable large file
3770 support, and defining this changes the ABI of std::string, so it also needs
3771 to be defined when compiling code using Xapian.
3773 * On cygwin, include <arpa/inet.h> instead of winsock headers for htons() and
3776 * Include <cygwin/version.h> for CYGWIN_VERSION_API_MAJOR.
3778 * Avoid referencing static members via an object in that object's own
3779 definition, as this doesn't work with all compilers (noted with GCC 3.3), and
3780 is a bit of an odd construct anyway. Reported by Eric Lindblad on
3783 * GCC < 3.4.2 lacks operator<< overloads for unsigned long long on some
3784 platforms, so simply work around this by using str(), as this isn't
3785 performance sensitive code. Reported by Eric Lindblad on xapian-discuss.
3787 * Fix delete which should be delete[] in brass backend cursor code.
3789 Xapian-core 1.2.21 (2015-05-20):
3793 * QueryParser: Extend the set of characters allowed in the start of a range to
3794 be anything except for '(' and characters <= ' '. This better matches what's
3795 accepted for a range end (anything except for ')' and characters <= ' ').
3796 Reported by Jani Nikula.
3800 * Reimplement OP_PHRASE for non-exact phrases. The previous implementation was
3801 buggy, giving both false positives and false negatives in rare cases when
3802 three or more terms were involved. Fixes #653, reported by Jean-Francois
3805 * Reimplement OP_NEAR - the new implementation consistently requires the terms
3806 to occur at different positions, and fixes some previously missed matches.
3808 * Fix a reversed check for picking the shorter position list for an exact
3809 phrase of two terms. The difference this makes isn't dramatic, but can be
3810 measured (at least with cachegrind). Thanks to kbwt for spotting this.
3812 * When matching an exact phrase, if a term doesn't occur where we want, use
3813 its actual position to advance the anchor term, rather than just checking
3814 the next position of the anchor term.
3818 * Fix cursor versioning to consider cancel() and reopen() as events where
3819 the cursor version may need incrementing, and flag the current cursor version
3820 as used when a cursor is rebuilt. Fixes #675, reported by Germán M. Bravo.
3822 * Avoid using file descriptions < 3 for writable database tables, as it risks
3823 corruption if some code in the same process tries to write to stdout or
3824 stderr without realising it is closed. (Partly addresses #651)
3828 * Fix cursor versioning to consider cancel() and reopen() as events where
3829 the cursor version may need incrementing, and flag the current cursor version
3830 as used when a cursor is rebuilt. Fixes #675, reported by Germán M. Bravo.
3832 * Avoid using file descriptions < 3 for writable database tables, as it risks
3833 corruption if some code in the same process tries to write to stdout or
3834 stderr without realising it is closed. (Partly addresses #651)
3838 * Fix cursor versioning to consider cancel() and reopen() as events where
3839 the cursor version may need incrementing, and flag the current cursor version
3840 as used when a cursor is rebuilt. Fixes #675, reported by Germán M. Bravo.
3844 * Fix sort by value when multiple databases are in use and one or more are
3845 remote. This change necessitated a minor version bump in the remote
3846 protocol. Fixes #674, reported by Dylan Griffith. If you are upgrading a
3847 live system which uses the remote backend, upgrade the servers before the
3852 * The compiler ABI check in the public API headers now issues a warning
3853 (instead of an error) for an ABI mismatch for ABI versions 2 and later
3854 (which means GCC >= 3.4). The changes in these ABI versions are bug fixes
3855 for corner cases, so there's a good chance of things working - e.g. building
3856 xapian-bindings with GCC 5.1 (which defaults to ABI version 8) against
3857 xapian-core built with GCC 4.9 (which defaults to ABI version 2) seems to
3858 work OK. A warning is still useful as a clue to what is going on if linking
3859 fails due to a missing symbol.
3861 * xapian-config,xapian-core.pc: When compiling with xlC on AIX, the reported
3862 --cxxflags/--cflags now include -D_LARGE_FILES=1 as this is defined for the
3863 library, and defining it changes the ABI of std::string with this compiler,
3864 so it must also be defined when building code using the Xapian API.
3866 * xapian-core.pc: Include --enable-runtime-pseudo-reloc in --libs output for
3867 mingw and cygwin, like xapian-config does.
3869 * xapian-core.pc: Fix include directory reported by `pkg-config --cflags`.
3870 This bug was harmless if xapian-core was installed to a directory which was
3871 on the default header search path (such as /usr/include).
3873 * xapian-config: Fix typo so cached result of test in is_uninstalled() is
3874 actually used on subsequent calls. Fixes #676, reported (with patch) by Ryan
3877 * configure: Changes in 1.2.19 broke the custom macro we use to probe for
3878 supported compiler flags such that the flags never got used. This release
3881 * configure: Set default value for AUTOM4TE before AC_OUTPUT so the default
3882 will actually get used. Only relevant when building in maintainer mode
3885 * soaktest: Link with libtool's '-no-install' or '-no-fast-install', like we
3886 already do for other test programs, which means that libtool doesn't need to
3887 generate shell script wrappers for them on most platforms.
3891 * API documentation: Minor wording tweaks and formatting improvements.
3893 * docs/deprecation.rst: Add deprecation of omindex --preserve-nonduplicates
3894 which happened in 1.2.4.
3896 * HACKING: Update URL.
3898 * HACKING: libtool 2.4.6 is now used for bootstrapping snapshots and releases.
3902 * xapian-compact: Make sure we open all the tables of input databases at the
3903 same revision. (Fixes #649)
3905 * xapian-metadata: Add 'list' subcommand to list all the metadata keys.
3907 * xapian-replicate: Fix connection timeout to be 10 seconds rather than 10000
3908 seconds (the incorrect timeout has been the case since 1.2.3).
3910 * xapian-replicate: Set SO_KEEPALIVE for xapian-replicate's connection to the
3911 master, and add command line option to allow setting socket-level timeouts
3912 (SO_RCVTIMEO and SO_SNDTIMEO) on platforms that support them. Fixes #546,
3915 * xapian-replicate-server: Avoid potentially reading uninitialised data if a
3916 changeset file is truncated.
3920 * Add spaces between literal strings and macros which expand to literal strings
3921 for C++11 compatibility.
3923 * ValueCountMatchSpy::top_values_begin(): Fix the comparison function not to
3924 return true for two equal elements, which manifests as incorrect sorting in
3925 some cases when using clang's libc++ (which recent OS X versions do).
3927 * apitest: The adddoc5 testcase fails under clang due to an exception handling
3928 bug, so just #ifdef out the problematic part of the testcase when building
3931 * Fix clang warnings on OS X. Reported by Germán M. Bravo.
3933 * Fix examples to build with IBM's xlC compiler on AIX - they were failing due
3934 to _LARGE_FILES being defined for the library build but not for the examples,
3935 and defining this changes the ABI of std::string with this compiler.
3937 * configure: Improve the probe for whether the test harness can use RTTI to
3938 work for IBM's xlC compiler (which defaults to not generating RTTI).
3940 * Fix to build with Sun's C++ compiler.
3942 * Use F_DUPFD where available to dup to a file descriptor which is >= 2, rather
3943 than calling dup() until we get one.
3945 * When unserialising a double, avoid reading one byte past the end of the
3946 serialised value. In practice this was harmless on most platforms, as
3947 dbl_max_mantissa is 255 for IEEE-754 format doubles, and at least GCC's
3948 std::string keeps the buffer nul-terminated. Reported by Germán M. Bravo in
3951 * When unserialising a double, add missing cast to unsigned char when we check
3952 if the value will fit in the double type. On machines with IEEE-754 doubles
3953 (which is most current platforms) this happened to work OK before. It would
3954 also have been fine on machines where char is unsigned by default.
3956 * Fix incorrect use of "delete" which should be "delete []". This is
3957 undefined behaviour in C++, though the type is POD, so in practice this
3958 probably worked OK on many platforms.
3962 * Fix some overly strict assertions in flint, which caused apitest's
3963 cursordelbug1 to fail with assertions on.
3965 Xapian-core 1.2.20 (2015-03-04):
3969 * After splitting a block, we always insert the new block in the parent right
3970 after the block it was split from - there's no need to binary chop.
3974 * Generate and install a file for pkg-config. (Fixes#540)
3976 * configure: Update link to cygwin FAQ in error message.
3980 * include/xapian/weight.h: Document the enum stat_flags values.
3982 * docs/postingsource.rst: Use a modern class in postingsource example. (Noted
3985 * docs/deprecation.rst,docs/replication.rst: Fix typos.
3987 * Update doxygen configuration files to avoid warnings about obsolete tags from
3988 newer doxygen versions.
3990 * HACKING: Update details of building Xapian packages.
3994 * xapian-check: For chert and brass, cross-check the position and postlist
3995 tables to detect positional data for non-existent documents.
3999 * When locking a database for writing, use F_OFD_SETLK where available, which
4000 avoids having to fork() a child process to hold the lock. This currently
4001 requires Linux kernel >= 3.15, but it has been submitted to POSIX so
4002 hopefully will be widely supported eventually. Thanks to Austin Clements for
4003 pointing out this now exists.
4005 * Fix detection of fdatasync(), which appears to have been broken practically
4006 forever - this means we've probably been using fsync() instead, which
4007 probably isn't a big additional overhead. Thanks to Vlad Shablinsky for
4008 helping with Mac OS X portability of this fix.
4010 * configure: Define MINGW_HAS_SECURE_API under mingw to get _putenv_s()
4011 declared in stdlib.h.
4013 * Use POSIX O_NONBLOCK in preference to O_NDELAY - the semantics of the latter
4014 differ between BSD and System V.
4016 * According to POSIX, strerror() may not be thread safe, so use alternative
4017 thread-safe ways to translate errno values where possible.
4019 * On Microsoft Windows, avoid defining EADDRINUSE, etc if they're already
4020 defined, and use WSAE* constants un-negated - they start from a high value
4021 so won't collide with E* constants.
4025 * Add more assertions to the chert backend code.
4027 Xapian-core 1.2.19 (2014-10-21):
4031 * Xapian::BM25Weight:
4033 + Improve BM25 upper bound in the case when our wdf upper bound > our
4034 document length lower bound. Thanks to Craig Macdonald for pointing out
4037 + Pre-multiply termweight by (param_k1 + 1) rather than doing it for
4038 every weighted term in every document considered.
4042 * Don't report apparent leaks of fds opened on /dev/urandom - at least on
4043 Linux, something in the C library seems to lazily open it, and the report of
4044 a possible leak followed by assurance that it's OK really is just noise we
4049 * Fix false matches reported for non-exact phrases in some cases. Fixes the
4050 reduced testcase in #657, reported by Jean-Francois Dockes.
4054 * Only full sync after writing the final base file (only affects Max OS X).
4058 * Only full sync after writing the final base file (only affects Max OS X).
4062 * Only full sync after writing the final base file (only affects Max OS X).
4066 * For Sun's C++ compiler, pass -library=Crun separately since libtool looks for
4067 " -library=stlport4 " (with the spaces). (fixes#650)
4069 * Remove .replicatmp (created by the test suite) upon "make clean".
4073 * include/xapian/compactor.h: Fix formatting of doxygen comment.
4075 * HACKING: freecode no longer accepts updates, so drop that item from the
4078 * docs/overview.rst: Add missing database path to example of using
4079 xapian-progsrv in a stub database file.
4083 * Suppress unused typedef warnings from debugging logging macros, which occur
4084 in functions which always exit via throwing an exception when compiling with
4085 recent versions of GCC or clang.
4087 * Fix debug logging code to compile with clang. (fixes #657, reported by
4092 * Add missing RETURN() markup for debug logging in a few places, highlighted by
4093 warnings from recent GCC.
4095 * Fix incorrect return types in debug logging annotations so that code compiles
4096 when configured with --enable-log.
4098 Xapian-core 1.2.18 (2014-06-22):
4102 * Document: Fix get_docid() to return the docid for the sub-database (as it
4103 is explicitly documented to) for Document objects passed to functors like
4104 KeyMaker during the match. (fixes#636, reported by Jeff Rand).
4106 * Document: Don't store the termname in OmDocumentTerm - we were only using it
4107 in get_description() output and an exception message. Speeds up indexing
4108 etext.txt using simpleindex by 0.4%, and should reduce memory usage a bit
4109 too. (Change inspired by comments from Vishesh Handa on xapian-devel).
4111 * Database: Iterating the values in a particular slot is now a bit more
4112 efficient for inmemory and remote backends (but still slow compared to
4113 flint, chert and brass).
4117 * apitest: Expand crashrecovery1 to check that the expected base files exist
4118 and ones which shouldn't exist don't.
4120 * queryparsertest: Fix testcase for empty wildcard followed by negation to
4121 enable FLAG_LOVEHATE so the negation is actually parsed. Fortunately the
4122 fixed testcase passes.
4126 * OP_SYNONYM: avoid fetching the doclength if the weighting scheme doesn't
4127 need it and the calculated wdf for the synonym is <= doclength_lower_bound
4128 for the current subdatabase. (fixes #360)
4132 * Releases are now bootstrapped with libtool 2.4.2 instead of 2.4, and with
4133 config.guess and config.sub updated to the latest versions.
4137 * Add an example of initializing SimpleStopper using a file listing stopwords.
4138 (Patch from Assem Chelli)
4140 * Improve the descriptions of the stem_strategy values in the API docs.
4141 (Reported by "oilap" on #xapian)
4143 * docs/sorting.rst: Fix incorrect parameter types in Xapian::Weight
4146 * docs/glossary.rst: Add definition of "collection frequency".
4150 + makeindex is now in Debian package texlive-binaries.
4152 + Replace a link to the outdated autotools "goat book" with a link to the
4153 "Portable Shell" chapter of the autoconf manual.
4155 * include/xapian/base.h: Remove very out of date comments talking about atomic
4156 assignment and locking - since 0.5.0 we've adopted a "user locks" policy.
4157 (Reported by Jean-Francois Dockes)
4163 + Add -A <prefix> option to list all terms with a particular prefix.
4165 + Send errors to stderr not stdout.
4167 + If -v is specified more than once, show even more info in some cases.
4168 (NEWS file claimed this was backported in 1.2.15, but it actually wasn't).
4172 + Add --default-op option.
4174 + Add --weight option to allow the weighting scheme to be specified.
4178 * Explicitly '#include <algorithm>' for std::max(), fixing build with VS2013.
4179 (Fixes#641, reported by "boomboo").
4181 * Fix testcase blocksize1 not to try to delete an open database, which isn't
4182 possible under Windows. (Fixes #643, reported by Chris Olds)
4184 * docs/quickstart.rst: Split --cxxflags and --libs for portability (noted by
4185 "Hurricane Tong" on xapian-devel).
4187 * Fix warnings with clang 5.0.
4191 * Add assertions that weighting scheme upper bounds aren't exceeded.
4193 Xapian-core 1.2.17 (2014-01-29):
4197 * Enquire::set_sort_by_relevance_then_value() and
4198 Enquire::set_sort_by_relevance_then_key(): Fix sense of reverse parameter.
4199 Reported by "boomboo" on IRC.
4201 * BM25Weight: Fix case where (k1 == 0 || b == 0) but k2 != 0. Reported by
4204 * Unicode::tolower(): Fix to give correct results for U+01C5, U+01C8, U+01CB,
4205 and U+01F2 (previously these were left unchanged).
4209 * Automatically probe for and hook in eatmydata to the testsuite using the
4210 wrapper script it now includes.
4212 * Fix apitest to build when brass, chert or flint are disabled.
4216 * Fix handling of invalid block sizes passed to Xapian::Brass::open() - the
4217 size gets fixed as documented, but the uncorrected size was passed to the
4218 base file (and abort() was called if 0 was passed).
4220 * Validate "dir_end" when reading a block. (fixes #592)
4224 * Fix handling of invalid block sizes passed to Xapian::Chert::open() - the
4225 size gets fixed as documented, but the uncorrected size was passed to the
4226 base file (and abort() was called if 0 was passed).
4228 * Validate "dir_end" when reading a block. (fixes #592)
4232 * Fix handling of invalid block sizes passed to Xapian::Flint::open() - the
4233 size gets fixed as documented, but the uncorrected size was passed to the
4234 base file (and abort() was called if 0 was passed).
4236 * Validate "dir_end" when reading a block. (fixes #592)
4240 * configure: Improve reporting of GCC version.
4242 * Use -no-fast-install on platforms where -no-install causes libtool to emit a
4245 * docs/Makefile.am: Fix handling of MAINTAINER_NO_DOCS.
4247 * Include UnicodeData.txt and the script to generate the unicode tables from
4252 * postingsource.rst: Clarify a couple of points (reported by "vHanda" on IRC).
4256 * Protect the ValueIterator::check() method against Mac OS X SDK headers
4257 which define a check() macro.
4259 * Fix warning from xlC compiler.
4261 * Avoid use of grep -e in configure, as /usr/bin/grep on Solaris doesn't
4264 * Fix check for flags which might be needed for ANSI mode for compilers called
4267 * configure: Improve handling of Sun's C++ compiler - trick libtool into not
4268 adding -library=Cstd, and prefer -library=stdcxx4 if supported. Explicitly
4269 add -library=Crun which seems to be required, even though the documentation
4272 Xapian-core 1.2.16 (2013-12-04):
4276 * PositionIterator,PostingIterator,TermIterator,ValueIterator: Don't segfault
4277 if skip_to() or check() is called on an iterator which is already at_end().
4278 Reported by David Bremner.
4280 * ValueCountMatchSpy: get_description() on a default-constructed
4281 ValueCountMatchSpy object no longer fails when xapian-core is built with
4284 * ValueCountMatchSpy: get_total() on a default-constructed ValueCountMatchSpy
4285 object now returns 0 rather than segfaulting.
4289 * If -v/--verbose is specified more than once to a test program, show the
4290 diagnostic output for passing tests as well as failing/skipped ones.
4292 * queryparsertest: Change qp_scale1 to time 5 repetitions of the large query to
4293 help average out variations.
4295 * queryparsertest: Add test coverage for explicit synonym of a term with a
4296 prefix (e.g. ~foo:search).
4298 * apitest: Remove code from registry* testcases which tries to test the
4299 consequences of throwing an exception from a destructor - it's complex to
4300 ensure we don't leak memory while doing this (it seems GCC doesn't release
4301 the object in this case, but clang does), and it's generally frowned upon,
4302 plus C++11 makes destructors noexcept by default.
4304 * Fix "make check" to actually removed cached databases first, as is
4309 * When moving a cursor on a read-only table, check if the block we want is in
4310 the internal cursor. We already do this for a writable table, as it is
4311 necessary for correctness, but it's a cheap check and may avoid asking the
4312 OS for a block we actually already have.
4314 * Correctly report the database as closed rather than 'Bad file descriptor'
4317 * Reuse a cursor for reading values from valuestreams rather than creating
4318 a new one each time. This can dramatically reduce the number of blocks
4319 redundantly reread when sorting by value. The rereads will generally get
4320 served from VM cache, but there's still an overhead to that.
4324 * When moving a cursor on a read-only table, check if the block we want is in
4325 the internal cursor. We already do this for a writable table, as it is
4326 necessary for correctness, but it's a cheap check and may avoid asking the
4327 OS for a block we actually already have.
4329 * Correctly report the database as closed rather than 'Bad file descriptor'
4332 * Reuse a cursor for reading values from valuestreams rather than creating
4333 a new one each time. This can dramatically reduce the number of blocks
4334 redundantly reread when sorting by value. The rereads will generally get
4335 served from VM cache, but there's still an overhead to that.
4339 * When moving a cursor on a read-only table, check if the block we want is in
4340 the internal cursor. We already do this for a writable table, as it is
4341 necessary for correctness, but it's a cheap check and may avoid asking the
4342 OS for a block we actually already have.
4344 * Correctly report the database as closed rather than 'Bad file descriptor'
4349 * Compress source tarballs with xz instead of gzip.
4351 * Split XAPIAN_LIBS out of XAPIAN_LDFLAGS so that -l flags for libraries
4352 configure detects are needed appear after -L flags specified by the user
4353 that may be needed to find such libraries. (fixes#626)
4355 * XO_LIB_XAPIAN now handles the user specifying a relative path in
4356 XAPIAN_CONFIG, e.g.: "./configure XAPIAN_CONFIG=../xapian-core/xapian-config"
4358 * Adjust XO_LIB_XAPIAN to strip _gitNNN suffix from snapshot versions.
4360 * configure: Handle git snapshot naming when calculating REVISION.
4362 * configure: Enable -fshow-column for GCC - things like vim's quickfix mode
4363 will then jump to the appropriate column for a compiler error or warning, not
4364 just the appropriate line.
4366 * configure: Report GCC version in configure output.
4370 * The API documentation shipped with the release is now generated with
4371 doxygen 1.8.5 instead of 1.5.9, which is most evident in the different
4372 HTML styling newer doxygen uses.
4374 * Document how Utf8Iterator handles invalid UTF-8 in API documentation.
4376 * Improve how descriptions of deprecated features appear in the API
4379 * docs/remote_protocol.rst: Correct error in documentation of REPLY_DOCDATA
4382 * docs/overview.rst: Correct documentation for how to specify "prog" remote
4383 databases in stub files.
4385 * Direct users to git in preference to SVN - we'll be switching entirely in
4390 * xapian-chert-update: Fix -b to work rather than always segfaulting (reported
4391 in https://bugs.debian.org/716484).
4393 * xapian-chert-update: The documented alias --blocksize for -b has never
4394 actually been supported, so just drop mentions of it from --help and the man
4399 + Fix chert database check that first docid in each doclength chunk is more
4400 than the last docid in the previous chunk - previously this didn't actually
4403 + Fix database check not to falsely report "position table: Junk after
4404 position data" whenever there are 7 unused bits (7 is OK, *more* than 7
4407 + Fix to report block numbers correctly for links within the B-tree.
4409 + If the METAINFO key is missing, only report it once per table.
4411 + Fix database consistency checking to always open all the tables at the same
4412 revision - not doing this could lead to false errors being reported after a
4413 commit interrupted by the process being killed or the machine crashing.
4414 Reported by Joey Hess in https://bugs.debian.org/724610
4418 * quest: Add --check-at-least option.
4422 * configure: clang doesn't support -Wstrict-null-sentinel or -Wlogical-op, so
4423 don't pass it these options.
4425 * Fix build errors and warnings with mingw.
4427 * Suppress "unused local typedef" warnings from GCC 4.8.
4429 * If the compiler supports C++11, use static_assert to implement
4432 * tests/zlib-vg.c: Fix two warnings when compiled with clang.
4434 * Fix failure when built with -D_GLIBCXX_DEBUG - we were modifying the top()
4435 element of a heap before calling pop(), such that the heap comparison
4436 operation (which is called when -D_GLIBCXX_DEBUG is on to verify the heap is
4437 valid) would read off the end of the data. In a normal build, this issue
4438 would likely never manifest.
4440 * configure: When generating ABI compatibility checks in xapian/version.h, pass
4441 $CXXFLAGS and $CPPFLAGS to $CXXCPP as they could contain options which affect
4442 the ABI (such as -fabi-version for GCC). (Fixes #622)
4444 * Microsoft GUIDs in binary form have reversed byte order in the first three
4445 components compared to standard UUIDs, so the same database would report a
4446 different UUID on Windows to on other platforms. We now swap the bytes to
4447 match the standard order. With this fix, the UUIDs of existing databases
4448 will appear to change on Windows (except in rare "palindronic" cases).
4450 * Fix a couple of issues to get Xapian to build and work on AIX.
4452 * common/safeuuid.h: Remove bogus take-address-of from uuid handling code for
4455 * Under cygwin, use cygwin_conv_path() if using a new enough cygwin version,
4456 rather than the now deprecated cygwin_conv_to_win32_path(). Reported by
4457 "Haroogan" on the xapian-devel mailing list.
4459 * common/safeuuid.h: Add missing '#include <cstdlib>' and qualify free with std.
4461 * Fix 'unused label' warning when chert backend is disabled.
4463 * xapian.h: Add check for Wt headers being included before us and defining
4464 'slots' as a macro - if they are, give a clear error advising how to work
4465 around this (previously compilation would fail with a confusing error).
4469 * Fix assertion failure for when an OrPostList decays to an AndPostList - the
4470 ordering of the subqueries by estimated termfreq may not be the same as it
4471 was when the OrPostList was constructed, as the subqueries may themselves
4472 have decayed. Reported by Michel Pelletier.
4474 * Fix -Wcast-qual warning from GCC 4.7 when configured with --enable-log.
4476 Xapian-core 1.2.15 (2013-04-16):
4480 * QueryParser/TermGenerator: Don't include CJK codepoints which are
4481 punctuation in N-grams.
4483 * TermGenerator: Fix bug where we failed to generate the first bigram
4484 from the second sequence of N-grammable CJK characters in a piece of text.
4488 * Call fdatasync()/fsync() when creating the "iambrass" file.
4492 * Call fdatasync()/fsync() when creating the "iamchert" file.
4496 * Call fdatasync()/fsync() when creating the "iamflint" file.
4500 * XO_LIB_XAPIAN now handles the user specifying XAPIAN_CONFIG without a path,
4501 for example: ./configure XAPIAN_CONFIG=xapian-config-1.3
4505 * delve: If -v is specified more than once, show even more info in some cases.
4509 * Fix warning due to needlessly casting away const-ness in debug logging.
4511 * Fix pointer truncation bug in lemon parser generator, which probably affects
4512 regenerating the query parser on WIN64.
4516 * Fix to build when configured with --enable-log.
4518 Xapian-core 1.2.14 (2013-03-14):
4522 * MSet::get_document(): Don't cache retrieved Document objects unless they
4523 were requested with fetch(). This avoids using a lot of memory when many
4524 MSet entries are retrieved. (Fixes #604)
4528 * apitest: Improved test coverage.
4532 * Check if a candidate document has at least the minimum weight needed
4533 before checking positional information, which speeds up slow phrase
4534 searches (partly addresses #394).
4538 * Fix multipass compaction not to damage document values, and to merge the
4539 database stats correctly. (fixes #615)
4543 * Fix multipass compaction not to damage document values, and to merge the
4544 database stats correctly. (fixes #615)
4548 * Fix multipass compaction bug. (fixes #615)
4554 + Fix handling of delays between replication events - the subtraction of the
4555 target time and the current time was reversed, so we wouldn't sleep when
4556 before the deadline, but would sleep after it for the amount we'd missed it
4559 + On Microsoft Windows, we no longer sleep for more than 43 years if the
4560 target time for a replication event had already passed. (Fixes #472)
4564 * matcher/queryoptimiser.cc: Need <functional> for mem_fun().
4566 * tests/harness/testsuite.cc: Don't provide explicit template types to
4567 make_pair - it isn't useful, and breaks with C++11. Fixes build error with
4570 * examples/quest.cc: Fix to build with Sun Studio 12 compiler. (ticket#611)
4572 Xapian-core 1.2.13 (2013-01-09):
4576 * TermGenerator: Add new method TermGenerator::set_max_word_length() to allow
4577 this limit to be adjusted by the user.
4579 * QueryParser: Implicitly close any unclosed brackets at the end of the query
4580 string. Patch from Sehaj Singh Kalra.
4582 * DateValueRangeProcessor: Add extra constructor overloaded form so that in
4583 DateValueRangeProcessor(1, "date:"), the const char * gets interpreted as
4584 std::string rather than bool.
4588 * apitest: Assorted test coverage improvements.
4590 * When reporting valgrind errors, skip any warnings before the error in the
4595 * Improved fix for #590 - count all matching LeafPostList objects with a Weight
4596 object rather than trying to prune at the MultiAndPostList level based on
4597 max_wt (if wdf is always zero for a term, BM25 gives max_wt of 0, which lead
4598 to us never counting that subquery.
4600 * Fix calculation of 0.0/0.0 in some cases. This then got used as a minimum
4601 weight, but it seems this gives -nan (at least on x86-64 Linux) so it may
4602 have been harmless in practice.
4604 * We no longer use the highest weighted MSet entry to calculate percentages, so
4605 remove code which finds it.
4609 * Close excess file handles before we get the fcntl lock, which avoids the
4610 lock being released again if one is open on the lock file. Notably this
4611 avoids a situation where multiple threads in the same process could succeed
4612 in locking a database concurrently.
4616 * Close excess file handles before we get the fcntl lock, which avoids the
4617 lock being released again if one is open on the lock file. Notably this
4618 avoids a situation where multiple threads in the same process could succeed
4619 in locking a database concurrently.
4623 * Close excess file handles before we get the fcntl lock, which avoids the
4624 lock being released again if one is open on the lock file. Notably this
4625 avoids a situation where multiple threads in the same process could succeed
4626 in locking a database concurrently.
4630 * Improve the UnimplementedError message for a MatchSpy subclass which doesn't
4631 implement name() so it's clearer that it is this particular subclass which
4632 can't be used remotely, rather than all MatchSpy objects.
4636 * The build system is now generated with automake 1.11.6 rather than 1.11.1,
4637 which fixes a security issue in "make distcheck" (not something users will
4638 usually run, but it seems worth addressing).
4640 * Use user-specified LIBS for configure tests, which is what you'd expect to
4641 happen, and provides a way for the user to tell configure where to find
4642 library functions which configure can't find for itself.
4644 * INCLUDES is now deprecated in automake, so use AM_CPPFLAGS instead.
4646 * Test coverage rules now assume lcov 1.10 which allows them to be simpler
4647 and not to require a patched version of lcov.
4651 * valueranges.html: Update documentation to reflect change in Xapian 1.1.2 -
4652 DateValueRangeProcessor and StringValueRangeProcessor now support a prefix or
4655 * Clarify that the "reverse" parameter of set_sort_by_relevance_then_value()
4656 and set_sort_by_relevance_then_key() only affects the ordering of the
4657 value/key part of the sort.
4659 * docs/quickstart.html: Fix seriously outdated statement that Xapian doesn't
4660 create the database directory - that changed in 0.7.2 (released 2003-07-11).
4662 * HACKING: Try to make it clearer we're looking for a dual-licence on submitted
4669 + Add a --full-copy option to force a full copy to be sent. (ticket#436)
4671 + Add --quiet option, and be a little more verbose by default.
4673 + Allow files > 32G to be be copied by replication.
4675 + Fix "if (fd > 0)" tests in some replication code to be "if (fd >= 0)".
4676 In practice this is unlikely to actually have caused problems since
4677 stdin is typically still open and using fd 0.
4679 + Simplify how we open the .DB file on the replication slave to just call
4680 open() once with O_CREAT, rather than once without, than stat() if that
4681 fails, and then again with O_CREAT|O_TRUNC if stat() doesn't show an
4682 ordinary file exists.
4688 + New --flags command line option to allow setting arbitrary QueryParser
4691 + Align option descriptions in --help output, and make the initial letter of
4692 such descriptions consistently lowercase.
4696 * Fix testsuite harness to compile with GCC 4.7.
4698 * On platforms with the F_MAXFD fcntl but without closefrom(), we were failing
4699 to close the highest numbered open fd in our closefrom() replacement.
4701 * Our closefrom() replacement on Linux now works around valgrind not hiding
4702 some extra fds it has open, but then complaining if we try to close them.
4704 + Pass O_BINARY when opening replication related files in some cases where we
4705 weren't before, which will probably help solve ticket #472.
4707 * configure: socketpair() needs -lnetwork on Haiku.
4709 * Micro-optimisation in Unicode handling - GCC doesn't currently optimise the
4710 arithmetic shift right idiom we use, but it documents that signed right shift
4711 does sign extension so we now just use a right shift for GCC.
4715 * Preserve errno over debug logging calls, so they can safely be added to code
4716 which expects errno not to change.
4718 Xapian-core 1.2.12 (2012-06-27):
4722 * 1.2.11 had its library version information incorrectly set. This resulted in
4723 the shared library having an incorrect SONAME - e.g. on Linux,
4724 libxapian.so.21 instead of libxapian.so.22. This release has been made to
4729 * AUTHORS: Add the GSoC students.
4731 Xapian-core 1.2.11 (2012-06-26):
4735 * Add new QueryParser::STEM_ALL_Z stemming strategy, which stems all terms and
4736 adds a Z prefix. (Patch from Sehaj Singh Kalra, fixes ticket#562)
4738 * Add TermGenerator::set_stemming_strategy() method, with strategies which
4739 correspond to those of QueryParser. Based on patch from Sehaj Singh Kalra,
4740 with some tweaks for adding term positions in more cases. (Fixes ticket#563)
4742 * Correct "BM25Weight" to "TradWeight" in exception message from TradWeight.
4744 * We were failing to call init() for user-defined Weight objects providing the
4745 term-independent weight. These now get called with init(0.0).
4747 * Xapian::Auto::open_stub() now throws a Xapian::DatabaseOpeningError exception
4748 if the stub file can't be opened. Previously we failed to check for this
4749 condition, which resulted in us treating the file as empty.
4753 * When the testsuite is using valgrind, we used to run remote servers under
4754 valgrind too (but with --tool=none) to get consistent behaviour as valgrind's
4755 emulation of x87 excess precision isn't exact. Now we only do this if x87 FP
4756 instructions are actually in use (which means x86 architecture and configure
4757 run with --disable-sse).
4759 * Make sure XAPIAN_MAX_CHANGESETS gets unset after replication testcases which
4760 set it, so further testcases don't waste time generating changesets.
4762 * Improved test coverage (including more tests for closed databases -
4767 * After closing the database, methods which try to use the termlist would throw
4768 FeatureUnavailableError with message "Database has no termlist", assuming
4769 that the termlist table not being open meant it wasn't present. Fix to check
4770 if the postlist_table is open to determine which case we're in.
4774 * After closing the database, methods which try to use the termlist would throw
4775 FeatureUnavailableError with message "Database has no termlist", assuming
4776 that the termlist table not being open meant it wasn't present. Fix to check
4777 if the postlist_table is open to determine which case we're in.
4781 * Check if the database is closed in metadata_keys_begin() for InMemory
4786 * xapian-config: Don't interpret a missing .la file as meaning that we only
4787 have static libraries.
4791 * Fix API documentation for Query constructors - both XOR and ELITE_SET can
4792 take any number of subqueries, not only exactly two.
4794 * Backport missing API documentation comments for operator++ and operator*
4795 methods or PositionIterator, PostingIterator and TermGenerator.
4797 * docs/replication.rst: Update documentation - since 1.2.5, the value of
4798 XAPIAN_MAX_CHANGESETS determines how many changesets we keep.
4800 * docs/admin_notes.rst: Correction - we don't "create a lock file", we "lock a
4803 * Fix API documentation for TradWeight constructor - "k1" should be "k".
4807 * configure: Overhaul handling of compilers which pretend to be GCC. Clang
4808 is now detected, and we only pass it warning flags it actually understands.
4809 And we now check for symbol visibility support with Intel's compiler.
4811 * configure: Solaris automatically pulls in library dependencies, so set
4812 link_all_deplibs_CXX=no there.
4814 * configure: We now check -Bsymbolic-functions for all compilers.
4816 * configure: Enable -Wdouble-promotion for GCC >= 4.6.
4818 * Pass -ldl last when compiling zlib-vg.so, as that seems to be needed on
4821 * Fix incorrect use of "delete" which should be "delete []". This is
4822 undefined behaviour in C++, though the type is POD, so in practice this
4823 probably worked OK on many platforms.
4825 * In BM25Weight when k1 or b is zero (not the default), we used to multiply
4826 an uninitialised double by zero, which is undefined behaviour, but in
4827 practice will often give zero, leading to the desired results.
4829 * xapian.h: Add check for Qt headers being included before us and defining
4830 'slots' as a macro - if they are, give a clear error advising how to work
4831 around this (previously compilation would fail with a confusing error).
4833 Xapian-core 1.2.10 (2012-05-09):
4837 * apitest: Extend tradweight1 to test that TradWeight(0) means that wdf and
4838 document length don't affect the weight of a term.
4840 * termgentest: Check that TermGenerator discards words > 64 bytes.
4844 * Don't count unweighted subqueries of MultiAndPostList in percentage
4845 calculations, as OP_FILTER maps to MultiAndPostList now. (ticket#590)
4849 * When compacting, if the output database is empty, don't write out a metainfo
4850 tag. Take care not to divide by zero when computing the percentage size
4855 * When compacting, if the output database is empty, don't write out a metainfo
4856 tag. Take care not to divide by zero when computing the percentage size
4861 * API documentation:
4863 + Note version when Database::close() was added.
4865 + Fix switched lower and upper in API documentation for Weight methods
4866 get_doclength_lower_bound() and get_doclength_upper_bound(). Correct
4867 maximum to minimum in get_doclength_lower_bound() comment and note that this
4868 excludes zero length documents. Fix "An lower" to "A lower".
4870 * docs/admin_notes.html: Mention that postlist and termlist tables also hold
4871 value info for chert. Mention that xapian-chert-update was removed in 1.3.0.
4872 Mention that you need to use copydatabase from 1.2.x to convert flint to
4875 * HACKING: Update section on patches to mention git (git diff and git
4876 format-patch), and using "-r" with normal diff, and also that ptardiff offers
4877 a nice way to diff against an unpacked tarball.
4881 * Fix use of AssertEq() on NULL, which doesn't compile, at least with recent
4884 Xapian-core 1.2.9 (2012-03-08):
4888 * QueryParser: Fix FLAG_AUTO_SYNONYMS not to enable auto multi-word synonyms
4889 too (but in a different way to trunk so as to not break the ABI).
4893 * Fix issue with running AND, OR and XOR queries against a database with no
4894 documents in it - this was leading to a divide by zero, which led to
4895 MSet::get_matches_estimated() reporting 2147483648 on i386.
4899 * Remove configure's --with-stlport and --with-stlport-compiler options, as
4900 they don't allow you to actually specify what you need to (at least to use
4901 the Debian STLport package), and instead document what to pass to configure
4902 to enable building with STLport (though it seems to no longer be actively
4903 maintained, and the debug mode (which is probably the most interesting
4904 feature now) doesn't seem to work on Debian stable).
4908 * Document that OP_ELITE_SET with non-term subqueries might pick subqueries
4909 which don't match anything. Closes ticket#49.
4911 * Document that you can define a static operator delete method in your subclass
4912 if deallocation needs to be handled specially. (Closes ticket#554)
4914 * Assorted minor documentation improvements.
4918 * Address new warnings from GCC 4.6.
4920 * Fix argument order when linking xapian-check to fix mingw build.
4923 * Add some missing explicit header includes to fix build with STLport.
4925 Xapian-core 1.2.8 (2011-12-13):
4929 * Add support to TermGenerator and QueryParser for indexing and searching CJK
4930 text using n-grams. Currently this is only enabled when the environmental
4931 variable XAPIAN_CJK_NGRAM is set to a non-empty value.
4935 * Add link from index page to apidoc.pdf.
4937 * quickstart.html: Correct link which was to quickstartsearch.cc.html but
4938 should be to quickstartindex.cc.html.
4940 * overview.html,quickstart.html: Fix several factual errors.
4942 * API documentation:
4944 + Improve documentation comments for several methods.
4946 + Add documentation for function parameters which didn't have it.
4948 + Remove bogus paragraph in WritableDatabase::replace_document()
4949 documentation comment which had been cut and pasted from delete_document()
4950 documentation comment. (Fixes ticket#579)
4952 + Explicitly document which value slot numbers are valid. (Fixes ticket#555)
4954 + Escape < and > in doxygen comments so "<foo>" doesn't get eaten by doxygen.
4958 + Some fixes for warnings when cross-compiling to mingw.
4960 * tests/soaktest/soaktest.cc: With Sun's compiler, random() and srandom()
4961 aren't in <cstdlib> so we need to use <stdlib.h> instead.
4963 Xapian-core 1.2.7 (2011-08-10):
4967 * Document objects now track whether any document positions have been modified
4968 so that replacing a modified document can completely skip considering
4969 updating positions if none have changed. Currently the flint, chert, and
4970 brass backends implement this optimisation. A common case this speeds up is
4971 adding and/or removing boolean filter terms to/from existing documents - for
4972 example this gives an 18% speedup for adding tags in notmuch.
4976 * Make sure that perftest isn't run with libeatmydata preloaded, as making
4977 fsync() a no-op makes performance tests rather bogus.
4981 * Remove unnecessary call to reopen() in the remote servers in a case where
4982 either we had just called it or we are using a writable database and so
4983 reopen() doesn't do anything.
4987 * configure: -Wshadow gives bogus warnings with 4.0 (at least on Mac OS X), so
4988 disable it for GCC < 4.1 (like the comments already said we did!)
4992 * Improve the documentation comment for Database::close(). (ticket#504)
4994 * Fix typo in documentation comment for Enquire constructor which reversed the
4995 intended sense (though the text was fairly obviously wrong before).
4997 * Improve documentation of QueryParser::add_boolean_prefix()'s exclusive
4998 parameter to talk about terms and prefixes rather than values and fields
4999 (which was confusing since "document value" has a particular meaning in
5002 * docs/facets.html: Expand descriptions for indexing and finding facets.
5003 Fix errors in example code.
5005 * docs/index.html: Add links to Omega and bindings documentation.
5007 * docs/remote_protocol.html: Fixed typo which reversed the intended sense.
5009 * xapian-check --help: Document that checking a whole database performs
5010 additional cross-checks between the tables.
5012 * docs/admin_notes.html: Add note about xapian-chert-update.
5014 * docs/deprecation.html: Note here that WritableDatabase::flush() is
5015 deprecated in favour of WritableDatabase::commit().
5019 * Fix -Wshadow warnings from GCC 4.6.
5021 * Fix warning from GCC 3.3.
5025 * Fix some problems with the templates used to implement output of parameters
5026 and return values in debug logging.
5028 Xapian-core 1.2.6 (2011-06-12):
5034 + Add new set_max_wildcard_expansion() method to allow limiting the number of
5035 terms a wildcard can expand to. (ticket#350)
5037 + If default_op is OP_NEAR or OP_PHRASE then disable stemming of the terms,
5038 since we don't index positional information for stemmed terms by default.
5040 * Spelling correction was failing to correctly handle words which had the same
5041 trigram in an even number of times.
5045 * We now actually include the soaktest code in the release tarballs.
5049 * Eliminate some vector copies when handling phrase subqueries in the query
5054 * Kill the child process which holds the lock with SIGKILL as that can't be
5055 ignored, whereas SIGHUP can be in some cases.
5059 * Kill the child process which holds the lock with SIGKILL as that can't be
5060 ignored, whereas SIGHUP can be in some cases.
5064 * Kill the child process which holds the lock with SIGKILL as that can't be
5065 ignored, whereas SIGHUP can be in some cases.
5069 * The HTML documentation is now maintained in reStructured Text format.
5071 * docs/queryparser.html: Document the precedence order of operators.
5073 * docs/scalability.html: Bring up-to-date.
5075 * docs/overview.html: Document "remote" in stub databases.
5077 * docs/postingsource.html: Add PostingSource example. (ticket#503)
5079 * include/xapian/database.h: Add @exception InvalidArgumentError for
5080 Database::get_document() (ticket#542).
5082 * Ship ChangeLog.0 in the tarball.
5084 * Assorted minor improvements.
5088 * examples/delve: Report has_positions().
5090 * examples/simpleindex: Add short description to usage message.
5094 * Fix to build for mingw.
5096 Xapian-core 1.2.5 (2011-04-04):
5100 * Enquire::get_eset() now accepts a min_wt argument to allow the minimum wanted
5101 weight to be specified. Default is 0, which gives the previous behaviour.
5103 * QueryParser: Handle NEAR/<offset> and ADJ/<offset> where offset isn't an
5104 integer the same way at the end of the query as in the middle.
5108 + Only keep $XAPIAN_MAX_CHANGESETS changeset files when generating a new one
5109 (previously this variable only controlled if we generated changesets or
5110 not). Closes ticket#278.
5112 + $XAPIAN_MAX_CHANGESETS is reread each time, rather than only when the
5115 + If you build Xapian with DANGEROUS mode enabled, changeset files now
5116 actually have the appropriate flag set (the reader will currently throw an
5117 exception, but that's better than quietly handling them incorrectly).
5121 * Compaction tests which generate stub files now close them before performing
5122 the actual compaction, to avoid issues on Microsoft Windows (ticket#525).
5124 * Improve test coverage.
5128 * Fix memory leak if an exception is thrown during the match.
5132 * Bumped format version number (we now store the oldest revision for which we
5133 might have a replication changeset).
5135 * Optimise not to read the bitmaps from the base files when opening a database
5136 for reading (cross-port of equivalent change to chert).
5138 * Optimise not to update doclength when it hasn't changed (cross-port of
5139 equivalent change to chert).
5141 * If we try to delete an old base file and it isn't there, just continue rather
5142 than throwing an exception. We wanted to get rid of it anyway, and it may be
5143 NFS issues telling us the wrong thing. In particular, DatabaseCorruptError
5144 was rather a pessimistic assessment.
5148 * Optimise not to read the bitmaps from the base files when opening a database
5151 * Optimise not to update doclength when it hasn't changed.
5153 * xapian-chert-update: Fix to handle larger databases, and databases which
5156 * If we try to delete an old base file and it isn't there, just continue rather
5157 than throwing an exception. We wanted to get rid of it anyway, and it may be
5158 NFS issues telling us the wrong thing. In particular, DatabaseCorruptError
5159 was rather a pessimistic assessment.
5163 * Optimise not to read the bitmaps from the base files when opening a database
5164 for reading (cross-port of equivalent change to chert).
5166 * Optimise not to update doclength when it hasn't changed (cross-port of
5167 equivalent change to chert).
5169 * If we try to delete an old base file and it isn't there, just continue rather
5170 than throwing an exception. We wanted to get rid of it anyway, and it may be
5171 NFS issues telling us the wrong thing. In particular, DatabaseCorruptError
5172 was rather a pessimistic assessment.
5176 * xapian-tcpsrv: If we can't bind to the specified port because it is a
5177 privileged one, exit with code 77 (EX_NOPERM) to make it easier to
5178 automatically handle failure when starting the server from a script.
5182 * Snapshots and releases are now bootstrapped with autoconf 2.68 and libtool
5185 * configure: -Wstrict-null-sentinel was added in GCC 4.0.1 and so doesn't work
5186 with GCC 4.0.0. For simplicity, only enable it for GCC >= 4.1.
5190 * INSTALL: Note how to build for a non-default arch on a multi-arch platform.
5192 * include/xapian/enquire.h: Fix doxygen markup so alternative overloaded forms
5193 of Enquire::get_mset() appear in the API documentation.
5195 * collapsing.html: Add missing document (written some time ago, but never
5196 actually added to builds).
5198 * replication.html: Update documentation to make it clear that users shouldn't
5199 create the destination directory for replication themselves.
5201 * docs/intro_ir.html: Update link to a paper. Update text about book "to be
5204 * docs/deprecation.html:
5206 + PostingSource now offers a replacement for Enquire::set_bias().
5208 + OmegaScript: $set{spelling,true} is now deprecated.
5210 + Add note about botched removal of Enquire.get_matching_terms from Python
5211 bindings (now fully removed).
5213 + Note removal of "if idx in mset" from Python bindings.
5215 + Deprecate MSet.items and ESet.items from Python bindings (ticket#531).
5217 * docs/admin_notes.html: Update for 1.2.5.
5219 * Updates to documentation of internals.
5223 * xapian-replicate-server: Fix race condition between checking if a file
5224 exists and opening it to replicate it.
5226 * xapian-replicate: Complain unless host name and port number are specified -
5227 previously these defaulted to an empty string and 0, which resulted in
5228 potentially confusing error messages.
5230 * xapian-replicate: If --master isn't specified, default to DATABASE.
5234 * quest: Report any spelling correction (requires the database contains
5235 spelling data of course).
5237 * copydatabase: Add --no-renumber option.
5241 * api/compactor.cc: Add missing header <ctime> for time() (ticket#530).
5243 * api/compactor.cc: Use msvc_posix_rename() under __WIN32__ to atomically
5244 update stub file after compaction (ticket#525).
5246 * Fix uninitialised variable warnings with gcc -O3.
5248 * Eliminate std::string member of global static object used when compiled with
5249 --enable-log which was causes problems on Mac OS X.
5251 * Fix some issues highlighted by clang++ warnings.
5253 Xapian-core 1.2.4 (2010-12-19):
5259 + Avoid a double free if Query construction throws an exception in a
5260 particular case. Fixes ticket#515.
5262 + Allow phrase generators between a probabilistic prefix and the term itself
5263 (e.g. path:/usr/local).
5265 + The correct window size wasn't being set in some cases when default_op was
5268 * Enquire::get_mset():
5270 + Avoid pointlessly trying to allocate lots of memory if the first document
5271 requested is larger than the size of the database.
5273 + An empty query now returns an MSet with firstitem set correctly -
5274 previously firstitem was always 0 in this case.
5276 * Document: Initialise docid to 0 when creating a document from
5277 scratch, as documented.
5281 + Move the database compaction and merging functionality into this new class,
5282 and make xapian-compact a simple wrapper around this class. (ticket#175)
5284 + Inputs can now be stub database directories or files, in which case the
5285 databases in the stub are used as inputs.
5287 + Add support for compacting to a stub database, which can be one of the
5288 inputs (for atomic update).
5290 + If spellings and/or synonyms were only present in some source databases,
5291 they weren't copied to the output database, but now they are.
5295 * Improve test coverage (particularly for Xapian::Utf8Iterator and
5298 * Add zlib-vg.c to distribution tarballs.
5300 * tests/runtest: Add XAPIAN_TESTSUITE_LD_PRELOAD hook to allow libeatmydata to
5301 easily be used to speed up testsuite runs.
5305 * The matcher wasn't recalculating the max possible weight after a subquery of
5306 XOR reached its end. This caused an assertion failure in debug builds, and
5307 is a missed optimisation opportunity.
5309 * Implement SelectPostList::check() so that check() on OP_NEAR and OP_PHRASE
5310 subqueries will just check a single document, not a potentially huge numbers
5313 * BM25Weight: Fix calculation order to avoid inconsistent weights due to
5314 rounding when certain non-default parameter combinations are used.
5316 * TradWeight: Fix calculation order to avoid inconsistent weights due to
5317 rounding with TradWeight(0).
5319 * Fix regression in speed of OP_OR queries in certain cases due to optimisation
5320 added in 1.0.21/1.2.1.
5322 * In the query optimiser, use value range bounds to detect value ranges which
5327 * Add support for iterating metadata keys with the remote backend. This change
5328 necessitated an increase in the minor version of the remote protocol. If you
5329 are upgrading a live system which uses the remote backend, upgrade the
5330 servers before the clients.
5334 * xapian-config: Add --static option which makes other options report values
5337 * xapian-config is now removed by "make distclean" not "make clean".
5339 * configure: FreeBSD and OpenBSD don't need explicit dependency libraries, so
5340 set link_all_deplibs_CXX=no there.
5342 * This release uses autoconf 2.67 rather than 2.65.
5346 * INSTALL: Raise recommended GCC version from 3.3 to 4.1, since that's the
5347 oldest we regularly test with.
5349 * replication.html: Update and improve in various ways.
5351 * Remove lingering "experimental" marker from PostingSource and
5352 ValueCountMatchSpy API documentation.
5354 * index.html: Add links to replication and facets documents, and fix typo in
5355 serialisation document link.
5357 * internals.html: Add link to replication protocol.
5359 * Change the categorisation document to talk about facets, since that's the
5360 terminology that seems to be most widely used these days, and
5361 "categorisation" can also mean automatically assigning categories to
5362 documents. Also update to reflect the final API.
5364 * deprecation.html: Add guidelines for supporting other software.
5366 * Document cases where QueryParser's FLAG_WILDCARD and FLAG_PARTIAL aren't
5367 currently supported.
5369 * PLATFORMS: Move PLATFORMS information to the wiki and replace with a pointer.
5373 * xapian-compact: Fix access to empty priority_queue while merging synonyms.
5374 This could have caused problems, though we've had no reports of any (the
5375 bug was found with _GLIBCXX_DEBUG).
5377 * xapian-compact: Add --quiet/-q option to suppress progress output.
5380 * xapian-replicate: If a full copy was attempted, but was not put live, display
5381 an explanatory message (in verbose mode).
5385 * examples/quest: Add command line options to allow prefixes to be specified
5386 for the QueryParser.
5388 * examples/delve: Add '-z' option to count zero-length documents.
5390 * examples/simplesearch: Fix cut-and-paste errors in usage message and
5395 * configure: Add support for --enable-sse=sse and --enable-sse=sse2 to allow
5396 control of which SSE instructions to use.
5398 * configure: Enable use of SSE maths on x86 by default with Sun's compiler.
5400 * configure: Beef up the test for whether -lm is required and add a special
5401 case to force it to be for Sun's C++ compiler - there's some interaction with
5402 libtool and/or shared objects which means that the previous configure test
5403 didn't think -lm is needed here when it is.
5405 * Fix to build on OpenBSD 4.5 with GCC 3.3.5.
5407 * Need to avoid excess precision on m68k when targeting models 68010, 68020,
5408 68030 as well as 68000.
5410 * Fix compilation with Sun's C++ compiler.
5412 * Fix testsuite to build on Solaris < 10.
5414 Xapian-core 1.2.3 (2010-08-24):
5418 * Database::get_spelling_suggestion() will now suggest a correction even if the
5419 passed word is in the dictionary, provided the correction has at least the
5420 same frequency. Partly addresses #225.
5424 + Fix handling of groups of terms which are all stopwords - in situations
5425 where this causes a problem we now disable stopword checks for such groups.
5428 + Fix to be smarter about handling a boolean filter term containing ".." in
5429 the presence of valuerangeprocessors.
5433 * New "unittest" program for testing low level functions directly. Currently
5434 this has tests for the internal resolve_relative_path() function.
5439 * Retry select() if it fails with EINTR while waiting for connect(), and
5440 discriminate cases with same failure message to aid debugging.
5444 * Fix documentation comment for Xapian::timeout type - it holds a time interval
5445 in milliseconds not microseconds (the API docs for the methods which use it
5446 explicitly correctly document that the timeouts are in milliseconds).
5448 * libuuid moved from e2fsprogs to util-linux-ng about a year ago, so update
5449 documentation, comments, and configure error messages to reflect this.
5453 * configure: Don't pass -mtune=generic unless GCC >= 4.2 is in use
5456 * Fix handling of some obscure cases of resolving relative paths on Microsoft
5457 Windows. (ticket#243).
5459 * Optimise closing of all unwanted file descriptors after forking by using
5460 closefrom() if available, and otherwise providing our own implementation
5461 (optimised to some extent for many platforms).
5463 * Fix test harness to build under Microsoft Windows (ticket#495).
5467 * xapian-core.spec: Add xapian-metadata and cmake related files to RPM
5470 * xapian-core.spec: Update BuildRequires to specify libuuid-devel instead of
5475 * Improve logging of function parameter placeholder strings.
5477 Xapian-core 1.2.2 (2010-06-27):
5481 * Sync changes from each Btree table to disk right after syncing changes to
5482 its base file, which allows more time for the table changes to be written
5483 and may also be more efficient with some Linux kernel versions.
5487 * Sync changes from each Btree table to disk right after syncing changes to
5488 its base file, which allows more time for the table changes to be written
5489 and may also be more efficient with some Linux kernel versions.
5493 * xapian-check: Don't try to check document lengths are consistent between the
5494 postlist and termlist tables if it would use more than 1GB of memory, and
5495 handle std::bad_alloc or std::length_error when trying to allocate space
5496 for this. This issue affected sup users, as sup allocates docids such that
5497 they are sparse and large docids can easily occur.
5501 * delve: Show the database's UUID.
5505 * Revert 1.2.1 change to visibility of Xapian::Weight's copy constructor as
5506 it making it private broke compilation with GCC 4.1 (which seems to be a
5507 bug in this compiler version).
5509 * tests/harness/testsuite.cc: Need <cstdio> for sprintf(). Fixes compilation
5510 error which was masked if valgrind was installed. (ticket#489)
5514 * xapian-core.spec: Update for 1.2.x - add e2fsprogs-devel to BuildRequires and
5515 add new files to install.
5517 Xapian-core 1.2.1 (2010-06-22):
5519 This release includes all changes from 1.0.21 which are relevant.
5523 * QueryParser: Add support for open-ended ranges (ticket#480).
5525 * Add new optional parameter to QueryParser::add_boolean_prefix() to allow the
5526 user to indicate a prefix isn't "exclusive" and that multiple instances
5527 should be combined with OP_AND rather than OP_OR. Fixes ticket#402. This
5528 change should also improve efficiency as it avoids copying the lists of
5529 prefixes and compares them more efficiently.
5531 * You can now specify a custom stemming algorithm by subclassing
5532 Xapian::StemImplementation, mostly based on patch from Evgeny Sizikov in
5535 * Fix replication bug: when multiple commits were made to the master database
5536 while a client was performing a full copy, the client would only apply the
5537 first changeset and then try to make the database live, but fail due to
5538 trying to set the wrong revision number.
5540 * Replication no longer sleeps between applying changesets to an offline
5541 database. It's only necessary to sleep for a live database (to allow readers
5542 to complete a search without getting DatabaseModifiedErrror.
5544 * xapian-replicate: Add new "-r" command line option to specify how long
5545 replication sleeps for between applying changesets to a live database.
5547 * If a Btree table doesn't exist when applying a replication changeset, create
5548 it. This fixes replicating a revision where a lazy table is created.
5553 * zlib can produce "uninitialised" output from "initialised" input - the
5554 output does decode to the input, so this is presumably just some unused bits
5555 in the output, so we use an LD_PRELOAD hack to get valgrind to check the
5556 input is initialised and then tell it that the output is initialised.
5558 * Don't pass NULL to closedir(), which fixes test harness failures on platforms
5559 without /proc/self/fd.
5561 * Use safesyswait.h, fixing build failure on "make check" on FreeBSD.
5563 * Check is SA_SIGINFO is defined before using it as it isn't available
5564 everywhere. Fixes testsuite build failure on GNU Hurd.
5566 * Add a "soaktest" testsuite, intended to contain long-running tests with
5567 random data. Currently contains a single test which builds and runs random
5568 queries, checking that the results returned are consistent when asking for
5569 different result ranges.
5571 * Test UUID returned by Database::get_uuid() is 36 characters long.
5575 * Xapian no longer forces the wdf_max value to be at least one in
5576 BM25Weight::get_maxpart(). We used to do this so that a non-existent term in
5577 the query would cause it not to achieve 100%, but now we calculate
5578 percentages based on the number of matching subqueries, and it is more
5579 natural for a non-existent term to get zero weight (ditto for a term which
5582 * OP_VALUE_RANGE and OP_VALUE_GE now use value streams directly which is much
5583 more efficient for chert (the default backend in 2.2.x). As an example, a
5584 range query testcase which previously took 29 seconds now takes 0.4 seconds
5585 (70 times faster). (ticket#432)
5587 * The term statistics from multiple databases are now gathered in a simpler
5588 way which is a bit faster and uses less memory.
5592 * Install headers under PREFIX/include not PREFIX/include/xapian. If you used
5593 XO_LIB_XAPIAN or xapian-config in your build system, the headers would still
5596 * Releases and snapshots are now generated with libtool 2.2.10 instead of
5599 * Fix build failures with some combinations of backends disabled (partially
5600 addresses ticket#361 - some combinations still fail).
5602 * Add check to configure that GCC actually supports visibility for the platform
5603 being built for, which fixes compiler warnings with platforms which don't
5604 (such as Mac OS X and mingw).
5608 * Update documentation - replication and PostingSource aren't experimental in
5613 * Make use of built-in UUID API on FreeBSD and NetBSD. (ticket#470)
5619 * Add new pretty printer for values reported by calls and returns in debug
5620 logging - in particular, strings are now reported with non-printable
5623 * Debug logging should have less runtime overhead when built in but not in use.
5625 * Drop support for --enable-log=profile - dedicated profiling tools are likely
5626 to return more useful results.
5628 Xapian-core 1.2.0 (2010-04-28):
5630 This release includes all changes from 1.0.20 which are relevant.
5634 * Fix --abort-on-error to actually work.
5636 * Exit with status 1 not 0 if we caught an exception from the harness itself.
5638 Xapian-core 1.1.5 (2010-04-16):
5640 This release includes all changes from 1.0.19 which are relevant.
5644 * Database replication now handles an exception while applying a changeset
5647 * If environment variable XAPIAN_MAX_CHANGESETS is set on a replication client
5648 then any changesets read are saved so the replicated copy can itself be
5653 * Use sigsetjmp() and siglongjmp() where available so that the set of blocked
5654 signals get restored and the test harness can catch a second incidence of a
5655 particular signal in a run. Use sigaction() instead of signal() where
5656 available, which allows us to report the address associated with SIGSEGV,
5657 SIGFPE, SIGILL, and SIGBUS.
5659 * Add machinery to check for leaked file descriptors. Currently this requires
5660 /proc/self/fd to work (which is present on Linux and some other platforms).
5661 Remove the crude ulimit in runtest which has caused problems on some Debian
5664 * The test harness now explicitly catches const char * exceptions and reports
5669 * Ensure that the wdf upper bound is correctly updated when replacing
5672 * xapian-compact: Now sets lastdocid correctly when using --no-renumber.
5676 * Ensure that the wdf upper bound is correctly updated when replacing
5679 * xapian-compact: Now sets lastdocid correctly when using --no-renumber.
5681 * xapian-check: Check that the initial doclen chunk exists.
5685 * xapian-compact: Now sets lastdocid correctly when using --no-renumber.
5689 * Add remote backend support for WritableDatabase::add_spelling() and
5690 WritableDatabase::remove_spelling(). This bumps the remote protocol to
5691 version 35.0 (so both client and servers will need updating). Suggesting
5692 spelling corrections isn't yet supported. (ticket#178)
5696 * XO_LIB_XAPIAN: Give a more specific error message for the cases where
5697 XAPIAN_CONFIG isn't found, is a directory, or isn't executable.
5703 + If any documents are specified with "-d<docid>", "-V<slot>" now only show
5704 values for those documents.
5706 + Remove undocumented -k option, which has been a compatibility alias for -V
5707 since 0.9.10. Just use -V instead.
5709 * xapian-metadata: Add new example program which allows you to get and set
5710 individual user metadata entries.
5712 Xapian-core 1.1.4 (2010-02-15):
5714 This release includes all changes from 1.0.18 which are relevant.
5718 * Xapian::TermGenerator,Xapian::QueryParser,Xapian::Unicode::is_wordchar():
5719 Add ENCLOSING_MARK and COMBINING_SPACING_MARK categories to is_wordchar(),
5720 which is used by TermGenerator and QueryParser. Also make TermGenerator and
5721 QueryParser ignore several zero-width space characters. This is a better
5722 but less compatible version of a fix in 1.0.18.
5724 * Implement support for iterating valuestreams for multidatabases.
5726 * Xapian::Stem: Update the german and german2 stemming algorithms to the latest
5727 versions from Snowball. These add an extra rule for the "-nisse" ending.
5729 * Xapian::ValueCountMatchSpy: Replace get_values() with values_begin() and
5732 * Xapian::MatchSpy: Provide an iterator for accessing the top values found
5733 instead of taking a vector by reference to return them in.
5735 * Xapian::NumericRanges: Remove experimental API we aren't happy with yet.
5737 * Xapian::DatabaseReplica, Xapian::DatabaseMaster: Remove experimental
5738 API we aren't happy with. Replication is still supported via the
5739 command line programs. (ticket#347)
5741 * Xapian::score_evenness(): Remove as it turns out not to be useful in practice.
5744 * Xapian::ValueWeightPostingSource: A ValueWeightPostingSource with no entries
5745 would report -infinity as its upper bound, which could cause no results to be
5746 incorrectly returned for some queries involving such an object.
5748 * Xapian::WritableDatabase::close() fixed to commit() changes (unless a
5749 transaction is in progress).
5753 * apitest: Improve test coverage in various places.
5757 * Uses of values during the match (sorting by value or Sorter, MatchSpy,
5758 MatchDecider, and collapsing) now use value stream iteration which is
5759 a lot more efficient for chert and brass (but may be slower for flint).
5763 * New development backend. Changes over chert:
5765 + Batched posting list changes during indexing use significantly less memory.
5767 + Instead of using complex code to iterate modified posting lists and
5768 documents length lists, brass can flush individual such lists to disk
5769 and then iterates them from there.
5771 + To iterate all terms, chert flushes all pending postlist changes. In the
5772 case where a prefix is specified, brass only flushes postlist changes for
5773 terms starting with the specified prefix, and doesn't flush document length
5778 * Promote chert to being the stable backend.
5780 * Change the packing of integers and strings into sortable keys, which reduces
5781 database size by 2.5% in tests. This means an incompatible change in the
5782 chert format. You can use the new xapian-chert-update utility to update a
5783 chert database from the old format to the new format. It works much like
5784 xapian-compact so should take a similar amount of time (and results in a
5789 + Prune unused docids off the end of each database when merging multiple
5790 databases with renumbering.
5792 + Extend --no-renumber to support merging databases, but only if they have
5793 disjoint ranges of used document ids.
5795 + Ensure that the resultant database has a fresh UUID (previously chert
5796 copied the UUID from the first input).
5800 + Fix checking of the METAINFO key in chert. For small databases, the
5801 statistics fit in few enough bytes that incorrect check appeared to
5802 succeed and no errors were reported, but for larger databases an
5803 error was incorrectly reported.
5805 + Rework the checking of postlist chunks to use a cleaner approach which
5806 should report errors better.
5808 + Use a type wider than 32 bits to keep count of items in a table.
5809 Previously xapian-check would report the number of entries modulo
5812 * When iterating a value stream, skip_to() now only assigns the value to a
5813 std::string when it reaches its target. This saves a lot of unnecessary
5814 string copying - in a real-world test it improved the time for 100 queries
5815 from 3.66s to 3.10s.
5817 * When skipping through a chunk of postings to find the one we want, don't
5818 bother to unpack the wdf values we're skipping over. This should save a
5819 significant amount of time in certain cases where the profile data shows
5820 about a third of the time is spent in the function where this happens.
5822 * Report locking failure due to running out of file descriptors better.
5828 + Prune unused docids off the end of each database when merging multiple
5829 databases with renumbering.
5831 + Ensure that the resultant database has a fresh UUID (previously flint
5832 didn't set a UUID so one would be generated on demand when next requested,
5833 but only if the database was writable).
5835 * Report locking failure due to running out of file descriptors better.
5839 * Add support for WritableDatabase::set_metadata() and Database::get_metadata()
5840 to the remote backend (based largely on patch in #178).
5844 * Read the document data and values lazily for the inmemory backend like we do
5845 for other backends. They're much less costly to fetch than if a disk or
5846 network access is involved, but it avoids copying potentially large data
5847 which may not be needed. Consistency here also makes things easier to
5848 understand for both users and developers.
5852 * This release uses autoconf 2.65 rather than 2.64.
5856 * docs/replication.html: Add note about not using reopen() with databases being
5857 updated by the replication client.
5859 * docs/admin_notes.html: Update for chert and other recent changes.
5861 * Remove out-of-date reference in the API documentation comment to an
5862 add_slot() method. This no longer exists - you need to use multiple
5863 ValueCountMatchSpy objects to monitor more than one slot.
5867 * simpleexpand,simpleindex,simplesearch: Handle --help and --version.
5871 * The debug log now reports boolean values as "true" and "false" (instead of
5874 Xapian-core 1.1.3 (2009-09-18):
5876 This release includes all changes from 1.0.15-1.0.17 which are relevant.
5880 * Update Unicode character database to Unicode 5.2. (ticket#351)
5882 * Rename Xapian::Sorter to Xapian::KeyMaker, paving the way for using it to
5883 build collapse keys too. Xapian::Sorter remains for compatibility (and is
5884 now a subclass of Xapian::KeyMaker) but is deprecated.
5886 * Resolve the inconsistency in MultiValueSorter::add()'s "forward" parameter
5887 versus the "reverse" parameters which the Enquire sorting functions now take
5888 by replacing the class with MultiKeyMaker with a renamed method add_value()
5889 with a "reverse" parameter. MultiValueSorter remains with the old semantics
5890 for compatibility but is deprecated. (ticket#359)
5892 * QueryParser: Don't apply spelling correction to wildcarded terms, or to terms
5893 at the end of the query which we expand under FLAG_PARTIAL.
5895 * Add new Error subclass SerialisationError which we throw for serialisation
5896 related errors (which previously mostly threw NetworkError.
5898 * Rename Xapian::SerialisationContext to Xapian::Registry.
5900 * Add DecreasingValueWeightPostingSource class, which reads weights from a
5901 value slot in which a significant range of the values are in decreasing
5902 order. This functions similarly to ValueWeightPostingSource, but can be much
5905 * Add new Xapian::MatchSpy class:
5907 + This replaces the use of Xapian::MatchDecider as a "matchspy", which is now
5908 deprecated. The new class only inspects, and can't reject. It can work
5909 with remote databases, with the results being serialised to return them
5912 + Add subclass ValueCountMatchSpy, which counts the occurrences of each value
5913 in a slot in the search results seen (useful for faceted or categorisation
5914 systems). The results can be grouped into ranges using the NumericRange
5915 and NumericRanges classes, and the score_evenness() function. This API is
5916 currently experimental.
5918 * Remove default implementation of Weight::clone() which returns NULL. We
5919 always need clone() to be implemented because it's called for every term
5920 in the query, not just used for the remote backend.
5924 * Rewrite the low level packing and unpacking functions more efficiently. As
5925 well as being generally faster, the pack functions now take a reference to a
5926 string to append to, which avoids creating a lot of temporary string objects.
5927 Indexing HTML files with omindex is 5-10% faster. Searching for "The" on
5928 gmane (which results in a lot of unpacking of postings and document lengths)
5929 is about 35% faster. (ticket#326)
5931 * xapian-compact: Don't report an absent lazy input table as 0 size.
5933 * Fix ChertModifiedPostList to skip added-but-then-deleted-before-flush
5934 documents. (ticket#392)
5936 * Fix WritableDatabase::get_doclength() to work properly after a call to commit
5937 for the chert backend (ticket#397).
5939 * Fix to work with the metainfo key stored in the latest format of chert
5942 * Avoid doing pointless work by trying to delete non-existent lists of values
5943 when we're just adding documents.
5945 * Fix code to find the first docid in the next chunk (ticket#399).
5947 * Add support for chert databases without a termlist table (ticket#181).
5948 Currently the only way to create such a database is to create a chert
5949 database and do "rm termlist.*".
5953 * xapian-compact: Don't report an absent lazy input table as 0 size.
5957 * Remote protocol major version has changed to support serialising MatchSpy
5960 * Fixed not to sometimes read off the end of the returned matches when
5961 searching multiple databases, some of which are remote, and when the primary
5962 ordering is by relevance.
5966 * This release uses autoconf 2.64 rather than 2.63. This means configure now
5967 makes use of shell functions, which makes it ~13% smaller, and should also
5968 make it execute faster.
5970 * configure: Send stderr output from ldconfig to config.log.
5972 * Add optional third parameter to XO_LIB_XAPIAN autoconf macro which specifies
5973 the basename for the "xapian-config" script (defaults to "xapian-config" to
5974 give the current behaviour).
5976 * This release uses doxygen 1.5.9 to generate the API documentation.
5980 * Minor improvements to the formatting of the collated API documentation.
5984 * Fix code to compile with Sun's C++ compiler.
5986 * Fix our uuid_unparse_lower() replacement for older libuuid to actually
5987 compile (really fixes ticket#368).
5989 * Fix xapian-config to work with Solaris 10 /bin/sh. (ticket#405)
5993 * Use C++ syntax for NULL with a type in log output.
5995 Xapian-core 1.1.2 (2009-07-23):
5997 This release includes all changes from 1.0.14 which are relevant.
6001 * Move support for a prefix/suffix from NumberValueRangeProcessor to
6002 StringValueRangeProcessor, and change NumberValueRangeProcessor and
6003 DateValueRangeProcessor to inherit from StringValueRangeProcessor so all
6004 three now support a prefix/suffix. (ticket#220)
6006 * Query: Trim 4 bytes off the internals. (ticket#280)
6008 * QueryParser: If default_op is OP_NEAR or OP_PHRASE then make the window size
6009 (9 + no_of_terms) to match the default for an explicit NEAR or PHRASE.
6014 * Sort out the clash between two different patches to fix leaking file
6015 descriptors when running tests with the remotetcp backend (broken by
6020 * If the highest weighted document doesn't match all the terms in the query,
6021 its percentage weight is now calculated by simply counting how many weighted
6022 leaf subqueries match it instead of scaling by the proportion of the weight
6023 which matches (which required accessing the termlist for that document).
6026 * XOR with a SYNONYM subquery could previously achieve 100% - this has been
6031 * Backport the lazy update changes from chert to flint:
6033 WritableDatabase::replace_document() now updates the database lazily in
6034 simple cases - for example, if you just change a document's values and
6035 replace it with the same docid, then the terms and document data aren't
6036 needlessly rewritten. Caveats: currently we only check if you've looked at
6037 the values/terms/data, not if they've actually been modified, and only keep
6038 track of the last document read.
6042 * Update to always use C++ forms for ISO C standard headers (ticket#330).
6044 * Fix several places where Xapian::doccount is used instead of
6045 Xapian::termcount, and similar issues. It's still not possible to make
6046 these types different sizes, but we're now closer to this goal.
6051 * Note that PostingSource and Weight objects returned by clone() and
6052 unserialise() methods will be deallocated with "delete".
6056 * Fix debug logging not to segfault on NULL Query::Internal pointers.
6058 Xapian-core 1.1.1 (2009-06-09):
6060 This release includes all changes from 1.0.13 which are relevant.
6064 * New Query::OP_SYNONYM operator, which matches the same documents as OP_OR,
6065 but attempts to weight as if the all the subqueries were a single term with
6066 their combined wdf, which should give better relevance weights.
6068 * QueryParser's synonym, wildcard, and partial query features now use
6069 the new OP_SYNONYM operator.
6071 * PostingSource: Add new set_maxweight() method to allow subclasses to tell
6072 the matcher that their maximum weight has decreased. Make get_maxweight()
6073 a non-virtual method of the baseclass which returns the last set maxweight
6074 (which will require updates to most user subclasses. (ticket#340)
6076 * DatabaseReplica: Fix SEGV when calling get_description() on a default
6077 constructed DatabaseReplica.
6079 * Make Query::MatchAll and Query::MatchNothing const since they're immutable.
6080 All the public methods of Query are const, so this should be completely API
6083 * Methods returning an end iterator for a ValueIterator now actually return a
6084 proxy object which silently converts to ValueIterator if required. This
6085 proxy object allows a comparison with an "_end()" method to be optimised
6086 better so that it just ends up comparing the internal member of the iterator
6087 class with NULL (previously a call to ValueIterator's destructor remained).
6088 This should be API compatible, but note that it is definitely now more
6089 efficient just to compare against the return value of the relevant _end()
6090 method than to store the end iterator explicitly.
6094 * Testcase valuestats4 requires transactions, so indicate that and remove the
6095 explicit SKIP for inmemory.
6097 * Testcase changemaxweightsource1 uses ChangeMaxweightPostingSource, which
6098 doesn't work with multi or remote, so mark the test accordingly.
6100 * We've decided that "going back" with skip_to() or check() should have
6101 unspecified behaviour, so stop testing how this case behaves!
6105 * Subclass MultiPostList directly from PostList instead of from LeafPostList.
6106 This gets rid of two unused data members per MultiPostList in exchange for
6107 having to define 5 extra "never called" methods, but 4 of these just
6110 * Store termfreqs and reltermfreqs for query terms in a single map rather than
6111 one map for each, which saves is more compact and likely to be faster.
6115 * xapian-check: For chert, check value stats are the correct format and that
6116 the streamed values are consistent with their stats (ticket#277).
6118 * xapian-check: Chert doesn't store termlist entries for documents without
6119 terms, which resulted in us reporting an error when we found document ids in
6120 the doclength "postlist" which were greater than any with an entry in the
6121 termlist. Instead compare these entries against db.get_last_docid() if we
6122 are checking a whole db and the db can be opened. If not, suppress this
6127 * When serialising stats, serialise the termfreq and reltermfreq together,
6128 rather than in separate lists. This gives a smaller serialised form, and
6129 matches these both being stored in the same map now. This is an incompatible
6130 remote protocol change, so bump the major version to 32. (ticket#362)
6134 * Some build failures with --disable-backend-XXX options have been fixed, but
6135 we haven't exhaustively tested all combinations.
6137 * Ship common/win32_uuid.cc and common/win32_uuid.h (ticket#367).
6141 * Update PostingSource documentation to describe how init() is called again if
6142 a PostingSource is reused. Fixes #352.
6146 * Fixed to build with GCC 4.4.
6148 * Drop support for GCC 2.95.3 and 3.0.x - we now require at least 3.1 as doing
6149 so eliminates some preprocessor conditionals which we aren't able to test
6150 regularly as we don't have easy access to such old GCC versions. GCC 3.1 is
6151 nearly 7 years old now, and GCC3 didn't get widespread use until later
6152 versions anyway. If you still need to use GCC < 3.1, Xapian 1.0.x should
6153 build with 2.95.3 or newer.
6155 * Older versions of libuuid don't have uuid_unparse_lower() so probe for it in
6156 configure, and if it isn't present provide an inline version in safeuuid.h
6159 * Fixed to build with MSVC (ticket#379).
6161 * Add static_cast<char>() to str(bool) overload to suppress bogus MSVC warning
6166 * common/debuglog.h: Add missing initialisation of uncaught_exception variable
6167 in a couple of places.
6169 Xapian-core 1.1.0 (2009-04-22):
6173 * All deprecated xapian-core features listed for removal in 1.1.0 have been
6174 removed. See deprecation.html for details, and suggested updates.
6176 * The Unicode character categorisation functions have been updated from
6179 * Add NON_SPACING_MARK to is_wordchar() for better tokenisation of languages
6180 which use such marks - for example, Arabic. This is better than the stop-gap
6181 fix in 1.0 of treating NON_SPACING_MARK as a phrase-generator character
6182 when parsing queries, but it does mean that databases built from data
6183 containing such characters will need to be rebuilt. (ticket#355)
6185 * The details of how to subclass Xapian::Weight to implement your own
6186 weighting scheme have changed incompatibly to allow user weighting schemes
6187 to have access to the same statistics as built-in schemes (ticket#213)
6188 If you have a existing subclass of Xapian::Weight you'll need to update it.
6190 * New Database methods get_doclength_upper_bound(), get_doclength_lower_bound()
6191 and get_wdf_upper_bound(), primarily intended for allowing weighting schemes
6192 to calculate tighter upper bounds on weights (which BM25Weight and TradWeight
6193 now do) which allows matcher weight-based optimisations to be more effective.
6194 Chert actually tracks doclength bounds and a global (rather than per term)
6195 upper bound on wdf; other backends return much less tight bounds, but these
6196 still lead to better upper bounds on weights.
6198 * Enquire::get_eset() now uses an unmodified of probabilistic formula, and
6199 doesn't return terms which would get a negative weight from it (since that
6200 means they are expected to be harmful not helpful).
6202 * Add Database::close() method, which will release system resources (in
6203 particular, close filehandles) held by a database. This is particularly
6204 useful when wrapping the API for languages with garbage collection.
6206 * Change Database::positionlist_begin() not to throw exceptions if the term or
6207 document doesn't exist.
6209 * Xapian databases now have a UUID, readable with Database::get_uuid().
6211 * A new Database replication API has been added (currently experimental).
6213 * MSet::get_termfreq() will now fall back to looking up the term frequency in
6214 the database rather than raising an exception if a term wasn't present in
6217 * Calling RSet:add_document() with argument 0 now throws InvalidArgumentError.
6219 * QueryParser sped up (new version of lemon); queryparsertest runs 2.2% faster.
6221 * Add ValueSetMatchDecider, which is a matchdecider which is intended to be
6222 passed a set of values to look for in documents, and selects documents based
6223 on the presence of those values.
6225 * Add new Xapian::PostingSource class to allow passing custom sources of
6226 postings and weights to the matcher. Built-in PostingSource subclasses:
6227 FixedWeightPostingSource, ValueMapPostingSource, ValuePostingSource, and
6228 ValueWeightPostingSource. (Currently experimental).
6230 * Database: Add get_value_freq(), get_value_lower_bound() and
6231 get_value_upper_bound() methods to get statistics about the values stored in
6232 a slot. Add support for the value statistics methods to chert, inmemory,
6233 multi and remote databases.
6235 * Enquire::get_eset() now faster for large ESet size.
6237 * Xapian::Document objects now have a reduced memory footprint.
6239 * Enquire::set_collapse_key() now allows you to specify a maximum number of
6240 matches with each collapse key to keep (which defaults to 1, giving the
6241 previous behaviour). Enquire can now report bounds and an estimate of what
6242 the total number of matches would have been if collapsing wasn't in use.
6244 * WritableDatabase::commit() is a new, preferred alias for
6245 WritableDatabase::flush(). (ticket#266)
6247 * Add methods for serialising documents and queries to strings, and
6248 unserialising back from strings. (ticket#206)
6252 * stemtest: No longer checks environment variables OM_STEMTEST_SKIP_RANDOM,
6253 OM_STEMTEST_LANGUAGES, and OM_STEMTEST_SEED.
6255 * perftest: New performance testsuite. This is intended to contain intended to
6256 contain potentially time-consuming performance tests, which log output to
6257 an XML file for later analysis. It's not run by "make check" - use "make
6258 check-perf" to run it.
6260 * apitest: Now runs tests over both flint and chert for multi, remotetcp, and
6263 * Wait for subprocesses to finish at end of tests with remotetcp backend, to
6264 avoid test failures when the same database is used for the next testcase.
6268 * Internally, pass around non-normalised document lengths as Xapian::termcount
6269 (unsigned integer) not Xapian::doclength (double). This gives a 3% speedup
6270 for 10 term OR queries!
6274 * New development backend. Use Chert::open() to explicitly create a chert
6275 format database, or set XAPIAN_PREFER_CHERT=1 in the environment to
6276 prefer chert when creating a new database without an explicit type.
6278 * Quartz and Flint stored the document length alongside every posting list
6279 entry. Chert instead stores a chunked list of all the document lengths
6280 which saves a lot of space, and is a big win for large queries or those
6281 which don't need the document lengths. This structure is used to
6282 implement much faster iteration (six times faster in a test) over all
6283 document ids (which speeds up queries using unary NOT, e.g. `NOT apples'),
6284 and to test for the existence of documents (instead of checking the record
6285 table for an entry).
6287 * Document values are now stored in a chunked stream for each slot for
6288 efficient access to the same slot in lots of documents. This makes
6289 operations like sort by value much more efficient.
6291 * WritableDatabase::replace_document() now updates the database lazily in
6292 simple cases - for example, if you just change a document's values and
6293 replace it with the same docid, then the terms and document data aren't
6294 needlessly rewritten. Caveats: currently we only check if you've looked at
6295 the values/terms/data, not if they've actually been modified, and only keep
6296 track of the last document read.
6300 * If we can't obtain a write lock while trying to create a new database
6301 we now report the lock failure with DatabaseLockError, not
6302 DatabaseOpeningError - it's more useful to know that the lock attempt failed
6305 * Improve reporting of failures to obtain lock due to unexpected errors.
6307 * xapian-check: Don't stop checking a table after an error in certain cases -
6308 instead increment the error counter and try to continue checking from the
6313 * The remote database protocol major version has been increased, allowing
6314 a significant amount of compatibility code to be removed. This change means
6315 that new clients won't work with old servers, and old clients won't work
6316 with new servers. If upgrading a live system, you will need to take this
6319 * The remote servers now always default to opening a Database and the client
6320 has to send a protocol message to explicitly request write access. This
6321 allows a single server to support multiple readers and one writer
6322 simultaneously. (ticket#145)
6324 * Database::get_document() no longer does an unnecessary copy of the document's
6327 * Change serialisation of queries to be more compact and easier to parse.
6331 * Stub databases used to assume that any relative paths were relative to the
6332 current working directory. They now assume that relative paths are
6333 relative to the directory holding the stub database file.
6335 * Stub database lines which begin with a '#' character are now ignored,
6336 allowing comments in stub database files.
6338 * New "stub directory" database type - this is a directory containing a stub
6339 database file named "XAPIANDB".
6341 * Don't just ignore lines with no spaces in a stub database file.
6343 * Bad lines in a stub file were being ignored after we'd seen a good entry.
6345 * Add new Auto::open_stub() overload which opens a stub database file
6346 containing a single entry as a WritableDatabase.
6348 * Add support for "inmemory" to stub database (which is useful now that stub
6349 databases can be opened for writing).
6351 * A stub database file is now allowed to contain no database entries, which
6352 results in an empty Database object (this avoids user code having to special
6353 case to handle "0 or more" databases).
6357 * To allow installations of Xapian 1.0 and 1.1 to easily coexist, the library
6358 is now libxapian-1.1; xapian.m4 is now xapian-1.1.m4; headers are now
6359 installed in $prefix/include/xapian-1.1. If you use XO_LIB_XAPIAN or
6360 xapian-config as we recommend, this should all be transparent. Also
6361 programs and scripts have a default program suffix to -1.1 unless overridden
6362 using the --program-suffix argument to configure (if you really want no
6363 suffix, "./configure --program-suffix=" will achieve this).
6365 * On Linux and k*bsd-gnu, override libtool's link_all_deplibs_CXX to "no".
6367 * On Linux, override libtool's sys_lib_dlsearch_path_spec to a list generated
6368 in a more reliable way which includes all the default directories.
6370 * configure: --enable-debug and --enable-debug-verbose have been deprecated
6371 since 1.0.0, so remove specific errors pointing to the replacements.
6375 * Disable "JAVADOC_AUTOBRIEF" in doxygen configuration since we always try to
6376 write a brief description explicitly, and JAVADOC_AUTOBRIEF causes problems
6379 * docs/deprecation.html: Describe what "experimental" features are, and why
6380 replication and posting sources are currently experimental.
6382 * docs/deprecation.html: Deprecate Stem_get_available_languages() from the
6387 * Use C++ forms of C headers in examples (ticket#330).
6391 * xapian-core.spec: We no longer need to run autoreconf to work around
6392 libtool's incomplete sys_lib_dlsearch_path_spec or to pick up distro-specific
6393 patches for link_all_deplibs.
6397 * Report get_description() rather than the pointer value for
6398 Xapian::Query::Internal* parameters to internal functions.
6400 * The debug logging framework has been overhauled. See HACKING for details
6401 of how it now works.
6403 * Faster integer to string functions inside the library (this is a general
6404 improvement, but will particularly speed up debug logging as that converts a
6405 lot of integers to strings).
6407 Xapian-core 1.0.23 (2011-01-14):
6411 * QueryParser: Avoid a double free if Query construction throws an exception
6412 in a particular case. Fixes ticket#515.
6414 * QueryParser: Handle NEAR/<offset> and ADJ/<offset> where offset isn't an
6415 integer the same way at the end of the query as in the middle.
6417 * Enquire::get_mset(): Avoid pointlessly trying to allocate lots of memory
6418 if the first document requested is larger than the size of the database.
6420 * Enquire::get_mset(): An empty query now returns an MSet with firstitem set
6421 correctly - previously firstitem was always 0 in this case.
6425 * The matcher wasn't recalculating the max possible weight after a subquery of
6426 XOR reached its end. This caused an assertion failure in debug builds, and
6427 is a missed optimisation opportunity.
6431 * xapian-compact: Fix access to empty priority_queue while merging synonyms.
6432 This could have caused problems, though we've had no reports of any (the
6433 bug was found with _GLIBCXX_DEBUG).
6435 Xapian-core 1.0.22 (2010-10-03):
6439 * Xapian::Document: Initialise docid to 0 when creating a document from
6440 scratch, as documented.
6442 * Xapian::QueryParser: Allow phrase generators between a probabilistic prefix
6443 and the term itself (e.g. path:/usr/local).
6447 * Back out the OP_OR efficiency improvement made in 1.0.21 since this change
6448 slows down some other common cases. We'll address this fully in 1.2.4, but
6449 that fix is more invasive than we are comfortable with for 1.0.x at this
6454 * xapian-config: Add --static option which makes other options report values
6459 * deprecation.html: Add guidelines for supporting other software.
6461 * Document cases where QueryParser's FLAG_WILDCARD and FLAG_PARTIAL aren't
6462 currently supported.
6464 * Fix documentation for Xapian::timeout type - it holds a time interval in
6465 milliseconds not microseconds (the API docs for the methods which use it
6466 explicitly correctly document that the timeouts are in milliseconds).
6470 * configure: Don't pass -mtune=generic unless GCC >= 4.2 is in use
6473 * configure: Add support for --enable-sse=sse and --enable-sse=sse2 to allow
6474 control of which SSE instructions to use.
6476 * configure: Enable use of SSE maths on x86 by default with Sun's compiler.
6478 * configure: Beef up the test for whether -lm is required and add a special
6479 case to force it to be for Sun's C++ compiler - there's some interaction with
6480 libtool and/or shared objects which means that the previous configure test
6481 didn't think -lm is needed here when it is.
6483 * Fix test harness to build under Microsoft Windows (ticket#495).
6485 * Fix to build on OpenBSD 4.5 with GCC 3.3.5.
6487 * Need to avoid excess precision on m68k when targeting models 68010, 68020,
6488 68030 as well as 68000.
6492 * xapian-core.spec: Add cmake related files to RPM packaging.
6494 Xapian-core 1.0.21 (2010-06-18):
6498 * Xapian::Stem now recognises "nb" and "nn" as additional codes for the
6501 * Xapian::QueryParser now correctly parses a wildcarded term in between two
6502 other terms (ticket#484).
6506 * Improve test coverage of OP_VALUE_RANGE and MSet::get_percent().
6510 * OP_OR could skip a matching document if it decayed to OP_AND or OP_AND_MAYBE
6511 during the match in some cases. Fixes ticket#476.
6513 * OP_XOR with non-leaf subqueries could skip matching documents in some cases,
6514 and OP_XOR of three or more sub-queries could return incorrect weights.
6517 * OP_OR is now more efficient if a subquery is potentially expensive (e.g.
6518 ValueRangePostList, OP_NEAR, OP_PHRASE). A 10-fold speed-up with
6519 ValueRangePostList has been observed.
6523 * When iterating a table, if the table changes underneath we could end up
6524 returning the same entry twice. (Debian#579951)
6526 * A cancelled transaction (or a failing operation implicitly cancelling
6527 pending changes) now marks the tables as unmodified, which fixes an exception
6528 trying to read block 0 if one of the tables is empty on disk.
6532 * When iterating a table, if the table changes underneath we could end up
6533 returning the same entry twice. (Debian#579951)
6537 * When daemonising, read the max fd to close with sysconf() instead of using
6538 a hardcoded value of 256, and work even if stdin and stdout have been closed.
6542 * Install files to make Xapian easier to use with cmake.
6546 * Update the list of languages that the Xapian::Stem constructor recognises.
6548 * Assorted minor improvements to the collated API documentation.
6552 * On x86 processors, Xapian now defaults to using SSE2 FP instructions. This
6553 avoids issues with excess precision and it a bit faster too. If you need
6554 to support processors without SSE2 (this means pre-Pentium4 for Intel) then
6555 configure with --disable-sse. (ticket#387)
6557 * Fix warning when compiling for mingw with GCC 4.2.1.
6559 * Remove mutable from a couple of reference class members - mutable doesn't
6560 make sense for a reference and some compilers warn about it.
6562 Xapian-core 1.0.20 (2010-04-27):
6566 * MSet: Fix incorrect values reported by get_matches_estimated(),
6567 get_matches_lower_bound(), and get_matches_upper_bound() in certain cases
6568 when sorting and collapsing (ticket#464).
6572 * deprecation.html: Note how to disable deprecation warnings. (ticket#393)
6576 * delve: Add -a option to list all terms in a database.
6578 * delve: -d and -V command line options now report out of range and invalid
6583 * The getopt warning fix for Cygwin in 1.0.19 caused build failures on Mac OS X
6584 (and probably some other platforms with non-GNU getopt implementations), so
6585 replace with a fix which is only enabled for Cygwin. (ticket#469)
6587 Xapian-core 1.0.19 (2010-04-15):
6591 * QueryParser: Fix leak if Xapian::Database throws an exception during parsing
6596 * Explicitly flush after indexing for quartz and flint, so we see any
6597 exceptions from the flush (the implicit flush from the destructor swallows
6600 * apitest: Add databasemodified1 testcase to provide some test coverage for
6601 DatabaseModifiedError.
6605 * When updating a document, rather than decoding the old positions, comparing
6606 with the new, and then encoding the new if different, we now just encode the
6607 new and then compare the encoded forms. (ticket#428)
6609 * Avoid trying to delete the document positions when we know there aren't any.
6611 * Fix memory leak if Database::allterms_begin() throws an exception
6614 * xapian-check: Report document id for document length mismatch.
6616 * Fix potential issues with iterators over a WritableDatabase which is modified
6617 during iteration. No problems have actually been observed with flint, only
6618 in 1.1.4 with chert in cases which don't occur in flint, but it seems likely
6619 the issue can manifest for flint in other situations. Fixes ticket#455.
6621 * Initialise zlib z_stream structure members zalloc, zfree, and opaque with
6622 Z_NULL rather than 0 cast to the appropriate type, as that's what the zlib
6623 documentation says to do. Add missing initialisation of opaque for the
6624 inflate z_stream which the zlib docs say is needed (reading the zlib code,
6625 this isn't true for current versions, so this improves robustness rather
6626 than fixing an observable bug).
6628 * Don't memcpy() a block to itself - it's a waste of effort, and (probably)
6629 undefined behaviour (as a block overlaps itself).
6633 * Fix potential issues with iterators over a WritableDatabase which is modified
6634 during iteration. No problems have actually been observed with quartz, only
6635 in 1.1.4 with chert in cases which don't occur in quartz, but it seems likely
6636 the issue can manifest for quartz in other situations. Fixes ticket#455.
6638 * Don't memcpy() a block to itself - it's a waste of effort, and (probably)
6639 undefined behaviour (as a block overlaps itself).
6643 * Force -fno-strict-aliasing for GCC 4.2 to avoid bad code being generated due
6644 to a bug in that compiler version. Fixes ticket#449. This issue hasn't been
6645 observed to affect Xapian 1.0.x, but it seems prudent to backport the fix.
6649 * INSTALL: Correct description of --enable-assertions. It does NOT enable
6650 debugging symbols, and shouldn't control checks on bad data passed to API
6651 calls (if it does anywhere, that's a bug). Note that Xapian will run more
6652 slowly with assertions on.
6656 + Add section on indexing.
6658 + Add a note about removing automatically added spelling dictionary entries.
6660 + Move the "algorithm" section to the end, as it is really just background
6661 information for the curious.
6663 * include/xapian/queryparser.h: Document the possible exception messages from
6664 QueryParser::parse_query().
6666 * include/xapian/termgenerator.h: Note how TermGenerator handles stopwords.
6670 * delve: Display the lastdocid value when displaying general database
6673 * simpleindex: Explicitly call flush() on the database, as that is good
6674 practice (since you see any exceptions).
6678 * Fix compilation failure in testsuite on OpenBSD, introduced by new regression
6679 test in 1.0.18. Fixes ticket#458.
6681 * Fix getopt-related warning on Cygwin.
6683 Xapian-core 1.0.18 (2009-02-14):
6687 * Document: Add new add_boolean_term() method, which is an alias for add_term()
6692 + Add support for quoting boolean terms so they can contain arbitrary
6693 characters (partly addresses ticket#128).
6695 + Add ENCLOSING_MARK and COMBINING_SPACING_MARK categories, plus several
6696 zero-width space characters, as phrase generators. This mirrors a better
6697 fix in 1.1.4, but without losing compatibility with existing databases.
6699 + Fix handling of an explicit AND before a hated term (foo AND -bar).
6702 * TermIterator: Only include trailing '+' or '#' on a term if it isn't followed
6703 by a word character (makes more sense and matches QueryParser's behaviour).
6706 * Database: Fix many methods to behave better on a database with no
6707 subdatabases, such as is constructed by Database(). Fixes ticket#415.
6711 * Add test coverage for xapian-compact, and improve coverage for
6712 WritableDatabase::replace_document().
6714 * apitest: Rename matchfunctor<n> to matchdecider<n> to match current
6719 * When updating documents, don't update posting entries which haven't changed.
6720 Largely fixes ticket #250.
6722 * If the number of entries in the position table happened to be 4294967296 or
6723 an exact multiple, Xapian would ignore positional data for that table when
6724 running queries, and xapian-compact wouldn't copy its contents.
6726 * Iterating all the terms in the database with a prefix is now slightly more
6729 * Fix locking code to work if stdin and/or stdout have been closed.
6731 * If a document is replaced with itself unmodified, we no longer increase the
6732 automatic flush counter.
6734 * When iterating a posting list modified since the last flush(), the reported
6735 wdf is now correct (previously it was too high by its old value).
6737 * Replacing a document deleted since the last flush failed to update the
6738 collection frequency and wdf, and caused an assertion failure when assertions
6741 * WritableDatabase::replace_document() didn't always remove old positional
6742 data (the only effect is that the position table was bloated by unwanted
6747 + New "until" command which shows entries until a specified key is reached.
6749 + New "open" command which allows easy switching between tables.
6751 * xapian-compact: Fix typos in --help output.
6755 * Replacing a document deleted since the last flush failed to update the
6756 collection frequency and wdf, and caused an assertion failure when assertions
6759 * WritableDatabase::replace_document() didn't always remove old positional
6760 data (the only effect is that the position table was bloated by unwanted
6765 * Throw UnimplementedError if a MatchDecider is used with the remote backend.
6766 Previously Xapian returned incorrect results in this case.
6770 * configure: With --enable-maintainer-mode, enable -Werror for GCC >= 4.1
6771 rather than >= 4.0 as Apple's GCC 4.0 gives bogus uninitialised variable
6776 * The API documentation now includes Xapian::Error and subclasses, and doesn't
6777 mention Xapian::Query::Internal.
6779 * Make clear in the Xapian::Document API documentation that this class is a
6780 lazy handle and discuss the issues this can cause.
6782 * INSTALL: Improve text about zlib dependency.
6784 * HACKING: Add details of our licensing policy for accepting patches.
6788 * quest: If no database is specified, still parse the query and report
6789 Query::get_description() to provide an easy way to check how a query parses.
6793 * Fix GCC 4.2 warning.
6795 xapian-core 1.0.17 (2009-11-18):
6801 + Fix handling of a group of two or more terms which are all stopwords which
6802 notably caused issues when default_op was OP_AND, but could probably
6803 manifest in other cases too. Fixes ticket#406.
6805 + Fix interaction of FLAG_PARTIAL and FLAG_SYNONYM. (ticket#407)
6807 * Database: A database created via the default constructor no longer causes a
6808 segfault when the methods get_metadata() or metadata_keys_begin() are called.
6812 * Don't try to close the fd one more than the maximum allowable when locking
6813 the database. Harmless, except it causes a warning when running under
6814 valgrind. (ticket#408)
6818 * Xapian::Sorter isn't supported with the remote backend so throw
6819 UnimplementedError rather than giving incorrect results. (ticket#384)
6821 * Fix potential reading off the end of the MSet which is returned internally
6822 by the remote server.
6826 * Various documentation comment improvements for the Database class.
6830 * examples/quest.cc: Tighten up the type of the error we catch to detect an
6831 unknown stemming language.
6835 * xapian-config: Need to quote ^ for Solaris /bin/sh.
6837 * configure: Actually use any flags we determine are needed to switch the
6838 compiler to proper ANSI C++ mode, when building xapian-core - this stopped
6839 working in 1.0.12, breaking support for HP's aCC, Compaq's cxx, Sun's CC, and
6842 Xapian-core 1.0.16 (2009-09-10):
6846 * Fix a typo which stopped this fix in 1.0.12 from working (ticket #398):
6848 If we fail to get the lock after we spawn the child lock process (the common
6849 case is because the database is already open for writing) then we now clean
6850 up the child process properly.
6854 * Improve API documentation of QueryParser::set_default_op() and
6855 QueryParser::get_default_op().
6859 * Fix build failure on Mac OS X 10.6.
6861 Xapian-core 1.0.15 (2009-08-26):
6865 * Fix the test harness not to report heaps of bogus errors when using valgrind
6870 * Backport the lazy update changes from 1.1.2:
6872 WritableDatabase::replace_document() now updates the database lazily in
6873 simple cases - for example, if you just change a document's values and
6874 replace it with the same docid, then the terms and document data aren't
6875 needlessly rewritten. Caveats: currently we only check if you've looked at
6876 the values/terms/data, not if they've actually been modified, and only keep
6877 track of the last document read.
6879 * Fix PostingIterator::skip_to() on an unflushed WritableDatabase to skip
6880 documents which were added and deleted since the last flush. (ticket#392)
6884 * Overhaul the doxygen options we use and tweak various documentation comments
6885 to improve the generated API documentation.
6887 * Explicitly document that an empty prefix argument to
6888 QueryParser::add_prefix() means "no prefix".
6890 * Update the documentation comments for Enable::set_sort_by_value(),
6891 set_sort_by_value_then_relevance(), and set_sort_by_relevance_then_value() to
6892 mention sortable_serialise() as a good way to store numeric values for
6895 Xapian-core 1.0.14 (2009-07-21):
6899 * When using more than one ValueRangeProcessor, QueryParser didn't reset the
6900 begin and end strings to ignore any changes made by a ValueRangeProcessor
6901 which returned false, so further ValueRangeProcessors would see any changes
6902 it had made. This is now fixed, and test coverage improved.
6906 * The test harness code which launches xapian-tcpsrv child processes was
6907 failing to close a file descriptor for each one launched due to a bug in
6908 the code which is meant to track them. This was causing apitest to fail
6909 on OpenBSD (ticket#382). Also wait between testcases for any spawned
6910 xapian-tcpsrv processes to exit to avoid spurious failures when a database is
6911 reused by the next testcase.
6913 * tests/runtest.in: Use "ulimit -n" where available to limit the number of
6914 available file descriptors to 64 so we catch file descriptor leaks sooner.
6916 * When measuring CPU time used for scalability tests, we no longer try to
6917 include the CPU time used by child processes, as we can only get that for
6918 child processes which have exited and it's hard to ensure that they have
6919 with the current framework. Although this means we only tests the
6920 client-side scaling for remote tests, the local backend tests cover most of
6921 the work done by the server part of the remote backend.
6923 * apitest: In testcase topercent2, don't expect max_attained or max_possible to
6924 be exact as rounding errors in different ways of calculating can cause small
6925 variations. On trunk we already have similar code because the new weighting
6926 scheme stuff gives different bounds in the different cases. This should fix
6927 testsuite failures seen on some of the Debian and Ubuntu buildds.
6929 * The test harness now always reports the full exception message (was
6930 conditional on --verbose), and output for different exception types and
6931 other causes of failure is now more consistent.
6933 * For scalability tests, the test harness now increases the number of
6934 repetitions until the first run takes more than 0.001 seconds, to avoid
6935 trying to base calculations on a length of time we probably can't reliably
6936 measure to start with.
6938 * Add test coverage for Stem::get_description() for each supported language.
6940 * queryparsertest: Reenable tests which require the inmemory backend to be
6941 enabled by fixing typo XAPIAN_HAS_BACKEND_INMEMORY ->
6942 XAPIAN_HAS_INMEMORY_BACKEND.
6946 * Use F_FULLFSYNC where available (Mac OS X currently) to ensure that changes
6947 have been committed to disk. (ticket#288)
6951 * Fix handling of percentage weights in various cases when we're searching
6952 multiple remote databases or a mix of local and remote databases.
6956 * configure: -Wshadow produces false positives with GCC 4.0, so only enable it
6957 for >= 4.1 since we enable -Werror for maintainer-mode builds for GCC >= 4.0.
6959 * configure: Check that we can find the valgrind/memcheck.h header as well as
6960 the valgrind binary.
6962 * Change how snowball generates the data used by its among operation - instead
6963 of using pointers to the strings in struct among, store an offset into a
6964 constant pool, as this reduces the number of relocations by about 2300, which
6965 should decrease the time taken by the dynamic linker when loading the
6966 library. This also reduces the size of the shared library significantly
6967 (on x86-64 Linux, the stripped shared library is 4% smaller).
6969 Xapian-core 1.0.13 (2009-05-23):
6973 * Xapian::Document no longer ever stores empty values explicitly. This
6974 wasn't intentional behaviour, and how this case was handled wasn't
6975 documented. The amended behaviour is consistent with how user metadata
6976 is handled. This change isn't observable using Document::get_value(),
6977 but can be noticed when iterating with Document::values_begin(), using
6978 Document::values_count(), or trying to delete the value with
6979 Document::remove_value().
6983 * Fix testcase scaleweight4 not to fail on x86 when compiled with -O0. The
6984 problem was in the testcase code, and was caused by excess precision in
6985 intermediate FP values.
6987 * Testcases which check that operations have the expected O(...) behaviour now
6988 check CPU time instead of wallclock time on most platforms, which should
6989 eliminate occasional failures due to load spikes from other processes.
6992 * Fix test failures due to SKIP_TEST_FOR_BACKEND("inmemory") not skipping when
6993 it should due to comparing char * strings with == (on trunk the return value
6994 being tested is std::string rather than const char *).
6996 * Improve test coverage in several corner cases.
6998 * Fix testcase consistency2 to actually be run (fortunately it passes).
7000 * In the generated testcases, call get_description() on the default
7001 constructed object of each class to make sure that works (and doesn't try to
7002 dereference NULL, or fail some assertion, etc). All currently checked
7003 classes are fine - this is to avoid future regressions or such problems with
7006 * In the test coverage build, use "--coverage" instead of "-fprofile-arcs
7009 * The test harness now has the inmemory backend flagged as supporting
7010 user-specified metadata (apart from iteration over metadata keys).
7014 * If a query contains a MatchAll subquery, check for it before checking the
7015 other terms so that the loop which checks how many terms match can exit
7016 early if they all match.
7018 * When an OR or ANY_MAYBE decayed to an AND, we were carefully swapping the
7019 children for maximum efficiency, but the condition was reversed so we were
7020 in fact making things worse. This was noticed because it was resulting in
7021 the same query running faster when more results were asked for!
7023 * Only build the termname to termfreq and weight map for the first subdatabase
7024 instead of rebuilding it for each one. Also don't copy this map to return
7025 it. This should speed up searches a little, especially those over multiple
7028 * If a submatcher fails but ErrorHandler tells us to continue without it, we
7029 just use a NULL pointer to stand in rather than allocating a special dummy
7030 place-holder object.
7032 * Remove AndPostList, in favour of MultiAndPostList. AndPostList was only used
7033 as a decay product (by AndMaybePostList and OrPostList), and doesn't appear
7034 to be any faster. Removing it reduces CPU cache pressure, and is less code
7037 * Call check() instead of skip_to() on the optional branch of AND_MAYBE.
7041 * Fix a bug in TermIterator::skip_to() over metadata keys.
7045 * Fix xapian-tcpsrv --interface option to work on MacOS X (ticket#373).
7047 * Fix typo which caused us to return the docid instead of the maximum weight
7048 a document from a remote match could return! This could have led to wrong
7049 results when searching multiple databases with the remote backend, but
7050 probably usually didn't matter as with BM25 the weights are generally small
7051 (often all < 1) while docids are inevitably >= 1.
7055 * The inmemory backend doesn't support iterating over metadata keys. Trying
7056 to do so used to give an empty iteration, but has now been fixed to throw
7057 UnimplementedError (and this limitation has now been documented).
7061 * Remove a lot of unused header inclusions and some unused code which should
7062 make the build faster and slightly smaller.
7064 * Fix to compile under --disable-backend-flint, --disable-backend-remote, and
7065 --disable-backend-inmemory.
7067 * Don't remove any built sources in "make clean" even under
7068 --make-maintainer-mode as that breaks switching a tree away from
7069 maintainer-mode with: make distclean;./configure
7071 * configure: Enable more GCC warnings - "-Woverloaded-virtual" for all
7072 versions, "-Wstrict-null-sentinel" for 4.0+, "-Wlogical-op
7073 -Wmissing-declarations" for 4.3+. Notably "-Wmissing-declarations" caught
7074 that consistency2 wasn't being run.
7076 * Internally, fix the few places where we pass std::string by value to pass
7077 by const reference instead (except where we need a modifiable copy anyway) as
7078 benchmarking shows that const reference is slightly faster and generates
7079 less code with GCC's reference counted std::string implementation - with a
7080 non-reference counted implementation, const reference should be much faster.
7085 * INSTALL: We no longer regularly test build with GCC 2.95.4 and we're raising
7086 the minimum GCC version required to 3.1 for Xapian 1.1.x.
7088 * Document what passing maxitems=0 to Enquire::get_mset() does.
7090 * docs/queryparser.html: Add examples of using a prefix on a phrase or
7093 * Correct doxygen comments for user metadata functions:
7094 Database::get_metadata() can't throw UnimplementedError but
7095 WritableDatabase::set_metadata() can.
7097 * Document that Database::metadata_keys_begin() returns an end iterator if the
7098 backend doesn't support metadata.
7100 * HACKING: Update the list of Debian/Ubuntu packages needed for a development
7105 * Fix build with --enable-debug.
7107 * Added some more assertions.
7109 Xapian-core 1.0.12 (2009-04-19):
7113 * WritableDatabase::remove_spelling() now works properly.
7115 * The QueryParser now treats NON_SPACING_MARK Unicode characters as phrase
7116 generators, which improves handling of Arabic. This is a stop-gap solution
7117 for 1.0.x which will work with existing databases without requiring
7118 reindexing - in 1.1.0, NON_SPACING_MARK will be regarded as part of a word.
7121 * Fix undefined behaviour in distribution of OP_NEAR and OP_PHRASE over a
7122 non-leaf subquery (indentified by valgrind on testcase nearsubqueries1).
7125 * Enhance distribution of OP_NEAR/OP_PHRASE over non-leaf subqueries to work
7126 when there are multiple non-leaf subqueries (ticket#201).
7128 * Enquire::get_mset() no longer needlessly checks if the documents exist.
7130 * PostingIterator::get_description() output improved visually in some cases.
7134 * Add make targets to assist generating a testsuite code coverage report with
7135 lcov. See HACKING for details.
7137 * Improved test coverage in a number of places and removed some used code as
7138 shown by lcov's coverage report.
7144 + Now handles databases which contains no documents but have user metadata
7147 + Fix test for the total document length overflowing.
7149 * Release the database lock if the database is closed due to an unrecoverable
7150 error during modifications. (ticket#354)
7152 * If we fail to get the lock after we spawn the child lock process (the common
7153 case is because the database is already open for writing) then we now clean
7154 up the child process properly.
7158 * Overriding CXXFLAGS at make-time (e.g. "make CXXFLAGS=-Os") no longer
7159 overrides any flags configure detected to be required to make the compiler
7160 accept ISO C++ (for GCC, no such flags are required, so this doesn't
7165 * Update documentation and code comments to reflect that 1.1 will be a
7166 development series, and 1.2 the next release series.
7168 * docs/admin_notes.html: Document the child process used for locking which
7169 exec-s "cat" (ticket #258).
7171 * include/xapian/unicode.h: Fix documentation comment typos.
7173 * include/xapian/matchspy.h: Removed currently unused header to stop doxygen
7174 from generating documentation for it.
7176 Xapian-core 1.0.11 (2009-03-15):
7180 * Enquire::get_mset():
7182 + Now throws UnimplementedError if there's a percentage cutoff and sorting is
7183 primarily by value - this has never been correctly supported and it's
7184 better to warn people than give incorrect results.
7186 + No longer needlessly copies the results internally.
7188 + When searching multiple databases, now recalculates the maximum attainable
7189 weight after each database which may allow it to terminate earlier.
7192 + Fix inconsistent percentage scores when sorting primarily by value, except
7193 when a MatchDecider is also being used; document this remaining problem
7196 * Enquire::set_sort_by_value() (and similar methods): Rename the wrongly named
7197 "ascending" parameter to "reverse", and note that its value should always be
7198 explicitly given since defaulting to "reverse=true" is confusing and the
7199 default will be deprecated in 1.1.0. (ticket#311)
7201 * Database::allterms_begin(): Fix memory leak when iterating all terms from
7202 more than one database.
7204 * Query::get_terms_begin(): Don't return "" from the TermIterator (happened
7205 when the query contained or was Query::MatchAll).
7207 * Add QueryParser::FLAG_DEFAULT to make it easier to add flags to those set by
7212 * The testsuite now reports problems detected by valgrind with newer valgrind
7213 versions. Drop support for running the testsuite under valgrind < 3.3.0
7214 (well over a year old) as this greatly simplifies the configure tests.
7216 * Fix usage message for options which take arguments in --help output from test
7217 programs - "-x=foo" doesn't work, the correct syntax is "-x foo".
7219 * If comparing MSet percentages fails, report the differing percentages if in
7222 * Add test that backends don't truncate total document length to 32 bits.
7224 * Disable lockfileumask1 (regression testcase added in 1.0.10) on Cygwin and on
7229 * The configure test for pread() and pwrite() got accidentally disabled in
7230 0.8.4 and we've always been using llseek() followed by read() or write()
7231 since then. The configure test is now fixed, and gives a slight speedup
7232 (3% measured for searching).
7234 * The child process used to implement WritableDatabase locking now changes
7235 directory to / so that it doesn't block unmounting of any partitions and
7236 closes any open file descriptors which aren't relating to locking so that
7237 if those files are closed by our parent and deleted the disk space gets
7238 released right away.
7240 * We now reuse the same zlib zstream structures rather than using a fresh
7241 one for each operation. This doesn't make a measurable difference in
7242 our own tests on Linux but reportedly is measurably faster on some
7243 systems. (ticket #325)
7247 * The pread()/pwrite() fix also speeds up quartz.
7251 * Avoid copying Query::Internal objects needlessly when unserialising Query
7256 * Store the (non-normalised) document lengths as Xapian::termcount (unsigned
7257 int) rather than Xapian::doclength (double) which saves 4 bytes per document.
7261 * configure: The output of g++ --version changed format (again) with GCC 4.3
7262 which meant configure got "g++" for the version. Instead use the (hopefully)
7263 more robust technique of using g++ -E to pull out __GNUC__ and
7268 * API documentation:
7270 + WritableDatabase::flush() can't throw DatabaseLockError.
7272 + WritableDatabase's constructor can throw at least DatabaseCorruptError or
7275 + Document how to get all matches from Enquire::get_mset().
7277 + Other minor improvements.
7279 * docs/sorting.html: Clarify meaning.
7283 * Fix "#line" directives in generated file queryparser/queryparser_internal.cc
7284 to give a relative path - previously they had a full path when generated by a
7285 VPATH build (as release tarballs are), and this confused GCC 2.95 and
7288 * Fix for compiling with Sun's compiler (untested as we no longer have access
7291 Xapian-core 1.0.10 (2008-12-23):
7295 * Composing an OP_NEAR query with two non-term subqueries now throws
7296 UnimplementedError instead of AssertionError (in a --enable-assertions build)
7297 or leading to unexpected results (otherwise). This partly addresses bug#201.
7299 * Using a MultiValueSorter with no values set no longer causes a hang or
7300 segmentation fault (but it is still rather pointless!)
7304 * If we're using values for sorting and for another purpose, cache the
7305 Document::Internal object created to get the value for sorting, like we do
7310 * If the disk became full while flushing database changes to disk, the
7311 WritableDatabase object would throw a DatabaseError exception but be left in
7312 an inconsistent state such that further use could lead to the database on
7313 disk ending up in a "corrupt" state (theoretically fixable, but no tool
7314 to fix such a database exists). Now we try to ensure that the object is
7315 left in a consistent state, but if doing so throws a further exception, we
7316 put the WritableDatabase object in a "closed" state such that further
7317 attempts to use it throw an exception.
7319 * Create the lockfile "flintlock" with permissions 0666 so that the umask is
7320 honoured just like we do for the other files (previously we used 0600).
7321 Previously it wasn't possible to lock a database for update if it was
7322 owned by another user, even if you otherwise had sufficient permissions via
7325 * Fix garbled exception message when a base file can't be reread.
7329 * Fix garbled exception message when a base file can't be reread.
7333 * xapian-tcpsrv and xapian-progsrv now accept -w as a short form of --writable,
7334 as was always intended.
7338 * This release now uses newer versions of the autotools (autoconf 2.62 ->
7339 2.63; automake 1.10.1 -> 1.10.2).
7343 * INSTALL: Add new paragraphs about HP's aCC and IRIX (adapted from footnotes
7346 * PLATFORMS: HP testdrive has been shut down, so all mark all those machines as
7347 "no longer available". Update atreus' build report to 1.0.10.
7349 * docs/queryparser.html: Add link to valueranges.html.
7353 * delve: Add missing "and" to --help output. Report termfreq and collection
7354 freq for each term we're asked about.
7358 * Fix to build with GCC 4.4 snapshot.
7360 Xapian-core 1.0.9 (2008-10-31):
7364 * Database::get_spelling_suggestion() is now faster (15% speed up for parsing
7365 queries with FLAG_SPELLING_CORRECTION set in a test on real world data).
7367 * Fix OP_ELITE_SET segmentation fault due to excess floating point precision
7368 on x86 Linux (and possibly other platforms).
7370 * Database::allterms_begin() over multiple databases now gives a TermIterator
7371 with operations O(log(n)) rather than potentially O(n) in the number of
7374 * Add new Database methods metadata_keys_begin() and metadata_keys_end() to
7375 allow the complete list of metadata in a database to be retrieved (this
7376 API addition is needed so that copydatabase can copy database metadata).
7380 * Remove the cached test databases before running the testsuite.
7382 * apitest: Fix cursordelbug1 to work on Microsoft Windows (bug#301).
7384 * apitest,queryparsertest: Skip tests which fail because the timer granularity
7385 is too coarse to measure how long the test took. In practice, this is only
7386 an issue on Microsoft Windows (bug#300 and bug#308).
7390 * Adjust percent cutoff calculations in the matcher in a way which corresponds
7391 to the change to percentage calculations made in 1.0.7 to allow for excess
7394 * Query::MatchAll no longer gives match results ranked by increasing document
7399 * xapian-compact: Fix crash while compacting spelling table for a single
7400 database when built with MSVC, and probably other platforms, though Linux
7401 got lucky and happened to work (bug#305).
7405 * configure: Disable -Wconversion for now - it's not useful for older GCC and
7406 is buggy in GCC 4.3.
7408 * configure: Set -Wstrict-overflow to 1 instead of 5, to avoid unreasonable
7409 warnings under GCC 4.3.
7413 * Minor improvements to API documentation, including documenting the
7414 XAPIAN_FLUSH_THRESHOLD environmental variable in WriteableDatabase::flush()
7417 * valueranges.html: Fix typos in example code, and drop superfluous empty
7418 destructor from ValueRangeProcessor subclass.
7420 * HACKING: Several improvements.
7424 * copydatabase: Also copy user metadata.
7426 Xapian-core 1.0.8 (2008-09-04):
7430 * Fix output of RSet::get_description
7434 * Report subtotals per backend, rather than per testgroup per backend to make
7435 the output easier to read.
7439 * Fix WritableDatabase::add_document() and replace_document() not to be O(n*n)
7440 in the number of values in the new document.
7442 * Fix handling of a table created lazily after the database has had commits,
7443 and which is then cursored while still in sequential mode.
7445 * Fix failure to remove all the Btree entries in some cases when all the
7446 postings for a term are removed. (bug#287)
7448 * xapian-inspect: Show the help message on start-up. Correct the documented
7449 alias for next from ' ' to ''. Avoid reading outside of input string when it
7454 * Backport fix from flint for WritableDatabase::add_document() and
7455 replace_document() not to be O(n*n) in the number of values in the new
7460 * configure: Report bug report URL in --help output.
7462 * xapian-config: Report bug report URL in --help output.
7464 * configure: Fix deprecation error for --enable-debug=full to say to instead
7465 use '--enable-assertions --enable-log' not '--enable-debug --enable-log'.
7469 * valueranges.html: Expand on some sections.
7473 * quest: Fix to catch QueryParserError instead of const char * which
7474 QueryParser threw in Xapian < 1.0.0.
7476 * copydatabase: Use C++ forms of C headers. Only treat '\' as a directory
7477 separator on platforms where it is. Update counter every 13 counting up to
7478 the end so that the digits all "rotate" and the counter ends up on the exact
7483 * Eliminate literal top-bit-set characters in testsuite source code.
7485 Xapian-core 1.0.7 (2008-07-15):
7489 * OP_VALUE_RANGE, OP_VALUE_GE, and OP_VALUE_LE:
7491 + If there were gaps in the document id numbering, these operators could
7492 return document ids which weren't present in the database. This has been
7495 + These operators are now more efficient when there are a lot of "missing"
7496 document ids (bug#270).
7498 + Optimise Query(OP_VALUE_GE, <n>, "") to Query::MatchAll.
7500 * Xapian::QueryParser:
7502 + QueryParser now stops parsing immediately when it hits a syntax error.
7503 This doesn't change behaviour, but does mean failing to parse queries is
7506 + Cases of O(N*N) behaviour have been fixed.
7508 * Xapian::Stem now recognises "nl" as an alias for "dutch" (debian bug 484458).
7510 * Setting sort by value was being ignored by a Xapian::Enquire object which had
7511 previously had a Xapian::Sorter set (bug#256).
7515 * Improved test coverage in a few places.
7519 * When using a MatchDecider, we weren't reducing matches_lower_bound unless
7520 all the potential results were retrieved, which led to the lower bound
7521 being too high in some such cases.
7523 * We now track how many documents were tested by a MatchDecider and how many
7524 of those it rejected, and set matches_estimated based on this rate. Also,
7525 matches_upper_bound is reduced by the number of rejected documents.
7527 * Fixed matches_upper_bound in some cases when collapsing and using a
7530 * Fixed matches_lower_bound when collapsing and using a percentage cutoff.
7532 * When using two or more of a MatchDecider, collapsing, or a percentage
7533 cutoff, we now only round the scaled estimate once, and we also round it to
7534 the nearest rather than always rounding down. Hopefully this should
7535 improve the estimate a little in such cases.
7537 * Fix problem on x86 with the top match getting 99% rather than 100% (caused
7538 by excess precision in an intermediate value).
7542 * If Database::reopen() is called and the database revision on disk hasn't
7543 changed, then do as little work as possible. Even if it has changed, don't
7544 bother to recheck the version file (bug#261).
7548 + Fix check for user metadata key to not match other key types we may add in
7549 the future. When compacting, we can't assume how we should handle them.
7551 + If the same user metadata key is present in more than one source database
7552 with different tag values, issue a warning and copy an arbitrary tag value.
7554 + Fix potential SEGV when compacting database(s) with user metadata but no
7557 + In error message, refer to "iamflint" as the "version file", not the
7562 + Print top-bit-set characters as escaped hex forms as they often won't be
7563 valid UTF-8 sequences.
7565 + If we're passed a database directory rather than a single table, issue a
7566 special error message since this is an obvious mistake for users to make.
7568 * Fix cursor handling for a modified table which has previously only had
7569 sequential updates which usually manifested as zlib errors (bug#259).
7573 * Fix cursor handling for a modified table which has previously only had
7574 sequential updates which usually manifested as incorrect data being returned
7577 * Calling skip_to() as the first operation on an all-documents PostingIterator
7578 now works correctly.
7582 * Improve performance of matches with multiple databases at least one of which
7583 is remote, and when the top hit is from a remote database (bug#279).
7585 * When remote protocol version doesn't match, the error message displayed
7586 now shows the minor version number supplied by the server correctly.
7588 * We now wait for the connection to close after sending MSG_SHUTDOWN for a
7589 WritableDatabase, which ensures that changes have been written to disk
7590 and the lock released before the WritableDatabase destructor returns
7591 (as is the case with a local database).
7593 * We no longer ever send MSG_SHUTDOWN for a read-only Database - just closing
7594 the connection is enough (and is protocol compatible).
7598 * Fix bug which resulted in the values not being stored correctly when
7599 replacing an existing document, or if there are gaps in the document id
7604 * This release now uses newer versions of the autotools (autoconf 2.61 ->
7605 2.62; automake 1.10 -> 1.10.1; libtool 1.5.24 -> 1.5.26). The newer
7606 autoconf reportedly results in a faster configure script, and warns about
7607 use of unrecognised configure options.
7609 * Fix configure to recognise --enable-log=profile and fix build problems when
7612 * "make up" in the "tests" subdirectory now does "make" in the top-level.
7614 * Fix "make distcheck" by using dist-hook to install generated files from
7615 either srcdir or builddir, with the appropriate dependency to generate them
7616 automatically in maintainer mode builds.
7620 * intro_ir.html: Improve wording a bit.
7622 * The documentation now links to trac instead of bugzilla. For links to the
7623 main website, we now prefer xapian.org to www.xapian.org.
7625 * Doxygen-generated API documentation:
7627 + Improved documentation in several places.
7629 + The helper macro XAPIAN_VISIBILITY_DEFAULT no longer appears in the output.
7631 + Header and directory relationship graphs are no longer generated as they
7632 aren't actually informative here.
7634 * HACKING: Numerous updates and improvements.
7638 * quest: Output get_description() of the parsed query.
7642 * Fix build with GCC 2.95.3.
7644 * Fix build with GCC 4.3.
7646 * Newer libtool features improved support for Mac OS X Leopard and added
7647 support for AIX 6.1.
7651 * Database::get_spelling_suggestion() now debug logs with category APICALL
7652 rather than SPELLING, for consistency with all other API methods.
7654 * Added APICALL logging to a few Database methods which didn't have it.
7656 * Remove debug log tracing from get_description() methods since logging for
7657 other methods calls get_description() methods on parameters, so logging these
7658 calls just makes for more confusing debug logs. A get_description() method
7659 should have no side-effects so it's not very interesting even when explicitly
7662 Xapian-core 1.0.6 (2008-03-17):
7666 * Add new query operators OP_VALUE_LE and OP_VALUE_GE which perform "single
7667 ended" range checks, and a corresponding new Query constructor.
7669 * Add Unicode::toupper() to complement Unicode::tolower().
7671 * Xapian::Stem has been further optimised - stemtest now runs ~2.5% faster.
7675 * tests/runtest: Fixed to handle test programs with a ".exe" extension.
7677 * tests/queryparsertest: Add a couple more testcases which already work to
7678 improve test coverage.
7680 * tests/apitest: Add caseconvert1 testcase to test Unicode::tolower() and
7685 * xapian-check: Fix not to report an error for a database containing no
7686 postings but some user metadata.
7688 * Update the base files atomically to avoid problems with reading processes
7689 finding partially written ones.
7691 * Create lazy tables with the correct revision to avoid producing a database
7692 which we later report as "corrupt" (bug#232).
7694 * xapian-compact: Fix compaction for databases which contain user metadata
7699 * Update the base files atomically to avoid problems with reading processes
7700 finding partially written ones.
7704 * The addition of OP_VALUE_LE and OP_VALUE_GE required an update to the Query
7705 serialisation, which required a minor remote protocol version bump.
7707 * Fix to actually set the writing half as the connection as non-blocking when
7708 a timeout is specified. This would have prevented timeouts from operating
7709 correctly in some situations.
7713 * configure: GCC warning flag overhaul: Stop passing "-Wno-multichar" since
7714 any multi-character character literal is bound to be a typo (I believe we
7715 were only passing it after misinterpreting its sense!) Pass
7716 "-Wformat-security", and "-Wconversion" for all GCC versions. Add
7717 "-Winit-self" and "-Wstrict-overflow=5" for GCC >= 4.2. The latter might
7718 prove too aggressive, but seems reasonable so far. Fix some minor niggles
7719 revealed by "-Wconversion" and "-Wstrict-overflow=5".
7721 * Add XAPIAN_NORETURN() annotations to functions and non-virtual methods which
7726 * docs/intro_ir.html: Briefly mention how pure boolean retrieval is supported.
7728 * docs/valueranges.html: Fix example of using multiple VRPs to come out as a
7731 * include/xapian/queryparser.h: Fix incorrect example in doccomment.
7733 * docs/quickstart.html: Remove information covered by INSTALL since
7734 there's no good reason to repeat it and two copies just risks one
7735 getting out of date (as has happened here!)
7737 * docs/quickstart.html: Fix very out of date reference to MSet::items
7740 * PLATFORMS: Remove reports for 0.8.x as they're too old to be interesting.
7741 Separate out 0.9.x reports. Add Solaris 9 and 10 success reports from James
7742 Aylett. Update from Debian buildd logs.
7746 * Now builds on OS/2, thanks to a patch by Yuri Dario.
7748 * Fix testsuite to build on mingw (broken by changes in 1.0.5).
7752 * Fix --enable-assertions build, broken by changes in 1.0.5.
7754 Xapian-core 1.0.5 (2007-12-21):
7758 * More sophisticated sorting of results is now possible by defining a
7759 functor subclassing Xapian::Sorter (bug#100).
7761 * Xapian::Enquire now provides a public copy constructor and assignment
7764 * Xapian::Document::values_begin() didn't ensure that values had been read
7765 when working on a Document read from a database. However, values_end() did
7766 (and so did values_count()) so this wasn't generally a problem in practice.
7768 * Xapian::PostingIterator::skip_to() now works correctly when running over
7771 * Xapian::Database::postlist_begin() no longer adds a "MultiPostList" wrapper
7772 for the common case when there's only one subdatabase.
7774 * Xapian::TradWeight now avoids division by zero in the (rare) situation of the
7775 average document length being zero (which can only happen if all documents
7776 are empty or only have terms with wdf 0).
7778 * Calling Xapian::WritableDatabase methods when we don't have exactly one
7779 subdatabase now throws InvalidOperationError.
7785 + Testcases now describe the conditions they need to run, and are
7786 automatically collated by a Perl script. This makes it significantly
7787 easier to add a new testcase.
7789 + The test harness's "BackendManager" has been overhauled to allow
7790 cleaner implementations of testcases which are currently hard to
7791 write cleanly, and to make it easier to add new backend settings.
7793 + Add a "multi" backend setting which runs suitable tests over two
7794 subdatabases combined. There's a corresponding new make target
7797 + Add more feature tests of document values.
7799 + sortrel1 now runs for inmemory too.
7801 + Add simple feature test for TradWeight being used to run a query.
7803 + Fix spell3 to work on Microsoft Windows (bug#177).
7805 + API classes are now tested to check they have copy constructors and
7806 assignment operators, and also that most have a default constructor.
7808 + quartztest testcases adddoc2 and adddoc3 have been reworked as apitest
7809 testcases adddoc5 and adddoc6, which run for other backends.
7811 + stubdb1 now explicitly creates the database it needs - generally this
7812 bug didn't manifest because an earlier test has already created it.
7814 * queryparsertest: Add feature tests to check that ':' is being inserted
7815 between prefix and term when it should be.
7817 * Fix extracting of valgrind error messages in the test harness.
7819 * tests/valgrind.supp: Add more variants of the zlib suppressions.
7823 * Xapian::Enquire: When the "first" parameter to get_mset() is non-zero, avoid
7824 copying all the wanted items after performing the match.
7826 * Fix bug in handling a pure boolean match over more than one database under
7827 set_docid_order(ASCENDING) - we used to exit early which isn't correct.
7829 * When collapsing on a value, give a better lower bound on the number of
7830 matches by keeping track of the number of empty collapse values seen.
7832 * Xapian::BM25Weight: Fix bug when k2 is non-zero: a non-initialised value
7833 influenced the weight calculations. By default k2 is zero, so this bug
7834 probably won't have affected most users.
7836 * The mechanism used to collate term statistics across multiple databases has
7837 been greatly simplified (bug#45).
7843 + Update to handle flint databases produced by Xapian 1.0.3 and later.
7845 + Fix not to go into an infinite loop if certain checks fail.
7849 * quartzcompact: Fix equality testing of C strings to use strcmp() rather than
7850 '=='! In practice, using '==' often gives the desired effect due to pooling
7851 of constant strings, but this may have resulted in a bug on some platforms.
7855 * If we're doing a match with only one database which is remote then just
7856 return the unserialised MSet from the remote match. This requires an
7857 update to the MSet serialisation, which requires a minor remote protocol
7862 * XO_LIB_XAPIAN now hooks LT_INIT as well as AC_PROG_LIBTOOL and
7865 * Distribute preautoreconf, dir_contents, docs/dir_contents and
7868 * Fix preautoreconf to correctly handle all the sources passed to doxygen to
7869 create the collated internal source documentation, and to work in a VPATH
7874 * sorting.html: New document on the topic of sorting match results.
7876 * HACKING,admin_notes.html,bm25.html,glossary.html,intro_ir.html,overview.html,
7877 quickstart.html,scalability.html,termgenerator,html,synonyms.html: Assorted
7880 * valueranges.html: State explicitly that Xapian::sortable_serialise() is used
7881 to encode values at index time, and give an example of how it is called.
7883 * API documentation:
7885 + Clarify get_wdf() versus get_termfreq().
7887 + We now use pngcrush to reduce the size of PNG files in the HTML version.
7889 + The HTML version no longer includes various intermediate files which doxygen
7892 + Hide the v102 namespace from Doxygen as it isn't user visible.
7894 + Stop describing get_description() as an "Introspection method", as this
7895 doesn't help to explain what it does, and get_description() doesn't really
7896 fall under common formal definitions of "introspection".
7898 * index.html: Add a list of documents on particular topics and include links to
7899 previously unlinked-to documents. Weed down the top navigation bar which had
7900 grown to unwieldy length.
7902 * PLATFORMS: Update for Debian buildds.
7904 * Improve documentation comment for Document::termlist_count().
7906 * admin_notes.html: Note that this document is up-to-date for 1.0.5.
7908 * INSTALL: zlib 1.2.0 apparently fixes a memory leak in deflateInit2(), which
7909 we use, so that's another reason to prefer 1.2.x.
7913 * Add explicit includes of C headers needed to build with the latest snapshots
7914 of GCC 4.3. Fix new warnings.
7916 * xapian-config: On platforms which we know don't need explicit dependencies,
7917 --ltlibs now gives the same output as --libs.
7919 * The minimum supported GCC version is now 2.95.3 (rather than 2.95) as 2.95.3
7920 added support for '#include <sstream>' which means we no longer need to
7921 maintain our own version.
7923 * Fix build with SGI's compiler on IRIX.
7925 * Fix or suppress some MSVC warnings.
7929 * Remove incorrect assertion in MultiAndPostList (bug#209).
7931 * Fix build when configured with "--enable-log --disable-assertions".
7933 Xapian-core 1.0.4 (2007-10-30):
7939 + Add OP_SCALE_WEIGHT operator (and a corresponding constructor which
7940 takes a single subquery and a parameter of type "double"). This
7941 multiplies the weights from the subquery by the parameter, allowing
7942 adjustment of the importance of parts of the query tree.
7944 + Deprecate the essentially useless constructor Query(Query::op, Query).
7948 + A field prefix can now be set to expand to more than one term prefix.
7949 Similarly, multiple term prefixes can now be applied by default. This is
7950 done by calling QueryParser::add_boolean_prefix() or
7951 QueryParser::add_prefix() more than once with the same field name but a
7952 different term prefix (previously subsequent calls with the same field name
7955 + Trying to set the same field as probabilistic and boolean now throws
7956 InvalidOperationError.
7958 + Fix parsing of `term1 site:example.org term2', broken by changes in 1.0.2.
7960 + Drop special treatment for unmatched ')' at the start of the query, as it
7961 seems rather arbitrary and not particularly useful and was causing us to
7962 parse `(site:example.org) -term' incorrectly.
7964 + The QueryParser now generates pure boolean Query objects for strings such
7965 as `site:example.org' by applying OP_SCALE_WEIGHT with a factor of 0.0.
7967 + Fix handling of `"quoted phrase" +term' and `"quoted phrase" -term'.
7969 + Fix handling of `site:example.org -term'.
7971 + Fix problem with spelling correction of hyphenated terms (or other terms
7972 joined with phrase generators): the position of the start of the term
7973 wasn't being reset for the second term in the generated phrase, resulting
7974 in out of bounds errors when substituting the new value in the corrected
7977 + The parser stack is now a std::vector<> rather than a fixed size, so it
7978 will typically use less memory, and can't hit the fixed limit.
7980 + Fix handling of STEM_ALL and update the documentation comment for
7981 QueryParser::set_stemming_strategy() to explain how it works clearly.
7983 * PostingIterator: positionlist_begin() and get_wdf() should now always
7984 throw InvalidOperationError where they aren't meaningful (before in some
7985 cases UnimplementedError was thrown).
7989 * Add tests for new features.
7991 * Add another valgrind suppression for a slightly different error from zlib
7994 * Remove quartztest's test_postlist1 and test_postlist2, replacing the coverage
7995 lost by extending and adding tests which work with other backends as well.
7997 * If a test throws a subclass of std::exception, the test harness now
7998 reports the class name and the extra information returned by std::exception's
8003 * Several performance improvements have been made, mainly to the handling
8004 of OP_AND and related operations (OP_FILTER, OP_NEAR, and OP_PHRASE).
8005 In combination, these are likely to speed up searching significantly
8006 for most users - in tests on real world data we've seen savings of 15-55%
8007 in search times). These improvements are:
8009 + OP_AND of 3 or more sub-queries is now processed more efficiently.
8011 + Sub-queries from adjacent OP_AND, OP_FILTER, OP_NEAR, and OP_PHRASE are now
8012 combined into a single multi-way OP_AND operation, and the filters which
8013 implement the near/phrase restrictions are hoisted above this so they need
8014 to check fewer documents (bug#23).
8016 + If an OP_OR or OP_AND_MAYBE decays to OP_AND, we now ensure that the less
8017 frequent sub-query is on the left, which OP_AND is optimised to expect.
8019 * When the Enquire::get_mset() parameter checkatleast is set, and we're sorting
8020 by relevance with forward ordering by docid, and the query is pure boolean,
8021 the matcher was deciding it was done before the checkatleast requirement was
8022 satisfied. Then the adjustments made to the estimated and max statistics
8023 based on checkatleast meant the results claimed there were exactly msize
8024 results. This bug has now been fixed.
8026 * Queries involving an OP_VALUE_RANGE filter now run around 3.5 times faster
8029 * The calculations behind MSet::get_matches_estimated() were always rounding
8030 down fractions, but now round to the nearest integer. Due to cumulative
8031 rounding, this could mean that the estimate is now a few documents higher in
8032 some cases (and hopefully a better estimate).
8034 * Implement explicit swap() methods for internal classes MSetItem and ESetItem
8035 which should make the final sort of the MSet and ESet a little more
8040 * Fixed a bug introduced in 1.0.3 - trying to open a flint database for reading
8041 no longer fails if it isn't writable.
8043 * We no longer use member function pointers in the Btree implementation which
8044 seems to speed up searching a little.
8048 * The remote protocol minor version has been increased (to accommodate
8049 OP_SCALE_WEIGHT). If you are upgrading a live system which uses the
8050 remote backend, upgrade the servers before the clients.
8054 * Added macro machinery to allow branch prediction hints to be specified and
8055 used by compilers which support this (current GCC and Intel C++).
8057 * In a developer build, look for rst2html.py if rst2html isn't found as some
8058 Linux distros have it installed under with an extension.
8062 * In the API documentation, explicitly note that Database::get_metadata()
8063 returns an empty string when the backend doesn't support user-specified
8064 metadata, and that WritableDatabase::set_metadata() throws UnimplementedError
8065 in this case. Also describe the current behaviour with multidatabases.
8067 * README: Remove the ancient history lesson - this material is better left to
8068 the history page on the website.
8072 + Deprecate the non-pythonic iterators in favour of the pythonic ones.
8074 + Move "Stem::stem_word(word)" in the bindings to the right section (it was
8075 done in 1.0.0, as already indicated).
8077 + Improve formatting.
8079 * When running rst2html, using "--verbose" was causing "info" messages to be
8080 included in the HTML output, so drop this option and really fix this issue
8081 (which was thought to have been fixed by changes in 1.0.3).
8083 * install.html: Reworked - this document now concentrates on giving
8084 a brief overview of building which should be suitable for most common cases,
8085 and defers to the INSTALL document in each tarball for more details.
8087 * PLATFORMS: Update from tinderbox and buildbot.
8089 * remote.html: xapian-tcpsrv has been able to handle concurrent read
8090 access since 0.3.1 (7 years ago) so update the very out-of-date information
8091 here. Also, note that some newer features aren't supported by the remote
8094 * HACKING: Note specifically that std::list::size() is O(n) for GCC.
8096 * intro_ir.html: Add link to the forthcoming book "Introduction to
8097 Information Retrieval", which can be read online.
8099 * scalability.html: Update size of gmane.
8101 * quartzdesign.html: Note that Quartz is now deprecated.
8105 * The debug assertion code has been rewritten from scratch to be cleaner and
8106 pull in fewer other headers.
8108 Xapian-core 1.0.3 (2007-09-28):
8112 * Add support for user specified metadata (bug#143). Currently supported by
8113 the flint and inmemory backends.
8115 * Deprecate Enquire::register_match_decider() which has always been a no-op.
8117 * Improve the lower bound on the number of matching documents for an AND query
8118 - if the sum of the lower bounds for the two sides is greater than the
8119 number of documents in the database, then some of them must have both terms.
8121 * Spelling correction: Fix off-by-one error in loop bounds when initialising
8124 * If the check_at_least parameter to Enquire::get_mset() is used, but there
8125 aren't that many results, then MSet::get_matches_lower_bound() and
8126 MSet::get_matches_upper_bound() weren't always reported as equal - this
8129 * When sorting by value, and using the check_at_least parameter to
8130 Enquire::get_mset(), some potential matches weren't being counted.
8132 * Failing to create a flint or quartz database because we couldn't create the
8133 directory for it now throws DatabaseCreateError not DatabaseOpeningError.
8137 * Fix display of valgrind output when a test fails because valgrind detected
8140 * Add another version of valgrind suppression for the zlib end condition check
8141 as this gives a different backtrace for zlib in Ubuntu gutsy.
8145 * The Flint database format has been extended to support user metadata, and
8146 each termlist entry is now a byte shorter (before compression). As a
8147 result, Xapian 1.0.2 and earlier won't be able to read Xapian 1.0.3
8148 databases. However, Xapian 1.0.3 can read older databases. If you open an
8149 older flint database for writing with Xapian 1.0.3, it will be upgraded
8150 such that it cannot then be read by Xapian 1.0.2 and earlier.
8152 * Zlib compression wasn't being used for the spelling or synonym tables (due
8153 to a typo - Z_DEFAULT_COMPRESSION where it should be Z_DEFAULT_STRATEGY).
8155 * xapian-check: Allow "db/record." and "db/record.DB" as arguments.
8157 * Fix "key too long" exception message by substituting FLINT_BTREE_MAX_KEY_LEN
8158 with its numeric value.
8160 * Assorted minor efficiency improvements.
8162 * If we reach the flush threshold during a transaction, we now write out the
8163 postlist changes, but don't actually commit them.
8165 * Check length of new terms is at most 245 bytes for flint in add_document()
8166 and replace_document() so that the API user gets an error there rather
8167 than when flush() is called (explicitly or implicitly). Fixes bug#44.
8169 * Flint used to read the value of the environmental variable
8170 XAPIAN_FLUSH_THRESHOLD when the first WritableDatabase was opened and would
8171 then cache this value. However the program using Xapian may have changed
8172 it, so we now reread it each time a WritableDatabase is opened.
8174 * Implement TermIterator::positionlist_count() for the flint backend.
8178 * Fix the result of MSet::get_matches_lower_bound() when using the
8179 check_at_least parameter to get_mset().
8183 * Implement TermIterator::positionlist_count() for the inmemory backend.
8187 * xapian-config: We always need to include dependency_libs in the output of
8188 `xapian-config --libs` if shared libraries are disabled.
8190 * Distribution tarballs are now in the POSIX "ustar" format. This supports
8191 pathnames longer than 99 characters (which we now have a few instances of
8192 in the doxygen generated documentation) and also results in a distribution
8193 tarball that is about half the size! This format should be readable by any
8194 tar program in current use - if your tar program doesn't support it, we'd
8195 like to know (but note that the GNU tar tarball is smaller than the size
8196 reduction in the xapian-core tarball...)
8198 * configure no longer generates msvc/version.h - this is now entirely handled
8199 by the MSVC-specific makefiles.
8205 * docs/stemming.html: Reorder the initial paragraphs so we actually answer the
8206 question "What is a stemming algorithm?" up front.
8208 * When running rst2html, use "--exit-status=warning" rather than "--strict".
8209 The former actually gives a non-zero exit status for a warning or worse,
8210 while the former doesn't, but does include any "info" messages in the output
8213 * docs/deprecation.rst: Add "Database::positionlist_begin() throwing
8214 RangeError and DocNotFoundError".
8216 * valueranges.rst: Correct out-of-date reference to float_to_string.
8218 * HACKING: Document a few more "coding standards".
8220 * PLATFORMS: Updated.
8222 * docs/overview.html: Restore HTML header accidentally deleted in November
8225 * Fix several typos.
8229 * Add missing instances of "#include <string.h>" to fix compilation with recent
8232 * Fix some warnings for various compilers and platforms.
8234 Xapian-core 1.0.2 (2007-07-05):
8238 * Xapian now offers spelling correction, based on a dynamically maintained
8239 list of spelling "target" words. This is currently supported by the
8240 flint backend, and works when searching multiple databases.
8242 * Xapian now offers search-time synonym expansion, based on an externally
8243 provided synonym dictionary. This is currently supported by the flint
8244 backend, and works when searching multiple databases.
8246 * TermGenerator: now offers support for generating spelling correction
8251 + New flag FLAG_SPELLING_CORRECTION to enable spelling correction, and a new
8252 method, "get_corrected_query_string()" to get the spelling corrected
8255 + New flags have been added to allow the new synonym expansion feature to be
8256 enabled and controlled. Synonym expansion can either be automatic, or only
8257 for terms explicitly indicated in the query string by the new "~" operator.
8259 + The precedence of the boolean operators has been adjusted to match their
8260 usual precedence in mathematics and programming languages. "NOT" now binds
8261 as tightly as "AND" (previously "AND NOT" would bind like "AND", but just
8262 "NOT" would bind like "OR"!) Also "XOR" now binds more tightly than "OR",
8263 but less tightly than "AND" (previously it bound just like "OR").
8265 + '+' and '-' have been fixed to work on bracketed subexpressions as
8268 + If the stemmer is "none", no longer put a Z prefix on terms; this now
8269 matches the output of TermGenerator.
8271 * Add new Xapian::sortable_serialise() and Xapian::sortable_unserialise()
8272 functions which serialise and unserialise numbers (currently only
8273 doubles) to a string representation which sorts in numeric order. Small
8274 integers have a short representation.
8276 * NumberValueRangeProcessor has been changed to work usefully. Previously
8277 the numbers had to be the same length; now numbers are serialised to
8278 strings such that a string sort on the string orders the numbers correctly.
8279 Negative and floating point numbers are also supported now. The old
8280 NumberValueRangeProcessor is still present in the library to preserve
8281 ABI compatibility, but code linking against 1.0.2 or later will pick
8282 up the new implementation, which really lives in a sub-namespace.
8284 * Documents now have a get_docid() method, to get the document ID from the
8285 database they came from.
8287 * Add support for a new type of match decider, called a "matchspy". Unlike
8288 the old deciders, this will reliably be tested on every candidate
8289 document, so can be used to tally statistics on them.
8291 * Fixed a segfault when getting a description for a MatchNothing query
8292 joined with AND_NOT (bug #176).
8294 * Header files have been tidied up to remove some unnecessary includes.
8295 Applications using "#include <xapian.h>" will not be affected. We don't
8296 intend to support direct inclusion of individual header files from the xapian
8297 directory, but if you do that, you may have to update you code.
8301 * Feature tests added for all new features.
8303 * Improved test coverage in queryparsertest. Some tests in queryparsertest
8304 now use flint databases, so the test now ensures that the .flint
8305 subdirectory exists.
8307 * The test harness no longer creates <dbdir>/log for flint (flint doesn't
8308 create a log like quartz does).
8310 * apitest: "-bremote" must now be "-bremoteprog" (to better match
8311 "-bremotetcp"); "-bvoid" must now be "-bnone" (to better describe not
8312 using a database backend).
8314 * To complement "make check-flint", "make check-quartz", and "make
8315 check-remote", you can now run tests for the remotetcp backend with
8316 "make check-remotetcp", for the remoteprog backend with "make
8317 check-remoteprog", for the inmemory backend with "make check-inmemory", and
8318 tests not requiring a backend with "make check-none".
8320 * Several extra tests of the check_at_least parameter supplied to
8321 get_mset() were added.
8323 * Fix memory leak and fd leak in remotetcp handling, so apitest now passes
8326 * quartztest: no longer test QuartzPostList::get_collection_freq(), which
8329 * Add regression test emptyquery2 for bug #176.
8331 * Add regression test matchall1 for bug with MatchAll queries.
8333 * Enhanced test coverage of match functor, to check that it returns all
8338 * Fix bug when check_at_least was supplied - the matches after the
8339 requested MSet size were being returned to the user. The parameter is
8340 also now handled in a more efficient way - no extra memory is required
8341 (previously, extra memory proportional to the value of check_at_least was
8344 * Fix bug which used incorrect statistics, and caused assertion failures,
8345 when performing a search using a MatchAll query.
8347 * Optimisation for single term queries: we don't need to look at the top
8348 document's termlist to determine that it matches all the query terms.
8352 * The value and position tables are now only created if there is anything to
8353 add to them. So if you never use document values, there's no value.DB,
8354 value.baseA, or value.baseB. This means the table doesn't need to be opened
8355 for searching (saving a file handle and a number of syscalls) and when
8356 flushing changes, we don't need to update baseA/baseB just to keep the
8357 revisions in step. The flint database version has been increased, but the
8358 new code will happily open and read/update flint databases from Xapian 1.0.0
8359 and 1.0.1. Xapian 1.0.2 flint databases can't be read by Xapian 1.0.1 or
8362 * Two new optional tables are now supported: "spelling", which is used to
8363 store information for spelling correction, and "synonym", which is used
8364 to store synonym information.
8366 * xapian-compact: Now compacts and merges spelling and synonym tables.
8367 Also has a new option "--no-renumber" to preserve document ids from
8370 * xapian-check: Now checks the spelling and synonym tables (only the Btree
8371 structure is currently checked, not the information inside).
8373 * Database::term_exists(), Database::get_termfreq(), and
8374 Database::get_collection_freq() are now slightly more efficient for flint
8377 * New utility 'xapian-inspect' which allowing interactive inspection of key/tag
8378 pairs in a flint Btree. Useful for development and debugging, and an
8379 approximate equivalent to quartzdump.
8381 * WritableDatabase::delete_document() no longer cancels pending changes if the
8382 document doesn't exist.
8384 * Fix handling of exceptions during commit - previously, this could result
8385 in tables getting out-of-sync, perhaps even resulting in a corrupt database.
8387 * Optimise iteration of all documents in the case where all the document
8388 IDs up to lastdocid are used; in this case, we no longer need to access disk
8389 to get the document IDs.
8393 * WritableDatabase::delete_document() no longer cancels pending changes if the
8394 document doesn't exist.
8396 * We no longer create a postlist just to find the termfreq or collection
8401 * Calling WritableDatabase::delete_document() on a non-existent document now
8402 correctly propagates DocNotFoundError.
8404 * The minor remote protocol version has increased (to fix the previous issue).
8405 You should be able to cleanly upgrade a live system by upgrading servers
8406 first and then clients.
8408 * progclient: Reopen stderr on the child process to /dev/null rather than
8409 closing it. This fixes apitest with the remoteprog backend to pass when run
8410 under valgrind (it failed in this case in 1.0.0 and 1.0.1). It probably
8411 has no effect otherwise.
8413 * check_at_least is now passed to the remote server to reduce the work
8414 needed to produce the match, and the serialised size of the returned MSet.
8418 * Bug fix: using replace_document() to add a document with a specific
8419 document id above the highest currently used would create empty documents
8420 for all document ids in between.
8424 * Work around an apparent bug in automake which causes the entries in .libs
8425 subdirectories generated for targets of bin_PROGRAMS not to be removed on
8426 make clean. This was causing make distcheck to fail.
8428 * Snapshots and releases are now bootstrapped with automake 1.10, and
8431 * HTML documentation generated from RST files is now installed.
8435 * The API documentation is now generated with Doxygen 1.5.2, which fixes the
8436 missing docs for Xapian::Query.
8438 * Ship and install internals.html.
8440 * Generating the doxygen-collated documentation of the library internals (with
8441 "make doxygen_source_docs") now only tries to generate an HTML version. The
8442 PDF version kept exceeding TeX limits, and HTML is a more useful format for
8445 * API docs for Xapian::QueryParser now make it clear that the default value for
8446 the stemming strategy is STEM_NONE.
8448 * API docs now describe the NumberValueRangeProcessor more clearly.
8450 * Several typo fixes and assorted wording improvements.
8452 * queryparser.html: Mention "AND NOT" as an alternative way to write "NOT",
8453 and document synonym expansion.
8455 * admin_notes.html: Updated for changes in this release, and corrected a
8458 * spelling.rst: New file, documenting the spelling correction feature.
8460 * synonyms.rst: New file, documenting the synonyms expansion feature.
8462 * valueranges.rst: The NumberValueRangeProcessor is now documented.
8464 * HACKING: Mention new libtool, and more details about preferring
8465 pre-increment. Also add a note about 2 space indentation of protection
8466 level declarations in classes.
8468 * INSTALL: note that zlib must be installed before you can build.
8472 * copydatabase: Now copies synonym and spelling data. Also, fix a cosmetic
8473 bug with progress output when a specified database directory has a trailing
8478 * Fix to build on with OpenBSD's zlib (xapian-core 1.0.0 and 1.0.1 didn't).
8480 * Fixed to build with older zlib such as zlib 1.1.5 which Solaris apparently
8481 uses (xapian-core 1.0.0 and 1.0.1 didn't). However, we recommend using zlib
8482 1.2.x as decompressing is apparently about 20% faster.
8484 * msvc/version.h.in: Generated version.h for MSVC build no longer has the
8485 remote backend marked as disabled.
8487 * Fix warnings from Intel's C++ compiler.
8489 * Fixes for compilation with gcc-2.95 and GCC 4.3 snapshots.
8495 + Rename xapian.spec to xapian-core.spec to match tarball name.
8497 + Append the user name to BuildRoot.
8501 * Better debug logging from the queryparser internals.
8503 Xapian-core 1.0.1 (2007-06-11):
8509 + Make Error::error_string member std::string rather than char * to avoid
8510 problems with double free() with copied Error objects. Unfortunately
8511 this mean an incompatible ABI change which we had hoped to avoid until
8512 1.1.0, but in this case there didn't seem to be a sane way to fix the
8513 problem without an ABI change.
8515 + Error::get_description() now converts my_errno to error_string if it hasn't
8516 been already rather than not including any error description in this case.
8518 + Add new method "get_description()" to get a string describing the error
8519 object. This is used in various examples and scripts, improving their
8522 * Xapian::Database: Add new form of allterms_begin() and allterms_end()
8523 which allow iterating of all terms with a particular prefix. This
8524 is easier to use than checking the end condition yourself, and is
8525 more efficiently implemented for the remote backend (fixes bug#153).
8527 * Xapian::Enquire: Passing an uninitialised Database object to Enquire will
8528 now cause InvalidArgumentError to be thrown, rather than causing a segfault
8529 when you call Enquire::get_mset(). If you really want an empty database,
8530 you can use Xapian::InMemory::open() to create one.
8532 * Xapian::QueryParser: Multiple boolean prefixed terms with the same term
8533 prefix are now combined with OR before such groups are combined with AND
8534 (bug#157). Multiple value ranges on the same value are handled similarly.
8536 * Xapian::Query OP_VALUE_RANGE: Avoid calling db->get_lastdocid() repeatedly
8537 as we know the answer won't change - this reduces the run time of a
8538 particular test case by 25%.
8542 * Add test for serialisation of error strings.
8544 * Improved output in various situations:
8546 + Quote strings in TEST_STRINGS_EQUAL().
8548 + queryparsertest: Use TEST_STRINGS_EQUAL when comparing query descriptions
8549 against their expected output, since this makes it much easier to see the
8552 + Report whole message for exceptions, rather than a truncated version, in
8555 + Make use of Xapian::Error::get_description(), giving better error
8558 * queryparsertest: New test of custom ValueRangeProcessor subclass
8559 (qp_value_customrange1).
8561 * apitest: flintdatabaseformaterror1 and flintdatabaseformaterror2 now use a
8562 genuine Xapian 0.9.9 flint database for their tests, and more cases are
8563 tested. The two tests have also been split into 3 now.
8565 * Fix test harness not to invoke undefined behaviour in cases where a paragraph
8566 of test data contains two or fewer characters.
8568 * Implement a better fix for the MSVC ifstream issue which was fixed in 1.0.0.
8569 This fixes an unintentional side-effect of the previous fix which meant that
8570 apitest's consistency1 wasn't working as intended (it now has a regression
8571 test to make sure it is testing what we intend).
8575 * xapian-compact: Don't uncompress and recompress tags when compacting a
8576 database. This speeds up xapian-compact rather a lot (by more than 50% in a
8579 * If the docid counter wraps, Flint now throws DatabaseError (fixes bug#152).
8581 * Remove the special case error message for pre-0.6 databases since they'll
8582 be quartz format (the check is only in flint because this code was taken from
8587 * If the docid counter wraps, Quartz now throws DatabaseError (fixes bug#152).
8591 * The remote protocol now has a minor version number. If the major
8592 version number is the same, a client can work with any server with
8593 the same or higher minor version number, which makes upgrading live
8594 systems easier for most remote protocol changes - just upgrade the servers
8597 * When a read-only remote database is closed, the client no longer sends a
8598 (totally bogus) MSG_FLUSH to the server, and the reply is also eliminated.
8599 This reduces the time taken to close a remote database a little (fixes
8604 * skip_to() on an allterms TermIterator from an InMemory Database can no longer
8607 * An allterms TermIterator now initialises lazily, which can save some work if
8608 the first operation is a skip_to() (as it often will be).
8612 * Fix VPATH compilation in maintainer mode with gcc-2.95.
8614 * Fix multiple target rule for generating the queryparser source files in
8617 * Distribute missing stub Makefiles for "bin", "examples", and
8622 * Document the design flaw with NumberValueRangeProcessor and why it shouldn't
8625 * ValueRangeProcessor and subclasses now have API documentation and an overview
8628 * Expand documentation of value range Query constructor.
8630 * Improved API documentation for the TermGenerator class.
8632 * docs/deprecation.rst:
8634 + Fix copy and paste error - set_sort_forward() should be changed to
8637 + Improve entry for QueryParserError.
8639 * PLATFORMS: Updated from tinderbox.
8643 * copydatabase: Rewritten to use the ability to iterate over all the documents
8644 in a database. Should be much more efficient for databases with sparsely
8645 distributed document IDs.
8647 * simpleindex: Rewritten to use the TermGenerator class, which eliminates a
8648 lot of non-Xapian related code and is more typical of what a user is likely
8651 * simplesearch,simpleexpand: Rewritten to use the QueryParser class, which
8652 is more typical of what a user is likely to want to do.
8656 * xapian-config: Add special case check for host_os matching linux* or
8657 k*bsd-gnu since vanilla libtool doesn't correctly probe link_all_deplibs=no
8662 * RPMs: Add "# norootforbuild" comment which SuSE's build scripts look for.
8663 Rename "Source0:" to "Source:" as there's only one tarball now. Add gcc-c++
8664 and zlib-devel to "Build-Requires:".
8666 * The required automake version has been lowered to 1.8.3, so RPMs can now be
8667 built on RHEL 4 and SLES 9.
8669 Xapian-core 1.0.0 (2007-05-17):
8675 + The Database(const std::string &) constructor has been marked as "explicit".
8676 Hopefully this won't affect real code, but it's possible. Instead of
8677 passing a std::string where a Xapian::Database is expected, you'll now
8678 have to explicitly write `Xapian::Database(path)' instead of `path'.
8680 + Fixed problem when calling skip_to() on an allterms iterator over multiple
8681 databases which could cause a debug assertion in debug builds, and possible
8682 misbehaviour in normal builds.
8686 + The constructors of Error subclasses which take a `const std::string &'
8687 parameter are now explicit. This is very unlikely to affect any real code
8688 but if it does, just write `Xapian::Error(msg)' instead of `msg'.
8690 + Xapian::Error::get_type() now returns const char* rather than std::string.
8691 Generally existing code will just work (only one change was required in
8692 Xapian itself) - the simplest change is to write `std::string(e.get_type())'
8693 instead of `e.get_type()'.
8695 + Previously, the errno value was lost when an error was propagated from
8696 a remote server to the client, because errno values aren't portable
8697 between platforms. To fix this, Error::get_errno() is now deprecated and
8698 you should use Error::get_error_string() instead, which returns a string
8699 expanded from the errno value (or other system error code).
8701 * Xapian::QueryParser:
8703 + Now assumes input text is encoded as UTF-8.
8705 + We've made several changes to term generation strategy. Most notably:
8706 Unicode support has been added; '_' now counts as a word character; numbers
8707 and version numbers are now parsed as a single term; single apostrophes are
8708 now included in a term; we now store unstemmed forms of all terms; and we
8709 no longer try to "normalise" accents.
8711 + parse_query() now throws the new Xapian::Error subclass QueryParserError
8712 instead of throwing const char * (bug#101).
8714 + Pure NOT queries are now supported (for example, `NOT apples' will match
8715 all documents not indexed by the stemmed form of `apples'). You need
8716 to enable this feature by passing QueryParser::FLAG_PURE_NOT in flags
8717 to QueryParser::parse_query().
8719 + We now clear the stoplist when we parse a new query.
8721 + Queries such as `+foo* bar', where no terms in the database match the
8722 wildcard `foo*', now match no documents, even if `bar' exists. Handling
8723 of `-foo*' has also been fixed.
8725 + Now supports wildcarding the last term of a query to provide better support
8726 for incremental searching. Enabled by QueryParser::FLAG_PARTIAL.
8728 + The default prefix can now be specified to parse_query() to allow parsing
8729 of text entry boxes for particular fields.
8731 + QueryParser::set_stemming_options() has been deprecated since 0.9.0 and
8732 has now been removed.
8736 + Now assumes input text is encoded as UTF-8.
8738 + We've updated to the latest version of the Snowball stemmers. This means
8739 that a small number of words produce different (and generally better)
8740 stems and that some new stemmers are supported: german2 (like german but
8741 normalises umlauts), hungarian, kraaij_pohlmann (a different Dutch
8742 stemmer), romanian, and turkish.
8744 * Xapian::TermGenerator:
8746 + New class which generates terms from a piece of text.
8750 + The Enquire(const Database &) constructor has been marked as "explicit".
8751 This probably won't affect real code - certainly no Xapian API methods
8752 or functions take an Enquire object as a parameter - but calls to user
8753 methods or functions taking an Enquire object could be affected. In
8754 such cases, you'll now have to explicitly write `Xapian::Enquire(db)'
8757 + Enquire::get_eset() now produces better results when used with multiple
8758 databases - without USE_EXACT_TERMFREQ they should be much more similar to
8759 results from an equivalent single database; with USE_EXACT_TERMFREQ they
8760 should be identical.
8762 + Track the minimum weight required to be considered for the MSet separately
8763 from the minimum item which could be considered. Trying to combine the two
8764 caused several subtle bugs (bug#86).
8766 + Enquire::get_query() is now `const'. Should have no effect on user code.
8768 + Enquire::get_mset() now handles the common case of an "exact" phrase search
8769 (where the window size is equal to the number of terms) specially.
8771 + Enquire::include_query_terms and Enquire::use_exact_termfreq are now
8772 deprecated in favour of capitalised versions Enquire::INCLUDE_QUERY_TERMS
8773 and Enquire::USE_EXACT_TERMFREQ (for consistency with our other manifest
8774 constants, and general C/C++ conventions).
8778 + RSet::contains(MSetIterator) is now `const'. Should have no effect on user
8781 * Xapian::SimpleStopper::add() now takes `const std::string &' not `const
8782 std::string'. Should have no effect on user code.
8786 + We now only perform internal validation on a Query object when it's either
8787 constructed or changed, to avoid O(n^2) behaviour in some cases.
8789 + Xapian::Query::MatchAll (an alias for Query("")) matches all terms in the
8790 document (useful for "pure NOT" queries) and Xapian::Query:MatchNothing
8791 is now a more memorable alias for Query().
8793 * Instead of explicitly checking that a term exists before opening its
8794 postlist, we now do both in one operation, which is more efficient.
8796 * MatchDecider::operator() now returns `bool' not `int'.
8798 * ExpandDecider::operator() now returns `bool' not `int'.
8800 * Xapian::TermIterator::get_termfreq() now throws InvalidOperationError
8801 if called on a TermIterator from a freshly created Document (since
8802 there's no meaningful term frequency as there's no Database for
8805 * <xapian/output.h> is no longer available as an externally visible header.
8806 It's not been included by <xapian.h> since 0.7.0. Instead of using
8807 `cout << obj;' use `cout << obj.get_description();'.
8809 * New constant Xapian::BAD_VALUENO which is -1 cast to Xapian::valueno.
8811 * New Xapian::ValueRangeProcessor hierarchy: DateValueRangeProcessor,
8812 NumberValueRangeProcessor, and StringValueRangeProcessor. In
8813 conjunction with the new QueryParser::add_valuerangeprocessor()
8814 method and the new Query::OP_VALUE_RANGE op these allow you to
8815 implement ranges in the query parser, such as `$50..100',
8816 `10..20kg', `01/02/2007..03/04/2007'.
8820 * Many new and improved testcases in various areas.
8822 * If a test throws an unknown exception, say so in the test failure message.
8823 If it throws std::string, report the first 40 characters (or first line if
8824 less than 40 characters) of the string even in non-verbose mode.
8826 * Use of valgrind improved:
8828 + The test harness now only hooks into valgrind if environment variable
8829 XAPIAN_TESTSUITE_VALGRIND is set, which makes it easy to run test programs
8830 under valgrind in the normal way. The runtest script sets this
8833 + runtest now passes "--leak-resolution=high" to valgrind to prevent
8834 unrelated leak reports related to STL classes from being combined.
8836 + configure tests for valgrind improved and streamlined.
8838 + New runsrv script to run xapian-tcpsrv and xapian-progsrv. We need to
8839 run these under valgrind to avoid issues with excess numerical precision
8840 in valgrind's FP handling, but we can use "--tool=none" which is a lot
8841 faster than running them under valgrind's default memcheck tool.
8843 * The test harness now starts xapian-tcpsrv in a more reliable way - it will
8844 try sequentially higher port numbers, rather than failing because a
8845 xapian-tcpsrv (or something else) is already using the default port.
8846 It also no longer leaks file descriptors (which was causing later tests
8847 to fail on some platforms), and if xapian-tcpsrv fails to start, the error
8848 message is now reported.
8850 * remotetest has been removed and its testcases have either been added to
8851 apitest or just removed if redundant with tests already in apitest.
8853 * termgentest is a new test program which tests the Xapian::TermGenerator
8856 * TEST_EQUAL_DOUBLE() now uses a slightly less stringent threshold -
8857 DBL_EPSILON is too strict for calculations which include multiple
8858 steps. Also, we now use it instead of doubles_are_equal_enough() and
8859 weights_are_equal_enough() which try to perform the same job.
8861 * New macro TEST_STRINGS_EQUAL() which displays the strings on separate lines
8862 so the differences can be clearly seen.
8864 * Test programs are now linked with '-no-install' which means that libtool
8865 doesn't need to generate shell script wrappers for them on most platforms.
8867 * runtest: Now turns on MALLOC_CHECK_ and MALLOC_PERTURB_ for glibc if
8868 valgrind isn't being used.
8870 * Better support for Microsoft Windows:
8872 + test_emptyterm2 no longer tries to delete a database from disk while a
8873 WritableDatabase object still exists for it, since this isn't supported
8874 under Microsoft Windows.
8876 + Fallback handling when srcdir isn't specified how takes into account .exe
8877 extensions and different path separators.
8881 * Flint is now the default backend.
8883 * xapian-check: New program which performs consistency checks on a flint
8886 * xapian-compact: Now prunes unused docids off the start of each source
8887 database's range of docids.
8889 * Positional information is now encoded using a highly optimised fls()
8890 implementation, which is much faster than the FP code 0.9.x used.
8891 Unfortunately the old encoding could occasionally add extra bits
8892 on some architectures, which was harmless except the databases
8893 wouldn't be portable. Because of this, the flint format has had to
8894 be changed incompatibly.
8896 * The lock file is now called "flintlock" rather than "flicklock" (which
8899 * Flint now releases its lock correctly if there's an error in
8900 WritableDatabase's constructor. Previously the lock would remain until
8903 * Flint now throws new Xapian::Error subclass DatabaseVersionError instead of
8904 DatabaseOpeningError when it fails to open a database because it has an
8905 unsupported version. DatabaseVersionError is a subclass of
8906 DatabaseOpeningError so existing code should continue to work, but it's
8907 now much easier to determine if the problem is that a database needs
8910 * If you try to open a flint database with an older or newer version than
8911 flint understands, the exception message now gives the version understood,
8912 rather than "I only understand FLINT_VERSION" (literally).
8914 * If we fail to obtain the lock, report why in the exception message.
8916 * Flint now compresses tags in the record and termlist tables using zlib.
8918 * More robust code to handle the flint locking child process, in case of
8921 * If a document was replaced more than once between flushes, the document
8922 length wouldn't be updated after the first change.
8926 * Quartz is still supported, but use in new projects is deprecated (use Flint
8927 instead). Quartz will be removed eventually.
8929 * quartzcheck: Test if this is a quartz database by looking at "meta" not
8930 "record_DB". If "record_DB" is >= 2GB and we don't have a LFS aware stat
8931 function then stat can fail even though the file is there. Also open the
8932 database explicitly as a Quartz database for extra robustness.
8934 * If a document was replaced more than once between flushes, the document
8935 length wouldn't be updated after the first change.
8939 * The remote backend is now supported under Microsoft Windows.
8941 * Open a fresh copy of the database(s) on each connection to a xapian-tcpsrv
8942 rather than relying on being able to share a database across fork() or
8943 between threads (which we don't promise will work).
8945 * xapian-tcpsrv: New "--interface" option allows the hostname or address of the
8946 interface to listen on to be specified (the default is the previous behaviour
8947 of listening on all interfaces).
8949 * If name lookup fails, report the h_errno code from gethostbyname() rather
8950 than whatever value errno happens to currently have!
8952 * Fix bugs in query unserialisation.
8954 * The remote backend now supports all operations (get_lastdocid(), and
8955 postlist_begin() have now been implemented).
8957 * Currently a read-only server can be opened as a WritableDatabase (which is
8958 a minor bug we plan to fix). In this case, operations which write will fail
8959 and the exception is now InvalidOperationError not NetworkError.
8961 * If a remote server catches NetworkTimeoutError then it will now only
8962 propagate it if we can send it right away (since the connection is
8963 probably unhappy). After that (and for any other NetworkError) we now
8964 just rethrow it locally to close the connection and let it be logged if
8967 * The timeout parameter to RemoteDatabase wasn't being used, instead the
8968 client would wait indefinitely for the server to respond.
8970 * A timeout of zero to the remote backend now means "never timeout". This
8971 is now the default idle timeout for WritableDatabase (the connection
8972 timeout default is now 10 seconds, rather than defaulting to the idle
8975 * Fix handling of the document length in remote termlists.
8977 * The remote backend now checks when decoding serialised string that the
8978 length isn't more than the amount of data available (bug#117).
8980 * The remote backend now handles the unique term variants of delete_document
8981 and replace_document on the server side.
8983 * The RSet serialisation now encodes deltas between docids (rather than the
8984 docids themselves) which greatly reduces the size of the encoding of a
8985 sparse RSet for a large database.
8987 * We now encode deltas between term positions when sending data after calling
8988 positionlist_begin() on a remote database.
8990 * When using a MatchDecider with remote database(s), don't rerun the
8991 MatchDecider on documents which a remote server has already checked.
8993 * Apply the "decreasing weights with remote database" optimisation which we use
8994 in the sort_by_relevance case in the sort_by_relevance_then_value case too.
8996 * We now throw NetworkError rather than InternalError for invalid data received
8997 over the remote protocol.
8999 * We now close stderr of the spawned backend program when using the "prog" form
9000 of the remote backend. Previously stderr output would go to the client
9001 application's stderr.
9005 * Support for the old Muscat 3.6 backends has been completely removed. It's
9006 still possible to convert Muscat 3.6 databases to Xapian databases by
9007 building 0.9.10 and using copydatabase to create a quartz database, which can
9008 then be read by 1.0.0 (and converted to a flint database using copydatabase
9013 * We've added GCC visibility annotations to the library, which when using GCC
9014 version 4.0 or later reduce the size and load time of the library and
9015 increase the runtime speed a little. Under x86_64, the stripped library is
9016 6.4% smaller (1.5% smaller with debug information).
9018 * configure: If using GCC, use -Bsymbolic-functions if it is supported
9019 (it requires a very recent version of ld currently). This option reduces the
9020 size and load time of the shared library by resolving references within the
9021 library when it's created.
9023 * We automatically define _FORTIFY_SOURCE in config.h if GCC is in use
9024 and it's not already set (you can override this as documented in INSTALL).
9025 This adds some checking (mostly at compile time) that important return
9026 values aren't ignored and that array bounds aren't exceeded.
9028 * `./configure --enable-quiet' already allows you to specify at configure time
9029 to pass `--quiet' to libtool. Now you can override this at make-time by
9030 using `make QUIET=' (to turn off `--quiet') or `make QUIET=y' (to turn on
9033 * In non-maintainer mode, we don't need the tools required to rebuild some of
9034 the documentation, so speed up configure by not even probing for them in
9037 * The makefiles now use non-recursive make in all directories except "docs" and
9038 "tests". For users, this means that the build is faster and requires less
9039 disk space (bug#97).
9041 * configure: Add proper detection for SGI's C++ (check stderr output of
9042 "CC -v") and automatically pass -ptused in CXXFLAGS for xapian-core and any
9043 applications using xapian-config --cxxflags since it seems to be required to
9044 avoid template linking errors.
9046 * XO_LIB_XAPIAN now checks for the case where XAPIAN_CONFIG wasn't specified
9047 and xapian-config wasn't found, but the library appears to be installed -
9048 this almost certainly means that the user has installed xapian-core from
9049 a package, but hasn't installed the -dev or -devel package, so include
9050 that advice in the error message.
9052 * `./configure --with-stlport-compiler' now requires a compiler name as an
9055 * configure: Disable probes for f77, gcj, and rc completely by preventing
9056 the probe code from even appearing in configure - this reduces the size of
9057 configure by 209KB (~25%) and should speed it up significantly.
9059 * configure: Suppress more unhelpful warnings and "remarks" for HP's aCC, and
9060 turn on "+wlint", which seems useful.
9062 * A number of cases of unnecessary header inclusions have been addressed,
9063 which should speed up compilation (fewer headers to parse when compiling
9064 many source files). This also reduces dependencies within the source code,
9065 and thus the number of files which need to be rebuilt when a header is
9068 * configure: Cache the results of some of our custom tests.
9072 * The documentation has all been updated for changes in Xapian 1.0.0.
9074 * Many of the documentation comments in the API headers (which are collated
9075 using doxygen to generated the API reference) have been improved, and some
9076 missing ones added. Also, internal classes, members, and methods are now all
9077 marked as such so that none should appear in the generated documentation. In
9078 particular, the class inheritance graphs should be a lot clearer. A few other
9079 problems have also been addressed.
9081 * docs/internals.html: New separate index page for the "internal"
9084 * docs/deprecated.html: New document describing deprecation policy. This
9085 includes lists of features which have been removed, or which are deprecated
9086 and scheduled for removal, along with suggested replacements.
9088 * docs/admin_notes.html: New document introducing Xapian for sysadmins.
9090 * docs/termgenerator.html: New document describing the new term generation
9091 strategy implemented by the Term::Generator class.
9093 * docs/bm25.html,docs/intro_ir.html: These have been overhauled to make them
9094 fit better with the rest of the documentation, and with Xapian itself.
9096 * docs/overview.html: Fixed links to error classes in generated API
9099 * HACKING,INSTALL: Many updates and improvements.
9101 * xapian-config: Improve --version output so that help2man produces a better
9104 * PLATFORMS: Remove reports for 0.7.* and demote reports for 0.8.* to "older
9105 reports" status. All SF compilefarm machines are now "no longer available",
9106 so update the symbols and key to reflect this. Update with recent success
9107 reports from the tinderbox and other sources.
9109 * AUTHORS: Thanks several bug reporters I missed before, as well as recent
9112 * docs/code_structure.html now looks nicer and includes links to
9115 * docs/remote_protocol.html: Fixed several typos and other errors, and document
9116 all the new messages.
9118 * We no longer include docs/apidoc/latex/* in the xapian-core tarballs since
9119 it's just useless bloat.
9125 + Report the exception error string if open a database fails.
9127 + Rename "-k" to "-V" since "keys" were renamed to "values" long ago. Keep
9128 "-k" as an alias for now, but don't advertise it. Add handling so "-V3"
9129 shows value #3 for every document in the database.
9131 + No longer stems terms by default. Add "-s/--stemmer" option to allow a
9132 stemmer to be specified.
9134 * quest: Add "--stemmer" option to allow stemming language to be set, or
9135 stemming to be disabled.
9139 * Fix compilation with GCC 4.3 snapshot.
9141 * Always use pid_t not int for holding a process id, and use AC_TYPE_PID_T to
9142 `#define pid_t int' if <sys/types.h> doesn't provide pid_t.
9144 * Pass the 4th parameter of setsockopt() as char* which works whether the
9145 function actually takes char* or void* (since C++ allows implicit conversion
9146 from char* to void*).
9148 * Most warnings in the MSVC build have been fixed.
9150 * Refactored most portability workarounds into safeXXXX.h headers.
9152 * Building for mingw in a cygwin environment should work better now.
9158 + Updated for the changes in this release.
9160 + ChangeLog.examples is now packaged.
9164 * Rename --enable-debug* configure options - conflating the options to "turn on
9165 assertions" and "turn on logging" is confusing. `--enable-debug[=partial]'
9166 becomes `--enable-assertions'; `--enable-debug-verbose' becomes
9167 `--enable-log' and `--enable-debug=full' becomes `--enable-assertions
9168 --enable-log'. For now the old options give an error telling you the new
9171 * Debug logging from expand is now all of type EXPAND (some was of types
9172 MATCHER and WTCALC before).
9174 * Hook the debug tracing in the lemon generated parser into Xapian's debug
9177 * New assertion types: AssertEqParanoid() and AssertNeParanoid().
9179 * Retry write() if it fails when writing a debug log entry to ensure to avoid
9180 the risk of a partial write.
9182 Xapian-core 0.9.10 (2007-03-04):
9186 * Fix WritableDatabase::replace_document() not to lose positional information
9187 for a document if it is replaced with itself with unmodified postings.
9189 * QueryParser: Add entries to the "unstem" map for prefixed boolean filters
9192 * Fix inconsistent ordering of documents between pages with
9193 Enquire::set_sort_by_value_then_relevance (fixes bug#110).
9197 * Workaround apparent bug in MSVC's ifstream class.
9199 flint and quartz backends:
9201 * Fix possible double-free after a transaction fails.
9203 * Fix code for recovering from failing to open a table for reading
9204 mid-modification. If modifications are so frequent that opening for reading
9205 fails 100 times in a row, throw DatabaseModifiedError not
9206 DatabaseOpeningError.
9208 * Don't call std::string::append(ptr, 0) when ptr may be uninitialised
9209 or NULL (rather suspect, and reported to cause SEGV-like behaviour with
9212 * Ensure both_bases is set to false if we don't have both bases when
9213 opening a table using an existing object.
9215 * Use MS Windows API calls to delete files and open files we might want to
9216 delete while they are still open (i.e. the flint and quartz btree base
9217 files). This fixes a problem when a writer can't discard an old revision at
9218 the exact moment a reader is opening it (bug #108).
9222 * Fix WritableDatabase::has_positions() to refetch the cached value if it
9223 might be out of date.
9225 * Fix incorrect serialisation of a query with non-default termpositions.
9229 * If replace_document is used to set the docid of a newly added document which
9230 has previously existed, ensure we mark that document as valid.
9234 * Assorted improvements to API documentation.
9236 * docs/Makefile.am: The larger pool_size we set in 0.9.9 for building
9237 sourcedoc.pdf was a bit marginal, so increase it further.
9239 * docs/stemming.html,docs/install.html: Correct 2 references to "CVS" to say
9242 * HACKING: Update the release checklist.
9246 * Fix flint and quartz to allow 2GB+ B-tree tables when compiling with MSVC.
9250 * RPMs: Remove "." from end of "Summary:". Package the new man page for
9253 Xapian-core 0.9.9 (2006-11-09):
9257 * Use popen() to run xapian-tcpsrv and wait for "Listening..." before returning
9258 rather than just sleeping for 1 second and hoping that's enough.
9260 * If we can't start xapian-tcpsrv because the port is in use, try higher
9265 * xapian-tcpsrv: If the port requested is in use, exit with code 69
9266 (EX_UNAVAILABLE) which is useful if you're trying to automate launching of
9267 xapian-tcpsrv instances.
9269 * xapian-tcpsrv: Output "Listening..." once the socket is open and read for
9270 connections (this allows the testsuite to wait until xapian-tcpsrv is ready
9271 before connecting to it).
9273 * xapian-progsrv: Now supports --help, --version, and has a man page. Fixes
9276 * Turn on TCP_NODELAY for the TCP variant of the remote backend which
9277 dramatically improves the latency of operations on the database.
9281 * internaltest: Disable serialiselength1 and serialisedoc1 when the remote
9282 backend is disabled to fix build error in this case.
9284 * Move libbtreecheck.la from testsuite/ to backends/quartz/.
9286 * Move the testsuite harness from testsuite/ to tests/harness/.
9290 * Ship our custom INSTALL file rather than the generic one from autoconf which
9291 we've accidentally been shipping instead since 0.9.5.
9293 * docs/Makefile.am: Building sourcedoc.pdf needs a larger pool_size now we're
9296 * HACKING: Update debian packaging checklist.
9298 * PLATFORMS: Updated with results from tinderbox.
9302 * Create "safefcntl.h" as a replacement for <fcntl.h> instead of using
9303 "utils.h" for this purpose, since "utils.h" pulls in many other things we
9308 * RPMs: Prevent binaries getting an rpath for /usr/lib64 on FC6.
9310 Xapian-core 0.9.8 (2006-11-02):
9314 * QueryParser: Don't require a prefixed boolean term to start with an
9315 alphanumeric - allow the same set of characters as we do for the second
9316 and subsequent characters.
9320 * Only force a flush on WritableDatabase::allterms_begin() if there are
9321 actually pending changes.
9325 * Only force a flush on WritableDatabase::allterms_begin() if there are
9326 actually pending changes.
9328 * quartzcheck: Avoid dying because of an unhandled exception if the Btree
9329 checking code finds an error in the low-level Btree structure. Add a
9330 catch for any other unknown exceptions.
9334 * When building with GCC, turn on warning flag -Wshadow even when not in
9335 maintainer mode (provided it is supported by the GCC version being used).
9337 * testsuite/backendmanager.cc: Fix compilation when valgrind is detected by
9340 * If generating apidoc.pdf fails, display the logfile pdflatex generates since
9341 that is likely to show what failed.
9345 * Produce a PDF for apidoc rather than PostScript, since the PDF is smaller,
9346 plus at least as easy to print and easier to view for most users. Use
9347 pdflatex to generate the PDF directly rather than going via a DVI file which
9348 apparently produces a better result and also avoids problems on some Linux
9349 distros where latex is a symlink to pdfelatex (bug#81, bug#95).
9351 * HACKING: Mention automake 1.10 is out but we've not tested it yet.
9353 * HACKING: Add entries to release checklist: make sure new API methods
9354 are wrapped by the bindings, and that bug submitters are thanked.
9356 * HACKING: Note that on Debian, tetex-extra is needed for
9359 * HACKING: Note that dch can be used to update debian/changelog.
9361 * docs/code_structure.html: Document backends/remote.
9363 * PLATFORMS: Update from tinderbox.
9367 * configure: When checking if we need -lm, don't use a constant argument to
9368 log() as the compiler might simply evaluate the whole expression at compile
9371 * configure: Redhat's GCC 2.96 doesn't support -Wundef even though real GCC
9372 version before and after it do!
9374 * configure: Avoid use of double quotes in double-quoted backticks since
9375 it causes problems on some platforms.
9377 * backends/flint/flint_io.cc: Fix compilation on windows (needs to
9378 #include "safewindows.h" to get definition of SSIZE_T).
9380 * Fix our implementation of om_ostringstream to compile so that the build
9381 works once more on older compilers without <sstream> (regression probably
9382 introduced in 0.9.7).
9386 * xapian.spec: Package xapian-progsrv.
9388 Xapian-core 0.9.7 (2006-10-10):
9394 + Allow a distance to be optionally specified for NEAR - e.g.
9395 "cats NEAR/3 dogs" (bug#92).
9397 + Implement "ADJ" operator - like "NEAR" except the terms must
9398 appear in matching documents in the same order as in the query.
9400 + Fix bug in how we handle prefixed quoted phrases and prefixed brackets.
9402 + Fix parsing of loved and hated prefixed phrases and bracketted expressions.
9404 + Fix handling of stopwords in boolean expressions.
9406 + Don't ignore a stopword if it's the only query term.
9408 * Document::add_value() failed to replace an existing value with the same
9409 number, contrary to what the documentation says (bug #82).
9411 * Enquire::set_sort_by_value(): Don't fetch the document data when fetching
9412 the value to sort on. Simple benchmarking showed this to speed up sort by
9413 value by a factor of between 3 and 9!
9415 * Implement transactions for flint and quartz. Also supported are "unflushed"
9416 transactions, which provided an efficient way to atomically group a number
9417 of database modifications.
9419 * The Xapian::Error and Xapian::ErrorHandler classes have been reimplemented.
9420 The new versions have better, clearer documentation comments and are cleaner
9423 * Change how doubles are serialised by TradWeight, BM25Weight, and in the
9424 remote backend protocol. The new encoding allows us to transfer any double
9425 value which can be represented by both machines precisely and compactly.
9429 * Add targets "check-flint", "check-quartz", and "check-remote" in tests and at
9430 the top level which run the subset of tests which test the respective backend.
9432 * apitest: Run tests on flint if flint is enabled, rather than if quartz is
9435 * apitest: Speed up deldoc4 when run in verbose mode - some stringstream
9436 implementations are very inefficient when the string grows long.
9438 * Turn on GLIBCXX_FORCE_NEW when running tests under valgrind to stop the GNU
9439 C++ STL from using a pooling allocator. This helps make velgrind's leak
9440 tracking more reliable.
9442 * Probe for required valgrind logging options at configure time rather than
9443 when running the test program. This saves about 2 seconds per test program
9446 * Fix testsuite harness to show valgrind output when a test fails (when running
9447 under valgrind in verbose mode). This had stopped working, probably due to
9448 changes in valgrind 3.
9450 * internaltest: Check that the destructor on a temporary object gets called
9451 at the correct time (Sun C++ deliberately gets this wrong by default, and it
9452 would be good to catch any other compilers which do the same).
9454 * apitest: When running tests on the remote backend and running under valgrind,
9455 run xapian-tcpsrv and xapian-progsrv under valgrind too to avoid issues
9456 with the precision of doubles (bug#94).
9460 * Retry on EINTR from fcntl or waitpid when creating or releasing the flint
9463 * xapian-compact: Add --blocksize option to allow the blocksize to be set
9464 (default is 8K as before.)
9466 * WritableDatabase::replace_document(did, doc) was double-incrementing the
9467 "changes" counter when document did didn't exist so it would flush twice
9470 * WritableDatabase::postlist_begin(): Remove forced flush when iterating the
9471 posting list of a term which has modified postings pending.
9475 * quartzcompact: Add --blocksize option to allow the blocksize to be set
9476 (default is 8K as before.)
9478 * WritableDatabase::replace_document(did, doc) was double-incrementing the
9479 "changes" counter when document did didn't exist so it would flush twice
9484 * Most of the remote backend has been rewritten. It now supports most
9485 operations which a local database does (including writing!), the protocol
9486 used is more compact, and a number of layers of classes have been eliminated
9487 and the sequences of method calls simplified, so the code should be easier to
9488 understand and maintain despite doing more. A number of bugs have been fixed
9491 * xapian-tcpsrv: Report errno if we catch a Xapian::Error which has it set.
9493 * xapian-tcpsrv: Fix memory leak in query unserialisation.
9497 * Now using autoconf 2.60 for snapshots and releases. Also now using a
9498 libtool patch which improves support for Sun C++'s -library=stlport4 option.
9500 * configure: Fix generation of version.h to work with Solaris sed.
9502 * automake adds suitable rules for rebuilding doxygen_api_conf and
9503 doxygen_source_conf, so remove our less accurate versions. Also fix
9504 dependencies for regenerating the doxygen documentation, and make the
9505 documentation build work with parallel make.
9507 * Make use of the dist_ prefix to avoid having to list files in EXTRA_DIST as
9508 well as in *_DATA and man_MANS.
9510 * Removed a few unused #include-s.
9512 * include/xapian/error.h: Add hook to allow SWIG bindings to be built using
9513 GCC's visibility support.
9515 * configure: Turn on automake's -Wportability to help ensure our Makefile.am's
9516 are written in a portable way.
9518 * configure: Disable probing and short-cut tests for a FORTRAN compiler. We
9519 don't use one, but current libtool versions always check for it regardless.
9521 * xapian-config: Prune -L/usr/lib from output of `xapian-config --libs'.
9525 * docs/scalability.html: quartzcompact and xapian-compact now allow you to set
9526 the blocksize, so there's no need to use copydatabase if you want to migrate
9527 a database to a larger blocksize. Mention gmane. Other minor tweaks.
9529 * Eliminate "XAPIAN_DEPRECATED" from generated documentation.
9531 * PLATFORMS: Added success report for Nexenta (alpha 5), MSVC, and sparc linux.
9532 Updated other results from tinderbox.
9534 * Add links to the wiki from README and the documentation index.
9536 * docs/overview.html: Add discussion of uses of terms vs values.
9538 * docs/overview.html: Rewrite the section on Xapian::Document to remove some
9539 very out-of-date information and make it clearer.
9541 * include/xapian/database.h: Note that automatically allocated document IDs
9542 don't reuse IDs from deleted documents.
9544 * include/xapian/enquire.h: Note that "set_sort_by_relevance" is the default
9547 * docs/queryparser.html,include/xapian/queryparser.h: Add note that
9548 FLAG_WILDCARD requires you to call set_database.
9550 * HACKING: Add some advice regarding debugging using -D_GLIBCXX_DEBUG,
9553 * HACKING: Give URL to Alexandre Duret-Lutz's autotools tutorial, which is much
9554 more up-to-date than the "goat book".
9556 * HACKING: Update and expand the information about the debian packaging.
9558 * Add missing dir_contents files.
9562 * xapian/version.h: Add a check that _GLIBCXX_DEBUG is set compatibly if we're
9563 compiling with GNU C++ 3.4 or newer.
9565 * Add configure check to see if "-lm" is needed to get maths functions since
9566 newer versions of Sun's C++ compiler seem to require this.
9568 * Automatically put Sun's C++ compiler into "ANSI C++ compliant library" mode
9569 (using -library=stlport4). This allows us to remove most of the special
9570 case bits of code we've accumulated for just this compiler, which improves
9573 * Sun's C++ compiler implements non-standards-conforming lifetimes for
9574 temporary objects by default. This means database locks don't get released
9575 when they should, so we now always pass "-features=tmplife" for Sun C++
9576 which selects the behaviour specified by the C++ standard.
9578 Xapian-core 0.9.6 (2006-05-15):
9582 * Rename Xapian::xapian_version_string() and companions to
9583 Xapian::version_string(), etc. Keep the old functions as aliases which are
9584 marked as deprecated.
9586 * QueryParser: Add rules to handle a boolean filter with a "+" in front (such
9587 as +site:xapian.org).
9591 * queryparsertest: Add another prefix testcase to improve coverage.
9595 * configure: Simpler check for VALGRIND being set to empty value.
9597 * include/Makefile.am: Add xapian/version.h.timestamp as a dependency on
9598 all-local so that xapian/version.h actually gets regenerated when required.
9600 * Eliminate XAPIAN_BUILD_BACKEND_* from config.h and just use
9601 XAPIAN_HAS_*_BACKEND from xapian/version.h instead.
9605 * remote_protocol.html: Document keep-alive messages.
9607 * xapian/enquire.h: Remove bogus documentation for a parameter which doesn't
9610 * PLATFORMS: Added a summary. Updated and pruned old entries for which we
9611 have a newer close match.
9613 * HACKING: Expand on details of what's required when changing Xapian (discuss
9614 documentation requirements, and more on why feature tests are vital).
9616 * HACKING: Update section on building debian packages.
9620 * The tarball is generated with a patched version of libtool 1.5.22 which
9621 fixes libtool bugs on HP-UX and some BSD platforms.
9623 * configure: Fix problems with test for snprintf which affected cygwin, and
9624 possibly some other platforms.
9626 * configure: Tweak version.h generation to cope with CXXCPP putting carriage
9627 returns into its output as can happen on cygwin.
9629 * Fix renaming of "iamflint.tmp" for MS Windows where you can't rename an open
9632 * Fixed MSVC7 warnings.
9634 * Added workaround for newlib header bug.
9636 Xapian-core 0.9.5 (2006-04-08):
9642 + Fix FLAG_BOOLEAN_ANY_CASE to really allow any case combination - previously
9643 it only allowed all uppercase or all lowercase.
9645 + Fix QueryParser's handling of terms with trailing "#", "+", or "-" when
9646 set_database has been called and the term doesn't exist in the database
9649 * Add mechanism to allow xapian-bindings to override deprecation warnings so
9650 we can continue to wrap deprecated methods without lots of warnings.
9652 * Move Enquire::get_matching_terms_end() and Document::termlist_end() inline in
9655 * Database::termlist_begin(): Eliminate the MultiTermList wrapper in the common
9656 case where we're only dealing with a single database.
9658 * Fix TermIterator::positionlist_begin() to work on TermIterator from
9659 Database::termlist_begin(). Make TermList::positionlist_begin() pure
9660 virtual and put dummy implementations in BranchTermList and other
9661 subclasses which can't (or don't) implement it. This makes it hard to
9662 accidentally fail to implement it in a backend's TermList subclass.
9664 * TermIterator::positionlist_begin() with the remote backend now throws
9665 UnimplementedError instead of InvalidOperationError.
9667 * Implement Enquire::set_sort_by_relevance_then_value().
9671 * Added missing feature test for QueryParser::FLAG_BOOLEAN_ANY_CASE.
9673 * remotetest: Check mset size in tcpmatch1.
9677 * xapian-compact: Fixed segfault from passing an unknown option (e.g.
9678 "xapian-compact --foo").
9682 * quartzdump,quartzcompact: Fixed segfault from passing an unknown option
9683 (e.g. "quartzdump --foo").
9687 * xapian-tcpsrv: Don't perform a name lookup on the IP address which an
9688 incoming connection is from as that could easily slow down the search
9689 response - instead just print the IP address itself if output is verbose.
9691 * xapian-tcpsrv: Allow up to 5 connections in the listen queue instead of just
9696 * Removed unused code from the matcher and the remote, quartz, and flint
9701 * All installed binaries now support --help and --version and have a man page
9702 (which is generated using help2man).
9704 * docs/overview.html: Bring up to date.
9706 * docs/remote_protocol.html: Document messages for requesting and sending a
9707 termlist and a document.
9709 * PLATFORMS, AUTHORS: Updated.
9711 * INSTALL: Improve wording.
9713 * HACKING: Note that we now use a lightly patched version of libtool 1.5.22.
9715 * HACKING: aclocal is part of automake, not autoconf.
9719 * Added some tweaks to help support compilation with MSVC.
9723 * RPMs: package the new man pages.
9727 * Add missing spaces in some debug output.
9729 Xapian-core 0.9.4 (2006-02-21):
9733 * Flag deprecated methods such that the compiler gives a warning, for compilers
9734 which support such a feature (most notably GCC >= 3.1).
9736 * Correct typo in name of definition of function xapian_revision().
9740 * Updated uses of deprecated methods in the testsuite.
9744 * xapian-config: Set exec_prefix and prefix at top of script so that
9745 xapian-config works after xapian-core is installed.
9749 * Add documentation comment for Enquire::set_sort_by_value_then_relevance().
9751 * README: Add pointer to HACKING. Change "CVS access" to "SVN access".
9753 * PLATFORMS: Updated from tinderbox.
9755 * COPYING: Update second occurrence of old FSF address.
9757 Xapian-core 0.9.3 (2006-02-16):
9761 * Added 4 functions to report version information for the library version being
9762 used (which may not be the same as that compiled against if shared libraries
9763 are in use): xapian_version_string(), xapian_major_version(),
9764 xapian_minor_version(), xapian_revision().
9766 * Xapian::QueryParser:
9768 + Fix handling of "+" terms in a query when the default query operator is
9769 AND. Added regression test for this.
9771 + Added "AND NOT" as a synonym for "NOT". Added feature tests for this.
9773 * Fix prototype for ESet::operator[] to take parameter of type termcount
9774 instead of doccount (doccount and termcount are both typedefs to the same
9775 type so this really just makes the prototype more consistent).
9777 * Xapian::Stem: Check for malloc and calloc failing to allocate memory and
9778 throw an exception. Richard has fixed this upstream in snowball, so this is
9779 a temporary fix until we import a new version of snowball.
9781 * Xapian::Database: Trying to open a database for reading which doesn't exist
9782 now fails with DatabaseOpeningError instead of FeatureUnavailableError.
9783 Added regression test for this.
9785 * Add Stopper::get_description() and SimpleStopper::get_description().
9789 * Fixed testsuite harness to work with valgrind on 64 bit platforms.
9791 * Merged the "running tests" section of docs/tests.html into the similar
9792 section in HACKING, and make docs/tests.html refer the reader to HACKING for
9795 * Tidied and enhanced environmental variables which the test suite harness
9798 + OM_TEST_BACKEND: Removed support since the "-b" switch to apitest allows
9799 you control which backend is used, making OM_TEST_BACKEND pretty much
9802 + XAPIAN_SIG_DFL: Renamed to XAPIAN_TESTSUITE_SIG_DFL.
9804 + XAPIAN_TESTSUITE_OUTPUT: New environmental variable to control use of
9805 ANSI colour escape sequences in test output (set to "plain" to disable
9806 them, unset, empty, or "auto" to check if stdout is a tty, or anything
9807 else to force colour).
9811 * xapian-compact: Added "--multipass" option to merge postlists in pairs or
9812 triples until all are merged. Generally this is faster than an N-way merge,
9813 but it does require more disk space for temporary files so it's not the
9818 * quartzcheck: If the database is too broken to open, emit a warning message
9819 and bump the error count.
9823 * Now generate snapshots and releases with automake 1.9.6 (was 1.9.5) and
9824 libtool 1.5.22 (was 1.5.18).
9826 * configure: If not cross-compiling, try to actually run a test program built
9827 with the C++ compiler, not just link one.
9829 * configure: Fix to actually skip the check for valgrind if VALGRIND is set to
9832 * configure: Add sanity check for MS Windows that "find" is Unix-like find, not
9835 * Fix conditional compilation of flint backend - it was being disabled when
9836 quartz was, not when flint was supposed to be.
9840 * INSTALL,README: Updated.
9842 * Give pointer to replacements for the deprecated Enquire sorting methods
9843 in the doxygen collated documentation.
9845 * PLATFORMS: Added success reports for ppc64 linux and Fedora Core 4. Updated
9848 * HACKING: Note platforms valgrind now has solid support for; Improve
9849 phrasing in a few places.
9851 * Upgrade to using doxygen 1.4.6 for generating API documentation.
9853 * Change title of the "full source" documentation to "Internal Source
9854 Documentation" rather than "Full source documentation" to make it
9855 clearer it's only useful if you want to modify Xapian itself.
9857 * Fix documentation comments for the values of QueryParser::feature_flag so
9858 doxygen actually pulls out the documentation for them. Add documentation for
9859 the parameters of QueryParser::parse_query().
9861 * queryparser.html: Document wildcards.
9865 * Fix compilation with GCC 4.0.1 and later (need to forward declare class
9866 InMemoryDatabase) (bug #69).
9868 * Fix compilation under cygwin (broken in 0.9.2).
9870 * Don't pass NULL for the second parameter of execl() - the Linux man page
9871 says execl takes "one or more pointers to null-terminated strings". Also
9872 cast the NULL to (void*) to avoid "missing sentinel" warning from GCC4.
9874 * Use snprintf instead of sprintf where available (we were attempting to
9875 do this in some places before, but the configure test was broken so
9876 sprintf was always being used).
9878 * Enable more warnings under aCC and fix minor issues highlighted. Suppress
9879 "Entire translation unit was empty" warning which isn't useful to us.
9881 * Write top-bit set characters in the source using \xXX notation to avoid
9882 warnings from Intel's C++ compiler.
9884 * configure: TYPE_SOCKLEN_T fails hard, so only run it if we've successfully
9885 run other socket tests.
9887 * queryparser/accentnormalisingitor.h: #include <limits.h> for CHAR_BIT.
9889 * bin/xapian-compact.cc: Fix printf type mismatch on 64 bit platforms.
9891 * Replace pair<bool, string> with a simple class BoolAndString - the pair
9892 results in a 4328 byte symbol on HP-UX which gets truncated (to 4000 bytes).
9893 Most likely this is harmless, but it causes a warning.
9895 * configure: Disable flint backend by default if building for djgpp or msdos.
9897 * xapian-config: Previously when linking without libtool we've always thrown
9898 in dependency_libs, even though only some platforms need it (because it's
9899 generally pretty harmless). However some Linux distros have an unhelpful
9900 policy of not packaging .la files, so libxapian.la isn't available to
9901 extract dependency_libs from. Linux is a platform which doesn't require
9902 dependency_libs to be explicitly linked, so extend xapian-config to not
9903 pull in dependency_libs if libtool's link_all_deplibs_CXX=no.
9905 * xapian-config: If the current platform needs dependency_libs and
9906 libxapian.la's dependency_libs contains another .la file, transform it into a
9907 pair of -L and -l options, and recursively expand its dependency_libs (if
9910 * Don't pass functions with C++ linkage to places wanting pointers to functions
9911 with C linkage. So far this has worked for us, but it causes warnings with
9912 some compilers, and may not be portable.
9914 * Compaq C++ 7.1 doesn't suffer from the problem which previously prevented
9915 it from building Xapian. This release includes workarounds for some
9916 oddities with errno.h support in this compiler, but currently the build
9917 fails when trying to link a binary with the library.
9921 * RPM: Invoke %setup correctly in xapian.spec.
9925 * Add missing '#include <iostream>' when TIMING_PATCH is defined.
9927 Xapian-core 0.9.2 (2005-07-15):
9933 + Added optional "flags" argument to parse_query method.
9935 + Add flag FLAG_BOOLEAN_ANY_CASE which tells the QueryParser that boolean
9936 operators such as "AND", "OR", and "NEAR" should be recognised even if
9937 they aren't fully capitalised (so "and", "And", "aNd", etc will work too).
9939 + Add flag FLAG_WILDCARD which tells the QueryParser to allow right
9940 truncation e.g. "xap*".
9942 + Fixed to handle "-site:microsoft.com" where site is a boolean prefix.
9943 Added testcases for this.
9947 * The test harness was incorrectly creating a quartz database when a flint one
9948 was requested, which meant tests weren't being run against flint and so it
9949 had bugs rendering it pretty much unusable.
9951 * Added regression test longpositionlist1 (to check encoding/decoding a long
9952 position list, which flint had problems with).
9956 * Bumped format version number.
9958 * Added new "xapian-compact" program which can compact and merge flint
9959 databases in a similar way to how quartzcompact does for quartz databases.
9961 * Fixed to auto-detect database type when opening an existing Flint database
9962 as a WritableDatabase.
9964 * The code to encode the position list size, first entry, and last entry
9965 didn't match the code to decode them! Reworked both to match, using a
9966 slightly more compact encoding.
9968 * We were failing to append "DB" to the path when opening a table for reading.
9970 * Rewrite of FlintAllTermsList with several fewer member variables. The
9971 rewrite fixes a bug too - the old version wasn't ignoring the metainfo
9972 entry which is now in the postlist table.
9974 * It seems we need to explicitly kill the child process used for locking.
9975 Otherwise when we have two databases locked just closing the connection
9976 doesn't cause the child to die. I don't understand why it's needed, but this
9977 fix is at least clean.
9981 * quartzcompact: Fix mis-repacking of keys in positionlist table when merging
9984 * Disable assertion in allterms iteration which is incorrect in a corner case.
9985 This is only a problem if a termname contains zero bytes and you're using a
9986 debug build. Add regression test test_specialterms2.
9990 * Implement sorting on a value with the remote backend.
9994 * Pass automake options to AM_INIT_AUTOMAKE rather than specifying them in
9995 Makefile.am. This way, the version requirements for autoconf and automake
9996 are stated close together.
9998 * configure: -Wshadow causes false positives with GCC 3.0.4, so only enable it
10001 * configure: Eliminate use of "ln -s" when generating include/xapian/version.h
10002 since it seems to cause problems on Solaris in some setups and isn't really
10005 * Add dependency mechanism so version.h gets regenerated when the template is
10008 * configure: Check for spaces in build directory, source directory, or install
10009 prefix and die with a helpful message.
10011 * Add dependency to generate queryparser_token.h.
10013 * Eliminated TOP_SRCDIR and TOP_BUILDDIR - it's better to just use top_srcdir
10014 and top_builddir directly.
10016 * configure: Generate the list of source files to feed to doxygen by inspecting
10017 all the Makefile.am files prior to running autoreconf rather than by using
10018 "find" when the user runs ./configure. This speeds up configure, avoids
10019 generating docs for random .cc and .h files which aren't part of xapian-core,
10020 and avoids problems with picking up FIND.EXE on MS Windows.
10024 * Expanded explanation of the "descending docid with boolean weighting" trick
10025 for fast date ordered searching in Enquire::set_docid_order() API docs.
10027 * docs/intro_ir.html: Citeseer has moved, so update link.
10029 * testsuite/testsuite.cc: Update URL for valgrind FAQ in comment.
10031 * COPYING: Update FSF address.
10033 * HACKING: Minor updates to release checklist.
10037 * Assorted tweaks towards allowing compilation with MSVC.
10041 * xapian.spec.in: Package xapian-compact.
10043 Xapian-core 0.9.1 (2005-06-06):
10047 * Fix SEGV on get_terms_begin() on an empty Query object. This was causing
10048 a SEGV in Omega with an empty query.
10050 * Put Query::get_terms_end() inline in header.
10054 * Added the new "flint" backend, which starts out as a copy of the quartz
10055 backend plus some modifications and replacements. When creating a database
10056 without a specified backend, quartz is still used unless the environmental
10057 variable XAPIAN_PREFER_FLINT is set to a non-empty value.
10059 * apitest now runs tests on flint as well as the other backends.
10061 * Removed undocumented (and hence the little used) quartz "log" feature.
10063 * Implement new fork+fcntl+exec based locking (for Unix) and CreateFile based
10064 locking (for Windows - currently untested).
10066 * Move the special key/tag pair holding the total document length and doc id
10067 high water mark from the record table to the postlist table. This means that
10068 when appending documents, the insertion point will now always be at the end
10069 of the record table which is more efficient. We need to jump around the
10070 postlist table to merge postings in anyway.
10072 * Changed metafile magic to be different from quartz, and make the metafile
10073 version a datestamp which we'll change each time the format changes.
10075 * Check the return value of close() when writing the metafile.
10077 * Flint position list table now stores entries using interpolative coding
10078 (which is significantly more compact).
10082 * quartzcheck: Fixed corner case where you couldn't check a single Btree table
10083 which was just the DB and baseA/baseB files in a directory (Xapian doesn't
10084 produce anything like this, but btreetest does while unit testing the
10089 * Releases are now created using libtool 1.5.18 and automake 1.9.5.
10091 * configure: Pass more -W flags to g++ (including -Wundef which caught the
10092 getopt problem fixed in this release). Fixed new GCC warnings from these new
10095 * Fixed a lingering DOXYGEN_HAVE_DOT reference.
10097 * Fixed accidentally pruned #define which meant that getopt code was being
10098 included even on systems which use glibc (on such systems, we should use
10099 the glibc copy of the code instead).
10101 * queryparser/queryparser.lemony: Add missing '#include <config.h>'.
10105 * Added missing documentation comments for a QueryParser methods added in
10108 * docs/quartzdesign.html: Removed warning that quartz is still in development.
10110 * PLATFORMS: Updated from tinderbox.
10112 * configure: Describe CC_FOR_BUILD in configure --help output.
10114 * HACKING: Updated release instructions to refer to SVN, and note that release
10115 tarballs are now built specially rather than being copies of snapshots.
10116 Update information about the SVN tag name to use for debian files.
10118 * HACKING: Add "email Fabrice" to the release checklist so that RPM
10119 spec files don't lag behind.
10121 * Fixed a few spelling mistakes.
10125 * xapian.spec: Remove bogus %setup line left over from when we packaged
10126 xapian-core and xapian-examples together from separate tarballs.
10130 * api/omqueryinternal.cc: Fixed compilation with --enable-debug.
10132 * common/omdebug.h: Replace C style cast with static_cast<> which reveals that
10133 we were discarding const (harmlessly though).
10135 Xapian-core 0.9.0 (2005-05-13):
10139 * Query objects really need to be immutable after construction (otherwise we
10140 need a copy-on-write mechanism). To achieve this the following API changes
10143 + Remove Query::set_length() in favour of an optional length
10144 parameter to Enquire::set_query().
10146 + Eliminated Query::set_elite_set_size() in favour of optional parameter
10149 + Eliminated Query::set_window() in favour of an optional parameter to the
10152 * Removed OP_WEIGHT_CUTOFF, since it doesn't actually seem to add useful
10153 functionality over using Enquire::set_cutoff().
10155 * MSet::max_size() (which only exists so that MSet is an STL container) now
10156 returns MSet::size() and is inlined from the header.
10158 * Added ESet::max_size() (for STL compatibility).
10160 * Fixed Xapian::RSet to have the same "it's a handle" copy semantics as most of
10163 * Rewritten QueryParser class:
10165 + Uses Lemon instead of Bison to generate the parser, which enables us to
10166 stop using static data, so this class is at last reentrant.
10168 + QueryParser now uses a PIMPL style with reference counted internals like
10169 most of the other Xapian classes.
10171 + Direct access to member variables has gone, which unfortunately forces an
10172 API change (but this fixes bug #39). Instead of accessing
10173 QueryParser::termlist member variable, iterate over terms using
10174 Query::get_terms_begin() and get_terms_end() on the returned Query object.
10175 Direct access to stoplist is replaced by QueryParser::get_stoplist_begin()
10176 and get_stoplist_end(); and to unstem by get_unstem_begin() and
10179 + The rewrite parses many real world examples better than the old version.
10181 + Now allow searches for C#, etc. If a database has been set, for this and +
10182 and - suffixes, check if the term actually exists, and if not, ignore the
10183 suffix if the unsuffixed term exists.
10185 + Added QueryParser::get_description() method (not very descriptive yet!)
10187 + Added backward compatibility wrapper for old version of
10188 QueryParser::set_stemming_options().
10190 + xapian.h now automatically includes xapian/queryparser.h. Directly
10191 including xapian/queryparser.h will continue to work for now, but is
10194 + QueryParser::parse_query() was failing to clear termlist and unstem
10195 - the rewrite fixes this.
10197 + New QueryParser parses "term prefix:(term2 term3)" correctly.
10199 * Added Xapian::SimpleStopper which just stops terms specified by a pair of
10200 iterators. This should be sufficient for the majority of uses.
10202 * Tidied up the Enquire sorting API and added ability to reverse sort on a
10203 value. Removed sort_bands support.
10205 * Enquire::get_description() improved.
10207 * Methods which return an end iterator where the internals are just NULL are
10208 now inline in the header for efficiency. Should we ever need to change an
10209 implementation, we can easily move methods back into the library and bump the
10210 library version suitably.
10212 * Added Stem::operator() as preferred alternative to Stem::stem_word().
10214 * Simplified Stem internal design by restructuring to eliminate a few internal
10217 * BM25Weight: Avoid fetching document length if we're simply going to multiply
10222 * Fixed TEST_EQUAL_DOUBLE to use DBL_EPSILON correctly.
10224 * Rewrite of index_utils test harness code, removing unused and unusual
10225 features. Data files for tests are now easier to write. These changes
10226 also fix the bug that ^x didn't actually decode hex values correctly.
10228 * tests/testdata/etext.txt: Stripped carriage returns.
10230 * apitest: Extended stemlang1 to check that trying to create
10231 a stemmer for a non-existent language throws InvalidArgumentError.
10235 + Moved into tests/ subdirectory.
10237 + Reworked to use the standard testsuite harness.
10239 + Added tests for new features in the rewritten QueryParser.
10243 * quartzcheck: Now checks the structure of all the tables, not
10244 just the postlist table, and cross-checks doclen values between
10245 termlist and postlist tables. Recognises "--help" option. Should
10246 now continue after an error (typically it would crash before), and
10247 counts the number of errors found. Now exits with non-zero status
10248 if any errors were found. More readable output.
10250 * quartzcompact: Extended to allow merging several quartz
10251 databases to produce a single compact quartz database. This
10252 allows for faster building - simple index in chunks, then merge
10255 * quartzcompact: Made full compaction a tiny bit more compact.
10257 * quartzcompact: Added "fuller compaction" mode, which ignores the usual "at
10258 least 4 items per block" rule. This achieves slightly tighter compaction,
10259 though it's probably not advisable to use this option if you plan to update
10260 the compacted database.
10262 * Improved compaction by a few % in non-full case. Tighter bound on amount of
10263 memory to reserve to read the tag into.
10265 * Fix skip_to on an allterms TermIterator to set the current term when the
10266 skip_to-ed term is in the database. Add regression test for this
10269 * Values are stored in sorted order so we can stop unpacking the list once we
10270 get to one after the one we're looking for (in the case where the one we're
10271 looking for doesn't exist).
10275 * configure: Check that the C++ compiler can actually link a program.
10276 AC_LANG_CXX doesn't, and if it can't find a C++ compiler it'll just return
10277 "g++" which just leads to a later configure test failing in a confusing way.
10279 * configure: corrected configure output of "none known for yes" or "none known
10280 for no" to "none known for g++-3.2" or similar.
10282 * include/xapian/version.h: Define XAPIAN_HAS_xxx_BACKEND for each backend
10283 which is enabled. The bindings need this, and user code might find it useful
10286 * include/xapian/database.h: Don't declare the backend factory functions if the
10287 corresponding backend has been disabled. This means that trying to use a
10288 disabled backend will be caught at compile time rather than link time.
10290 * configure: Enhanced valgrind test to (a) see if --tool=memcheck
10291 is needed and (b) see if valgrind actually works (we don't want to
10292 try to use an x86 valgrind on an x86_64 box).
10294 * configure: Suppress 2 Intel C++ warnings which we can't easily code around,
10295 and enable -Werror automatically with --enable-maintainer-mode.
10297 * Clearer make rules for building Postscript doxygen docs.
10299 * Removed some no longer used code.
10301 * Moved a number of method definitions out of headers because they are virtual,
10302 or too large to be sensible candidates for inlining.
10304 * Eliminated the extra library for the queryparser - it's tiny compared to the
10305 main library and having it around just complicates things.
10307 * configure: We no longer need Bison, but we do need CC_FOR_BUILD to compile
10310 * Snapshot generator now appends _svn6789 or similar to the version string.
10311 Adjusted configure and XO_LIB_XAPIAN macro to take this into account.
10313 * configure: If any tools needed for documentation are missing
10314 and we're in maintainer mode, die with a suitable error in
10315 configure rather than with strange errors when building the
10318 * docs/Makefile.am: Explicitly set the pool_size for latex, because we
10319 now seem to overflow the default setting on some systems.
10321 * docs/Makefile.am: Use $(MAKE) instead of make.
10325 * Numerous improvements to documentation comments. Added documentation
10326 comments for QueryParser class.
10328 * HACKING: Added better description of how reference-counted API
10329 classes are structured.
10331 * HACKING: Note that '#include <limits>' isn't supported by GCC 2.95,
10332 and other assorted minor tweaks.
10334 * HACKING: Note how to disable use of VALGRIND on the make check
10335 command line, or when using runtest directly.
10337 * Updated all documentation mentions of CVS to talk about Subversion
10340 * PLATFORMS: Updated from tinderbox and other sources.
10342 * PLATFORMS: Added minimal testcase which fails to compile with
10343 Compaq's C++ compiler (cxx).
10345 * INSTALL,README: Updated.
10347 * docs/queryparser.html: Note that + and - work on phrases and
10348 bracketed expressions.
10350 * docs/intro_ir.html: Corrected two errors.
10352 * docs/stemming.html: Stemming appears to be applicable to Japanese
10353 so don't say it isn't!
10357 * Moved xapian-examples module to examples subdirectory of xapian-core.
10359 * quest: Added stopword handling.
10363 * configure: autoconf identifies Intel's C++ compiler as GCC, so probe for
10364 which we actually have.
10366 * Xapian will now compile cleanly with Intel C++ 8.1 on ia64 Linux and
10369 * backends/quartz/btree.cc: Fixed GCC compilation warning.
10371 * tests/api_db.cc: Fixed warning from Sun's C++ compiler.
10373 * configure: Automatically enable ANSI C++ mode for SGI's compiler
10374 with '-LANG:std'; check that any automatically determined flags
10375 for ANSI C++ mode actually allow us to compile a trivial program
10376 - if they don't it probably means the compiler isn't the one we
10377 were expecting, but one installed with the same name, so we now
10378 drop the flags in this case.
10380 * The compile on IRIX with SGI compiler is now warning free, apart from two
10381 "unused variable" warnings in Snowball generated code.
10383 * On WIN32, don't define NOMINMAX if it is already defined.
10387 * xapian.spec: Don't say "%makeinstall" in a comment since rpm
10388 tries to expand it and explodes.
10390 * xapian.spec: '/usr/share' -> '%{_datadir}'.
10392 * xapian.spec: Put the .so in the -devel package (it's only useful
10393 for linking to - the .so.* files are all that's needed at runtime).
10397 * net/socketserver.cc: Fixed typo in debug code.
10399 Xapian-core 0.8.5 (2004-12-23):
10403 * quartzcompact: When full_compaction is enabled, don't fill the last few bytes
10404 of a block if that would mean we needed an extra item and the overhead for
10405 that item would use up more of the next block than we save. This reduces the
10406 table size after full compaction by up to 0.2% in my tests!
10408 * quartzcompact: Tables sizes will always be a whole number of Kbytes, since
10409 the blocksize is, so report the size in K. Also report the change in size as
10410 well as the before and after sizes.
10412 * quartzcompact: Added missing '#include <config.h>' so that largefile support
10413 is enabled when we call stat() and we report compression statistics for
10416 * quartzcompact: Added --no-full / -n option to disable full compaction. This
10417 may be useful if you want to update the database after compacting it (need to
10418 test to see if this option is actually useful).
10420 * Renamed Btree::compress() to Btree::compact() for consistency with
10421 "full_compaction" and "quartzcompact". Also, "compress" is confusing since
10422 we use that term in the zlib patch.
10426 * xapian-config: Fixed --libs output to not include libxapian.la.
10428 * Added missing '#include <config.h>' to various .cc files (the omissions were
10429 probably harmless, but config.h should be included as the first thing any
10438 * RPM spec file: %makeinstall puts the wrong paths in the .la files so use
10439 "make DESTDIR=... install" instead.
10443 * Fixed to build with AssertParanoid enabled.
10445 Xapian-core 0.8.4 (2004-12-08):
10449 * Added constructors to Database and WritableDatabase which fulfil the role
10450 that the Auto::open() factory functions currently do. Auto::open() is
10453 * Removed the ability to write a Xapian object to an ostream directly, as
10454 it's little used and potentially dangerous ('cout << mset[i];' will
10455 compile, but you almost certainly meant 'cout << *mset[i];'). You can
10456 get the old effect by writing 'cout << obj->get_description();' instead
10457 of 'cout << obj;'. Note that including xapian.h no longer pulls in
10458 fstream, which code may have been implicitly relying on - if this is
10459 a problem add '#include <fstream>' after '#include <xapian.h>'.
10461 * QueryParser: Be smarter about when to add a ':' when adding a term prefix.
10463 * BoolWeight::unserialise() now returns BoolWeight*, and similarly for
10464 TradWeight and BM25Weight. BoolWeight::clone() now returns BoolWeight *.
10466 * If a database contains no positional information, change NEAR and PHRASE
10467 queries into AND queries (as otherwise they'd return no matches at all)
10468 (bug #56). Added feature test phraseorneartoand1.
10470 * Renamed BM25 parameters to match standard naming in papers and elsewhere
10471 (A->k3, B->k1, C->k2, D->b), eliminated the extra factor of 2 which our C
10472 had, and reordered the parameters to k1, k2, k3. This is an incompatible API
10473 change for BM25Weight(), so if you are using custom parameters for BM25
10474 you'll need to update your code.
10476 * During query expansion, if we estimate the term frequency, ensure it has a
10477 sane value (>= r and <= N - R + r) rather than bodging around the problem
10480 * TradWeight, BM25Weight: termfreq is always exact for matching (we only
10481 approximate it for query expansion) so replace code to work around bad
10482 approximations with Assert() to make sure this never happens.
10486 * runtest: Enhanced to allow it to run test programs under valgrind and other
10487 tools (gdb was already supported).
10489 * runtest: now works with valgrind 2.1.2 and later (valgrind's --logfile-fd
10490 option was renamed to --log-fd).
10492 * runtest: Allow VALGRIND environmental variable to override the value we got
10495 * Added a dependency so "make check" regenerates runtest if necessary.
10497 * The test programs now point the user to the runtest script if srcdir can't
10498 be guessed. And they no longer look for the test program in the tests
10499 subdirectory of the current directory.
10501 * btreetest: Fixed memory leaks in test_cursor1 (the testcase itself was
10502 causing the leak, not the library).
10504 * apitest: Fixed mset_range_is_same() and mset_range_is_same_weights() helper
10505 functions which were only comparing the first item in the range. Thankfully
10506 the tests still all pass so this wasn't hiding any bugs.
10508 * apitest: A modified version of changequery1 fails - the bug is obscure and
10509 subtle, and the fix is tricky so set the modified test to SKIP for now.
10511 * apitest: Added test_weight1 which tests the built-in Xapian::Weight
10512 subclasses and test_userweight1 which tests user defined weighting schemes
10515 * quartztest: Test with DB_CREATE_OR_OPEN in writelock1.
10519 * An interrupted update could cause any further updates to fail with "New
10520 revision too low" because the new revision was being calculated incorrectly -
10523 * Fixed Bcursor::del() which didn't always leave the cursor on the next item
10524 like it should. This may have been causing problems when trying to remove
10525 the last references to a particular term.
10527 * Fixed ultra-obscure bug in the code which finds a key suitable to
10528 discriminating between two blocks in a B-tree branch (discovered by reading
10529 the code). Comparing the keys didn't consider the length of the second, so
10530 it is possible the code would miscompare. But in reality this is extremely
10531 unlikely to happen, and even then would probably just mean that the
10532 discriminating key wouldn't be as short as it could be (wasting a few bytes
10533 but otherwise harmless).
10535 * If we're removing a posting list entirely, often there will only be one
10536 chunk, so avoid creating a Bcursor in this case.
10538 * Simplified Btree::compare_keys() by removing the last case which was dead
10539 code as it was covered by an earlier case.
10541 * Check that any user specified block size is a power of 2. If the block
10542 size passed is invalid, use the default of 8192 rather than throwing an
10545 * Started to refactor the Btree manager by introducing Item and Key classes
10546 which take care of handling the on-disk format, and eliminated duplicated
10547 tag reading code in Btree and Bcursor. These changes will pave the way for
10548 improvements to the on disk format.
10550 * Applied the Quartz "DANGEROUS" patch, but disabled for now. This way it
10551 won't keep being broken by changes to the code.
10553 * quartzcompact: Added --help and --version; Check that the source path and
10554 desitination path aren't the same; Report each table name when we start
10555 compacting it, and some simple stats on the compaction achieved when we
10560 * Removed a default parameter value from one variant of
10561 Xapian::Muscat36::open_db() so that there's only one candidate for
10566 * xapian-config: If flags are needed to select ANSI mode with the current
10567 compiler, then make xapian-config --cxxflags include them so that Xapian
10568 users don't have to jump through the same hoops we do.
10570 * xapian-config: Added --swigflags option for use with SWIG.
10572 * XO_LIB_XAPIAN now passes ac_top_srcdir to xapian-config which uses it
10573 (if provided) to say "configure.ac" or "configure.in" rather than
10574 "configure.in (or configure.ac)" in the "Add AC_PROG_LIBTOOL"
10577 * Cleaned up the build system in a few places.
10579 * Removed a few totally unneeded header includes.
10581 * Moved a number of functions and methods out of headers because they're not
10582 good inlining candidates (too big or virtual methods).
10584 * Changed C style casts to C++ style. The syntax is ugly, but they do make the
10585 intent clearer which is a good thing. Note this as a coding style guideline
10588 * configure.ac: Automatically add -Werror to CFLAGS and CXXFLAGS if
10589 maintainer mode is enabled and we're using GCC3 or newer. Don't do
10590 this for older GCCs as GCC 2.95 issues spurious warnings.
10592 * Reworked how include/xapian/version.h is generated so that it works
10593 better with compilers other than GCC, and with HP-UX sed.
10595 * XAPIAN_VERSION is now a string (e.g. "0.8.4").
10597 * Added new #define XAPIAN_REVISION (which is 4 for version 0.8.4).
10601 * docs/bm25.html,docs/intro_ir.html: Reworked to talk about Xapian
10602 rather than Muscat. Also improved the appearance of the formulae.
10604 * HACKING: Valgrind now supports x86 FreeBSD and PowerPC Linux.
10606 * Documented parameters of Enquire::register_match_decider().
10608 * We now use doxygen 1.3.8 to build documentation for snapshots and releases.
10610 * PLATFORMS: Updated from the tinderbox (which now runs builds on machines
10611 available in HP's testdrive scheme) and other assorted reports.
10613 * PLATFORMS: Removed reports from versions prior to 0.7.0. So much
10614 has changed that these are of little value.
10616 * docs/scalability.html: Added note warning about benchmarking from cold.
10618 * Assorted other minor documentation improvements.
10622 * configure.ac: Improved snprintf configure test to actually
10623 check that it works (older implementations may have different
10624 semantics for the return value, and at least one ignores the length
10625 restriction entirely!)
10627 * Reworked the GNU getopt source we use so that the header is clean and
10628 suitable for use from a reasonably ISO-conforming C++ compiler instead of
10629 being full of cruft for working around quirky C compilers which C++ compilers
10630 tend to stumble over.
10632 * Use SOCKLEN_T for the type we need to pass to various socket calls, since
10633 HPUX defines socklen_t yet wants int in those calls. Reworked the
10634 TYPE_SOCKLEN_T test we use.
10636 * On Windows, we want winsock2.h instead of sys/socket.h. Mingw doesn't seem
10637 to even have the latter, so I think previously we've been compiling by
10638 picking one up from somewhere random!
10640 * Change the small number of C sources we have to be C++ so we can compile
10641 everything with the C++ compiler. This way we don't need to worry about
10642 configure choosing a mismatching pair of compilers, or about whether
10643 configure tests with the C compiler don't apply to the C++ compiler, or vice
10646 * Compiles and passes testsuite with HP's aCC (we have to compile in
10647 ANSI mode, so we automatically add -AA to CXXFLAGS).
10649 * If the link test detects pread and pwrite are present, get configure to try
10650 out prototypes for pread and pwrite. This is much cleaner than trying to
10651 find the right combination of preprocessor defines to get each platform's
10652 system headers to provide prototypes.
10654 * configure: Disable probing for pread/pwrite on HP-UX as they're present but
10655 don't work when LFS (Large File Support) is enabled, and we definitely want
10658 * Fixed some warnings from Sun's C++ compiler.
10660 * Provide our own C_isalpha(), etc replacements for isalpha(), etc
10661 which always work in the C locale and avoid signed char problems.
10663 * For mingw/cygwin, pass -no-undefined when linking libxapianqueryparser.la
10664 so libtool builds a shared library. Also pass the magic linker flag
10665 -Wl,--enable-runtime-pseudo-reloc if configure has determined it is needed.
10667 * For cygwin, use the underlying MoveFile API call for locking, as link()
10668 doesn't work on FAT partitions. And don't rely on HAVE_LINK to control
10669 whether we use link() otherwise - if the configure test somehow misfires, a
10670 compilation error is better than using rename() on Unix as that would cause a
10671 second writer to smash the lock of the first.
10673 * Closer to building with Compaq C++ - add "-std strict_ansi" to CXXFLAGS, and
10674 tweaked the code in several places. It currently dies trying to compile
10675 the PIMPL smart pointer template code which looks hard to fix.
10679 * HACKING: Document that %% in XAPIAN_DEBUG_LOG is substituted with
10680 the process-id, and that setting XAPIAN_DEBUG_FLAGS to -1 enables
10681 all debug messages.
10683 * Removed compatibility code for checking environment variables OM_DEBUG_FILE
10684 and OM_DEBUG_TYPES.
10686 Xapian-core 0.8.3 (2004-09-20):
10690 * Fixed bug which caused a segmentation fault or odd "Document not found"
10691 exceptions when new check_at_least parameter to Enquire::get_mset() was used
10692 and there weren't many matches (regression test checkatleast1).
10696 * Renamed omtcpsrv to xapian-tcpsrv and omprogsrv to xapian-progsrv.
10700 * RPM packaging now has a separate package for the runtime libraries to
10701 allow 32 and 64 bit versions to be installed concurrently.
10703 * RPM for xapian-core now includes binaries from xapian-examples.
10707 * Fixed to compile with debug tracing enabled.
10709 Xapian-core 0.8.2 (2004-09-13):
10713 * Removed the compatibility layer which allowed programs written against the
10714 pre-0.7.0 API to be compiled.
10716 * Added new ESet methods swap(), back() and operator[].
10718 * Xapian::WritableDatabase::replace_document can now be used
10719 to add a document with a specific docid (to allow keeping docids
10720 in sync with numeric UIDs from another system).
10722 * Added Xapian::WritableDatabase::replace_document and
10723 delete_document variants which take a unique id term name rather
10724 than a document id.
10726 * Enquire::get_mset(): If a matchdecider is specified and no matches
10727 are requested, the lower bound on the number of matches must be 0
10728 (since the matchdecider could reject all the matches).
10730 * Renamed Query::is_empty() to Query::empty() for consistency. Keep
10731 Query::is_empty() for now as a deprecated alias.
10733 * Enquire::set_sorting() now takes an optional third parameter which allows
10734 you to specify a sort by value, then relevance, then docid instead of
10735 by value then docid.
10737 * Enquire::get_mset() now takes an optional "check_at_least" parameter
10738 which allows Omega's MIN_HITS functionality to be implemented in the matcher
10739 (where it can be done a bit more efficiently).
10743 * Reworked quartztest's positionlist1 into a generic api test as apitest's
10746 * apitest: Reenabled allterms2, but with the iterator copying parts removed -
10747 TermIterator is an input_iterator so that part was invalid.
10749 * Overhauled btreetest and quartztest - tests at the Btree level are now all
10750 in btreetest. Those at the QuartzDatabase level are in quartztest.
10752 * Split api_db.cc into 3 files as it has grown rather large.
10754 * tests/runtest: Added support for easily running gdb on a test program,
10755 automatically sorting out srcdir and libtool.
10759 * Refactored the quartz backend code to reduce the number of layered classes
10760 and eliminate unnecessary buffering, reducing memory usage so that more
10761 posting list changes can be batched together (see next change) and database
10762 building can be done several times faster.
10764 * Added tunable flush threshold - set XAPIAN_FLUSH_THRESHOLD=50000 to flush
10765 every 50000 documents. The default is now every 10000 documents (was
10766 every 1000 documents previously). The optimum value will most likely
10767 depend on your data and hardware.
10769 * WritableDatabase::get_document() no longer forces pending changes to be
10770 flushed. The document will read things lazily from the database, and that
10771 reading may trigger a forced flush).
10773 * WritableDatabase::get_avlength() no longer forces pending changes to be
10774 flushed. This means you can now search a modified WritableDatabase without
10775 causing a flush unless the search includes a term whose postlist has pending
10778 * Reduced quartz postlist chunk threshold from "2048 or a few bytes more" to
10779 "2000 or a few bytes more" so that full size chunks won't get split by the
10782 * Improved the "Db block overwritten" message. The DatabaseCorruptError
10783 version now suggests multiple writers may be the cause, while the
10784 DatabaseModifiedError version uses less alarming wording and says to call
10785 Database::reopen().
10787 * QuartzWritableDatabase now stores the total document length and the last
10788 docid itself rather than tallying added and removed document length and
10789 writing the last docid back every time a document is added. This gives
10790 cleaner code and a small performance win.
10792 * Make the first key null for blocks more than 1 away from the leaves.
10793 It saves disk space for a tiny CPU and RAM cost so is bound to be
10796 * matcher/localmatch.cc: Fixed problems handling termweights in queries with
10797 the same term repeated (bug #37) and added regression test (qterminfo2).
10799 * Sped up iteration over all the terms in a database (QuartzCursor now only
10800 reads the tag from the Btree if asked to).
10802 * Cancelling an operation is now implemented more efficiently.
10806 * Fixed bugs with deleting a document while a PostingIterator over it is
10811 * Fixed to compile now that internal_end_session() has gone (broken in 0.8.1).
10815 * Fixed to compile when configured with --disable-inmemory (bug #33).
10817 * XO_LIB_XAPIAN now AC_SUBSTs XAPIAN_VERSION so your application's build
10818 system can easily check for a particular version of Xapian.
10820 * When compiling with GCC, we check that the compiler used to compile the
10821 library and the compiler used to compile the application have compatible
10822 C++ ABI versions. Unfortunately GCC 3.1 incorrectly reports the same
10823 ABI version as GCC 3.0, so we now special case that test.
10825 * Bumped the versions of the autotools we require for bootstrapping, and
10826 updated the documentation of these in the HACKING document.
10828 * Quote macro names to fix warnings from newer aclocal.
10832 * Improved API documentation for Xapian::WritableDatabase::replace_document and
10835 * Added documentation comments for MSet methods size(), empty(), swap(),
10836 begin(), end(), back().
10838 * Removed bogus documentation comments saying that some Enquire methods can
10839 throw DatabaseOpeningError.
10841 * Updated quartz design docs to reflect recent changes. Also pulled
10842 out the Btree and Bcursor API docs and slotted them in as doxygen
10843 documentation comments - this way they're much more likely to
10844 be kept up-to-date.
10846 * Corrected multiple occurrences of "an Xapian::XXX" to "a Xapian::XXX"
10847 (presumably these all resulted from replacing "Om" with "Xapian::").
10849 * Various minor updates and improvements.
10853 * Reworked how we cope with fcntl.h #define-ing open on Solaris. This change
10854 finally allows Sun's C++ compiler to produce a working Xapian build on
10857 * configure.ac: Don't define DATADIR - we no longer use it and clashes
10858 with more recent mingw headers.
10860 * matcher/andpostlist.cc: Initialise lmax and rmax to 0. This cures
10861 the SIGFPE on apitest's qterminfo2 on alpha linux.
10863 Xapian-core 0.8.1 (2004-06-30):
10867 * New method Xapian::Database::get_lastdocid which returns the highest used
10868 document id for a database (useful for re-synchronizing an indexer which
10869 was interrupted). Implemented for quartz and inmemory.
10871 * Xapian::MSet::get_matches_*() methods now take collapsing into account, and
10872 the documentation has been clarified to state explicitly that collapsing and
10873 cutoffs are taken into account (bug#31).
10875 * Xapian::MSet: Need to adjust index by firstitem when indexing into items
10878 * MSetIterator and ESetIterator are now bidirectional iterators (rather than
10879 just input iterators)
10881 * Fixed post-increment forms of PostingIterator, TermIterator,
10882 PositionIterator, and ValueIterator so that *i++ works (as it must for them
10883 to be true input iterators).
10885 * Xapian::QueryParser: If we fail to parse a query, try stripping out
10886 non-alphanumerics (except '.') and reparsing.
10888 * Fixed memory leaked upon Xapian::QueryParser destruction.
10890 * Removed several unused Xapian::Error subclasses (these were used by the
10891 indexer framework which we decided was a failed experiment).
10895 * queryparsertest: Pruned near-duplicate queryparsertest testcases.
10897 * queryparsertest: Added test case for `term NOT "a phrase'.
10899 * remotetest: Use 127.0.0.1 instead of localhost so that tcpmatch1 doesn't fail
10900 just because the network setup is broken.
10902 * apitest: Make emptyquery1 check that Query("") causes an InvalidArgumentError
10907 * Fixed bug which meant we sometimes failed to remove a posting when deleting
10908 or replacing a document.
10910 * Fixed PostlistChunkReader to take a copy of the postlist data being read to
10911 avoid problems with reading data from a string that's been deleted.
10913 * Fixed bug in postlist merging which could occasionally extend a postlist
10914 chunk to overlap the docid range of the next chunk.
10916 * Eliminated the split cursor in each Btree object - we only actually need a
10917 single block buffer to handle splitting blocks. This reduces the memory
10918 overhead of each Bcursor (and hence each QuartzPostList).
10920 * Changed 2 calls to abort() to throw Xapian::DatabaseCorruptError instead,
10922 * If Btree is writable, throw DatabaseCorruptError if we detect overwritten.
10924 * Check the return value of fdatasync()/fsync()/_commit() and raise an error.
10925 If they fail, we really want to know as it could cause data corruption.
10927 * Assorted clean ups, improved comments, debug tracing, assertions.
10929 * When merging in postlist changes, removed an unneeded call to
10930 QuartzBufferedTable::get_or_make_tag() in a case when we're using a cursor
10931 which has already fetched the tag.
10933 * Added SON_OF_QUARTZ define to disable incompatible changes to database
10934 formats by default, and use it to control the docid encoding for keys such
10935 that we're always inserting at the end of the table when added new documents.
10937 * Reopening the readonly version of a writable Btree is now more efficient
10938 (we used to close and reopen all the files and destroy and recreate a lot
10939 of objects and buffers).
10941 * Share file descriptors between the read and write Btree objects so that a
10942 quartz WritableDatabase now uses 5 fds rather than 10.
10944 * Added configure test for glibc, because otherwise we need to include a header
10945 before we can check for glibc in order to define something we should be
10946 defining before we include any headers! Defining _XOPEN_SOURCE on OpenBSD
10947 seems to do the opposite to Linux and *disable* pread and pwrite!
10951 * Stripped out the session machinery - all that is actually required is to
10952 ensure that any unflushed changes are flushed when the destructor runs.
10954 * A few other backend interface cleanups.
10958 * Unified the shlib version numbers (the small benefit of tracking them
10959 individually makes it hard to justify the extra work required, and having one
10960 version simplifies debian packaging too).
10962 * configure.in: Fix typo (STLPORT_CXXLAGS -> STLPORT_CXXFLAGS)
10964 * Removed trivial m4/Makefile.am and autoconf/Makefile.am and do the work
10965 from the top level Makefile.am instead. It's easier to see the structure
10966 this way, and it also removes a couple of recursive make invocations which
10967 will speed up builds a little.
10971 * HACKING: Added a list of subtasks when doing a release.
10972 Currently it's always me that does this, but it may not always be
10973 and anyhow it'll help me to have a list to run through.
10975 * include/xapian/database.h: Remove references to sessions in doxygen
10978 * docs/quickstart.html: Corrected lingering reference to "om.h" and
10979 note that we need <iostream>.
10981 * docs/quickstartindex.cc.html,docs/quickstartexpand.cc.html,
10982 docs/quickstartsearch.cc.html: Add <iostream>.
10984 * PLATFORMS,AUTHORS: Updated.
10986 * docs/quartzdesign.html: Corrected various pieces of out of date
10987 information, and improved wording in a couple of places.
10989 * docs/scalability.html: Removed the reference to the Quartz update bottleneck
10990 "currently being addressed for Xapian 0.8" as it's now been addressed! Also
10991 reworded to remove use of first person (it was originally a message sent to
10994 Xapian-core 0.8.0 (2004-04-19):
10996 * Omega, xapian-examples and xapian-bindings now have their own NEWS files.
11000 * Throw an exception when an empty query is used to build in the binary
11001 operator Query constructor (previously this caused a segfault. Added
11004 * Made the TradWeight constructor explicit. This is technically an API change
11005 as before you could pass a double where a Xapian::Weight was required - now
11006 you must pass Xapian::TradWeight(2.0) instead of 2.0. That seems desirable,
11007 and it's unlikely any existing code will be affected.
11009 * Added "explicit" qualifier to constructors for internal use which take a
11012 * Renamed Xapian::Document::add_term_nopos to Xapian::Document::add_term
11013 (with forwarding wrapper method for compatibility with existing code).
11015 * The reference counting mechanism used by most API classes now handles
11016 creating a new object slightly more efficiently.
11018 * Xapian::QueryParser: Don't use a raw term for a term which starts with a
11023 * apitest, quartztest: Added a couple of tests, and commented out some test
11024 lines which fail in debug builds.
11026 * quartztest: cause a test to fail if there's still a directory after a call
11027 to rmdir(), or if there isn't a directory after calling mkdir().
11029 * apitest: Check returned docids are the expected values in a couple more
11030 cases. Improved wording of a comment.
11034 * We now merge a batch of changes into a posting list in a single pass which
11035 relieves an update bottleneck in previous versions.
11037 * When storing the termlist, pack the wdf into the same byte as the reuse
11038 length when possible - doing so typically makes the termlist 14% smaller!
11039 This change is backward compatible (0.7 database will work with 0.8, but
11040 databases built or updated with 0.8 won't work with 0.7).
11042 * quartzcheck: Check the structure within the postlist Btree as well as
11043 the Btree structures themselves.
11045 * Reduced code duplication in the btree manager and btreechecking code.
11047 * quartzdump: Backslash escape space and backslash in output rather than hex
11048 encoding them; renamed start-term and end-term to start-key and end-key;
11049 removed rather pointless "Calling next" message; if there's an error, write
11050 it to stderr not stdout, and exit with return code 1.
11052 * Corrected a number of comments in the source.
11054 * Removed several needless inclusions of quartz_table_entries.h.
11056 * Removed OLD_TERMLIST_FORMAT code - it has been disabled for since 0.6.0.
11058 * Removed all the quartz lexicon code and docs. It's been disabled for ages,
11059 and we've not missed it.
11063 * XO_LIB_XAPIAN autoconf macro can now be called without arguments in the
11064 common case where you want the test to fail if Xapian isn't found.
11066 * Fixed the configure test for valgrind - it wasn't working correctly when
11067 valgrind was installed but was too a version to support VALGRIND_COUNT_ERRORS
11068 and VALGRIND_COUNT_LEAKS.
11070 * GCC 2.95 supported -Wno-long-long and is our minimum recommended version, so
11071 unconditionally use -Wno-long-long with GCC, and don't test for it on other
11072 compilers (the old test incorrectly decided to use it with SGI's compiler
11073 resulting in a warning for every file compiled).
11077 * Updated the quickstart tutorial and removed the warning that "this
11078 document isn't up to date".
11080 * docs/intro_ir.html: Added a link to "Information Retrieval" by Keith van
11081 Rijsbergen which can be downloaded from his website!
11083 * docs/quartzdesign.html: Some minor improvements.
11085 * docs/matcherdesign.html: Merged in more details from a message sent to the
11088 * docs/queryparser.html: Grammar fixes.
11090 * Doxygen wasn't picking up the documentation for PostingIterator and
11091 PositionListIterator - fixed. Added doxygen comments for Xapian::Stopper
11092 and Xapian::QueryParser.
11094 * PLATFORMS: Updated with many results from tinderbox and from users.
11096 * AUTHORS: Updated the list of contributors.
11098 * HACKING: XAPIAN_DEBUG_TYPES should be XAPIAN_DEBUG_FLAGS.
11100 * HACKING: Updated to mention that building from CVS requires
11101 `./configure --enable-maintainer-mode' (or use bootstrap).
11103 * HACKING: Added notes about using "using", and pointers to a couple of useful
11108 * Solaris: Code tweaks for compiling with Sun's C++ compiler.
11110 * IRIX: Code tweaks for compiling with SGI's C++ compiler.
11112 * NetBSD mkdir() doesn't cope with a trailing / on the path - fixed our code to
11115 * mingw/cygwin: Only use O_SYNC (on the debug log) if the headers define it.
11117 * backends/quartz/quartz_table_manager.cc: Fix for building on mingw.
11119 * mingw: Added configure test for link() to avoid infinite loop in our C++
11122 * mingw and cygwin both need -Wl,--enable-runtime-pseudo-reloc passing when
11123 linking. Arrange for xapian-config to include this, and check that the ld
11124 installed is a new enough version (or at least that it was at configure
11125 time). Also pass to programs linked as part of the xapian-core build.
11127 * cygwin: Close a QuartzDatabase or QuartzWritableDatabase before trying to
11128 overwrite it - cygwin doesn't allow use to delete open/locked files...
11130 * backends/quartz/quartz_termlist.cc: Use Xapian::doccount instead of
11131 unsigned int in set_entries().
11133 * Database::Internal::Internal::keep_alive() should be
11134 Database::Internal::keep_alive().
11136 * Make Xapian::Weight::Weight() protected rather than private as we want to be
11137 able to call it from derived classes (GCC 3.4 flags this, other compilers
11142 * Open debug log with flag O_WRONLY so that we can actually write to it!
11144 * backends/quartz/quartz_values.cc: Fixed problem with dereferencing
11145 a pointer to the end of a string in debug output.
11147 Xapian 0.7.5 (2003-11-26):
11151 * Xapian::QueryParser now supports prefixes on phrases and expressions (e.g.
11152 author:(twain OR poe) subject:"space flight").
11154 * Added missing default constructors for TermIterator, PostingIterator, and
11155 PositionIterator classes.
11157 * Fixed PositionIterator assignment operator.
11161 * queryparsertest: Added testcase for new phrase and expression prefix support.
11163 * apitest: Added regression tests for API fixes.
11167 * quartzcompact: Fix the name that the meta file gets copied to (was
11168 /path/to/dbdirmeta rather than /path/to/dbdir/meta).
11172 * Changed to using AM_MAINTAINER_MODE. If you're doing development work on
11173 Xapian itself, you should configure with "--enable-maintainer-mode" and
11174 ideally use GNU make.
11176 * Fixed configure test for fdatasync to work (I suspect a change in a recent
11177 autoconf broke it as it relied on autoconf internal naming).
11179 * Fully updated to reflect move of libbtreecheck.la from backends/quartz
11180 to testsuite. btreetest and quartzcheck should build correctly now.
11184 * Added first cut of documentation for Xapian::QueryParser query syntax.
11186 * Fixed incorrectly formatted doxygen documentation comments which resulted in
11187 some missing text in the collated API and internal classes documentation.
11189 * Documented --enable-maintainer-mode and problems with BSD make in HACKING.
11191 * Fixed typo in docs/scalability.html.
11193 * PLATFORMS: Updated from the tinderbox.
11197 * omega: Parsing of the probabilistic query is now delayed until we need some
11198 information from it. This means that we can now use options set by the
11199 omegascript template to control the behaviour of the query parser.
11200 $set{stemmer,...} now controls the stemming language (e.g. $set{stemmer,fr})
11201 and $setmap{prefix,...} now sets the QueryParser prefix map (e.g.
11202 $setmap{prefix,subject,XT,abstract,XA}).
11204 * omega: Fixed $setmap not to add bogus entries.
11206 * docs/omegascript.txt: Expanded documentation of $set and $setmap to list
11207 values which Omega itself makes use of.
11209 * omega: Cleaned up the start up code quite a bit.
11211 * omega: Removed the unfinished code for caching omegascript command
11212 expansions. Added code to cache $dbsize. The only other value correctly
11213 marked for caching is already being cached!
11215 Xapian 0.7.4 (2003-10-02):
11219 * Fixed small memory leak if Xapian::Enquire::set_query() is called more than
11222 * Xapian::ESet now has reference counted internals (library interface version
11223 bumped because of this).
11225 * Removed unused OmDocumentTerm::termfreq member variable.
11227 * OmDocumentTerm ctor now takes wdf, and replaced set_wdf() with inc_wdf() and
11230 * Removed unused open_document() method from SubMatch and derived classes.
11232 * Calls made by the matcher to Document::Internal::open_document() now use the
11233 lazy flag provided for precisely this purpose, but apparently never used -
11234 this should give quite a speed boost to any matcher options which use values
11235 (e.g. sort, collapse).
11239 * Finished off support for running tests under valgrind to check for memory
11240 leaks and access to uninitialised variables.
11242 * apitest: Sped up deldoc4.
11244 * btreetest: Removed superfluous `/'s from constructed paths.
11246 * quartztest: adddoc2 now checks that there weren't any extra values created.
11250 * quartz: don't start the document's TermIterator from scratch on every
11251 iteration in replace_document(). Should be a small performance win.
11253 * quartz: Pass 0 for the lexicon/postlist table when creating a termlist just
11254 to find the doc length.
11256 * quartz: quartz_table_entries.cc: Removed rather unnecessary use of
11259 * quartz: quartz_table.cc: Removed unused variable.
11261 * quartz: Improved encapsulation of class Btree.
11265 * libbtreecheck.la now has an explicit dependency on libxapian.la.
11267 * We now set the dependencies for libxapian correctly so that linking
11268 applications will pull in other required libraries.
11270 * matcher/Makefile.am: Ship networkmatch.cc even if "make dist" is run from a
11271 tree with the remote backend disabled.
11273 * configure.in: Sorted out tests for gethostbyname and gethostbyaddr using
11274 standard autoconf macros.
11276 * configure.in: If fork is found, but socketpair isn't, automatically disable
11277 the remote backend rather than configure dying with an error.
11279 * autoconf/: Removed various unused autoconf macros.
11283 * xapian-config.in: Link with libxapianqueryparser before libxapian, since
11284 that's the dependency order.
11286 * Removed or replaced uses of <iostream> and <iosfwd> in the library sources
11287 - we don't need or want the library to pull in cin and friends.
11289 * extra/queryparser.yy: Fixed to build with Sun's C++ compiler.
11291 * Make the dummy source file C++ rather than C so that automake tells libtool
11292 that this is a C++ library - vital for correct linking on some platforms.
11294 * Makefile.am: Pass -no-undefined to libtool so that we can build build a DLL
11297 * configure.in: Fixed check for socketpair - we were automatically disabling
11298 the remote backend on platforms where socketpair is in libsocket
11301 * Use O_BINARY for binary I/O if it exists.
11303 * common/utils.h: mkdir() only takes one argument on mingw.
11305 * common/utils.h,testsuite/backendmanager.cc: Touch file using open() rather
11308 * common/utils.cc: Fixed to compile if snprintf isn't available.
11312 * docs/scalability.html: Fixed slip (32GB should be 32TB); Added note about
11313 Linux 2.4 and ext2 filesize limits.
11315 * PLATFORMS: Updated.
11317 * NEWS: Fixed a few typos.
11321 * xapian.i: using namespace std in SWIG parsed segment to sort out typemaps.
11325 * Updated RPM packaging.
11329 * omega: $topdoc now ensures the match has been run; $date no longer ensures
11330 the match has been run.
11332 * omega: Fixed to build with Sun's C++ compiler.
11334 Xapian 0.7.3 (2003-08-08):
11338 * MSetIterator: Fixed MSetIterator::get_document() to work when get_mset() was
11339 called with first != 0 (regression test msetiterator3).
11343 * internaltest: Changed test exception1 to actually test something (hopefully
11344 what was originally intended!)
11346 * Added long option support to the testsuite programs (and quartzdump).
11348 * Testsuite now builds on platforms for which we use our own stringstream
11351 * Only use \r in test output if the output is a tty.
11353 * Increased default timeout used by tests running on the remote backend from 10
11354 seconds to 5 minutes to avoid tests failing just because the machine running
11355 them is slow and/or busy.
11357 * Fixed check for broken exception handling - we were getting "Xapian::"
11358 prefixed to one version and not on the other.
11360 * tests/runtest: Set srcdir if it isn't already to make it easy to manually run
11361 test programs from a VPATH build.
11363 * apitest: Check termfreq in allterms4.
11367 * quartz: Fixed allterms TermIterator to not give duplicate terms when a
11368 posting list is chunked; added regression test (allterms4).
11370 * quartz: Check for EINTR when reading or writing blocks and retry the
11371 operation. This should mean quartz won't fail falsely if a signal is
11372 received (e.g. if alarm() is used).
11376 * Renamed libomqueryparser to libxapianqueryparser - for backward compatibility
11377 we still provide a library with the old name for now.
11379 * xapian.m4: Added XO_LIB_XAPIAN to replace OM_PATH_XAPIAN. XO_LIB_XAPIAN will
11380 automagically enable use of "xapian-config --ltlibs" if A[CM]_PROG_LIBTOOL is
11381 used in configure.in.
11383 * xapian-config: Now supports linking with libtool - using libtool means that
11384 the run-time library path is set and that you can now link with an
11385 uninstalled libxapian. Also xapian-config will now work once xapian-core's
11386 configure has been run, rather than only after "make all".
11388 * xapian-config: Now automatically tries to link libxapianqueryparser too.
11390 * bootstrap: Removed bootstrap scripts in favour of top-level bootstrap which
11391 creates a top-level configure you can optionally use to configure all checked
11392 out Xapian modules with one command, and which creates a top level Makefile
11393 to build all checked out Xapian modules with one command.
11395 * Added versioning information to libxapian and libxapianqueryparser.
11397 * xapian-example/omega: Use libtool and XO_LIB_XAPIAN so we can link with an
11398 uninstalled Xapian, and so the run time load path gets built into the
11399 binaries (no need to set LD_LIBRARY_PATH just because you install Xapian with
11400 a non-standard prefix).
11402 * configure: Stop the API documentation from being regenerated when
11403 include/xapian/version.h changes (since it's generated by configure).
11405 * Fixed "make dist" in VPATH builds.
11409 * common/getopt.h: #include <stdlib.h>, <stdio.h>, and <unistd.h> before
11410 defining getopt as a macro - this avoids problems with clobbering prototypes
11411 of getopt() in system headers.
11413 * bin/quartzcompact.cc: Need stdio.h for rename().
11415 * languages/Makefile.am: Fixed compilation for compilers other than GCC.
11417 * Moved rset serialisation into a method of RSet::Internal, so
11418 omrset_to_string() is now just glue code. This eliminates the need for it to
11419 be a friend of RSet::Internal which Sun's C++ compiler didn't seem to be able
11424 * Fix incorrect documentation comment for Enquire::set_set_forward(). (Looked
11425 like a cut&paste error)
11427 * COPYING: Updated FSF address, and reinstated missing section: "How to Apply
11428 These Terms to Your New Programs"
11430 * PLATFORMS: Updated some linux results: RH7.3 on x86, and Debian on alpha and
11431 arm; Updated FreeBSD success report; Updated with results from the tinderbox.
11433 * docs/mkdoc.pl: Don't choke on a comment at the end of the DIST_SUBDIRS line
11436 * HACKING: Improved note about why libtool 1.5 is needed.
11438 * HACKING: Added note about additional tools needed for building a
11443 * Fixed VPATH builds.
11445 * python: Fixed to link with libomqueryparser.
11447 * guile,tcl8: Updated typemaps to SWIG 1.3 style.
11451 * omindex.cc: Added missing `#include <errno.h>'.
11453 * omindex/scriptindex: Fixed signed character issue in accent normalisation.
11455 * omindex: fixed memory and file descriptor leak on indexing a zero-sized file.
11457 * omindex: Fixed sense of test for unreadable files.
11459 * omindex: Improved log messages to distinguish re-indexed/added.
11461 * omindex,omega,scriptindex: Fixed to compile with mingw.
11463 * omindex: Fixed to compile with GNU getopt so we can build on non-glibc
11468 * msearch: Quick fix to get mingw building going.
11470 * getopt: Copied over our fixes for better C++ compatibility.
11472 * simplesearch: Stem search terms.
11474 * simpleindex: Fixed not to run words together between lines.
11476 * simpleindex: Create database if it doesn't exist.
11478 Xapian 0.7.2 (2003-07-11):
11482 * Fixed NULL pointer dereference when a test threw an unexpected exception.
11486 * Quartz: When asked to create a quartz database, try to create the directory
11487 if it doesn't already exist. Then we don't have to do it in every single
11488 Xapian program which wants to create a database...
11492 * common/getopt.h: Fixed to work better with C++ compilers on non-glibc
11495 * common/utils.h: missing #include <ctype.h>
11497 * Quartz: Defined _XOPEN_SOURCE=500 for GLIBC so we get pread() and pwrite().
11499 * common/utils.h: Improved mingw implementation of rmdir().
11503 * PLATFORMS: Added MacOS X 10.2 success report.
11505 * Improvements to doxygen-generated documentation.
11509 * Moved to separate xapian-bindings module.
11511 * Added configure check for SWIG version (require at least 1.3.14).
11513 * bindings/swig/xapian.i: Fixed over-enthusiastic automatic conversion of
11514 termname to std::string.
11516 * PHP4 bindings much closer to working once again; updated guile and tcl8
11521 * omega: If the same database is listed more than once, only search the first
11524 * omega: use snprintf to help guard against buffer overflows.
11526 Xapian 0.7.1 (2003-07-08):
11530 * Fixed testsuite programs to not try to use "rm -rf" under mingw.
11534 * Quartz: Use pread() and pwrite() on platforms which support them. Doing so
11535 avoids one syscall per block read/write.
11537 * Quartz block count is now unsigned, which should nearly double the size of
11538 database for a given block size. Not tested this yet.
11542 * omindex: Fixed compilation problem in 0.7.0.
11546 * Added new document discussing scalability issues.
11548 * PLATFORMS: Updated.
11550 Xapian 0.7.0 (2003-07-03):
11554 * Moved everything into a Xapian namespace, which the main header now being
11555 xapian.h (rather than om/om.h).
11557 * Three classes have been renamed for better naming consistency:
11558 OmOpeningError is now Xapian::DatabaseOpeningError, OmPostListIterator is
11559 now Xapian::PostingIterator, and OmPositionListIterator is now
11560 Xapian::PositionIterator.
11562 * xapian.h includes <iosfwd> rather than <iostream> - if you were relying on
11563 the implicit inclusion, you'll need to add an explicit "#include <iostream>".
11565 * Replaced om_termname with explicit use of std::string - om_termname was just
11566 a typedef for std::string and the typedef doesn't really buy us anything.
11568 * Older code can be compiled by continuing to use om/om.h which uses #define
11569 and other tricks to map the old names onto the new ones.
11571 * Define XAPIAN_VERSION (e.g. 0.7.0), XAPIAN_MAJOR_VERSION (e.g. 0), and
11572 XAPIAN_MINOR_VERSION (e.g. 7).
11574 * Updated omega and xapian-examples to use Xapian namespace.
11578 * Xapian::QueryParser: Accent normalisation added; Improved error reporting;
11579 Fixed to handle the most common examples found in the wild which used to give
11584 * Python bindings brought up to date - use ./configure --enable-bindings to
11585 build them. Requires Python >= 2.0 - may require Python >= 2.1.
11587 * Enabled optional building of bindings as part of normal build process. Old
11588 Perl and Java bindings dropped; for Perl, use Search::Xapian from CPAN; Java
11589 JNI bindings will be replaced with a SWIG-based implmentation.
11591 internal implementation changes:
11593 * Removed one wrapper layer from the internal implementation of most API
11596 * Xapian::Stem now uses reference counted internals.
11598 * Internally a lot of cases of unnecessary header inclusion have been removed
11599 or replaced with forward declarations of classes. This should speed up
11600 compilation and recompilation of the Xapian library.
11602 * Suppress warnings in Snowball generated C code.
11604 * Reworked query serialisation in the remote backend so that the code is now
11605 all in one place. The serialisation is now rather more compact and no longer
11606 relies on flex for parsing.
11610 * Moved all the core library tests to tests subdirectory.
11612 * apitest now allows backend to be specified with "-b" rather than having to
11613 mess with environmental variables.
11615 * Testsuite programs can now hook into valgrind for leak checking, undefined
11616 variable checking, etc.
11620 * Fixed parsing of port number in remote stub databases.
11622 * Quartz: Improved error message when asked to open a pre-0.6 Quartz database.
11624 * Quartz backend: Workaround for shared_level problem turns out to
11625 be arguably the better approach, so made it permanent and tidied up
11630 * Build system fixed to never leave partial files in place of the expected
11631 output if a build is interrupted.
11633 * quartzcheck, quartzdump, and quartzcompact are now built by "make" rather
11634 than only by "make check".
11636 * xapian-config: Removed --prefix and --exec-prefix - you can't reliably
11637 install Xapian with a different prefix to the one it was configured with,
11638 yet these options give the impression you can.
11642 * Fixed sending debug output to a file with XAPIAN_DEBUG_LOG with a value which
11643 didn't contain "%%" (%% expands to the current PID).
11645 * Fixed Xapian::MSetIterator::get_collapse_count() to work as intended.
11649 * omindex,scriptindex: Normalise accents in probabilistic terms.
11651 * omindex: Read output from pstotext and pdftotext via pipes rather
11652 than temporary files to side-step the whole problem of secure temporary file
11653 creation; Use pdfinfo to get the title and keywords from when indexing a PDF;
11654 Safe filename escaping tweaked to not escape common safe punctuation.
11656 * omindex: Implement an upper limit on the length of URL terms - this is a
11657 slightly conservative 240 characters. If the URL term would be longer than
11658 this, its last few bytes are replaced by a hash of the tail of the URL. This
11659 means that (apart from hopefully very rare collisions) urlterms should still
11660 be unique ids for documents. This is forward and backward compatible for
11661 URLs less than 240 characters.
11663 * omindex: Clean up processing of HTML documents:
11664 - Ignore the contents of <script> and <style> tags in HTML.
11665 - Strip initial whitespace in each tag in an HTML document.
11666 - Try not to split words in half when truncating title and summary.
11668 * query.cc: Set STEM_LANGUAGE near the start of the file so it's easy
11669 for users to change until we get better configurability.
11671 * omega: Replaced half-hearted logging support with flexible OmegaScript-based
11672 approach with new $log command. Also added $now to allow the current
11673 date/time to be logged.
11675 * templates/xml: added collapse info to xml template.
11679 * Assorted minor documentation improvements.
11681 * PLATFORMS: Updated.
11685 * Improved RPM packaging of xapian-core and omega.
11687 Xapian 0.6.5 (2003-04-10):
11689 * OmEnquire: optimised the handling when sort_bands == 1 and fixed incorrect
11690 results in this and some other sorting cases; added some sorting testcases.
11692 * OmMSetIterator: added get_collapse_count() which returns a lower bound on
11693 the number of items which were removed by collapsing onto the current item.
11695 * OmStem: added default OmStem constructor and "none" language. Both of these
11696 give a stemmer object which leaves terms unchanged which should allow for
11697 simpler logic in programs using Xapian. The default constructor also removes
11698 the need to mess with pointers in some cases.
11700 * Automatically disable the remote backend if we don't have fork() since the
11701 remote backend requires it in several places.
11703 * Fixed to build with debug enabled.
11705 * testsuite: fixed to still build when some backends are disabled.
11707 * extra/parsequerytest.cc: Fixed to build with GCC 2.95.
11709 * Testsuite: Added regression test for Quartz bug which caused problems with
11710 long terms on machines with signed chars.
11712 * testsuite/index_utils.cc: Handling of ^x was just downright wrong due to a
11715 * Improved portability: Fix for 64 bit machines. Fixed btreetest to build with
11716 older compilers lacking <sstream>. Xapian is now much closer to building
11717 with Sun's CFront-based Sun Pro C++ compiler, and with a Linux to mingw
11720 * PLATFORMS: Updated with the results of many test builds.
11722 * Improved RPM packaging of xapian-core and omega.
11724 * Documentation: Use http://www.doxygen.org/ as URL for doxygen; Fixed bad link
11725 to our own website in overview.html; code_structure.html now only includes
11726 directories in the build system.
11728 * HACKING: updated.
11730 * Removed bugs/todo.xml, TODO, TODO.release, docs/todo.html, and
11731 docs/todo-release.html from the distribution. Bugs and todo items will be
11732 tracked in Bugzilla instead.
11734 * Install docs in /usr/share/doc/xapian-core instead of /usr/share/xapian-core.
11736 * omega: If xP and P are both empty, there may be a boolean query, so don't
11737 force first page of hits.
11739 * omega: Fixed off-by-one error in rounding down topdoc - it was possible to
11740 get to an empty page of hits if there were exactly a multiple of HITSPERPAGE
11741 matches and the matcher over-estimated the number of matches and Omega
11742 displayed page links.
11744 * omega: Fixed handling of multiple DB parameters to be as documented.
11746 * omega: Added $collapsed to report get_collapse_count() for the current hit.
11748 * omega: Added $transform{} which does regexp manipulation (currently disabled
11749 until configure tests for regexp library are added)
11751 * omega: Added $uniq{} to eliminate duplicates from a sorted list.
11753 * omega: Don't force page 1 for a query with repeated terms!
11755 * omega: removed duplicates from terms listed in term frequencies.
11757 * omega: Added cgi parameter COLLAPSE to collapse on key values
11759 * omega: Added $value{key[,docid]} support to omegascript
11761 * omega: Renamed DATE1, DATE2, and DAYSMINUS to the more meaningful START, END,
11762 and SPAN (NB SPAN is days before END, or after START, or before today -
11763 whereas SPAN was before *DATE1* or before today). The old parameters names
11764 are supported (with the original semantics) for now.
11766 * omega: Actually install documentation!
11768 * templates/query: propagate B boolean filters
11770 * templates/godmode: removed link to EuroFerret image
11772 * templates/godmode: added value dumping, for values from 0-255
11774 * omindex: Report correct version number (was hard-wired to 1.0!)
11776 * scriptindex: Allow '_' in fieldnames. Diagnose bad characters in fieldnames
11779 * dbi2omega: Added DBUSER and DBPASSWD environmental variable support so that
11780 password protected DBs can easily be used
11782 * scriptindex.cc: added missing "#include <stdio.h>" which caused builds
11783 to fail for some platforms.
11785 Xapian 0.6.4 (2002-12-24):
11787 * Quartz backend: Fixed double setting of position list when updating a
11788 document with term position information (overall result was correct, just
11789 inefficient); when deleting a position_list, don't check if it's empty,
11790 just ask the layer below to delete it and let it handle the case when
11791 there's nothing to delete; Fixed unpacking of termlist on platforms where
11794 * OmQueryParser: Added support for searching probabilistic fields (using
11795 <field>:<term>); the unstem multimap now includes "." on the end of a
11796 term if it was there in the query.
11798 * Don't include "om.h" as a dependency for the api docs since it's generated
11799 a configure time and the dependency was forcing users to regenerate the
11800 documentation, which requires doxygen to be installed.
11802 * Bindings: Python bindings updated to work with the updated API (still
11803 disabled by default).
11805 * Muscat 3.6 backend: Fixed to build with the new database factory functions;
11806 fixed compilation warnings; Muscat 3.6 DA and DB databases don't support
11807 positional information. Instead of throwing an exception when we try to
11808 access it, return an empty position list (like a quartz database with no
11809 position information would). This allows copydatabase to be used to convert
11810 a Muscat 3.6 database to a quartz one.
11812 * Documentation: quartzdesign and todo list updated.
11814 * quartzcheck: default mode changed to "v" rather than "+", since "+" is too
11815 verbose for a btree of any size; if you pass a quartz database directory,
11816 quartzcheck will now check all the tables which make up a quartz database.
11818 * quartzcompact: new tool which makes a copy of a quartz database with full
11819 compaction turned on - this results in a smaller database which is faster
11820 to search. The next update will result in a lot of block splitting though
11821 (since all blocks are as full as possible).
11823 * omega: Added $unstem to map a stemmed term to the form(s) used in the query;
11824 $queryterms now only includes the first occurrence of each stemmed form;
11825 $prettyterm makes use of the unstem map; prefer MINHITS to MIN_HITS and
11826 RAWSEARCH to RAW_SEARCH since none of the other CGI parameter names have
11827 _ separating words (continue to support old names for now); fixed default
11828 template to not generate topterms twice, and fixed topterms to not stick
11829 outside the green box; corrected omegascript docs - it's $setrelevant
11832 * scriptindex: index=nopos with new indexnopos action; index and indexnopos now
11833 take an optional prefix argument; index=nopos is handled specially for
11834 backwards compatibility; added new data action to generate terms for date
11837 Xapian 0.6.3 (2002-12-14):
11839 * Updated PLATFORMS and todo list. Noted in HACKING that Bison 1.50 seems to
11842 * OmQueryParser now creates an "unstem" multimap to allow probabilistic
11843 query terms to be converted back to the form the user originally typed.
11845 * Updated documentation for remote protocol description and the quickstart
11846 tutorial which were both very out of date.
11848 * No longer use OmSettings to pass matcher parameters. This completes the
11849 removal of OmSettings.
11851 * Added workaround for problem with cursors sharing levels in the btree.
11852 This should fix sporadic problems with large databases (small databases
11853 have fewer btree levels so aren't affected).
11855 * Stub databases now work again, though with a different format. The new
11856 format allows multiple databases to be specified in the stub file.
11858 * OmEnquire::get_eset() now takes a flags argument of bit constants |-ed
11859 together instead of 2 bools.
11861 * Applied Martin Porter's better fix for the btree sequential addition bug
11862 which Richard fixed a few months ago. Richard's fix resulted in a correct
11863 btree, but didn't always utilise space as efficiently as possible.
11865 * Fixed the remote backend to handle weighting schemes after the OmSettings
11866 changes. You can now even implement your own weighting scheme and use it
11867 with the remote backend provided you register it with SocketServer at
11868 runtime (this feature has been on the todo list for ages).
11870 Xapian 0.6.2 (2002-12-07):
11872 * Set env var XAPIAN_SIG_DFL to stop the testsuite installing its
11873 signal handler (may be useful with some debugging tools).
11875 * backends/quartz/btree.cc: max_item_size wasn't being set due to
11876 some over-zealous code pruning. It was defaulting to 0, and
11877 was causing the code to write off the end of allocated memory
11880 * matcher/localmatch.cc: fixed handling of wtscheme() - we were
11881 trying to use it for the extra weights, and then double
11884 * common/omdebug.cc,common/omdebug.h: Fixed permissions on newly
11885 created log file (was getting 000!); Simplified class internals;
11886 Renamed env vars: OM_DEBUG_FILE is now XAPIAN_DEBUG_LOG,
11887 OM_DEBUG_TYPES is now XAPIAN_DEBUG_FLAGS (old versions still work
11890 * testsuite/testsuite.cc: Fixed so running "gdb .libs/apitest"
11891 finds srcdir (for an in-tree build at least).
11893 * Fixed to compile with --enable-debug=full.
11895 * docs/remote.html: Updated from OmSettings to factory functions.
11897 * PLATFORMS: ixion is actually Linux 2.2.
11899 * OmWritableDatabase now has a default constructor.
11901 * Weighting scheme now specified by passing OmWeight object to OmEnquire.
11902 This also allows user weighting schemes (just subclass OmWeight and
11903 pass in an instance of this new class). [This doesn't currently work
11904 with the remote backend.]
11906 * No longer use OmSettings to specify parameters for constructing databases.
11907 Instead there's a factory function for each database type - temporary naming
11908 scheme is OmXxx__open(), mostly because it's easy to grep for later.
11909 Instead of create and overwrite flags, we pass in a value - a new possible
11910 opening mode is "create or open". [At present stub databases and the
11911 machinery in InMemory to allow the multierrhandler1 test aren't working.
11912 Everything else should be.]
11914 * OmEnquire::get_eset() takes parameters instead of an OmSettings object.
11916 * Fixed reversed sense of use_query_terms (and fixed reversed sense test in
11917 apitest which meant this wasn't spotted).
11919 * Documentation: Link to annotated class lists in doxygen generated
11920 documentation instead of the rather empty index pages; added doxygen
11921 markup so that apidoc now documents header files; updated todo list.
11923 * Documentation: intro doc thing was very out of date in places - fixed.
11925 * Omega: index .php files as HTML, with the PHP code stripped out; omindex
11926 return non-zero return code if an unexpected exception is caught; fixed
11927 HTML parser to not read one character past the end of the document in
11928 some cases; updated in line with OmSettings related changes to the API;
11929 Fixed $dbname to return "default" for the default database instead of "";
11930 templates/query: Removed now unused xDEFAULTOP hidden field, and superfluous
11931 "}"; dbi2omega now more efficient and can be restricted to listed fields.
11933 Xapian 0.6.1 (2002-11-28):
11935 * Fixed to compile with GCC 3.0.
11937 * PLATFORMS: Updated.
11939 Xapian 0.6.0 (2002-11-27):
11941 * Quartz database backend: lexicon disabled (./configure CXXFLAGS=-DUSE_LEXICON
11942 to reenable it), and encoding schemes simplified and made more compact;
11943 extended and added test cases; minimum block size is now 2048 bytes (as
11944 documented before, but now we actually enforce this); btree checking code
11945 split off and only linked in when required; tidied up btreetest's output.
11947 * Replaced our stemmers with those from Snowball. These give better results,
11948 and are actively maintained by Martin Porter (who wrote the original Xapian
11949 stemmers too). It also means that Xapian now has stemmers for Finnish,
11950 and Russian, and an implementation of Lovins' English stemmer.
11952 * Assorted improvements to the documentation, especially the documentation
11953 of the internals of the Quartz backend.
11955 * Removed the three uses of RTTI (typeid() and dynamic_cast<>) - one was
11956 totally superfluous, and the other two easily avoided.
11958 * Omega and simpleindex example: limit probabilistic term length to 64
11959 characters to stop the index filling up with junk terms which nobody will
11962 * Omega: Added dbi2omega perl script to dump any database which perl DBI can
11963 access into the dump format expected by scriptindex.
11965 Xapian 0.5.5 (2002-12-04):
11967 * Fixed compilation with --enable-debug.
11969 * Minor documentation updates.
11971 * Omega: Fixed paging on default database; removed xDEFAULTOP from the query
11972 template as it's no longer used; removed bogus unmatched '}' from query
11973 template; added dbi2omega perl script to dump any database which perl DBI
11974 can access into the dump format expected by scriptindex; limit length of
11975 probabilistic terms generated to 64 characters.
11977 Xapian 0.5.4 (2002-10-16):
11979 * Fixed a compilation error with "make check" when using GCC 3.2.
11981 * PLATFORMS: checked 0.5.3 works on OpenBSD and Solaris 7.
11983 Xapian 0.5.3 (2002-10-12):
11985 Notable changes: Improvements to the test suite, and internal code cleanups:
11987 * Internal code cleanups on Quartz Btree implementation.
11989 * Minor documentation updates (TODO and PLATFORMS updated; Martin Porter's
11990 stemming paper removed - see the Snowball site for background stemmer
11993 * Implemented QuartzAllTermsList::get_approx_size().
11995 * Removed a couple of occurrences of "using std::XXX;" from externally
11998 * With GCC, add warning flags "-Wall -W" rather than "-Wall -Wunused" (-Wall
11999 implies -Wunused anyway). Fixed all the warnings this throws up, except in
12000 languages/ (that code is to be replaced with Snowball soon).
12002 * Test suite: Disable colour test output if stdout isn't a terminal and
12003 reworked check for broken exception handling as the previous version never
12004 seemed to fire. Other assorted minor improvements.
12006 * include/om/om.h is now removed on "make distclean" rather than "make clean".
12008 Xapian 0.5.2 (2002-10-06):
12010 Further improvements to documentation and portability:
12012 * docs/: converted all text docs to HTML (except omsettings which will
12013 has odd markup (LaTeX?) and will probably soon be obsolete anyway).
12015 * remote backend: Fixed handling of timeouts which are now in the past - fixes
12016 test failures with redhat/x86.
12018 * quartz backend: now works on 64 bit platforms.
12020 * test suite: try to spot mishandled exceptions and stop them causing bogus
12023 Xapian 0.5.1 (2002-10-02):
12025 This release fixes features improved documentation and some build system
12028 * PLATFORMS: updated with more test results.
12030 * docs/: tidied up layout of HTML documentation; converted the notes about
12031 BM25 into HTML; updated stemmer docs to reflect intention to use Snowball
12032 instead; included HTML versions of quickstart*.cc.
12034 * automake 1.6.3 and autoconf 2.54 are now required for those working
12035 from CVS to fix a problem with the generated Makefiles and Solaris
12038 * net/Makefile.am: Fixed building of readquery.cc from readquery.ll.
12040 * buildall script is now deprecated - use the new streamlined bootstrap script
12043 Xapian 0.5.0 (2002-09-20):
12045 The last release of the software that is now known as Xapian was Open Muscat
12046 0.4.1 on November 24th 2000, not far from 2 years ago.
12048 There's been a significant amount of development in this time, so we've
12049 summarised the most notable changes and improvements:
12051 * The project is now called "Xapian". We've renamed the modules in the light
12054 + "om" is now "xapian-core"
12055 + "om-examples" is now "xapian-examples", and now contains small,
12056 instructive examples which demonstrate how to use Xapian to implement
12057 particularly features.
12058 + Added "xapian-applications" which contains larger sample applications
12060 * Much improved build system - should now build "out of the box" on many Unix
12061 platforms. Can now VPATH build with vendor tools on most platforms. Builds
12062 as cleanly as we can achieve with GCC 2.95.* (some bogus warnings due to
12063 compiler bugs). Should build without warnings on GCC 3.0, 3.1, and 3.2.
12065 * If using GCC, om/om.h now contains a check that the compiler used to build
12066 Xapian and the compiler used to build the application have compatible C++
12067 ABIs. So you get a clear error message early from the first attempt to
12068 compile a file rather than a confusing error from the linker near the end
12071 * RPM packages are now available. We intend to prepare Debian packages in the
12074 * xapian-config no longer support "--uninst". It's hard to make this work
12075 reliably and portably, and the effort is better expended elsewhere.
12076 Configure with a prefix and install to a temporary directory instead.
12078 * Xapian can now work with files > 2Gb on OSes which support them.
12080 * Restructured and reworked documentation.
12082 * Removed thread locks. We intend to be "thread-friendly" so different
12083 threads can access different objects without problems. In the rare event
12084 that you want to concurrently call methods on the same object from
12085 different threads you need to create a mutex and lock it. Thus the thread
12086 lock overhead is only incurred when it's necessary.
12088 * Indexgraph removed from core library. It will reappear as an add-on library
12091 * Omega's query parser has now been reworked as a separate library.
12093 * Terminology change - "keys" are now known as "values" to avoid confusion,
12094 since they're not like keys in a relational database. The exception is when
12095 a value is used as a key in some operation, e.g. "match_collapse_key".
12097 * Database backends:
12099 + Auto backend: can now be used to create a new database.
12100 + Auto backend: added support for "stub" databases - a text file
12101 specifying the settings for the database to be opened (particularly
12102 useful for allowing easy access to specific remote databases).
12103 + Quartz backend: many fixes and improvements, and the code has been
12104 cleaned up a lot. Implemented deleting of items from postlists.
12105 + Remote backend: implemented term_exists() and get_termfreq();
12106 + Multi-backend: the document length is now fetched from the sub-postlist
12107 rather than the database, which provides a huge speed-up in some cases.
12108 + Sleepycat backend: this experimental backend has been removed.
12109 + Muscat 3.6 backends: now disabled by default.
12113 + Test cases added for most bug fixes and new features.
12114 + stemtest: rewritten in C++ rather than part C++, part perl. Now 15%
12116 + includetest: removed - it's no longer useful now the code has matured.
12117 + Removed problematic leak checking from testsuite. We plan to use
12118 valgrind instead soon.
12122 + Fixed several matcher bugs which could cause incorrect results in some
12124 + Fix bug in expander due to nth_element being called on the wrong
12126 + Added sorting within relevance bands to the matcher.
12127 + Matcher now calculates percentages differently, such that 100%
12128 relevance is actually achievable.
12129 + Matcher now uses a min-heap rather than nth-element to maintain the
12130 proto-mset. This is cleaner and more efficient.
12131 + New operator OP_ELITE_SET replaces match_max_or_terms option.
12132 + Implemented multiple XOR queries.
12133 + Add a new query operator, OP_WEIGHT_CUTOFF, which returns only those
12134 documents from a query which have a weight greater than a specified
12136 + Removed OmBatchEnquire from system: it may return at a later date, but
12137 for now it is simply out of date and a maintenance liability, and
12138 gives no significant advantage.
12139 + Added experimental match bias functors.
12141 * The API has been cleaned up in various places:
12143 + OmDocumentContents and OmIndexDoc merged to become OmDocument
12144 + OmQuery interface cleaned up
12145 + OmData and OmKey removed - methods which used them now just pass a
12147 + OmESetItem replaced by OmESetIterator; OmMSetItem by OmMSetIterator;
12148 om_termname_list by OmTermIterator
12149 + OmDocumentTerm and OmDocumentParams removed
12150 + OmMSet::mbound replaced by OmMSet::matches_
12151 {lower_bound,estimated,upper_bound}, giving more information
12152 + Xapian iterators now have default constructors
12153 + Most API classes now have reference counted internals, so assignment
12154 and copying are cheap
12155 + OmStem now has copy constructor and assignment operator