Expand some query-related testcases
[xapian.git] / xapian-applications / omega / NEWS
bloba1b338f3b54d781245d2deedc37b78e7c1a1b196
1 Omega 1.4.19 (2021-12-31):
3 documentation:
5 * configure: Add missing AC_ARG_VAR for all programs so that they are
6   documented in --help output, and so that autoconf knows they are "precious"
7   and preserves them if configure is rerun even when they're specified via an
8   environment variable.
10 * Add usage examples for $jsonobject.
12 * Fix path to omega in quickstart document.  Fixes #813, reported by Jim Lynch.
14 * Update for the IRC channel move from freenode to libera.chat.
16 indexers:
18 * Fix handling of UTF-16 BOMs in XML and HTML - we had the sense of the
19   endianness indicated by the BOM the wrong way round.
21 * Avoid making an extra temporary copy of HTML/XML data which has a UTF16 BOM.
23 * We now ignore an end of line immediately after a PHP close tag to match what
24   PHP does.
26 * omindex:
28   + Fix handling of formatted xlsx dates in certain cases.
30 * scriptindex:
32   + Add new scriptindex whitespace removal actions `ltrim`, `rtrim`, `squash`,
33     and `trim`.
35   + Improve `truncate` action - if a word ends exactly on the requested length
36     we now leave it in place rather than removing it.
38   + Report the location of previous `unique` action in the error given when
39     `unique` is used more than once.
41 omega:
43 * Clamp START and END with packed timestamps.  The 4-byte unsigned packed
44   time_t format can't represent dates before 1970 or after Sun 07 Feb 2106
45   06:28:15 UTC so clamp dates before or after these - previously they would
46   wrap around.
48 * The JSON produced by $jsonobject no longer contains newlines, which makes it
49   usable as a single line serialisation format without post-processing.
51 * Add $base64 OmegaScript command.
53 * omega: Add flag_no_positions to wrap new
54   Xapian::QueryParser::FLAG_NO_POSITIONS.
56 templates:
58 * Fix topterms template to not trigger early matching.  We were checking $msize
59   before including the `query` template, but doing so would trigger the query
60   to be run, which means that settings early in the `query` template which
61   should affect the result (such as $setmap{prefix,...}) were being ignored
62   when the `topterms` template was used.  Partly addresses #815, reported by
63   Gennadiy.
65 * Add field support to opensearch and xml templates.  These templates now also
66   search title, topic and filename by default and support `title:`, `author:`
67   and `topic:` in the query string (both like the template `query` already
68   does). Fixes remaining issue in #815, reported by Gennadiy.
70 testsuite:
72 * Expand omegatest.  All scriptindex actions now have test coverage.
74 build system:
76 * Replace uses of obsolete autoconf macros, fixing warnings if configure is
77   regenerated with a recent release of autoconf.
79 portability:
81 * Don't automatically use _FORTIFY_SOURCE on mingw-w64.  Recent mingw-w64
82   versions require -lssp to be linked when _FORTIFY_SOURCE is enabled, so just
83   skip the automatic enabling.  Users who want to enable it can specify it
84   explicitly.
86   Fixes #808, reported by xpbxf4.
88 * Automatically enable GCC warnings -Wduplicated-cond and -Wduplicated-branches
89   if using a GCC version new enough to support them.  The usefulness of
90   -Wduplicated-cond was highlighted by dcb in #816.
92 * Fix GCC -Wshadow warning.
94 * Use clock_gettime() and nanosleep() under modern mingw as these allow higher
95   precision than what we previously used.
97 Omega 1.4.18 (2021-01-14):
99 indexers:
101 * omindex:
103   + Add default MIME mapping for application/rtf.  IANA have registrations for
104     text/rtf and (more recently) application/rtf (it seems because newer
105     versions of the RTF format can contain 8-bit data) so we now recognise
106     application/rtf by default and handle it the same way as text/rtf.
108     Current libmagic seems to always return text/rtf (no matches for
109     application/rtf in magic.mgc) and we continue to map extension rtf to
110     text/rtf, so this change is mainly future-proofing against libmagic future
111     changes.
113   + Add support for indexing OpenXPS, which is effectively the same as XPS
114     internally in ways we care about, but it uses a different mimetype and a
115     different filename extension.
117 omega:
119 * Explicitly use OR for MORELIKE queries.
121   Since 1.3.0 the default value of DEFAULTOP has been AND, which typically
122   makes MORELIKE queries much less useful since they'll only match documents
123   containing all the terms from the query expansion.  We now explicitly insert
124   " OR " between the terms if DEFAULTOP hasn't been set to OR, which makes them
125   work much more like they did in 1.2.x.
127 * Make $stoplist and $unstem consider all query strings by always passing the
128   new Xapian::QueryParser::FLAG_ACCUMULATE flag.
130 * Add $foreach command which works like $map, but just concatenates the
131   evaluated results rather than adding tabs to turn them into an OmegaScript
132   list.
134 * Extend $include{} to allow handling failure to open the specified file via an
135   optional second argument which if specified will be evaluated and returned
136   instead.  Patch from Gaurav Arora.
138 * Support multiple MORELIKE parameters - we now form an RSet from all the
139   specified documents and use that to generate the query to run (previously
140   only one of multiple MORELIKE parameters was used).
142 Omega 1.4.17 (2020-08-21):
144 documentation:
146 * Document comment format supported by scriptindex index scripts.  We've
147   supported comments on a line by themselves and introduced with a # since
148   scriptindex was first added back in 2002, but it seems have never actually
149   been documented before now.
151 omega:
153 * Check for SERVER_PROTOCOL=INCLUDED before anything which might throw an
154   exception so that if it is set we suppress the Content-Type: when reporting
155   such exceptions.  Spotted by Gaurav Arora.
157 * Report get_description() for Xapian::Error exceptions instead of get_msg().
158   This means we now report the exception's type, context (useful for network
159   errors), and errno information.
161 * Avoid leaking MyStopper object.  The object essentially has the lifespan of
162   omega itself, but becomes unreachable when the QueryParser object is
163   destroyed.  To make it easier to use leak-checking tools, hand ownership of
164   this object to the QueryParser object.
166 testsuite:
168 * omegatest: Tell leak sanitizer not to report leaks for allocations which
169   aren't explicitly released on exit - the OS will reclaim all memory from the
170   process at this point and explicitly releasing everything just takes time for
171   no real benefit.  We will still see leaks of objects which become unreachable
172   during a run.
174 Omega 1.4.16 (2020-06-08):
176 indexers:
178 * Fix handling of XML empty tag syntax when there's a quoted parameter right
179   before the closing `/>`.  This caused `<title xml:lang="en-US"/>` to treat
180   the body text as the document title.  Spotted by Gaurav Arora.
182 * omindex: Fix killing of filter child process if the parent process receives a
183   signal.  Spotted by Gaurav Arora.
185 omega:
187 * Reject $setrelevant without an argument list.  This has never been documented
188   as allowed, and previously crashed with a segfault.  Fixes #802, reported by
189   Gaurav Arora.
191 * If there's an error opening the databases we now close any we managed to open
192   successfully before the error so that things like $dbsize can't end up
193   reporting values for a subset of the specified databases.
195 portability:
197 * Use our own autoconf cache variable namespace (xo_cv_ prefix instead of
198   ac_cv_) to avoid colliding with standard autoconf macro use if config.site or
199   a shared config.cache is used.  The former case caused a build failure for
200   the OpenBSD port with 1.4.15, reported by Lucas R.
202 Omega 1.4.15 (2020-02-24):
204 documentation:
206 * Update documentation about how to add a new format to omindex.  Patch from
207   Bruno Baruffaldi.
209 indexers:
211 * Check for a BOM on HTML files, which for HTML5 should determine the encoding.
213 omega:
215 * Allow $if{COND} without any actions which is useful as a way to evaluate
216   something but ignore the result if you just want the side effects.  Indeed
217   we were already recommending to use it if you want to ignore the return value
218   of $log.  Fixes bug introduced in 1.4.14, reported by tuftedocelot.
220 * Add OmegaScript support for $jsonbool{COND} for encoding a boolean value for
221   use in JSON.  This is equivalent to $if{COND,true,false} but more readable.
223 * Add OmegaScript support for $jsonobject{} which allows producing a JSON
224   object from an OmegaScript map.
226 * Allow specifying a format to $jsonarray{} so it is no longer restricted to
227   producing an array of strings.
229 * Add $keys{MAP} OmegaScript command which gives a sorted list of the keys from
230   an OmegaScript map.
232 portability:
234 * Simplify probes for snprintf.  The broken snprintf in libbsd in Linux libc4
235   is from ~25 years ago so way too ancient to matter now, and all callers
236   already handle the pre-ISO semantics of returning -1 for an undersize buffer
237   so we don't need to run a test program to probe for this at configure time,
238   which is more cross-compile friendly.
240 * Avoid deprecation warning on recent Linux.  We were including sys/sysctl.h if
241   it existed, which it does on Linux but we don't actually use it there.
242   Including it now warns that it is deprecated, so skip including it under
243   Linux.  Reported on IRC by kumaran.
245 Omega 1.4.14 (2019-11-23):
247 documentation:
249 * Improve omindex --help docs for --duplicates.
251 indexers:
253 * Add built-in support for iso-8859-15 so we can handle it without iconv.
254   This charset is a variant of iso-8859-1 with 8 characters changed, most
255   notably including the euro currency symbol.  It's the most commonly seen
256   charset we didn't have built-in support for.
258 omega:
260 * Fix error handling in $lookup.  We now check for errors from cdb_init()
261   and cdb_get().  We've never checked for errors from cdb_init(), while
262   for cdb_get() this bug was introduced by a warning fix in 1.2.20.
264 Omega 1.4.13 (2019-10-14):
266 documentation:
268 * Document that $log will start to return an error message in 1.5.0, and that
269   one can wrap it using a $if with no action now to be future-proof.
271 indexers:
273 * Optimise converting us-ascii to UTF-8 to do nothing, like we already do when
274   converting UTF-8 to UTF-8.
276 * scriptindex:
278   + Add new 'gap' action which provides a way to leave a gap in the term
279     positions between fields to prevent phrases and positional operators from
280     matching across fields.
282 templates:
284 * Future-proof use of $log against changes in 1.5.0.
286 Omega 1.4.12 (2019-07-23):
288 documentation:
290 * Improve docs for OmegaScript $hitlist{}.
292 * Fix RST formatting errors in omega docs.
294 * Clarify use of Q prefix for unique ID terms - it was described as "reserved",
295   but the use of "Q" is really just a convention (and in fact omindex uses "U"
296   not "Q").
298 * Clarify scriptindex's weight action takes parameter >= 0.
300 * Correct typo in OmegaScript $add parameter documentation.
302 indexers:
304 * omindex:
306   + Fix typo in mimetypes used for Apple iWork documents ("apply" instead of
307     "apple") which meant that these documents weren't actually being indexed.
308     Patch from Bruno Baruffaldi.
310   + Pipe input to ps2pdf as this accepts input on stdin.  Possibility pointed
311     out by Gaurav Arora.
313 * scriptindex:
315   + If parsedate action's format includes %z adjust for the timezone if
316     possible (this requires the non-POSIX tm_gmtoff member of struct tm)
317     and flag an error for other platforms.
319   + If parsedate action's format include %Z flag an error as that doesn't
320     seem to be usefully supported by strptime() anywhere.
322   + Fix parsedate action to treat formats without a timezone as being UTC
323     instead of localtime.
325   + Add date=unixutc.  The existing date=unix works in localtime which is
326     unhelpful if you want to use it on the output of parsedate since that's in
327     UTC; date=unixutc is just like date=unix except it always works in UTC.
329   + The date action now emits a warning for invalid values.  The documentation
330     used to say "invalid values are ignored at present", but it's more helpful
331     to flag bad data than quietly ignore it.
333   + We now check the date action's parameter at script parse time and unknown
334     values result in an error and nothing being indexed.  Previously an unknown
335     format uselessly resulted in the terms D, M and Y literally being added to
336     every document.
338   + The split action now supports a new "prefixes" split style.  This gives all
339     the prefixes from the split, so split=/,prefixes on a file path gives all
340     parent directories.
342 omega:
344 * Remove documented limitation of $subdb and $subid - the implementation
345   assumed that each omega database name corresponded to a single Xapian
346   database, and if a database name referred to a stub database file expanding
347   to multiple Xapian databases then they would misbehave.  Such cases are now
348   handled properly as well.
350 * Extend $addfilter to support adding negated filters via a new optional second
351   argument which specifies the type of filter to add.
353 * Stop $sort from needlessly ensuring the match has run.
355 * Handle corner case of nested $hitlist gracefully instead of potentially
356   entering an infinite loop.
358 testsuite:
360 * omegatest: Avoid setting TZ globally during tests as that hides bugs where
361   behaviour depends on the local timezone when it shouldn't.
363 * omegatest: Support testing when built using LeakSanitizer by suppressing
364   leak reports for cached compiled pcre regular expressions.  These aren't
365   released when the program exits but aren't memory leaks.
367 build system:
369 * Remove outdated deprecation warning suppression which was there to support
370   building from git in the run up to 1.3.2 - a development version which is
371   nearly 5 years ago now.
373 portability:
375 * Fix problems with fallback strptime() implementation which was being included
376   in the wrong binary, and was lacking a required const_cast on the return
377   value.
379 * Rework setenv() compatibility handling.  Now that Solaris 9 is dead we can
380   assume setenv() is provided by Unix-like platforms (POSIX requires it).  For
381   other platforms, provide a compatibility implementation of setenv() so the
382   compatibility code is encapsulated in one place rather than replicated at
383   every use.
385 Omega 1.4.11 (2019-03-02):
387 indexers:
389 * omindex:
391   + outlookmsg2html: Handle Subject, Date, and From headers.
393 omega:
395 * In $div and $mod we were converting a non-zero denominator from string to int
396   twice for no good reason.
398 testsuite:
400 * omegatest: Fix testcase which was failing if the local timezone was behind
401   UTC.  This testcase was added in 1.4.10.
403 * omegatest: Tweak to not fail when $time not supported - it seems that the
404   OS time functions we use report an error on GNU Hurd for unknown reasons.
406 build system:
408 * Sync up probes for OS time functions in omega's configure with those in
409   xapian-core which may solve $time not being supported on GNU Hurd.
411 portability:
413 * Add missing includes of <cerrno>.  Fixes #776, reported by Matthieu Gautier.
415 * Stop using htonl()/ntohl() in a non-network context which should improve
416   portability to platforms without a POSIX-like socket API.
418 Omega 1.4.10 (2019-02-12):
420 documentation:
422 * Use https for URLs where supported.
424 indexers:
426 * omindex:
428   + Index .apxl and .kth files as Apple Keynote.  The .apxl extension is used
429     for the XML files inside .key bundles/directories which hold the text
430     content of the presentation, and by handling them we can index .key
431     directories more usefully.  It seems they are also sometimes found by
432     themselves.  Keynote themes have a .kth extension, and key2text can also
433     handle these.
435   + Pipe input to pdftotext, pdfinto and dpkg.  These tools all support piping
436     an input file on stdin, which can be a little more efficient when we
437     already have the file open (e.g.  to determine its type using libmagic, or
438     to calculate its checksum).
440   + An empty string for the start directory is now flagged as an error.
441     Previously `/` was used instead, which is unlikely to be what is wanted
442     (and `/` can be explicitly specified if that really is what is wanted).
444   + Fix emulation of stderr redirection when the indexer's stderr has been
445     closed.  We try to avoid using the shell when running external filters, and
446     emulate 2>/dev/null in commands, but if the indexer's stderr was closed
447     this emulation was buggy and would make give the filter a closed stderr
448     instead of one redirected to /dev/null.
450   + When emulating redirection to /dev/null, we now open /dev/null once and
451     dup that fd each time which is a little more efficient and simplifies the
452     code.
454 * scriptindex:
456   + date=unix is now a no-op for empty input - previously it would unhelpfully
457     add boolean date terms for 1970-01-01.
459   + Warn for empty filename in LOAD action.  Previously this gave a slightly
460     confusing error: "Couldn't load file '': No such file or directory"
462   + Unknown command-line options now cause scriptindex to give a non-zero exit
463     status.
465 testsuite:
467 * omegatest: Add testcase for SPAN.n on different slots.
469 * omegatest: Update expected QueryParser output for the xapian-core change to
470   produce flatter Query trees.
472 build system:
474 * Use AM_ICONV to detect iconv() which should handle non-system install of GNU
475   libiconv properly.  Fixes #775, reported by Ryan Schmidt.
477 portability:
479 * Provide fall-back strptime() implementation for platforms which don't provide
480   it, using the C++11 std::get_time() function.  We use strptime() directly
481   where it's available as some older C++11 compilers seem to lack
482   std::get_time() (GCC 4.8 for example).  This is used by the parsedate action,
483   which was added in 1.4.6.
485 Omega 1.4.9 (2018-11-02):
487 indexers:
489 * omindex:
491   + Try harder to avoid opening a file being indexed more than once by
492     reusing the file descriptor in more cases.
494   + Hint to the OS not to cache output from external filters which require
495     using a temporary file.
497 * scriptindex:
499   + If the LOAD action successfully opens a file but hits a read error the
500     error message now reports the file name correctly.  Previously it would
501     report the partial file contents read so far instead of the file name.
503 portability:
505 * We no longer call posix_fadvise() with POSIX_FADV_NOREUSE under Linux,
506   since it's still not implemented there.  We also now only call
507   posix_fadvise() with POSIX_FADV_DONTNEED right before we close the file
508   descriptor under Linux.
510 Omega 1.4.8 (2018-10-25):
512 documentation:
514 * Assorted minor documentation improvements.
516 indexers:
518 * omindex:
520   + Improve date handling in .eml files.  We now handle a "Date:" header
521     without the day of the week, which is allowed by RFC822 and RFC2822
522     (though seems rare in practice).  If the date can't be parsed, we now
523     just omit the date information rather than failing to process the file.
525   + Add support for indexing Apple iWork documents (Keynote (.key), Numbers
526     (.numbers) and Pages (.pages)) using libetonyek.  Currently only the file
527     variants are handled since omindex doesn't currently support indexing a
528     directory as a document.
530   + Index Visio files using vsd2xhtml.
532   + Extend --filter to support filters which produce SVG as output.
534   + Handle SVG embedded in XML with svg: namespace prefix.
536   + Add --read-filters option to read a list of filters from a file, each line
537     of which is a rule as passed to --filter.  Based on a patch from Gaurav
538     Arora.
540   + Add new --mime-type-match option which allows specifying a MIME
541     Content-Type for a given shell filename pattern pattern (with the special
542     Content-Type values "ignore" and "skip" supported, as for --mime-type).
544   + Adjust --mime-type to allow ':' in the extension.  A valid MIME
545     Content-Type can't contain a colon, so if the argument to --mime-type
546     contains more than one colon it makes more sense to split at the *last*
547     colon (we used to split at the first), as an extension could conceivably
548     contain a colon.  Mostly this change is for consistency with the new
549     --mime-type-match option, where the leafname pattern could reasonably
550     contain a colon.
552   + Remove failed entries for ignored files.  If a file is mapped to
553     pseudo-mimetype "ignore" then remove any existing failure record for it so
554     that ignored files so we don't potentially end up with a lot of cruft
555     failure records for files we are no longer trying to index.
557   + If a file fails to index due to failing to allocate enough memory we now
558     try to flag it as failed to index so it will be skipped by default on
559     future runs.  This should help to avoid indexing getting stuck on
560     problematic files.
562   + Add a "pages" field with the number of pages in the document where we
563     know how to determine this (currently only for PDF files for which pdfinfo
564     reports this information).
566   + Handle initially empty database exactly the same was as when --overwrite
567     is specified.  This probably has no user-visible consequences, but it's
568     cleaner for the handling to be exactly the same.
570 * scriptindex:
572   + Improve scriptindex diagnostic messages.  All diagnostics are now labelled
573     as "error", "warning" or "note" as appropriate, and we now consistently
574     report "FILE:LINE:" (and also "COLUMN:" in most cases) to make it clearer
575     where the problem lies.
577   + Add new "split" action which splits the text on a specified delimiter and
578     executes the following actions for each piece.  Based on a patch by Gaurav
579     Arora.
581   + Missing whitespace after the closing " on an action argument is now
582     flagged as an error.  Previously scriptindex would attempt to parse
583     the following characters as the next action.
585   + Support C-like escapes for quoted parameter values.  Notably this means it
586     is now possible to include `"` in quoted parameter values.
588 omega:
590   + Value-based date range filters can now be specified via CGI parameters
591     START.N, END.N and/or SPAN.N where N is a value slot number, allowing
592     multiple concurrent filters on different slots to be specified.
594   + Support YYYY and YYYYMM limits in term-based date ranges.  Previously
595     value-based date ranges supported these as limits, but term-based date
596     ranges gave an error.
598   + Add stem_strategy option and deprecate existing stem_all option in favour
599     of this new more versatile option.
601   + Support "natural" $sort option via new flag "#" which sorts embedded
602     natural numbers in numerical order.
604   + Support numeric $sort option via new flag "n", similar to GNU sort -n.
606   + Rewrite field parsing to be more efficient, and store fields in an
607     unordered_map for faster lookup.
609 testsuite:
611 * htmlparsetest: Test whitespace collapsing.
613 portability:
615 * omegatest: Avoid "set -".  The autoconf manual notes that POSIX no longer
616   requires this, and that with traditional shells it resets -v and -x which
617   makes debugging harder.
619 * omegatest: Fix shell printf quoting issues which were a latent bug on macOS.
621 * Drop special handling for Compaq C++.  We never actually achieved a working
622   build using it, and I can find no evidence that this compiler still exists,
623   let alone that it was updated for C++11 which we now require.
625 Omega 1.4.7 (2018-07-19):
627 omega:
629 * New OmegaScript $unique command.  The existing $uniq only removes adjacent
630   entries (like the Unix uniq command) so to fully remove duplicates you need a
631   sorted input.  Sometimes it is desirable to remove duplicates from an
632   unsorted list without changing the order of the entries which are left, so
633   add $unique to do that.  If the list is sorted already, then $uniq is more
634   efficient.
636 * Fix $map to cleanly reject a single argument.
638 templates:
640 * templates/query: Merge multiple entries in the term frequency information,
641   which came from searching several prefixes by default.  Reported by Alistair
642   Buxton on #xapian-discuss.
644 * When multiple words with the same stem are in the query string we now fully
645   eliminate duplicates when showing term frequency information.
647 Omega 1.4.6 (2018-07-02):
649 general:
651 * Fix generate_sample() (used by OmegaScript $truncate and omindex) to return
652   an empty sample instead of throwing an exception when the requested sample
653   size is less than the size of the truncation indicator string.  Patch from
654   Addy.  Fixes https://trac.xapian.org/ticket/754 reported by Gaurav Arora.
656 documentation:
658 * Use terminology "value slot number" instead of "value number".
660 * Stop talking about "probabilistic terms" and "probabilistic queries" - we've
661   supported other families of weighting schemes since 1.3.2.
663 indexers:
665 * Check for the HTML5 doctype or legacy doctype declaration and use default
666   charset UTF-8 if either is present.  Previously we always used ISO-8859-1,
667   which is correct for older HTML versions, but not for HTML5.
669 * omindex:
671   + When running commands without going through the shell, emulate shell exit
672     codes 127 (for command not found) and 126 (for other cases where we fail to
673     run the command).  This means the "missing filter" handling should now work
674     properly for such commands.  Noted by Gaurav Arora.
676   + Index POD files despite minor formatting errors.  We now pass
677     --errors=stderr to pod2text so that minor formatting errors don't prevent
678     us from indexing a file.  (It may seem that --errors=none is a better
679     option, but for podlators < 4.11 that results in an ERRATA section in the
680     generated text version which we then end up indexing; 4.11 fixed that but
681     we can't assume that's in use).  Reported by Gaurav Arora.
683 * scriptindex:
685   + Avoid some unnecessary copying of Action objects by making use of C++11
686     features.
688   + Consistently send errors to stderr - some were sent to stdout.
689     Patch from Gaurav Arora.
691   + Add new "hextobin" action.  Based on a patch from Gaurav Arora.
693   + Warn about non-integer arg to hash.
695   + Fix hash action without an argument, which was failing with an assertion.
696     Based on a patch by Gaurav Arora: https://github.com/xapian/xapian/pull/189
698   + Reject 'hash' with argument < 6.  The hashing truncates and then adds a
699     6 character hash of the removed part, so can't produce a result shorter
700     than 6 characters.  Patch from Gaurav Arora.
702   + Look for alphanumerics when parsing index actions.  None of the current
703     index actions contain digits, but we give more helpful error messages this
704     way.
706   + Deprecate allowing spaces around = in scripts.  This was never documented
707     as supported, and leads to a missing argument quietly swallowing the next
708     action rather than using an empty value or giving an error.  Reported by
709     Gaurav Arora in https://github.com/xapian/xapian/pull/182
711   + In boolean and unique actions, add a colon between prefix and term when
712     the term starts with a colon.  This means the mapping is reversible, and
713     matches what omega actually does in this case when it tries to reverse the
714     mapping.  Thanks to Andy Chilton for pointing out this corner case.
716   + Add parsedate and valuepacked actions.  Together these assist adding date
717     values for sorting and date range filtering.  Based on a patch from Gaurav
718     Arora.
720   + Use DB_RETRY_LOCK to wait if the database is already in use rather than
721     sleeping for a second and retrying.  On most platforms this means we make a
722     blocking request for the lock, and even on platforms where that's not
723     supported, we now sleep and retry inside libxapian, and without having to
724     throw and catch an exception each time.
726 omega:
728 * $freq: Speed up some cases by avoiding throwing and catching an exception
729   when we know the MSet has no term frequency information.
731 * $sort: New OmegaScript command which does a string sort on an OmegaScript
732   list, with u (unique) and r (reverse) options.
734 * $cond: New OmegaScript conditional multi-way conditional.  Inspired by LISP's
735   COND, this provides a neater way to write a cascade of $if checks.
737 * $switch: New OmegaScript multi-way conditional which provides an even neater
738   way to write a cascade of $if{$eq{X,VALUE1},$if{$eq{X,VALUE2},...}}.
740 * $subdb and $subid: New commands which report the subdatabase name and the
741   docid in that subdatabase.
743 + $termprefix and $unprefix: New OmegaScript commands which expose the existing
744   code inside omega for splitting up a term.
746 * Use str() to convert time_t to string, which is simpler code and faster than
747   using snprintf().
749 testsuite:
751 * omegatest: Fix message when faketime is not installed - we were misreporting
752   this case as "faketime not working".
754 * omegatest: Add feature tests of $map.
756 * Add testcases for XML charset.  We already handle both default and specified
757   charsets for XML, but we didn't have any testcases for it.
759 build system:
761 * configure: Fix potentially confusing messages suggesting snprintf was added
762   in C90 - it was actually standardised in C99.
764 * Improve handling of multitarget rule stamp files.  Clean them on "make
765   maintainer-clean" and ship them so that --enable-maintainer-mode when
766   building from a tarball doesn't needlessly rerun the multitarget rules.
768 portability:
770 * Check for EAGAIN as well as EINTR from select().  The Linux select(2) man
771   page says: "Portable programs may wish to check for EAGAIN and loop, just as
772   with EINTR" and that seems to be necessary for Cygwin at least.
774 packaging:
776 * Use https for tarball URLs in .spec files.  This provides protection against
777   MITM attacks on people building packages using these spec files, and is also
778   slightly more efficient as the http: URLs redirect to the https: versions
779   anyway.
781 Omega 1.4.5 (2017-10-16):
783 documentation:
785 * Direct users towards $set{flag_spelling_correction,true} rather than the
786   deprecated $set{spelling,true} (which is slated for removal in 1.5.0).
788 * Fix typo in docs.
790 indexers:
792 * omindex:
794   + Check file size before calling libmagic to get the mime type, since
795     reading the file size is a much cheaper check and we can skip the
796     libmagic test if the file is empty or larger than the specified
797     maximum size.  Patch from caiyulun.
799 * scriptindex:
801   + Reject index scripts with multiple "unique" actions.  We don't handle this
802     case sensibly, and it doesn't seem like it really has a use, so better to
803     give an error for people who do this inadvertently.
805 omega:
807 * New $seterror command to set the error message.  Implemented by Gaurav Arora.
809 * Make $highlight more efficient.  Patch from Vivek Pal.
811 templates:
813 * query: Use $prettyurl for the URL shown at the end of each match (previously
814   we only used it on the URL shown as a fallback when the document has no
815   title).  Split off from changes by Vivek Pal in
816   https://github.com/xapian/xapian/pull/161
818 testsuite:
820 * omegatest: Tell faketime to freeze the clock - previously the clock ran on
821   from the specified fake time, and on a slow and/or heavily loaded machine a
822   test taking more than a second might fail due to this.
824 * Start adding feature tests for scriptindex (so far, checking that specifying
825   multiple 'unique' actions results in an error).
827 Omega 1.4.4 (2017-04-19):
829 indexers:
831 * omindex:
833   + 1.4.3 added a new --sample option, but contrary to the documentation
834     the default behaviour was to take the sample from the meta description
835     (which was the hard-wired behaviour in 1.4.2 and earlier).  The default
836     has now been changed to take the sample from the body.
838   + Index .shtm, .xhtml and .xhtm as HTML by default - .shtm is another
839     extension used for server-parsed HTML (in addition to the more common
840     .shtml), and .xhtm and .xhtml are XHTML.
842   + Fix fallback lookup for extension containing upper case.  User mappings
843     worked, but built-in extension to MIME type mappings were effectively being
844     ignored (because the result of the function call was not being checked).
845     Bug introduced in 1.3.4.
847   + Fix term-based date ranges, broken by changes in 1.4.2.  Found and
848     diagnosed by Gaurav Arora.
850   + Handle date range with start after end better - with term-based ranges,
851     this used to generate a bogus filter, but now just generates Dlatest.
853   + Use Y-term when range starts/ends at year start/end.  Previously we used 12
854     M-terms for these cases.
856   + Use full leap-year check when constructing term-based date ranges -
857     previous code was good until 2100, but even then it would only result
858     in an extra term being included for a non-existent February 29th in
859     rare cases.
861 omega:
863 * New OmegaScript command $cgiparams which returns a list of the parameter
864   names.
866 * Handle tab in a CGI parameter name in the same way as space.  Mostly this is
867   a way to avoid having tabs in CGI parameter names - they aren't useful, but
868   if they could have tabs in we can't put CGI parameter names in a list.
870 templates:
872 * query: Fix highlighting of matching terms.  We were using both $snippet and
873   $highlight, which results in double highlighting and HTML escaping, most
874   noticeable by literal <strong> and </strong> appearing around matching terms
875   in the rendered HTML snippet.  Reported by Mark Thomas on xapian-discuss.
877 build system:
879 * If gen-mimemap failed after creating mimemap.h, the rule wouldn't get rerun.
881 Omega 1.4.3 (2017-01-25):
883 indexers:
885 * omindex:
887   + Add support for indexing vCard files if Perl and its Text::vCard module
888     are available.
890   + Recognise application/x-rpm as alternative type since libmagic reports this
891     rather than application/x-redhat-package-manager.
893   + Use official MIME type application/vnd.debian.binary-package for debian
894     packages.  We used to map .deb and .udeb to application/x-debian-package,
895     but in 2014 (after we added that support for .deb) an official type was
896     registered with IANA.  We now map extensions .deb and .udeb to the official
897     type, but the unofficial type is still recognised (older versions of
898     libmagic probably report it, and users may be mapping to it).
900   + Handle PHP as MIME type text/x-php.  The main difference this makes is that
901     PHP files which don't have extension '.php' (e.g. .phtml, .phps, .php5,
902     .ph4, etc) get identified by libmagic as text/x-php and will now be indexed.
903     It also means that the user can now more easily configure different filters
904     for HTML and PHP.
906   + Don't use meta description as sample by default.  Now we have dynamic
907     snippets (via $snippet), the body text is a better default.  Also generated
908     HTML sometimes has unhelpful content in the meta description.  To get the
909     previous behaviour, use the new omindex command line option:
910     --sample=description
912 Omega 1.4.2 (2016-12-26):
914 documentation:
916 * Replace auto-generated list of the supported MIME types with an
917   auto-generated table showing the extensions that are mapped to each MIME type
918   by default.  Partly addresses #569, reported by catkin.
920 indexers:
922 * omindex: Add support for indexing markdown files (extension .md or .markdown,
923   mime-type text/markdown, using "markdown" to convert to HTML).
925 testsuite:
927 * Add support for "make installcheck" to run tests against installed version.
929 build system:
931 * configure: Fail with clear error with xapian-core < 1.4.0.
933 portability:
935 * Fix GCC -Wimplicit-fallthrough warning.
937 * Add missing <ctime> for time_t.
939 * Avoid snprintf_for formatting fixed-width integers - it results in warnings
940   about possible output truncation with GCC7 (which aren't actually possible
941   due to limited input range) and it's a bit heavyweight for this job anyway.
943 Omega 1.4.1 (2016-10-21):
945 documentation:
947 * Document bug in how $filters encodes DOCIDORDER=A.
949 * Suggest DOCIDORDER=X for DONT_CARE.
951 * Correct mentions of C++ API method MSet::get_snippet() to MSet::snippet().
953 * Fix typo in Omega 1.4.0 NEWS entry.  Patch from James Aylett.
955 indexers:
957 * omindex: Also index leafname with _ and & replaced by spaces.  Literal spaces
958   are often avoided in filenames, and "hello_world.txt" ought to be searchable
959   for via "hello" and "world".  Partly addresses #618, reported by Julien
960   Pfefferkorn.
962 omega:
964 * Add support for sorting by more than one value - e.g. SORT=+1,-2
966 * Add $msizelower and $msizeupper which provide access to the lower and upper
967   bounds on the number of matches.
969 * Add support for $set{weighting,coord}.
971 * Add weightingpurefilter option.  Normally a query consisting only of filter
972   terms won't have relevance weights calculated.  This new option allows you to
973   specify a weighting scheme to use for such queries, with the same values
974   supported as for the existing weighting option.  For example,
975   $set{weightingpurefilter,coord} will weight such queries by how many filter
976   terms match each document.
978 * $filters now includes DATEVALUE, which means we'll force the first page when
979   reloading or changing page starting from existing URLs upon upgrade to 1.4.1,
980   but the exact same existing URL could be for a search without the date filter
981   where we want to force the first page, so there's an inherent ambiguity
982   there.  Forcing first page in this case seems the least problematic
983   side-effect.  Omission noted by Gaurav Arora.
985 testsuite:
987 * Add feature test for boolprefix and prefix maps.
989 * Add more feature tests for $filters.
991 build system:
993 * GCC 4.7 is now enforced as the minimum version.
995 * Drop unused configure check for symbol visibility
997 * Drop compiler options that are no longer useful:
998   + -fshow-column is the default in all GCC versions we now support
999     (checked as GCC 4.6).
1000   + -Wno-long-long is no longer necessary now that we require C++11 where
1001     "long long" is a standard type.
1003 portability:
1005 * Fix build on platforms which don't provide timegm(), such as Cygwin.
1006   Reported on xapian-discuss by John Bankert.
1008 Omega 1.4.0 (2016-06-24):
1010 documentation:
1012 * Clarify $allterms and $terms documentation.  Make it clearer how they differ,
1013   and document that $allterms without a parameter list gives all terms indexing
1014   the current hit.  Noted by Andy Chilton.
1016 Omega 1.3.7 (2016-06-01):
1018 indexers:
1020 * Make named entity look-up (e.g. &eacute; -> 233) use the same keyword-lookup
1021   table approach we already use for HTML tags and built-in MIME content-types,
1022   rather than a std::map, which makes it faster while using less memory.
1024 Omega 1.3.6 (2016-05-09):
1026 documentation:
1028 * Fix overview.rst processing in VPATH build.  Our workaround for lack of an
1029   include path in docutils was only handling the first include in the file.
1031 omega:
1033 * Implement $match command for omegascript.  Patch from Richhiey Thomas.
1035 templates:
1037 * Lower case all HTML tags, attributes and values; explicitly close <option>
1038   tags.  Patches from Vivek Pal and Nirmal Singhania.
1040 * Migrate Omega Templates to HTML5.  Patch from Nirmal Sighania.
1042 * templates/query: Remove stray double quote from generated URL for spelling
1043   suggestion when THRESHOLD is set.  Patch from Nirmal Singhania.
1045 * templates/opensearch: Change response feeds to support OpenSearch 1.1.
1046   Patch from Nirmal Singhania.
1048 testsuite:
1050 * Update omegatest - the order of subqueries has changed in some cases, due
1051   to the "grouping" changes in the C++ API.
1053 build system:
1055 * Drop workaround for old git master before 1.3.2
1057 Omega 1.3.5 (2016-04-01):
1059 This release includes all changes from 1.2.23 which are relevant.
1061 omega:
1063 * Add optional prefix argument to $terms.
1065 * $snippet now uses MSet::snippet() instead of the Snipper class.
1067 * Add $contains{STRING1,STRING2}.  Contributed by Ayush Gupta.
1069 * Add support for negated boolean filter terms, specified by CGI parameter "N".
1071 * Support a direction prefix on SORT: '+' for ascending, '-' for descending.
1072   SORTREVERSE set to non-0 now flips the direction.  Fixes #697, reported by
1073   Andy Chilton.
1075 build system:
1077 * Need to AC_SUBST probed value of ZLIB_LIBS.  Noted by Paul Wise.
1079 portability:
1081 * omegatest; Test faketime actually works, and if it doesn't work skip
1082   testcases which use it.  On OS X 10.11, faketime from homebrew doesn't seem
1083   to work, probably due to the new "System Integrity Protection".  Fixes part
1084   of #707, reported by James Aylett.
1086 Omega 1.3.4 (2016-01-01):
1088 This release includes all changes from 1.2.22 which are relevant.
1090 documentation:
1092 * The lists of recognised MIME types and of ignored extensions are now
1093   generated along with the corresponding source code from a single master list.
1094   Partly addresses #569, reported by Charles Atkinson.
1096 * Note when $json and $jsonarray were added.
1098 indexers:
1100 * omindex:
1102   + Avoid using the shell to run most external commands as it's unnecessary
1103     overhead.  For the built-in filters, the only cases which now use a shell
1104     are where we run two unzip commands.  For user-specified commands, a simple
1105     and slightly conservative test is used, which should avoid a shell in most
1106     common cases where it isn't needed.  Notably, environment variables set
1107     before the command are handled.
1109   + Track files which couldn't be indexed in the user metadata and skip them by
1110     default on subsequent runs to avoid the costs of repeatedly running a
1111     filter on a file it can't handle.  Run omindex with --retry-failed to retry
1112     such files.
1114   + Overhaul the "per-site" terms:
1115     - 'H' prefix is hostname as before, except that if the term would be > 240
1116       bytes (unlikely but possible) the end is hashed is the same way 'U'
1117       prefix terms are.
1118     - 'P' terms are now added for every directory level, not just the start
1119       URL's path.
1120     - A new 'J' prefix term is added with the start URL (less any trailing
1121       '/'), which means all files indexed from a particular "site" are now
1122       indexed by one term.  See #376.
1124   + Add 'skip' pseudo-mimetype which extensions can be mapped to, and they will
1125     then be reported and skipped (to complement the existing 'ignore'
1126     pseudo-mimetype which causes files with the specified extension to be
1127     quietly ignored).
1129   + Treat a command of 'true' specially as meaning make the text extraction a
1130     no-op (as actually running /bin/true effectively would).  This provides a
1131     way to index some file types by only meta-data.  Fixes #519, reported by
1132     Brian Burton.
1134   + Add support for wildcard mimetypes */* and *.  Combined with filter command
1135     ``true`` for indexing by meta-data only, you can specify a fall back case
1136     of indexing by meta-data only using ``--filter '*:true'``.  From a
1137     suggestion by Brian Burton on xapian-discuss.
1139   + Index message/rfc822 and message/news.  These are individually saved email
1140     messages and news articles.
1142   + Index archived web page formats MAFF and MHTML.
1144   + Handle .xla, yet another XL extension.
1146   + Handle metadata in LibreOffice HTML export (dcterms.subject,
1147     dcterms.description, dcterms.creator and dcterms.contributor).
1149   + Use zlib's gzopen() instead of invoking "gzip -dc" for compressed Abiword
1150     documents.
1152 omega:
1154 * Add options argument to $transform.
1156 * Cache compiled regexps used in $transform.
1158 * Add $ord OmegaScript command which returns the Unicode codepoint for the
1159   first character of a UTF-8 string.
1161 * Add $chr OmegaScript command which returns the UTF-8 string for given Unicode
1162   codepoint.
1164 * Add $csv OmegaScript command which escapes a string for use as a field in a
1165   CSV file ("always quote" mode inspired by patch from Gaurav Arora.)
1167 * New $filters encoding which avoids collisions.  We also compare CGI parameter
1168   xFILTERS to what $filters would have returned in previous releases, so that
1169   on upgrades old format serialised filters are handled correctly.
1171 * Fix $jsonarray not to prepend ']' to the first array element.
1173 * Skip weighting scheme setup for a pure date range query - it won't be
1174   weighted anyway, so we can avoid having to parse weighting scheme parameters,
1175   etc.
1177 * Use value ranges when date range filtering by value.  Should be more
1178   efficient than a MatchDecider, and will automatically take advantage of any
1179   future value range optimisations in xapian-core.
1181 * Add default_db and default_template config options.  These allow the default
1182   template and default database name to be set via the config file, rather than
1183   being stuck with the respective defaults of "default" and "query".  Fixes
1184   #310, reported by Marco Hennigs.
1186 * Add support for non-exclusive filters.  Fixes #234, reported by Thomas
1187   Viehmann.
1189 testsuite:
1191 * Add start of testsuite for omega CGI.
1193 build system:
1195 * configure script now defaults to looking for xapian-config-1.3.  This is now
1196   automatically done for development series (odd middle component of the
1197   version number), but not for stable series (even middle component).  Fixes
1198   #695, reported by Jorge C. Leitão
1200 * Don't pointlessly link omega binary with libmagic (as we have since 1.3.1).
1202 portability:
1204 * Fix "make check" compilation failure on platforms without timegm().
1206 Omega 1.3.3 (2015-06-01):
1208 This release includes all changes from 1.2.20-1.2.21 which are relevant.
1210 documentation:
1212 * INSTALL: IRIX is past EOL so drop information about IRIX make.
1214 indexers:
1216 * omindex:
1218   + Add support for %f in command passed to --filter to allow specifying
1219     commands where the input file is not the final argument.  Fixed #570,
1220     reported by Charles Atkinson.
1222   + Allow --filter to handle commands which produce output in a temporary file
1223     rather than on stdout.
1225   + Allow --filter to specify the character set of the output the filter
1226     produces.
1228   + Handle application/vnd.ms-excel, text/x-perl and application/x-dvi via
1229     default --filter settings instead of hardcoded cases (now possible thanks
1230     to the new abilities that --filter has).
1232   + Add support for specifying a MIME subtype of '*' in --filter arguments.
1234   + Add -track-ctime option to allow omindex to pick up changes to file
1235     ownership and permissions.
1237   + Index terms from the leafname with an 'F' prefix, rather than treating them
1238     as more body text.  (Fixes #633, reported by Emmanuel Garette)
1240 omega:
1242 * Fix handling of multiple P.<prefix> fields - previously only the first seen
1243   was used.  These fields are also now taken into account when deciding if the
1244   query has changed.  $query now returns an OmegaScript list with one entry for
1245   each CGI parameter passed.
1247 templates:
1249 * templates/query: Fix setting setting of prefix map for P - in 1.3.2, this
1250   would failed to also search in the subject.  Now it also searches in the
1251   subject and topic.
1253 build system:
1255 * configure: Fix typo in message: 'libmagic-devl' -> 'libmagic-devel'
1257 portability:
1259 * Require a compiler with good C++11 support, like xapian-core now does.
1261 * Now we require C++11, just include <cstdint> for uint32_t.
1263 * Link omindex-list with our (GNU) getopt for platforms which don't use GNU libc.
1264   Thanks to James Aylett
1266 * Add timegm.cc to scriptindex_SOURCES to fix build on platforms which don't
1267   provide timegm().
1269 * Suppress bogus uninitialised variable warning with -Os under GCC 4.7.2.
1271 packaging:
1273 Omega 1.3.2 (2014-11-24):
1275 This release includes all changes from 1.2.16-1.2.19 which are relevant.
1277 documentation:
1279 * docs/overview.rst: Document built-in list of stopwords.
1281 * docs/termprefixes.rst: Update for renaming of 'brass' backend to 'glass'.
1283 indexers:
1285 * omindex:
1287   + The starting URL wasn't previously URL encoded.  In 1.2.18, a minimally
1288     intrusive fix was implemented.  In 1.3.2, we now encode the starting URL
1289     as we do for the rest of the filename.
1291   + Don't assume .doc is application/msword but let libmagic decide, since .doc
1292     files may actually be RTF, and sometimes people use .doc for plain-text
1293     documentation.
1295   + Add support for indexing 'topic' and 'created date' meta-data for
1296     OpenDocument format and HTML.
1298   + Index "topic" for PDF documents.
1300   + Commit changes and exit, rather than skipping the current file on most
1301     unexpected errors reading directories or initialising libmagic - otherwise
1302     we can end up deleting a lot of database entries on errors like EHOSTDOWN
1303     when indexing network mounts.
1305   + Add --opendir-sleep=SECS option to allow working around problems with
1306     indexing files on Microsoft DFS shares.
1308   + If we get ENOTDIR trying to index a file, skip it quietly (unless in
1309     verbose mode) as we already do if we get ENOENT, since ENOTDIR is what we
1310     get if the file and the directory it was in got removed between us getting
1311     the filename and trying to open it.
1313   + Handle ENOENT, ENOTDIR and EACCES from readdir().
1315   + If we've already opened the file (as we often will have if using a modern
1316     libmagic with magic_descriptor() available), then use fstat() on that fd
1317     rather than stat()/lstat() on the pathname.
1319   + Pass error message string and errno value in ReadError exceptions.
1321   + Report strerror(errno) if we can't read a file.
1323   + Filtering via text/html now handles HTML documents which specify a charset.
1325   + Add support for indexing Microsoft Publisher files using pub2xhtml.
1327   + Restrict the length of what we consider to be an extension, currently to 7
1328     characters or whatever the longest extension in the mime_map is if it is
1329     longer.
1331   + Avoid '//' in temporary filenames (cosmetic only).
1333 * omindex-list: New tool to list URLs of all the documents in a database (or
1334   list of databases) indexed by omindex.
1336 omega:
1338 * Allow setting query expansion scheme to "bo1".
1340 * Make the $json and $jsonarray force the text to be valid UTF-8, since
1341   otherwise the output isn't valid JSON.
1343 * Check parameters to $set{weighting,bm25 ...} and $set{weighting,trad ...}
1344   converted OK.  Based on patch from Aarsh Shah.
1346 * Add support to $set{weighting,...} for bb2, dlh, dph, ifb2, ineb2, inl2, lm,
1347   pl2 when we're built against a xapian-core which is new enough to have these
1348   schemes.
1350 * Add $snippet to generate a snippet of text tailored to the search.
1352 build system:
1354 * configure: Enable GCC's -Woverloaded-virtual warning.
1356 portability:
1358 * Ship common/safewinsock2.h, needed under mingw.
1360 Omega 1.3.1 (2013-05-03):
1362 This release includes all changes from 1.2.10-1.2.15 which are relevant.
1364 documentation:
1366 * INSTALL,configure: Provide hints as to what package to install for magic.h.
1368 indexers:
1370 * The HTML parser now explicitly handles <APPLET>, <OBJECT> and <TR>.
1372 * Use a generated compact and efficient table to convert HTML tag names
1373   to enum codes - this is both faster and smaller than the approach we were
1374   using, with the benefit that the table is auto-generated.
1376 * Always use our built-in conversion code for the character sets it can handle
1377   (previously we'd use iconv if available; now we only use iconv for other
1378   character sets).  This gives us more consistent results, and in particular
1379   means we now handle BOMs better (at least when using GNU iconv).
1381 * A lot of data labelled as "iso-8859-1" is actually "windows-1252".  The two
1382   only differ in characters which are control characters in iso-8859-1, so
1383   assume the latter when we see the former.
1385 * omindex:
1387   + Extend --filter to handle commands which produce HTML on stdout.
1389   + Don't report an error if a file is deleted (or renamed) between us reading
1390     the directory entry for it and trying to read the file itself by default.
1391     In --verbose mode, the situation is still reported, but now with a
1392     specific message.
1394   + If omindex receives any of the signals SIGHUP, SIGINT, SIGQUIT or SIGTERM,
1395     then kill any active external filter child process, then handle the signal
1396     as we did before.  If setpgid() is available, put each external filter in
1397     its own process group and kill the whole process group when we get a
1398     signal.
1400   + Use magic_descriptor() if the version of libmagic we're building against
1401     is new enough to have it.  This eliminates an extra opening of a file
1402     being indexed in certain cases.
1404   + Use rst2html to handle .rst and .rest files.
1406 omega:
1408 * Add new $json and $jsonarray OmegaScript commands to support producing JSON
1409   output.
1411 * Add $truncate command which truncates a string after a word.
1413 * Add support for $set{weighting,tfidf} to allow the new TfIdfWeight weighting
1414   scheme to be used.
1416 build system:
1418 * configure: Now looks for libmagic in MAGIC_PREFIX, to allow building with
1419   libmagic installed in a non-standard location.
1421 * Remove support for 'configure --enable-quiet', 'make QUIET=' and 'make
1422   QUIET=y' - automake now supports 'configure --enable-silent-rules', 'make
1423   V=1' and 'make V=0' which are broadly equivalent and more standard.
1425 portability:
1427 * tmpdir.cc: Add safeunistd.h for rmdir, required by GCC 4.7 (reported by
1428   Gaurav Arora).
1430 Omega 1.3.0 (2012-03-14):
1432 general:
1434 * Make libmagic a required dependency.
1436 documentation:
1438 * docs/termprefixes.html: Document how to map a user prefix to multiple term
1439   prefixes.
1441 * docs/overview.html: Improve documentation of htdig_noindex.
1443 indexers:
1445 * omindex:
1447   + Index title with an 'S' prefix rather than no prefix.
1449   + If the document with the highest existing docid before the run was updated,
1450     we were reporting it as "added", but now we correctly report it as
1451     "updated".
1453   + Catch and report std::exception explicitly, so failing to allocate memory
1454     is no longer reported as "Unknown exception".
1456 * scriptindex:
1458   + Remove special error handling case noting that index=nopos was replaced
1459     with indexnopos - this was removed in 1.1.0 so there's been enough time to
1460     upgrade.
1462 omega:
1464 + DEFAULTOP now defaults to AND rather than OR, since that matches what pretty
1465   much every search engine does these days.  Closes ticket#512.
1467 * Allow mapping a query string prefix to more than one term prefix (which
1468   xapian-core has supported since 1.0.4).
1470 * Add support for search inputs for multiple probabilistic prefixes, with
1471   support for per-prefix stemmers.
1473 * Drop legacy support for handling '.' separated terms in xP - that changed in
1474   Omega 0.9.7, more than 5 years ago now.
1476 * Remove support for OLDP CGI parameter which was superseded by xP
1477   approximately a decade ago, and isn't even documented!
1479 * Drop special handling for R-prefixed terms in $prettyterm - we stopped
1480   generating these in Xapian 1.0.
1482 templates:
1484 * templates/query:
1486   + We now map unprefixed queries to include S-prefixed terms to match the
1487     change in omindex to prefixing terms from the title with S.  You may want
1488     to make the same update to your own templates.
1490   + Set up prefixes for 'author:' and 'title:'.
1492 packaging:
1494 * xapian-omega.spec: We're ABI compatible within a release series so make
1495   dependency on xapian-core-libs >= rather than =.
1497 Omega 1.2.23 (2016-03-28):
1499 documentation:
1501 * Update links to Xapian website and trac to use https, which is now supported,
1502   thanks to James Aylett.
1504 indexers:
1506 * Fix HTML/XML entity decoding to be O(n) not O(n²) - processing HTML/XML with
1507   a lot of entities is now much faster.
1509 templates:
1511 * Remove unused country code to name maps.  These were intended as examples,
1512   but they aren't very useful as such, and really just bloat the templates
1513   needlessly.
1515 Omega 1.2.22 (2015-12-29):
1517 documentation:
1519 * Stop maintaining ChangeLog files.  They make merging patches harder, and stop
1520   'git cherry-pick' from working as it should.  The git repo history should be
1521   sufficient for complying with GPLv2 2(a).
1523 * Clarify help text for omindex --mime-type option.
1525 * docs/omegascript.rst:
1527   + Fix documentation of $last to say it's the MSet index *one beyond* the end
1528     of the current page.  Reported by Andrew Chilton.
1530   + Clarify that $split and $substr work in bytes.  Previously we said
1531     "characters" which could be taken as meaning they work with UTF-8
1532     characters.
1534   + Update documentation for $filters - it was missing these CGI parameters
1535     from the list of those serialised: COLLAPSE, DOCIDORDER, SORT, SORTREVERSE,
1536     SORTAFTER
1538   + Explicitly note user can use $setmap to create their own maps.
1540 * docs/overview.rst:
1542   + SVG extraction is built-in too.
1544   + Expand paragraph about command `false`.  Note the versions where explicit
1545     support was added, and that this will also work with any version on Unix,
1546     where `false` is a command.
1548   + Document `cdb_dir`.
1550 * docs/cgiparams.rst: Document behaviour if xDB is not set.
1552 * Change "characters" to "bytes" in a few places to clarify that we don't mean
1553   Unicode code points.
1555 indexers:
1557 * omindex:
1559   + Add '--title-size' option.
1561   + Handle .oft the same way as .msg - it's some sort of template email, and
1562     has essentially the same format.
1564 omega:
1566 * Make $querydescription ensure the match has been run, so that it includes
1567   filters.
1569 * Avoid $allterms, $cgilist, $filterterms and $terms being O(n²) in the number
1570   of items in the returned list.
1572 * If xFILTERS is not set, don't force the first page as that's unhelpful if
1573   someone fails to set it in their template.
1575 * When environment variable SERVER_PROTOCOL is set to INCLUDED (as it is when
1576   we're being included in a page), we already suppress the HTTP headers, but
1577   now we suppress the blank line after the header too.
1579 * Support option flag_cjk_ngram if built against xapian-core >= 1.2.22.
1581 testsuite:
1583 * Add test coverage for parsing of HTML entities.
1585 build system:
1587 * Fix error reporting if PCRE isn't installed. Fixes #693, reported by lhz7370.
1589 portability:
1591 * Avoid warning when building with glibc >= 2.21.
1593 * Don't provide our own implementation of sleep() under __WIN32__ if there
1594   already is one - mingw provides one, and in some situations it seems to clash
1595   with ours.  Reported to xapian-discuss by John Alveris.
1597 * Stop trying to use O_STREAMING - the patch to implement it was never merged
1598   into the Linux kernel, and I can't find any evidence that other platforms
1599   implement it.  The constant value O_STREAMING used now seems to be used for
1600   the part of O_SYNC which isn't covered by O_DSYNC, which seems likely to hurt
1601   performance if anything.
1603 Omega 1.2.21 (2015-05-20):
1605 documentation:
1607 * docs/overview.rst: Document 'E' prefixed boolean terms for filtering by
1608   extension (see #668, reported by bramvdh).
1610 * docs/encodings.rst: Add a document about character encoding, as suggested by
1611   James Aylett in #550.
1613 indexers:
1615 * omindex:
1617   + outlookmsg2html: Fix handling of message/rfc822 subparts.
1619 omega:
1621 * $prettyurl now decodes valid UTF-8 sequences, and some additional ASCII
1622   characters in the path part: []@!$&'()*+.;= (Fixes #550 and #644, reported by
1623   catkin and terencz.)
1625 * $prettyurl now leaves the query and fragment parts of the URL alone and won't
1626   decode an escaped "/" (omindex doesn't create URLs with any of these, so we
1627   only risk breaking other URLs which have them).
1629 * Drop compilation date and time from output when run from the command line -
1630   they prevent reproducible builds and the version number is sufficient
1631   information.
1633 templates:
1635 * templates/query: When listing matching terms, don't make the commas italic.
1637 * templates/query: Eliminate blank line before <html>.
1639 * templates/xml: Add XML declaration.
1641 * templates/godmode: Specify charset utf-8 in the content-type.
1643 build system:
1645 * Link test programs with libtool's '-no-install' or '-no-fast-install', like
1646   we already do in xapian-core, which means that libtool doesn't need to
1647   generate shell script wrappers for them on most platforms.
1649 portability:
1651 * Add spaces between literal strings and macros which expand to literal strings
1652   for C++11 compatibility.
1654 * Remove 'register' as it's deprecated and clang spits out warnings because of
1655   that.  Any modern compiler likely just ignores it as an optimisation hint
1656   anyway.
1658 Omega 1.2.20 (2015-03-04):
1660 documentation:
1662 * docs/cgiparams.rst: Improve wording of docs for SORT parameter.
1664 * docs/omegascript.rst: Update documentation references to DATE1, DATE2, and
1665   DAYSMINUS which were renamed in 0.6.x and the compatibility aliases removed
1666   in 1.0.0.
1668 indexers:
1670 * omindex:
1672   + Ignore extensions .msi and .msp, which are Microsoft installer files, but
1673     which libmagic sometimes incorrectly identifies as application/msword.
1675   + Interpret a command of "false" in "--filter" as meaning to ignore files
1676     with that MIME type.
1678 omega:
1680 * Handle CGI parameter [=0 as [=1.
1682 templates:
1684 * templates/xml: Update handling of DATE1, DATE2 and DAYSMINUS which were
1685   renamed in 0.6.x and the compatibility aliases removed in 1.0.0.
1687 build system:
1689 * configure: Use pkg-config in preference to determine flags needed to
1690   compile and link with PCRE, as this will just work when cross-compiling
1691   (at least under MXE).
1693 * configure: Define MINGW_HAS_SECURE_API under mingw to get _putenv_s()
1694   declared in stdlib.h.
1696 * Enable automake option 'subdir-objects' to avoid warning from newer automake.
1698 portability:
1700 * Avoid doing link tests with libmagic in configure as they fail on mingw due
1701   to not automatically picking up libraries which libmagic itself depends on.
1703 Omega 1.2.19 (2014-10-21):
1705 documentation:
1707 * docs/overview.rst: Note that pdftotext is part of poppler as well as xpdf.
1708   (Noted by Paul Wise)
1710 Omega 1.2.18 (2014-06-22):
1712 indexers:
1714 * omindex:
1716   + Work around libmagic returning a MIME content-type of "Composite Document
1717     File V2 Document[...]" or "application/CDFV2-corrupt" by returning a more
1718     suitable filetype based on looking at the file's extension.
1720   + The starting URL wasn't previously URL encoded.  In 1.3.2, this will be
1721     fixed by URL encoding it as we do for the rest of the path, for the 1.2
1722     branch we only URL encode it if it contains a character <= 31 or at least
1723     one of '#', '%', ':' or '?'.  This avoids a one-off reindex of every
1724     document in the database in cases which work OK in practice.
1726   + When we skip a file because it exceeds the configured size limit, include
1727     that size limit in the message.
1729 omega:
1731 * Add support for setting the query expansion scheme to use.
1733 portability:
1735 * Don't compile in unixperm.cc - it isn't currently used, and it fails to build
1736   with mingw.  (fixes #635, reported by Alexis Denis)
1738 * Fix warning when built with GCC 4.7.2 using -Os.
1740 * Removed unused inline function, fixing compiler warning.
1742 Omega 1.2.17 (2014-01-29):
1744 documentation:
1746 * docs/overview.html: Add Abiword as an example use of --filter, based on patch
1747   from Frank J Bruzzaniti (fixes#383).
1749 portability:
1751 * Fix "no previous declaration" warning on platforms which don't have
1752   mkdtemp().
1754 Omega 1.2.16 (2013-12-04):
1756 indexers:
1758 * omindex:
1760   + Fix off-by-one when finding documents to delete which would sometimes cause
1761     omindex to fail to delete documents from the database when they weren't
1762     refound during an index update.
1764   + Decode dates in xlsx files.
1766   + Ignore extensions 'adm', 'cur', and 'ico' by default.
1768   + Group-readable files which are owner-readable but not world-readable should
1769     still get a "readable by owner" term added.  Reported by Emmanuel Garette.
1771 build system:
1773 * Compress source tarballs with xz instead of gzip.
1775 * configure: Sync compiler warning flag machinery against xapian-core.  The
1776   changes are special handling for clang, passing -fshow-column where
1777   supported, and handling for new warning flags in GCC 4.6 and 4.7.
1779 Omega 1.2.15 (2013-04-16):
1781 omega:
1783 * Don't pointlessly link utf8convert.o into the omega CGI.
1785 Omega 1.2.14 (2013-03-14):
1787 indexers:
1789 * omindex:
1791   + Correct "max" -> "min" when reserving space for shared strings in .xlsx
1792     files.  This just means we now reserve a more appropriate amount of space
1793     to start with.
1795   + Ignore .com files by default.
1797 Omega 1.2.13 (2013-01-09):
1799 indexers:
1801 * omindex:
1803   + Extracting text using external filters now works for filenames containing a
1804     newline character - previously the newline got lost during escaping for the
1805     shell.
1807   + Fix segfault when -F option without a ':' is passed.
1809   + Skip a file if we get a read error while calculating the MD5 checksum (used
1810     for duplicate detection) - previously we used a checksum of the file up to
1811     that point.
1813   + Avoid rereading SVG and Atom files when we calculate their MD5 checksums.
1815   + Improvement --help output and man page, most notably:
1817     - Say explicitly that --sample-size accepts the same formats as --max-size.
1819     - Note default size limit on files to index is unlimited.
1821   + When generating a sample for a CSV file, limit the size we pre-allocate to
1822     the CSV file size if that's smaller than the requested sample size, in case
1823     the user sets that limit very high.
1825 omega:
1827 * Fix to decode %-encoded character at the end of the query string.
1829 build system:
1831 * INCLUDES is now deprecated in automake, so use AM_CPPFLAGS instead.
1833 Omega 1.2.12 (2012-06-27):
1835 No changes since 1.2.11 except to bump the version - this release was made to
1836 fix an incorrect library version information update in xapian-core 1.2.11.
1838 Omega 1.2.11 (2012-06-26):
1840 indexers:
1842 * Change HTML parser's handling of multiple <body> tags and of text outside of
1843   <body> to match the behaviour of modern web browsers.  (ticket#599)
1845 * omindex:
1847   + Add command line option to control the size of the document sample stored.
1848     Patch from Mihai Bivol.
1850   + Rework .xlsx parsing to substitute the shared strings into the positions
1851     they are used in, so that the sample actually matches what appears in the
1852     spreadsheet, and to index calculated cell contents.
1854   + Improve handling of headers and footers in OpenDocument documents.
1856   + pdftotext outputs a formfeed between each page, which messes up our "empty
1857     body" check, so trim any trailing formfeeds before this check.
1859 build system:
1861 * Don't explicitly link indirect shared library dependencies on FreeBSD,
1862   OpenBSD, and Solaris.
1864 Omega 1.2.10 (2012-05-09):
1866 indexers:
1868 * Add support for CDATA to HTML/XML parser.
1870 * omindex:
1872   + Add --max-size option, based on patch from ndaley in ticket#587.
1874   + Add support for atom feed files, patch from Mihai Bivol in ticket#595.
1876   + If the document with the highest existing docid before the run was updated,
1877     we were reporting it as "added", but now we correctly report it as
1878     "updated".  (Backported from 1.3.0).
1880   + Catch and report std::exception explicitly, so failing to allocate memory
1881     is no longer reported as "Unknown exception".  (Backported from 1.3.0).
1883 * scriptindex:
1885 portability:
1887 * Fix to build with GCC 4.7 by adding cast to rlim_t to fix error about C++11
1888   compatibility (reported by Gaurav Arora).
1890 Omega 1.2.9 (2012-03-08):
1892 documentation:
1894 * docs/overview.html:
1896   + Document that libmagic is used to determine the MIME type if the extension
1897     isn't known.  Partly addresses ticket#569.
1899   + We now limit time as well as CPU and memory for external filters.
1901 indexers:
1903 * Our HTML parser now ignores sections bracketed by <!--UdmComment--> and
1904   <!--/UdmComment-->, like we already do for <!--htdig_noindex-->.
1906 * omindex: Add more extensions to the default ignore list: bin dat db fon jar
1907   lnk pyc pyd pyo sqlite sqlite3 sqlite-journal tmp ttf
1909 Omega 1.2.8 (2011-12-13):
1911 documentation:
1913 * scriptindex.cc: Add link to http://xapian.org/docs/omega/scriptindex.html to
1914   --help output (and so also to the man page which is generated from this).
1916 * omegascript.html: Add note to discourage use of percentage scores.
1918 indexers:
1920 * omindex:
1922   + If we don't get any data from an external filter for 5 minutes, give up -
1923     it has probably ended up blocked indefinitely.
1925   + Improve --help output (and man page which is generated from it).  Closes
1926     bug#572.
1928 * scriptindex:
1930   + If no rules are found in the index script, report an error and give up -
1931     this is inevitably the result of a mistake, and adding empty documents to
1932     the database isn't helpful.
1934 omega:
1936   + Add new $prettyurl{} command which undoes RFC3986 URL escaping which
1937     doesn't affect semantics in practice.  Partly addresses ticket#550.
1939   + Replace URL decoder with new implementation which handles various corner
1940     cases better.  Fixes bug#578.
1942   + If CGI parameter P has trailing spaces, we now remove them all rather than
1943     leaving one.
1945 templates:
1947 * templates/query: HTML escape topterms.
1949 * templates/godmode: HTML escape the contents of document values.
1951 * templates/query: Don't show the percentage score in the default template.
1953 testsuite:
1955 * Add new urlenctest unit test of URL encoding and decoding.
1957 portability:
1959 * configure: Sync changes from xapian-core: Don't pass -Wshadow for GCC < 4.1;
1960   don't pass -Wstrict-null-sentinel for GCC 4.0.x; only enable symbol
1961   visibility on platforms where it is supported.
1963 packaging:
1965 * xapian-omega.spec: Package outlookmsg2html helper.
1967 Omega 1.2.7 (2011-08-10):
1969 documentation:
1971 * docs/termprefixes.html: Document how to map a user prefix to multiple term
1972   prefixes.
1974 * docs/overview.html: Improve documentation of htdig_noindex.
1976 omega:
1978 * Improve $version output from "Xapian - xapian-omega 1.2.7" to "xapian-omega
1979   1.2.7".
1981 packaging:
1983 * xapian-omega.spec: We're ABI compatible within a release series so make
1984   dependency on xapian-core-libs >= rather than =.
1986 Omega 1.2.6 (2011-06-12):
1988 documentation:
1990 * docs/omegascript.html: Correct the documentation of the colours used by
1991   $highlight{}.
1993 * docs/overview.html: Add using unoconv as more complex example of using
1994   --filter (ticket#324).
1996 templates:
1998 * templates/query:
2000   + Make search query input type=search.
2002   + Autofocus the search query input (using HTML autofocus attribute with
2003     Javascript fallback for older browsers).  (ticket#544)
2005 portability:
2007 * Fix a compiler warning.
2009 Omega 1.2.5 (2011-04-04):
2011 documentation:
2013 * Add index page which links to all the other documentation pages.
2015 * INSTALL: Copy new Multi-Arch section from xapian-core/INSTALL.  Replace VPATH
2016   section with better equivalent from Xapian-core/INSTALL.
2018 * docs/omegascript.html: Minor improvements.
2020 indexers:
2022 * The HTML parser no longer uses an exception to signify it has finished in
2023   the normal case as exceptions are typically costly to handle.  In tests,
2024   this made omindex ~0.23% faster when indexing a lot of HTML files.
2026 * omindex:
2028   + Add --ignore-exclusions option, which will index HTML files despite meta
2029     robots tags, etc - omindex is often used in environments where such
2030     exclusions aren't relevant.
2032   + Fix to compile with older versions of libmagic which don't have
2033     MAGIC_MIME_TYPE (e.g. on Ubuntu hardy).
2035   + Tell xls2csv to separate fields with spaces rather than commas, and not to
2036     quote them.  Fixes indexing of numeric fields, and means we don't need to
2037     use our CSV parser to get a sample.
2039   + Add whitespace between chunks of text extracted from Microsoft Office 2007
2040     formats to prevent words in adjacent chunks from being run together.
2042   + Encode reserved characters in URLs - links to files with names containing
2043     '#' and '?' now work.
2045   + Handle .xlr extension the same way as .xls (later Microsoft Works versions
2046     apparently produce such files which are really the same format).
2048   + Index filename extension with new standard prefix E.
2050   + Just report the mimetype as unknown instead of saying "unknown Office 2007
2051     MIME subtype".
2053   + Ignore *.css and *.js by default too.
2055   + Messages reporting skipping files are now more consistent and always report
2056     the filename.
2058   + New --empty-docs option to allow documents we extract no body text from to
2059     be indexed (existing behaviour), skipped, or reported and then indexed.
2061 omega:
2063 * Fix double Content-Type header in some error reporting situations (regression
2064   introduced in 1.2.4).
2066 * Update $url's URL encoding to follow RFC3986.
2068 * Allow QueryParser flags to be set from OmegaScript (ticket#418).  The
2069   FLAG_SPELLING_CORRECTION flag can now be set using
2070   $opt{flag_spelling_correction,1} - the old $opt{spelling,true} way to
2071   enable this flag still works, but it now deprecated.
2073 templates:
2075 * templates/emptydocs,templates/godmode,templates/opensearch,templates/query,
2076   templates/xml: Add missing escaping.  Some of these instances may allow
2077   cross-site scripting, so upgrading your templates is recommended, especially
2078   if you have any sensitive cookies set on the domain Omega is running on.
2080 * templates/xml:
2082   + Try $field{caption} (which is what omindex sets) before $field{title} when
2083     getting a value for the hit tag's title attribute - this is consistent with
2084     how the query template gets the title.
2086   + Add new 'type' attribute which gives $field{type}.
2088   + Add 'DBSize' attribute to <result> element.
2090   + Fix double escaping of matching terms.  This is only likely to affect cases
2091     where a matching term contains '&'.
2093   + Remove support for undocumented HILITECLASS CGI variable.  There's no
2094     evidence I can find using Google code search or web search that this has
2095     been used anywhere, and it's difficult to handle escaping it properly in
2096     the face of all the ways it could reasonably be used.
2098 portability:
2100 * Fix to compile on Microsoft Windows (ticket#350).
2102 Omega 1.2.4 (2010-12-19):
2104 documentation:
2106 * Minor documentation improvements.
2108 indexers:
2110 * Some iconv implementations (such as that on Mac OS X) don't handle many of
2111   the commonly seen mis-punctuated charset names (e.g. UTF16, UTF_16).  We now
2112   check for this if iconv fails, fix up the charset name, and retry.
2114 * The built-in character encoding converter now handles spaces in charset
2115   names.
2117 * Use O_NOATIME if available and either the file is owned by the current euid,
2118   or the current euid is 0 (i.e. we're running as root).  This avoids updating
2119   the access time of files we index which saves time.  Fixes ticket#222.
2121 * Report get_description() for Xapian exceptions, which provides additional
2122   information above get_msg().
2124 * Add boolean terms with add_boolean_term() so they get wdf of 0 and don't
2125   contribute to document length.
2127 * omindex:
2129   + Escape wildcard patterns being passed to unzip - in the unlikely event that
2130     one of these matched files in or under the current directory, we might fail
2131     to extract all the files we wanted to.
2133   + Add explicit support for indexing CSV files (better samples than from
2134     using '-Mcsv:text/plain').
2136   + Add support for indexing .msg files from Microsoft Outlook (using the Perl
2137     module Email::Outlook::Message.  (ticket#334)
2139   + Improve --help for --mime-type option.
2141   + Optionally use libmagic to detect MIME types for files for which we have no
2142     extension mapping, which allows us to handle files with a misleading
2143     extension, or no extension at all.  (ticket#114)
2145   + Add new --filter option which allows the user to specify new filters
2146     provided they return UTF-8 text on stdout.
2148   + If a filter command isn't installed, previously we wouldn't try it again
2149     for the same file extension - now we won't try it again for the same
2150     mime-type.
2152   + Index the leafname of the file (without any extension) as extra keywords.
2154   + Extract author from HTML, OpenDocument, and PDF files.  Index it with an A
2155     prefix, and add it as a field.
2157   + Add support for indexing text and metadata from SVG files.
2159   + Extract metadata from Microsoft Office 2007 file formats.
2161   + Index text in headers and footers for .odt and .docx files.
2163   + Use the CSV parser to generate a nicer sample for files of type
2164     application/vnd.ms-excel.
2166   + Add support for indexing Debian and RPM package files (ticket#493).
2168   + Make the memory limit for filter processes the size of physical memory,
2169     which is a little less arbitrary than 7/8 of this value (ticket#424).
2171   + Under --duplicate=ignore, fix so that old documents which aren't seen get
2172     deleted, which wasn't implemented before (to suppress this deletion, pass
2173     -p as well).
2175   + Rename the short option for --version from -v to -V for consistency with
2176     scriptindex and many other packages, and to free up -v as the short option
2177     for --verbose.  For backward compatibility, "omindex -v" is handled
2178     specially and still reports the version.
2180   + Add --verbose option, and disable the less interesting output unless it is
2181     specified.
2183   + Deprecate "--preserve-nonduplicates" in favour of new long option
2184     "--no-delete" which does the same thing, but has a clearer name.
2186   + The deletion of documents pass at the end of indexing is now more
2187     efficient.  We track how many documents in the database we haven't seen so
2188     we can stop once we've found them all (a particularly big improvement if
2189     there are no documents to delete), and we now use a PostingIterator over
2190     all documents which avoids needing to catch an exception for every gap in
2191     the used document ids.
2193   + Quietly ignore files with mimetype set to "ignore".  The initial list of
2194     extensions set to ignore is: .a .dll .dylib .exe .lib .o .obj .so
2196   + Index file owner and read permissions, to allow finding documents with a
2197     particular owner, and so searches can be restricted to documents a user is
2198     able to read.
2200   + Add file size as a document value, so you can sort on it and filter by it.
2202 * scriptindex:
2204   + Fix file descriptor leak if the LOADFILE action is used on something which
2205     isn't a file.
2207 omega:
2209 * Make sure we write out HTTP headers when reporting an error early on.
2211 * Extend $field to take an optional DOCID argument, rather than always using
2212   the context from $hitlist.
2214 * Add new $emptydocs command which returns a list of documents with doclength
2215   zero.
2217 * Add support for size: range filtering.  Currently the end points of the range
2218   have to be specified in bytes (e.g. size:102400..204800 for 100-200KB).
2220 templates:
2222 * templates/emptydocs: New template which lists documents with doclength zero.
2224 build system:
2226 * configure: Probe for any options needed to enable large file support.
2227   Handling files >= 2GB isn't especially useful, but more importantly this is
2228   needed to allow omindex to index files on filing systems with 64 bit inodes
2229   on some platforms (e.g. 32-bit Linux).
2231 * Use -no-undefined on platforms which need it to dynamically link such as
2232   cygwin (need to do this taken from ticket#282).
2234 portability:
2236 * Fix to compile with Sun C++.
2238 Omega 1.2.3 (2010-08-24):
2240 documentation:
2242 * docs/termprefixes.html: Update "flint and quartz" to "flint and chert" as
2243   quartz is no longer supported.  Give exact term length limit for flint and
2244   chert.
2246 packaging:
2248 * xapian-omega.spec: Don't run autoreconf - it's no longer required.
2250 Omega 1.2.2 (2010-06-27):
2252 portability:
2254 * Apply getopt portability fixes from xapian-core 1.2.0, fixing build failures
2255   on Mac OS X (and probably some other platforms with non-GNU getopt
2256   implementations). (ticket#469)
2258 Omega 1.2.1 (2010-06-22):
2260 This release includes all changes from 1.0.21 which are relevant.
2262 Omega 1.2.0 (2010-04-28):
2264 This release includes all changes from 1.0.20 which are relevant.
2266 build system:
2268 * configure: Tell libtool not to link in deplibs on platforms where we know
2269   they aren't needed.
2271 * configure: On Linux, extract the library search path from ldconfig which
2272   gives us the default entries reliably.
2274 Omega 1.1.5 (2010-04-15):
2276 This release includes all changes from 1.0.19 which are relevant.
2278 Omega 1.1.4 (2010-02-15):
2280 This release includes all changes from 1.0.18 which are relevant.
2282 omega:
2284 * Use the optimised integer to string conversion routines from xapian-core.
2286 Omega 1.1.3 (2009-11-18):
2288 This release includes all changes from 1.0.15-1.0.17 which are relevant.
2290 templates:
2292 * templates/query: If JavaScript is available, convert $field{modtime} to a
2293   string on the client-side so that the timezone is correct.  If JavaScript
2294   isn't available, fall back to the existing behaviour of using UTC.
2295   (ticket#314)
2297 build system:
2299 * configure: Default to looking for xapian-config-1.1 unless XAPIAN_CONFIG is
2300   specified.
2302 Omega 1.1.2 (2009-07-23):
2304 This release includes all changes from 1.0.14 which are relevant.
2306 indexers:
2308 * omindex:
2310   + Handle the "macroenabled" versions of MS Office 2007 files too
2311     (ticket#290).
2313   + Extract pptx notesSlides and comments, if present.  (ticket#290).
2315 Omega 1.1.1 (2009-06-09):
2317 This release includes all changes from 1.0.13 which are relevant.
2319 indexers:
2321 * omindex:
2323   + Check the last modification time of files before reindexing (ticket#342).
2325   + Add "--spelling" option to index spelling correction data.
2327 * scriptindex:
2329   + Add new "spell" action for indexing spelling correction data (ticket#296).
2331 omega:
2333 * Add $suggestion and $opt{spelling} to provide access to spelling correction
2334   (ticket#296).
2336 * Add $opt{weighting} to allow the weighting scheme and parameters to be
2337   specified (ticket#298).
2339 * If SERVER_PROTOCOL in the environment is set to INCLUDED, then our output is
2340   being included in another page (e.g. using SSI) so suppress the output of any
2341   HTTP headers.
2343 templates:
2345 * templates/query: Offer any spelling correction QueryParser gives.
2347 build system:
2349 * configure: Sync warning flags used with GCC with xapian-core apart from
2350   -Woverloaded-virtual which fires for MyHtmlParser::parse_html().  That
2351   probably should be tidied up at some point, but not right now.
2353 Omega 1.1.0 (2009-04-23):
2355 indexers:
2357 * scriptindex:
2359   + Make deprecated "index=nopos" an error.
2361 omega:
2363 * New OmegaScript command $transform{} which performs regular expression
2364   substitutions using the PCRE library (which is now required to build Omega).
2365   (ticket#231)
2367 build system:
2369 * The build system is now bootstrapped with newer versions of autoconf and
2370   libtool which should produce smaller files and speed up configure and
2371   make.
2373 Omega 1.0.23 (2011-01-14):
2375 indexers:
2377 * omindex:
2379   + Escape wildcard patterns being passed to unzip - in the unlikely event that
2380     one of these matched files in or under the current directory, we might fail
2381     to extract all the files we wanted to when indexing document formats like
2382     OpenDocument which use a zip file container.
2384   + The parser for OpenDocument metadata wasn't initialising its "state" field.
2385     Often you'd be lucky and it would be initialised to zero, but this could
2386     have caused misparsing of metadata in some cases.
2388 * scriptindex: Fix file descriptor leak if the LOADFILE action is used on
2389   something that isn't a file.
2391 * If fstat() fails when trying to load a file, preserve the errno value from
2392   the fstat call to report to the user.
2394 portability:
2396 * configure: Probe for any options needed to enable large file support.
2397   Handling files >= 2GB isn't especially useful, but more importantly this is
2398   needed to allow omindex to index files on filing systems with 64 bit inodes
2399   on some platforms (e.g. 32-bit Linux).
2401 * Add -no-undefined to AM_LDFLAGS on platforms which need it to dynamically
2402   link such as cygwin (need to do this taken from ticket#282).
2404 Omega 1.0.22 (2010-10-03):
2406 portability:
2408 * Fix to compile with Sun C++.
2410 Omega 1.0.21 (2010-05-18):
2412 portability:
2414 * Fix build failure in freemem.cc on Microsoft Windows.
2416 Omega 1.0.20 (2010-04-27):
2418 portability:
2420 * Fix build failure on Mac OS X and possibly some other platforms (regression
2421   caused by fix for getopt-related warnings on Cygwin in 1.0.19).
2423 Omega 1.0.19 (2010-04-15):
2425 portability:
2427 * Fix getopt-related warning on Cygwin.
2429 Omega 1.0.18 (2010-02-14):
2431 indexers:
2433 * Make the default charset "utf-8" not "UTF-8" as we lower case explicitly
2434   specified character sets to compare to see if we need to reparse.  Previously
2435   XML documents which explicitly specified their character set as UTF-8 would
2436   cause needless restart or the parser.
2438 * omindex:
2440   + Increase the wdf boost for the document title from 2 to 5, since 2 isn't
2441     really enough.
2443 * scriptindex:
2445   + Don't abort with "Unknown Exception" if indexing is disallowed or we hit
2446     </body> for a document which had an overridden character set.  Fixes
2447     ticket#410.
2449 Omega 1.0.17 (2009-11-18):
2451 indexers:
2453 * omindex:
2455   + On Linux, change the memory limit on external filters to use _SC_PHYS_PAGES
2456     since _SC_AVPHYS_PAGES excludes pages used by the OS cache and so will
2457     often report a really low value.  Fixes Debian bug#548987 and ticket#358.
2459   + Fix likely crash when reading output from external filter program if read()
2460     is interrupted by a signal.
2462   + Fix potential crash when indexing PostScript files (fixed by using delete[]
2463     (not delete) for array allocated by new[]).
2465 testsuite:
2467 * utf8converttest: Charset "8859_1" isn't understood by Solaris libiconv, and
2468   isn't a standard charset name, so just test it when using our built-in
2469   converter and GNU libc.
2471 portability:
2473 * Fix build failure on Mac OS X 10.6.
2475 * Also check for socketpair() in -lxnet if it isn't found without, which
2476   enables resource limits on external filter programs called by omindex on
2477   Solaris, and possibly some other platforms.  Fixes ticket#412.
2479 Omega 1.0.16 (2009-09-10):
2481 * omega: Fix cross-site scripting vulnerability in reporting of exceptions
2482   (CVE-2009-2947).
2484 Omega 1.0.15 (2009-08-26):
2486 general:
2488 * omegascript.vim: The list of OmegaScript commands in the vim mode was rather
2489   out of date, and a few commands were misclassified.  Fix both problems and
2490   avoid future recurrences by automatically generating those lists from the
2491   command list in query.cc.
2493 documentation:
2495 * omegascript.html: Document that $date uses UTC.  (ticket#314)
2497 templates:
2499 * query: Link to "xapian.org" rather than "www.xapian.org".
2501 * inc/toptermsjs: Use double-quotes rather than single quotes for parameter
2502   values on the <script> tag.
2504 portability:
2506 * omindex: Implement correct handling of paths when calling external filter
2507   programs on Microsoft Windows.
2509 Omega 1.0.14 (2009-07-21):
2511 indexers:
2513 * omindex: Make sure that output is flushed after every message, not just after
2514   some of them.
2516 portability:
2518 * Avoid infinite loop in omindex and scriptindex when reading files under
2519   Cygwin with automatic end of line translation enabled.  This same bug can
2520   also manifest on Unix platforms if the file is truncated by another process
2521   while being read.
2523 Omega 1.0.13 (2009-05-23):
2525 indexers:
2527 * omindex:
2529   + If the filter program needed for a file format isn't installed, report this
2530     explicitly when skipping subsequent files with the extension instead of
2531     misleadingly reporting "Unknown extension".
2533   + Make -s actually work as a short-form for --stemmer (as documented by
2534     "omindex --help" and "man omindex").
2536   + Drop the copyright info from the output of --version as it's perennially
2537     out of date and we don't report it for any other Xapian programs.
2539 * scriptindex:
2541   + Add new "valuenumeric" action to add a document value using
2542     Xapian::sortable_serialise() to allow numeric sorting (ticket#260).
2544 build system:
2546 * configure: Enable more GCC warnings - "-Wstrict-null-sentinel" for 4.0+,
2547   "-Wlogical-op -Wmissing-declarations" for 4.3+.
2549 Omega 1.0.12 (2009-04-19):
2551 omega:
2553 * $log now retries a partial write, or one interrupted by a system call.
2555 build system:
2557 * configure: Fix iconv parameter type probe not to implicitly cast a string
2558   literal to char* - this a warning under GCC currently, but the user could
2559   pass -Werror explicitly in CXXFLAGS, and this could be promoted to an error
2560   in future GCC versions, and may already be so for some other compilers.
2562 * Overriding CXXFLAGS at make-time (e.g. "make CXXFLAGS=-Os") no longer
2563   overrides any flags required for building with Xapian.
2565 * We now actually use the compiler warning flags which configure detects.
2567 Omega 1.0.11 (2009-03-15):
2569 documentation:
2571 * cgiparams.html: Note the technique of using a stub database file to allow a
2572   default of searching over multiple databases.
2574 indexers:
2576 * omindex:
2578   + Add support for indexing Microsoft Office 2007 formats and XPS files
2579     (bug#290).
2581   + Fix the extraction of metadata from OpenDocument formats.
2583   + Fix "-l" which would previously always cause a segmentation fault if used
2584     ("--depth-limit" wasn't affected).
2586 build system:
2588 * configure: The output of g++ --version changed format (again) with GCC 4.3
2589   which meant configure got "g++" for the version.  Instead use the (hopefully)
2590   more robust technique of using g++ -E to pull out __GNUC__ and
2591   __GNUC_MINOR__.
2593 * configure: Turn on _FORTIFY_SOURCE where available (as we do in xapian-core).
2595 portability:
2597 * Fix to compile when RLIMIT_AS isn't available (as on NetBSD and OpenBSD).
2598   Instead use RLIMIT_VMEM or RLIMIT_DATA if either is available, else don't try
2599   to limit the memory the filter process can use.
2601 Omega 1.0.10 (2008-12-23):
2603 build system:
2605 * This release now uses newer versions of the autotools (autoconf 2.62 ->
2606   2.63; automake 1.10.1 -> 1.10.2).  The newer autoconf fixes a regression
2607   in autoconf 2.62 (and so Omega 1.0.7) with detecting the endian-ness of some
2608   platforms.
2610 Omega 1.0.9 (2008-10-31):
2612 documentation:
2614 * docs/overview.html: Document HTML parsing a bit, including robots
2615   meta and htdig_noindex.
2617 omega:
2619 * omega: Catch std::exception and report what its what() method returns.
2621 * omega: Remove undocumented and non-functional support for numeric sorting
2622   via CGI parameter SORT=#<slot> (SORT=<slot> works as before).
2624 build system:
2626 * configure: Sync warning flag handling changes from xapian-core to eliminate
2627   many warnings from GCC 4.3.
2629 Omega 1.0.8 (2008-09-04):
2631 documentation:
2633 * Fix a few typos and improve wording in a few places.
2635 indexers:
2637 * omindex:
2639   + If the character encoding is specified using <meta http-equiv=...> in an
2640     HTML document then reparse the document if it isn't the encoding we're
2641     already using so that any preceding <title> is converted correctly
2642     (bug#292).
2644   + Convert text from meta tag parameters to UTF-8 (bug#293).
2646   + Handle <meta charset="..."> (new in HTML 5).
2648   + Fix bug in HTML tag parameter parsing which was probably just a small
2649     performance penalty in real world cases, but could perhaps result in
2650     parsing bogus extra parameters in carefully contrived situations.
2652 portability:
2654 * Add missing <signal.h>, noted on FreeBSD by Henrik Brix Andersen.
2656 Omega 1.0.7 (2008-07-14):
2658 documentation:
2660 * omegascript.html,scriptindex.html: Fix empty titles.
2662 indexers:
2664 * omindex:
2666   + When indexing text files, handle UCS-2 and UTF-16 text files with a
2667     byte-order mark (BOM), and ignore any UTF-8 "byte-order" mark.
2669   + The built-in conversion code (used when iconv isn't available) now handles
2670     UCS-2/UTF-16 with and without a BOM, and also the explicit BE and LE forms.
2672 omega:
2674 * Overhaul the $highlight colour combinations since some were rather
2675   unreadable (Debian bug 484456).
2677 build system:
2679 * configure: Synchronise code for working out warning flags used for builds
2680   with that used for xapian-core, which in particular handles different
2681   output formats from "gcc --version".
2683 portability:
2685 * configure: Fix header checks to pre-include <sys/types.h> which Mac OS X
2686   needs for some other headers to work.
2688 * configure: Fix probing for iconv to work better when iconv isn't found
2689   (previously this only worked on Mac OS X with fink).
2691 * Fix compilation error on FreeBSD, introduced in 1.0.5.
2693 * In omega, cast size to unsigned before division to avoid a warning about
2694   signed overflow.
2696 packaging:
2698 * xapian-omega.spec: Remove "www." from xapian.org and oligarchy.co.uk URLs.
2700 Omega 1.0.6 (2008-03-17):
2702 documentation:
2704 * docs/omegascript.html: Improve formatting.
2706 indexers:
2708 * omindex:
2710   + Add support for DjVu files.
2712   + If we get an error trying to read a directory entry, report it to the user
2713     rather than ignoring it.
2715 omega:
2717 * New OmegaScript commands $addfilter, $lower, $upper.
2719 portability:
2721 * Check "defined HAVE_SYSMP" rather than just "HAVE_SYSMP".  This doesn't
2722   change behaviour, but fixes a compile warning on platforms other than Linux
2723   and IRIX.
2725 Omega 1.0.5 (2007-12-21):
2727 documentation:
2729 * Convert .txt docs to reStructedText which we process to produce HTML.
2731 * Add a note inviting suggestions for additional reliable filter programs.
2733 * overview.html: omindex hasn't generated "W"-prefix terms since 0.9.7, so
2734   remove the documentation saying it does.
2736 indexers:
2738 * omindex:
2740   + If a file's extension isn't found in the mime_map and contains uppercase
2741     ASCII characters, check for the lower cased extension (so .PDF and .Pdf
2742     behave the same way as .pdf, unless you deliberately add different mappings
2743     for them).
2745   + '-f' is documented by --help as a short option for '--follow', but wasn't
2746     previously actually recognised.
2748   + Limit filter programs to 7/8 of free physical memory on platforms where we
2749     know how to determine this statistic (currently at least Linux, FreeBSD,
2750     IRIX, HP-UX; probably Solaris and a few others too).  This helps to prevent
2751     runaway filters from causing a denial of service (bug#111).
2753   + Avoid rereading uncompressed AbiWord documents in order to calculate their
2754     MD5 checksums.
2756 * scriptindex:
2758   + Now inserts a ':' between prefix and term, using the same criteria which
2759     Xapian::QueryParser does.
2761   + The 'BOOLEAN' action now ignores an empty input rather than adding just the
2762     prefix as a term.
2764   + The 'UNIQUE' action now issues a warning for empty input but otherwise
2765     ignores it.
2767 portability:
2769 * Add explicit includes of C headers needed to build with the latest snapshots
2770   of GCC 4.3.
2772 Omega 1.0.4 (2007-10-30):
2774 omega:
2776 * If an OmegaScript template specifies the same field name as both a boolean
2777   and a probabilistic term prefix then previous the boolean setting would
2778   be ignored (e.g. $setmap{prefix,foo,A}$setmap{boolprefix,foo,H}).  Now this
2779   generates an error.  If you set prefixes in your templates, you may wish to
2780   check them over before upgrading.
2782 Omega 1.0.3 (2007-09-28):
2784 general:
2786 * Distribution tarballs are now in the POSIX "ustar" format since it saves
2787   a few KB and we need to use it for xapian-core anyway.
2789 documentation:
2791 * Expand the output of 'mbox2omega --help' and refer the reader to it from
2792   docs/scriptindex.txt.
2794 indexers:
2796 * omindex:
2798   + Add support for indexing AbiWord documents and TeX DVI files.
2800   + Impose a 5 minute CPU time limit on filter programs to prevent problems if
2801     a filter program goes into an infinite loop on a malformed input.  Partly
2802     addresses bug#111.
2804 * scriptindex:
2806   + Fix line number tracking in dump files.
2808 omega:
2810 * Add $muldiv{A,B,C} which calculates int(A*B/C).
2812 * Fix bug in decimal fraction in $size for files >= 1M in size.
2814 templates:
2816 * query:
2818   + Set HTML charset to utf-8 since that's what databases now are by default.
2820   + Restyle to use CSS to draw a "score bar" instead of using images.
2822   + Rework the layout of each hit.
2824   + Add popup hints on mouse-over for various items.
2826   + Tidy up some HTML gremlins.
2828 Omega 1.0.2 (2007-07-05):
2830 documentation:
2832 * scriptindex.txt: Fix typo.
2834 indexers:
2836 * omindex:
2838   + If --url isn't passed, default to "/", but print a warning noting that this
2839     default has been used (at least for now).
2841   + Report files that aren't indexed because their extensions aren't
2842     recognised.
2844 build system:
2846 * Value of XAPIAN_CONFIG supplied to configure is now passed to distcheck,
2847   to ensure that it works with uninstalled copies of Xapian.
2849 portability:
2851 * Fix test programs to build with a development snapshot of GCC 4.3.
2853 Omega 1.0.1 (2007-06-11):
2855 documentation:
2857 * overview.txt: As of 1.0.0, we no longer use pstotext for PostScript, but
2858   instead use ps2pdf followed by pdftotext (since this works for Unicode).
2860 * scriptindex.txt: Document that you can delete a document by supplying a new
2861   document which only contains the unique term.
2863 indexers:
2865 * Fix bug in HTML parser - if the text between two tags consisted entirely of
2866   whitespace it would just be ignored which could run words together if
2867   the tags didn't produce implicit whitespace.  This bug dates back to at least
2868   Omega 0.8.2.
2870 * omindex: Under Linux (and probably some other platforms) struct dirent can
2871   tell us the type of a directory entry for some filing systems, so make use of
2872   this to avoid calling stat() (or lstat()) unnecessarily - when indexing
2873   /usr/share/doc on my Linux box, this saves about 14000 explicit calls to
2874   stat() (leaving about 7000).
2876 omega:
2878 * Fix handling of query parsing errors (broken by changes in 1.0.0).
2880 packaging:
2882 * The required automake version has been lowered to 1.8.3, so RPMs can now be
2883   built on RHEL 4 and SLES 9.
2885 Omega 1.0.0 (2007-05-17):
2887 general:
2889 * Omega and the indexers now work in UTF-8.  If iconv() is available, omindex
2890   will use it to convert documents from other formats, otherwise it has
2891   built-in support for UTF-8 and ISO-8859-1; omindex knows how to run the
2892   various external filter programs to generate UTF-8 output; scriptindex
2893   assumes input is already in UTF-8.
2895 * Change the project name (used to name tarballs, and default installation
2896   paths) to "xapian-omega" since that's what the RPMs and Debian packages
2897   already use (there's a Rogue-like game called Omega).
2899 documentation:
2901 * docs/overview.txt: Document what each of the OmegaScript templates does.
2903 * docs/quickstart.txt: Assorted minor improvements.
2905 * docs/termprefixes.txt: Document new 'Z' prefix, and that the 'R' and 'W'
2906   prefixes are no longer used by Xapian.
2908 * docs/cgiparams.txt: FMT isn't limited to just `a-z' - the actual restriction
2909   is that it may not contain `..'.
2911 * docs/scriptindex.txt: Explicitly note that index=nopos is deprecated
2912   (scriptindex already emits a warning).
2914 * NEWS: Add note that Omega < 0.8.0 NEWS entries are in the xapian-core NEWS
2915   file.
2917 * TODO: Updated.
2919 indexers:
2921 * Updated to use the new Xapian::TermGenerator class.  This means that the
2922   indexing strategy has changed.
2924 * "--help" now reports the default stemming language (i.e. "english").
2926 * Implement new sample generating function which normalises all runs of
2927   whitespace to a single space, and fixes invalid UTF-8 in the sample.
2929 * omindex:
2931   + We now index PostScript by converting to PDF with ps2pdf and then indexing
2932     that.  This allows us to index PostScript files containing Unicode
2933     characters outside of ISO-8859-1, and also means we now get metadata from
2934     PostScript files.  The downside is it is quite a bit slower.
2936   + Add support for indexing MS Works documents using wps2text (part of
2937     libwps).
2939   + Don't index empty files.
2941 * scriptindex:
2943   + Fix optimisation of "load truncate=N" to actually work!
2945   + The "truncate" action knows not to chop off a multibyte UTF-8 character.
2947   + Update short option list for scriptindex to match documented usage (-h, -V
2948     and -s were not working).
2950   + Remove -q and -u options - they no longer do anything and are only accepted
2951     for compatibility with really old versions (0.6.1 and earlier for -q; 0.7.5
2952     and earlier for -u).
2954 omega:
2956 * Add an alternative implementation of date range filtering which uses a
2957   MatchDecider.  This allows everything that the existing implementation does,
2958   plus you can support sorting on a choice of dates (e.g. first published or
2959   last updated), and filtering works to a resolution of a minute rather than a
2960   day.  Set CGI parameter DATEVALUE to enable this, and to specify the value to
2961   use.  Since omindex now adds the last modified date as value 0, this will
2962   work with omindex.
2964 * Enhance $substr{} to accept a negative length (meaning to count back from the
2965   end of the string).
2967 * New CGI parameters to allow finer control of sorting and ranking - SORTAFTER
2968   and DOCIDORDER.
2970 * The sorting options are now encoded in $filters so Omega can automatically
2971   reset to page 1 if they are changed.
2973 * Add new OmegaScript $weight command which returns the raw document weight -
2974   mostly useful for debugging purposes.
2976 * $topterms{} now generates unstemmed terms.
2978 * $prettyterm{TERM} has been updated to fit with changes to the term generation
2979   strategy.
2981 * Add 'you' and 'your' as stopwords.
2983 * $filesize{SIZE} enhanced to return a decimal point for K, M, and G (e.g.
2984   "2.1K" and "4.0M" rather than "2K" and "4M"); $filesize{0} is now "0 bytes";
2985   $filesize{1} is now "1 byte"; $filesize{SIZE} where SIZE is negative is now
2986   "".
2988 * Remove $freqs as it has been deprecated for ages.
2990 * Remove support for xB, xDATE1, xDATE2, xDAYSMINUS, and xDEFAULTOP which were
2991   deprecated in favour of xFILTER in 0.7.5 (over 3 years ago).
2993 * Remove deprecated aliases for CGI parameters (deprecated in 0.6.3 or 0.6.5,
2994   more than 3.5 years ago): RAW_SEARCH (now RAWSEARCH), DATE1 (now START),
2995   DATE2 (now END), DAYSMINUS (now SPAN but with slightly different semantics),
2996   and MIN_HITS (now MINHITS).
2998 * Remove "bias_weight" and "bias_halflife" CGI parameters since they rely on
2999   Enquire::set_bias() which has been removed.
3001 templates:
3003 * The 'query' template no longer uses $topterms by default.
3005 * New 'topterms' template provides a query template with $topterms support.
3007 * Template fragments which aren't intended for direct use have been moved to
3008   an "inc" subdirectory.
3010 testsuite:
3012 * md5test: Add tests for MD5 code.
3014 build system:
3016 * `./configure --enable-quiet' already allows you to specify at configure time
3017   to pass `--quiet' to libtool.  Now you can override this at make-time by
3018   using `make QUIET=' (to turn off `--quiet') or `make QUIET=y' (to turn on
3019   `--quiet').
3021 * configure: Disable probes for f77, gcj, and rc completely by preventing
3022   the probe code from even appearing in configure - this reduces the size of
3023   configure by 29% and should speed it up significantly.
3025 portability:
3027 * Fixed to build with GCC 4.3 snapshot.
3029 * We now make use of the safe*.h portability headers from xapian-core.
3031 * Ensure that the result of snprintf is zero terminated since MSVC's snprintf
3032   is broken (by design it seems).
3034 * configure: xapian-config --cxxflags now includes -ptused for SGI's C++
3035   compiler, so we don't need to probe for it here.
3037 * configure: Perform a link test for posix_fadvise to fix misdetection on
3038   HP-UX.
3040 Omega 0.9.10 (2007-03-04):
3042 documentation:
3044 * docs/omegascript.txt: Rewrite introductory paragraph.  Note that
3045   whitespace is significant, and add explicit warning to $setmap.
3047 * docs/termprefixes.txt: Expand section on boolean prefixes, showing
3048   how to generate them using scriptindex, and how to allow them to be
3049   selected in an HTML form.
3051 indexers:
3053 * omindex: Generate correct MD5 checksums on big-endian platforms.
3055 omega:
3057 * Fix $substr{} with negative start to actually work.
3059 * Fix $substr{} to never cause a C++ exception.
3061 packaging:
3063 * omega.spec.in: Remove "." from the end of the Summary.
3065 Omega 0.9.9 (2006-11-09):
3067 documentation:
3069 * Ship our custom INSTALL file rather than the generic one from autoconf which
3070   we've accidentally been shipping instead since 0.9.5.
3072 indexers:
3074 * scriptindex: The "date" action no longer modifies the value it operates on
3075   (it was never meant to!)
3077 omega:
3079 * Report an error if $setmap is called with an even number of parameters.
3080   An incorrect example in the documentation used to suggest this, so it's
3081   particularly useful to catch this case.
3083 packaging:
3085 * RPMs: Prevent binaries getting an rpath for /usr/lib64 on FC6.
3087 Omega 0.9.8 (2006-11-02):
3089 omega:
3091 * $substr where the start is negative and longer than the string (e.g.
3092   $substr{abcd,-5,1}) wasn't working as intended.
3094 build system:
3096 * configure: Tell AC_CHECK_HEADERS to suppress its backward compatibility mode,
3097   so it only checks headers with the compiler.  This speeds up configure a
3098   little, and is what we do elsewhere.
3100 * configure: Warning flags for GCC weren't actually getting used.  Fix this to
3101   work and use the same warning flags for GCC and Intel C++ as xapian-core does.
3102   Fix all the warnings this uncovered!
3104 * omega,omindex,scriptindex: Remove some old unused code.
3106 portability:
3108 * Ensure that we always pass an unsigned char value to isupper(), toupper(),
3109   etc as they are undefined on other values (glibc makes them work for signed
3110   char values too, but this is an extension).
3112 * configure: Pass magic options to SGI's C++ compiler to allow linking of
3113   templates to work.
3115 * configure: IRIX doesn't allow stdint.h to be included from C++ so we need
3116   a smarter configure test than AC_CHECK_HEADERS.
3118 * Fix warnings from SGI's C++ compiler.
3120 Omega 0.9.7 (2006-10-10):
3122 documentation:
3124 * omegascript.txt: Note that (by design) an omegascript template can't
3125   contain an infinite loop.
3127 * termprefixes.txt: "$setmap{title,S}" should be "$setmap{prefix,title,S}".
3129 * Use the default paths to the database directories and the omega CGI binary in
3130   examples.
3132 * README: Update reference to "CVS" to say "SVN".
3134 indexers:
3136 * Don't get confused by "a<b" in Javascript in a <script> tag.  Fixes bug#91.
3138 * Support htdig's "ignore this bit" comments.
3140 * Don't generate terms with more than 3 trailing symbols ('-', '+', or '#').
3142 * omindex:
3144   + Add the file last modified time as value #0.
3146   + Generate an MD5 checksum of each file indexed and store it in value #1
3147     to allow duplicates to be collapsed.
3149   + Store the file's last modified time in the document data as "modtime" so it
3150     shows up in search results (and tweak the query template so the display of
3151     this information looks nicer).  Don't add "modtime" field if the timestamp
3152     is (time_t)-1.
3154   + Run pdfinfo once and pull out the fields we want using string operations,
3155     instead of running it twice filtered through sed.
3157   + Parse the XML from OpenDocument and OpenOffice using new subclasses of
3158     HtmlParser.  Only extract meta.xml once.
3160   + Add "size" field to document data.
3162   + Run xls2csv on MS Excel files, run catppt on MS Powerpoint files, and also
3163     index MS Word templates (.dot) the same way as .doc files.
3165   + Don't generate 'W' terms since omega doesn't use them.
3167   + If a filter program isn't installed, then don't try it again for the same
3168     extension (not perfect but an improvement - previously we indexed an empty
3169     document!)
3171   + If popen() fails, treat it as a read error.
3173 * scriptindex:
3175   + Add new "load" action to allow the contents of an external file to be
3176     loaded and parsed.
3178   + Fix check for whether a record has content in the case where the same field
3179     is processed more than once.
3181 omega:
3183 * Add $pack and $unpack OmegaScript commands to allow big endian binary values
3184   to be encoded and decoded (for use with omindex's lastmod in value #1).
3186 * omega.conf: Fix code which reads omega.conf to be line based as documented
3187   rather than the wacky whitespace based scheme that was actually implemented.
3188   Also we now allow "#" comments and blank lines in omega.conf.
3190 * Fix $highlight{} to work with capitalised words (it used to work but
3191   regressed in 0.8.2).
3193 * Use '\t' to separate terms in xP since filter terms might contain '.'.  Fixes
3194   bug#87.
3196 testsuite:
3198 * Add htmlparsetest which tests the MyHtmlParser class.
3200 build system:
3202 * Makefile.am: Make use of the dist_ prefix to avoid having to list files in
3203   EXTRA_DIST as well as in *_SCRIPTS, *_DATA, and man_MANS.
3205 * Makefile.am: Prefer $(sysconfdir) to @sysconfdir@ since the former can be
3206   overridden on the "make" command line.
3208 portability:
3210 * xapian-config will now switch Sun's C++ compiler into ANSI C++ compliant
3211   mode, so remove all the special case bits of code added for just this one
3212   compiler.
3214 * omindex: Fix escaping of filenames to cast characters to "unsigned char" so
3215   that isalnum() works correctly everywhere.  Not a security hole as dangerous
3216   characters were still being escaped.
3218 * Call pclose() not fclose() on a FILE* obtained from popen().  This bug could
3219   cause us to run out of file descriptors on some platforms.
3221 * configure: Check for strftime.
3223 packaging:
3225 * omega.spec.in: Include documentation in the RPM package.
3227 Omega 0.9.6 (2006-05-15):
3229 documentation:
3231 * docs/omegascript.txt: Clarified description of $now.
3233 indexers:
3235 * scriptindex: Fix "index" and "indexnopos" without a prefix to set the weight
3236   correctly (bug introduced in 0.9.5).
3238 omega:
3240 * Added new OmegaScript commands $filterterms and $substr.
3242 portability:
3244 * configure: Update snprintf detection to match xapian-core.
3246 * Fix MSVC warnings.
3248 packaging:
3250 * omega.spec.in: Create and package /var/lib/omega/cdb and /var/log/omega.
3252 Omega 0.9.5 (2006-04-08):
3254 documentation:
3256 * README: Add pointer to documentation.
3258 * Added man pages for omindex and scriptindex, generated using help2man.
3260 indexers:
3262 * scriptindex:
3264   + If we fail to open the index script, die with an error (previously we
3265     acted as if an empty file was specified).
3267   + Warn about a useless "weight" action, even if it's followed by another
3268     non-useless action (e.g. "field") - previously we only warned if it
3269     was last or followed only by other useless actions.
3271   + Warn if "unique=<prefix>" is used without a corresponding
3272     "boolean=<prefix>" on the same line.
3274   + Warn that "index=nopos" is deprecated and should be replaced by
3275     "indexnopos".
3277   + Add explanatory text "(note that actions are executed from left to right)"
3278     when reporting useless actions.
3280   + Added new "hash" command to allow hashed terms to be generated from long
3281     URLs like omindex does.
3283 * htdig2omega.script,mbox2omega.script: Make use of the new scriptindex "hash"
3284   command.
3286 * dbi2omega: Check DBIDRIVER environmental variable to allow a driver other
3287   than mysql to be specified without modifying the script.
3289 omega:
3291 * Fix $opt[fieldnames] handling.  Previously it would try to kick in if you
3292   didn't set fieldnames but set any alphabetically later option!  The symptom
3293   was that $field{} would stop working (bug#72).
3295 portability:
3297 * omindex,omega: Tweaks for MSVC compilation.
3299 Omega 0.9.4 (2006-02-21):
3301 documentation:
3303 * COPYING: Updated FSF address.
3305 Omega 0.9.3 (2006-02-16):
3307 documentation:
3309 * overview.txt: The U prefix (URL term) was grouped with the date searching
3310   prefixes, but it makes more sense to group it with the prefixes relating to
3311   parts of the URL (H for hostname, P for path, etc).
3313 * overview.txt: Add pointer to documentation of the supported query syntax.
3315 * omegascript.txt: Improve descriptions of $cgi, $collapsed, $value, $version.
3317 * termprefixes.txt: Fix typo.
3319 indexers:
3321 * omindex: add --preserve-nonduplicates / -p option to not delete any documents
3322   that aren't updated, in replace duplicates mode (so that multiple runs of
3323   omindex on different subsites don't stomp on each other).
3325 * omindex,scriptindex: Add "--stemmer" option to omindex and scriptindex
3326   to allow the stemming language to be set.  Fixes bug#11.
3328 * omindex,scriptindex: More consistent --help and --version output.
3330 * omindex: Add support for OpenDocument format mimetypes and extensions out of
3331   the box.  Previously you could index them but had to pass a "-m" option for
3332   each OpenDocument filename extension you wanted to handle.
3334 * scriptindex: The "-q" option no longer actually controls anything.  Just
3335   ignore it for backwards compatibility (and don't document it in --help).
3337 omega:
3339 * If executing an OmegaScript command causes a Xapian exception to be thrown,
3340   catch it and copy the error message into error_msg (which is read by the
3341   $error command).  This allows such errors to reported in a nicer way.
3343 * Added "SORTREVERSE" CGI parameter which allows the sort order to be reversed
3344   when sorting on a value.  Removed "SORTBANDS" CGI parameter since it no
3345   longer does anything.
3347 * Added $find{LIST,STRING} to return the subscript of the first occurrence of
3348   string STRING in list LIST.
3350 * Added $lookup{CDBFILE,KEY} OmegaScript command to perform a lookup in a CDB
3351   file.
3353 * Added new feature which allows you to avoid storing fieldnames in every
3354   document.  Instead you just store the field values, one per line, and add
3355   something like "$set{fieldnames,$split{caption sample url}}" to the
3356   OmegaScript template to specify the fieldnames to use.  This can save a lot
3357   of disk space for a large database.
3359 * Add new "$split{}" OmegaScript command which splits a string to give an
3360   OmegaScript list.
3362 * Fix $url{} to escape "+" to "%2b".  Also fix encoding of top-bit-set
3363   characters on platforms where char is signed by default.
3365 * Speed up $highlight{} - only compare terms which are the same length.
3367 * Reduce memory usage if a lot of documents are marked as relevant.
3369 templates:
3371 * query: Make the page title shorter so there's more chance it will fit on icon
3372   bars, etc.
3374 * opensearch: Add missing escaping.
3376 * godmode: If a non-existent docid is specified, report the error and prompt
3377   the user to enter another docid.  Fixes bug#60.
3379 portability:
3381 * omega: Fix printf type mismatch on 64 bit platforms.
3383 * omega: Cast time_t to unsigned long to avoid problems on 64bit platforms.
3385 * Use snprintf where available.
3387 * Write top-bit set characters using \xXX notation to avoid warnings from
3388   Intel's C++ compiler.
3390 Omega 0.9.2 (2005-07-15):
3392 * omega: Changed $highlight so if OPEN and CLOSE aren't specified, they default
3393   to highlighting each word from the query with a different background colour
3394   like gmane does (previous default was to use '<strong>' and '</strong>').
3396 * omega: Call QueryParser::set_database() as this is now used to decide what to
3397   do for terms like "C#".
3399 * omega: Added the ability to set boolean prefixes for the QueryParser by
3400   setting a "boolprefix" map in the omegascript template.
3402 * omega: Added $length{} and $stoplist{} commands to OmegaScript.
3404 * scriptindex: Fix infinite loop if there's no newline at the end of a dumpfile.
3406 * docs/termprefixes.txt: Explain how to use termprefixes with scriptindex and
3407   omega, since that's what most people will want to know.
3409 * docs/omegascript.txt: Use standard "S" prefix for title in example for
3410   $setmap, rather than "XT".
3412 Omega 0.9.1 (2005-06-06):
3414 * Releases are now created using libtool 1.5.18 and automake 1.9.5.
3416 * Updated RPM packaging.
3418 Omega 0.9.0 (2005-05-13):
3420 * Updated for 0.9.0 API changes.
3422 * omindex/scriptindex: Generate terms like "c#".
3424 * Added mbox2omega script which allows a mail folder to be indexed using
3425   scriptindex.  Mostly it's an example as there's no mechanism included to show
3426   the full original message.
3428 omega:
3430 * The configuration file is now looked for differently - you can now set
3431   the environmental variable OMEGA_CONFIG_FILE.  See docs/overview.txt for
3432   details.
3434 * $highlight can now highlight terms like "C#".
3436 * Add new template 'opensearch' to implement basic opensearch feeds of search
3437   results.
3439 omindex:
3441 * URL hashing previously depended on sizeof(long) so databases weren't totally
3442   portable between platforms.  This is now fixed, but to do so we've had to
3443   break compatibility with databases built on platforms with 64 bit longs
3444   with URLs > 228 bytes.
3446 * Removed useless "DUPE_duplicate" option.
3448 * Added support for indexing Perl "pod" documentation using pod2text.
3450 * Replaced -l/--no-recurse with -l/--depth-limit which takes an argument
3451   allowing recursion to be restriction to any depth, not just 0 or infinity!
3453 * Extend -M/--mime-type to allow an existing mapping to be removed by omitting
3454   the type.
3456 * Fixed code so that we get lstat() prototype on Linux systems where we have
3457   posix_fadvise().
3459 scriptindex:
3461 * Improved handling of extra blank lines in dump file.
3463 * Strip multiple \r characters from end of line.
3465 * Complain if a dump file doesn't appear to have been = escaped correctly.
3467 * Flush database after each input file to ensure all changes from a file
3468   make it in.
3470 documentation:
3472 * docs/omegascript.txt: Clarify $field description slightly.
3474 * docs/cgiparams.txt,docs/omegascript.txt: Fixed 3 references to OmXxxx classes.
3476 * docs/termprefixes.txt: Added a single document covering all aspects of term
3477   prefixes.
3479 * docs/omegascript.txt: Moved $collapsed into correct place alphabetically!
3481 * docs/cgiparams.txt,docs/overview.txt: Improved description of how B filters
3482   are handled when building the query.
3484 * docs/scriptindex.txt: Note that actions are applied in the specified order.
3486 Omega 0.8.5 (2004-12-23):
3488 * README,INSTALL: Proper installation instructions.
3490 * omega: If an exception is thrown, make sure that the HTTP headers
3491   get written so that we don't cause "500 Internal Server Error".
3492   This problem was introduced by the change to allow a user specified
3493   Content-Type in 0.8.0.  Partly addresses bug#60.
3495 * scriptindex: Fixed "Unknown Exception" when trying to "unhtml" text which
3496   contains "</body>" (bug#61).  This bug was introduced in 0.8.4.
3498 * omindex/scriptindex: <h1> - <h6> and </h1> - </h6> now leave a space in the
3499   dumped HTML.  This bug was introduced in 0.8.4 - before that any tag left
3500   a space in the dumped HTML.
3502 * omindex: Only try to delete removed documents in "replace duplicates" mode
3503   (which is the default).
3505 * omindex: Change behaviour of crawler such that it doesn't follow symbolic
3506   links any more.  The new "--follow" command line option turns following of
3507   symlinks back on.
3509 * dbi2omega: Add a comment to the start of the file detailing what
3510   dbi2omega does.
3512 Omega 0.8.4 (2004-12-08):
3514 * omindex,scriptindex: Improved HTML to text conversion - now we strip
3515   leading and trailing whitespace and convert all other consecutive groups of
3516   whitespace to a single space.  Also the parser now knows that some tags
3517   should be regarded as word breaks and some shouldn't (previously all tags
3518   were treated as word breaks).
3520 * omindex: Removed bogus extra line from code which was meant to
3521   truncate samples, titles, etc at a word boundary, but has never actually
3522   worked!
3524 * omindex: Added hooks for indexing the following formats: OpenOffice (requires
3525   unzip), MS Word (requires antiword), Wordperfect (requires wpd2text), RTF
3526   (requires unrtf).
3528 * omindex: If a filename to be passed to a filter program has a leading "-",
3529   protect it from possible interpretation as an option by prepending "./".
3531 * omega: When there's only a boolean query we promote it to be the query.
3532   Tweaked so we use boolean weights in this case.
3534 * omega: Use Query::empty() instead of the now deprecated Query::is_empty().
3536 * omega,omindex,scriptindex: Use the new Database/WritableDatabase
3537   constructors.
3539 * templates/godmode: Finished off godmode template.
3541 * Compile everything as C++.
3543 * Check snprintf actually works - some older versions don't implement C90
3544   snprintf semantics.
3546 * XAPIAN_FLAGS already links with xapianqueryparser so remove
3547   -lxapianqueryparser from omega_LDADD as it was causing link errors on cygwin.
3549 Omega 0.8.3 (2004-09-20):
3551 * scriptindex: --version now actually reports the version.  --help now exits
3552   with status 0 rather than status 1.
3554 * RPM packaging: Updated.  The most notable change is that the RPM is now
3555   called xapian-omega because there's already an omega RPM (in Fedora Core at
3556   least) which is a game.  Also htdig2omega and htdig2omega.script are now
3557   included in the RPM.
3559 * Install htdig2omega.script in ${prefix}/share/omega/ rather than
3560   ${prefix}/share/.
3562 Omega 0.8.2 (2004-09-13):
3564 * omega: $highlight now handles accented characters (bug#9).
3566 * omega: Use new checkatleast parameter to Enquire::get_mset to implement
3567   MINHITS.
3569 * omindex: When running with "replace duplicates" mode (the default), detect
3570   documents removed since the last indexing run and delete them from the
3571   database (bug #34).
3573 * omindex: Use the new WritableDatabase::replace_document(term, doc) method.
3575 * scriptindex: Report index script file name and line number when
3576   reporting errors in it.  Added warning for redundant actions,
3577   such as "truncate" as the last action in a rule.
3579 * templates/query: Always report if the database is not found - previously we
3580   only did so if there was a query.
3582 * templates/query: Fixed missing </center> tag which happened in certain cases.
3584 * docs/omegascript.txt: Added note about that $add{$hit,1} gives
3585   the "hit number".
3587 * Now includes htdig2omega and htdig2omega.script which allow you to crawl
3588   remote websites with ht://dig, then build a searchable index of them with
3589   Xapian and Omega.
3591 * Link with -lxapianqueryparser, not -lomqueryparser.
3593 Omega 0.8.1 (2004-06-30):
3595 * omindex: Renamed hash() to hash_string() to avoid colliding with something
3596   on IRIX.
3598 * omega: Changed MORELIKE to pick up to 40 terms, rather than up to 6 (feedback
3599   on the mailing list suggests this gives much better results).
3601 * scriptindex: Added explicit catch for std::bad_alloc.
3603 Omega 0.8.0 (2004-04-19):
3605 * scriptindex: Change default to *not* overwriting the database (use
3606   --overwrite if you really want to do this); -u is now accepted but ignored.
3608 * scriptindex: Use getopt for option parsing.
3610 * omindex: Added --overwrite option which forces an existing database to be
3611   deleted before indexing begins.
3613 * templates/xml: Correct spelling of `relavence' to `relevance'.  NB: if you're
3614   parsing the XML output, you'll need to fix this spelling in your parser!
3616 * templates/xml: Now set HTTP header: "Content-Type: application/html".
3618 * templates/xml: Remove unused OmegaScript code:
3619   `$set{topterms,$or{$ne{$msize,0},$query}}'.
3621 * indextext.cc,omindex.cc,scriptindex.cc: Updated to use add_term() instead of
3622   add_term_nopos().
3624 * omega: Added $httpheader Omegascript to allow arbitrary HTTP headers and
3625   alternative Content-Type headers to be specified.
3627 * omega: If the probabilistic query was bad, don't try to run the match.
3629 * omega: Don't crash if there's a date filter but no probabilistic query.
3631 * omindex/scriptindex: Raw terms with a multicharacter prefix are now indexed
3632   with a : inserted (e.g. as XFOO:Rterm).  This matches what the query parser
3633   does.
3635 * omindex/scriptindex: Don't create R terms for terms which start with a digit.
3637 * omindex: Use O_STREAMING and/or posix_fadvise() when reading files to be
3638   indexed (if available).  This helps to keep the Xapian database in cache,
3639   and should greatly improve indexing throughput.
3641 * docs/scriptindex.txt: Make more explicit that boolean produces a *single*
3642   boolean term.
3644 * docs/cgiparams.txt: Note that START and END should be in the format YYYYMMDD.
3646 For NEWS entries for Omega versions prior to 0.8.0, see the xapian-core NEWS
3647 file.