SHA256
1
0
forked from pool/xapian-core

64 Commits

Author SHA256 Message Date
eadafe355b Accepting request 620422 from home:alarrosa:branches:server:search
- Update to 1.4.6:
  * API classes now support C++11 move semantics when using a compiler which
    we are confident supports them (currently compilers which define
    __cplusplus >= 201103 plus a special check for MSVC 2015 or later).
    C++11 move semantics provide a clean and efficient way for threaded code to
    hand-off Xapian objects to worker threads, but in this case it's very
    unhelpful for availability of these semantics to vary by compiler as it
    quietly leads to a build with non-threadsafe behaviour.  To address this,
    user code can #define XAPIAN_MOVE_SEMANTICS before #include <xapian.h> to
    force this on, and will then get a compilation failure if the compiler
    lacks suitable support.
  * MSet::snippet():
    + We were only escaping output for HTML/XML in some cases, which would
      potentially allow HTML to be injected into output (this fixes
      bnc#1099925, CVE-2018-0499).
    + Include certain leading non-word characters in snippets.  Previously we
      started the snippet at the start of the first actual word, but there are
      various cases where including non-word characters in front of the actual
      word adds useful context or otherwise aids comprehension.
  * Add MSetIterator::get_sort_key() method.  The sort key has always been
    available internally, but wasn't exposed via the public API before, which
    seems like an oversight as the collapse key has long been available.
  * Database::compact():
    + Allow Compactor::resolve_duplicate_metadata() implementations to delete
      entries.  Previously if an implementation returned an empty string this
      would result in a user meta-data entry with an empty value, which isn't
      normally achievable (empty meta-data values aren't stored), and so will
      cause odd behaviour.  We now handle an empty returned value by
      interpreting it in the natural way - it means that the merged result is
      to not set a value for that key in the output database.

OBS-URL: https://build.opensuse.org/request/show/620422
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=80
2018-07-04 07:16:37 +00:00
49912cc2dc Accepting request 557120 from home:alarrosa:branches:server:search
- Update to 1.4.5:
  * Add Database::get_total_length() method.  Previously you had to calculate
    this from get_avlength() and get_doccount(), taking into account rounding
    issues.  But even then you couldn't reliably get the exact value when total
    length is large since a double's mantissa has more limited precision than an
    unsigned long long.
  * Add Xapian::iterator_rewound() for bidirectional iterators, to test if the
    iterator is at the start (useful for testing whether we're done when
    iterating backwards).
  * DatabaseOpeningError exceptions now provide errno via get_error_string()
    rather than turning it into a string and including it in the exception
    message.
  * WritableDatabase::replace_document(): when passed a Document object which
    came from a database and has unmodified values, we used to always read
    those values into a memory structure.  Now we only do this if the document
    is being replaced to the same document ID which it came from, which should
    make other cases a bit more efficient.
  * Enquire::get_eset(): When approximating term frequencies we now round to the
    nearest integer - previously we always rounded down.
  * See also https://xapian.org/docs/xapian-core-1.4.5/NEWS

OBS-URL: https://build.opensuse.org/request/show/557120
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=78
2017-12-15 08:47:58 +00:00
1852e8fb8c Accepting request 507409 from home:alarrosa:branches:server:search
- Update to 1.4.4:
 * Database::check():
   + Fix checking a single table - changes in 1.4.2 broke such checks unless
     you specified the table without any extension.
   + Errors from failing to find the file specified are now thrown as
     DatabaseOpeningError (was DatabaseError, of which DatabaseOpeningError is
     a subclass so existing code should continue to work).  Also improved the
     error message when the file doesn't exist is better.
  * Drop OP_SCALE_WEIGHT over OP_VALUE_RANGE, OP_VALUE_GE and OP_VALUE_LE in
    the Query constructor.  These operators always return weight 0 so
    OP_SCALE_WEIGHT over them has no effect.  Eliminating it at query
    construction time is cheap (we only need to check the type of the
    subquery), eliminates the confusing "0 * " from the query description,
    and means the OP_SCALE_WEIGHT Query object can be released sooner.
    Inspired by Shivanshu Chauhan asking about the query description on IRC.
  * Drop OP_SCALE_WEIGHT on the right side of OP_AND_NOT in the Query
    constructor.  OP_AND_NOT takes no weight from the right so OP_SCALE_WEIGHT
    has no effect there.  Eliminating it at query construction time is cheap
    (just need to check the subquery's type), eliminates the confusing "0 * "
    from the query description, and means the OP_SCALE_WEIGHT object can be
    released sooner.
  * See also https://xapian.org/docs/xapian-core-1.4.4/NEWS

OBS-URL: https://build.opensuse.org/request/show/507409
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=76
2017-06-30 16:20:31 +00:00
9eeef9fada Accepting request 453942 from home:alarrosa:branches:server:search
- Update to 1.4.3:
 * MSet::snippet(): Favour candidate snippets which contain more of a diversity
   of matching terms by discounting the relevance of repeated terms using an
   exponential decay.  A snippet which contains more terms from the query is
   likely to be better than one which contains the same term or terms multiple
   times, but a repeated term is still interesting, just less with each
   additional appearance.  Diversity issue highlighted by Robert Stepanek's
   patch in https://github.com/xapian/xapian/pull/117 - testcases taken from his
   patch.
 * MSet::snippet(): New flag SNIPPET_EMPTY_WITHOUT_MATCH to get an empty snippet
   if there are no matches in the text passed in.  Implemented by Robert
   Stepanek.
 * Round MSet::get_matches_estimated() to an appropriate number of significant
   figures.  The algorithm used looks at the lower and upper bound and where the
   estimate sits between them, and then picks an appropriate number of
   significant figures.  Thanks to Sébastien Le Callonnec for help sorting out a
   portability issue on OS X.
 * Add Database::locked() method - where possible this non-invasively checks if
   the database is currently open for writing, which can be useful for
   dashboards and other status reporting tools.
 * See also https://xapian.org/docs/xapian-core-1.4.3/NEWS
- Update to 1.4.2:
 * Add XAPIAN_AT_LEAST(A,B,C) macro.
 
 * MSet::snippet(): Optimise snippet generation - it's now ~46% faster in a
   simple test.
 
 * Add Xapian::DOC_ASSUME_VALID flag which tells Database::get_document() that
   it doesn't need to check that the passed docid is valid.  Fixes #739,
   reported by Germán M. Bravo.

OBS-URL: https://build.opensuse.org/request/show/453942
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=74
2017-02-03 15:49:25 +00:00
f15e2a2119 Accepting request 439920 from home:alarrosa:branches:server:search
- Update to 1.4.1 
 * Constructing a Query for a non-reference counted PostingSource object will
   now try to clone the PostingSource object (as happened in 1.3.4 and
   earlier).  This clone code was removed as part of the changes in 1.3.5 to
   support optional reference counting of PostingSource objects, but that breaks
   the case when the PostingSource object is on the stack and goes out of scope
   before the Query object is used.  Issue reported by Till Schäfer and analysed
   by Daniel Vrátil in a bug report against Akonadi:
   https://bugs.kde.org/show_bug.cgi?id=363741
 
 * Add BM25PlusWeight class implementing the BM25+ weighting scheme, implemented
   by Vivek Pal (https://github.com/xapian/xapian/pull/104).
 * Add PL2PlusWeight class implementing the PL2+ weighting scheme, implemented
   by Vivek Pal (https://github.com/xapian/xapian/pull/108).
 * LMWeight: Implement Dir+ weighting scheme as DIRICHLET_PLUS_SMOOTHING.
   Patch from Vivek Pal.
 * Add CoordWeight class implementing coordinate matching.  This can be useful
   for specialised uses - e.g. to implement sorting by the number of matching
   filters.
 * DLHWeight,DPHWeight,PL2Weight: With these weighting schemes, the formulae
   can give a negative weight contribution for a term in extreme cases.  We
   used to try to handle this by calculating a per-term lower bound on the
   contribution and subtracting this from the contribution, but this idea
   is fundamentally flawed as the total offset it adds to a document depends on
   what combination of terms that document matches, meaning in general the
   offset isn't the same for every matching document.  So instead we now clamp
   each term's weight contribution to be >= 0.
 * TfIdfWeight: Always scale term weight by wqf - this seems the logical
   approach as it matches the weighting we'd get if we weighted every non-unique
   term in the query, as well as being explicit in the Piv+ formula.

OBS-URL: https://build.opensuse.org/request/show/439920
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=72
2016-11-12 07:43:25 +00:00
Raymond Wooninck
b6835e394f OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=70 2016-07-09 06:57:28 +00:00
Raymond Wooninck
a62600c6a4 OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=69 2016-07-09 06:47:06 +00:00
Raymond Wooninck
fa73cc556b OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=68 2016-07-09 06:38:14 +00:00
Raymond Wooninck
513330476e OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=67 2016-07-09 06:28:15 +00:00
Raymond Wooninck
1bc4efc824 OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=66 2016-04-13 07:08:49 +00:00
Raymond Wooninck
7e09da096d OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=65 2015-05-21 09:09:08 +00:00
Raymond Wooninck
4c9e87141b Accepting request 305001 from home:sumski:branches:server:search
Add 0001-backends-chert-chert_cursor.cc-backends-chert-chert_.patch from upstream (kde#341990, http://trac.xapian.org/ticket/675)

OBS-URL: https://build.opensuse.org/request/show/305001
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=63
2015-05-02 19:02:08 +00:00
Raymond Wooninck
b02a399d4a Accepting request 290365 from home:pluskalm:branches:server:search
- Update to 1.2.20

OBS-URL: https://build.opensuse.org/request/show/290365
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=61
2015-03-12 08:23:11 +00:00
Raymond Wooninck
4b8abd3cde Accepting request 286922 from home:pluskalm:branches:server:search
- Tiny spec file cleanups
- Add gpg signature

OBS-URL: https://build.opensuse.org/request/show/286922
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=59
2015-02-20 14:05:46 +00:00
Raymond Wooninck
021446ee61 OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=57 2014-10-21 12:23:37 +00:00
Raymond Wooninck
76852ea1fb Accepting request 248645 from home:sumski:hazard:to:your:stereo
Add baselibs.conf, needed by baloo 32bit libraries

OBS-URL: https://build.opensuse.org/request/show/248645
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=55
2014-09-14 07:44:53 +00:00
Raymond Wooninck
a8f92aa611 OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=53 2014-04-28 08:11:49 +00:00
Raymond Wooninck
53625549cf Accepting request 215581 from home:sumski:KDE:Unstable:SC
Update to 1.2.17

OBS-URL: https://build.opensuse.org/request/show/215581
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=51
2014-01-30 08:26:34 +00:00
Raymond Wooninck
13930e92d8 Accepting request 210976 from home:sumski:KDE:Unstable:SC
update to 1.2.16

OBS-URL: https://build.opensuse.org/request/show/210976
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=49
2013-12-16 09:17:14 +00:00
Raymond Wooninck
fd69aefd1b OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=47 2013-05-30 17:38:10 +00:00
Raymond Wooninck
cb1d4eb2c5 OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=45 2013-01-06 19:57:07 +00:00
Raymond Wooninck
979b63a6d3 Accepting request 146370 from home:mlin7442:branches:server:search
update to 1.2.12

OBS-URL: https://build.opensuse.org/request/show/146370
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=44
2012-12-26 11:58:33 +00:00
Raymond Wooninck
429a65f535 Accepting request 98786 from home:dirkmueller:branches:server:search
- update to 1.2.8:
  * Add support to TermGenerator and QueryParser for indexing and searching CJK
  text using n-grams.  Currently this is only enabled when the environmental
  variable XAPIAN_CJK_NGRAM is set to a non-empty value.
  * overview.html,quickstart.html: Fix several factual errors.
  * Improve documentation comments for several methods.
  * Add documentation for function parameters which didn't have it.

OBS-URL: https://build.opensuse.org/request/show/98786
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=42
2012-01-04 17:43:46 +00:00
Raymond Wooninck
391fd38c2d Accepting request 94157 from home:coolo:branches:openSUSE:Factory
- avoid packaging files twice

OBS-URL: https://build.opensuse.org/request/show/94157
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=40
2011-11-29 09:11:12 +00:00
Ruediger Oertel
b903152bd0 Autobuild autoformatter for 82335
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xapian-core?expand=0&rev=2
2011-09-19 15:57:30 +00:00
Ruediger Oertel
eb263a7e9c Accepting request 82335 from server:search
Resubmission of Xapian-core. All recommendations from saschpe have been done.

OBS-URL: https://build.opensuse.org/request/show/82335
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xapian-core?expand=0&rev=1
2011-09-19 15:57:20 +00:00
Raymond Wooninck
aa9c3b6c2f OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=38 2011-09-16 10:15:13 +00:00
Raymond Wooninck
234e30b54f OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=37 2011-09-16 09:54:45 +00:00
Raymond Wooninck
11f2d3e21e OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=36 2011-09-16 09:41:20 +00:00
Raymond Wooninck
00b180775a OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=35 2011-09-16 09:36:56 +00:00
Raymond Wooninck
76c0caa7d6 OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=34 2011-09-16 09:36:05 +00:00
Raymond Wooninck
0926779a2b Accepting request 82003 from home:prusnak:search
- updated to 1.2.7

please forward to factory once accepted - needed for software-center

OBS-URL: https://build.opensuse.org/request/show/82003
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=33
2011-09-13 12:39:06 +00:00
Raymond Wooninck
1a8cabeb8e OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=32 2011-05-03 19:21:16 +00:00
Raymond Wooninck
e4ee18f582 OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=31 2011-05-03 18:33:01 +00:00
Raymond Wooninck
32d525cc6b OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=30 2011-05-03 18:19:00 +00:00
Raymond Wooninck
6ffbc9b783 OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=29 2011-05-03 18:08:36 +00:00
Raymond Wooninck
4b775d0b6f OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=28 2011-05-03 18:00:43 +00:00
Raymond Wooninck
ad5b87f053 OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=27 2011-05-03 17:57:05 +00:00
cb5a44a7a1 Accepting request 66553 from openSUSE:Factory:Contrib
OBS-URL: https://build.opensuse.org/request/show/66553
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=26
2011-04-11 08:06:37 +00:00
Pascal Bleser
fb28500272 replace make_install with make ... install, and libuuid-devel with e2fsprogs-devel, fixes build on SLE_11, SLE_10 and SLES_9
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=25
2011-02-19 07:06:10 +00:00
37a2f82e73 Accepting request 58986 from home:prusnak:search
OBS-URL: https://build.opensuse.org/request/show/58986
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=24
2011-01-24 15:54:38 +00:00
783b846fa0 OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=23 2007-11-19 22:42:11 +00:00
8b722cf4c8 OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=22 2007-11-19 21:10:08 +00:00
OBS User unknown
faab219f12 OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=21 2007-11-19 21:10:03 +00:00
OBS User unknown
3c6e9e19f8 OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=20 2007-06-24 10:37:19 +00:00
OBS User unknown
9aa22aa089 OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=19 2007-06-24 10:13:53 +00:00
OBS User unknown
046da37fb9 OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=18 2007-06-24 09:43:54 +00:00
OBS User unknown
a0a9595ac7 OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=17 2007-06-24 09:43:54 +00:00
OBS User unknown
b3e661a12a OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=16 2007-06-24 09:43:53 +00:00
OBS User unknown
619f1980b6 OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=15 2007-06-24 09:43:53 +00:00