enquire.h | enquire.h | |||
---|---|---|---|---|
skipping to change at line 908 | skipping to change at line 908 | |||
* Note that with the default BM25 weighting scheme parameters, | * Note that with the default BM25 weighting scheme parameters, | |||
* non-identical documents will rarely have the same weight, so | * non-identical documents will rarely have the same weight, so | |||
* this setting will give very similar results to | * this setting will give very similar results to | |||
* set_sort_by_relevance(). It becomes more useful with particular | * set_sort_by_relevance(). It becomes more useful with particular | |||
* BM25 parameter settings (e.g. BM25Weight(1,0,1,0,0)) or custom | * BM25 parameter settings (e.g. BM25Weight(1,0,1,0,0)) or custom | |||
* weighting schemes. | * weighting schemes. | |||
* | * | |||
* @param sort_key value number to sort on. | * @param sort_key value number to sort on. | |||
* | * | |||
* @param reverse If true, reverses the sort order of sort_key. | * @param reverse If true, reverses the sort order of sort_key. | |||
* Beware that in 1.2.16 and earlier, the sense | ||||
* of this parameter was incorrectly inverted | ||||
* and inconsistent with the other set_sort_by_... | ||||
* methods. This was fixed in 1.2.17, so make that | ||||
* version a minimum requirement if this detail | ||||
* matters to your application. | ||||
*/ | */ | |||
void set_sort_by_relevance_then_value(Xapian::valueno sort_key, | void set_sort_by_relevance_then_value(Xapian::valueno sort_key, | |||
bool reverse); | bool reverse); | |||
XAPIAN_DEPRECATED(void set_sort_by_relevance_then_value(Xapian::valu eno sort_key)); | XAPIAN_DEPRECATED(void set_sort_by_relevance_then_value(Xapian::valu eno sort_key)); | |||
/** Set the sorting to be by relevance, then by keys generated from | /** Set the sorting to be by relevance, then by keys generated from | |||
* values. | * values. | |||
* | * | |||
* Note that with the default BM25 weighting scheme parameters, | * Note that with the default BM25 weighting scheme parameters, | |||
* non-identical documents will rarely have the same weight, so | * non-identical documents will rarely have the same weight, so | |||
* this setting will give very similar results to | * this setting will give very similar results to | |||
* set_sort_by_relevance(). It becomes more useful with particular | * set_sort_by_relevance(). It becomes more useful with particular | |||
* BM25 parameter settings (e.g. BM25Weight(1,0,1,0,0)) or custom | * BM25 parameter settings (e.g. BM25Weight(1,0,1,0,0)) or custom | |||
* weighting schemes. | * weighting schemes. | |||
* | * | |||
* @param sorter The functor to use for generating keys. | * @param sorter The functor to use for generating keys. | |||
* | * | |||
* @param reverse If true, reverses the sort order of the generate d | * @param reverse If true, reverses the sort order of the generate d | |||
* keys. | * keys. Beware that in 1.2.16 and earlier, the se | |||
nse | ||||
* of this parameter was incorrectly inverted | ||||
* and inconsistent with the other set_sort_by_... | ||||
* methods. This was fixed in 1.2.17, so make that | ||||
* version a minimum requirement if this detail | ||||
* matters to your application. | ||||
*/ | */ | |||
void set_sort_by_relevance_then_key(Xapian::KeyMaker * sorter, | void set_sort_by_relevance_then_key(Xapian::KeyMaker * sorter, | |||
bool reverse); | bool reverse); | |||
XAPIAN_DEPRECATED(void set_sort_by_relevance_then_key(Xapian::KeyMak er * sorter)); | XAPIAN_DEPRECATED(void set_sort_by_relevance_then_key(Xapian::KeyMak er * sorter)); | |||
/** Get (a portion of) the match set for the current query. | /** Get (a portion of) the match set for the current query. | |||
* | * | |||
* @param first the first item in the result set to return. | * @param first the first item in the result set to return. | |||
* A value of zero corresponds to the first item | * A value of zero corresponds to the first item | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 13 lines changed or added | |||
error.h | error.h | |||
---|---|---|---|---|
/** @file error.h | /** @file error.h | |||
* @brief Hierarchy of classes which Xapian can throw as exceptions. | * @brief Hierarchy of classes which Xapian can throw as exceptions. | |||
*/ | */ | |||
/* Warning: This file is generated by /data/home/olly/tmp/xapian-svn-snapsh ot/tags/1.2.16/xapian/xapian-core/generate-exceptions - do not modify direc tly! */ | /* Warning: This file is generated by /data/home/olly/tmp/xapian-svn-snapsh ot/tags/1.2.17/xapian/xapian-core/generate-exceptions - do not modify direc tly! */ | |||
/* Copyright (C) 2003,2004,2006,2007,2009 Olly Betts | /* Copyright (C) 2003,2004,2006,2007,2009 Olly Betts | |||
* | * | |||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU General Public License as | * modify it under the terms of the GNU General Public License as | |||
* published by the Free Software Foundation; either version 2 of the | * published by the Free Software Foundation; either version 2 of the | |||
* License, or (at your option) any later version. | * License, or (at your option) any later version. | |||
* | * | |||
* This program is distributed in the hope that it will be useful, | * This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
valueiterator.h | valueiterator.h | |||
---|---|---|---|---|
/** @file valueiterator.h | /** @file valueiterator.h | |||
* @brief Class for iterating over document values. | * @brief Class for iterating over document values. | |||
*/ | */ | |||
/* Copyright (C) 2008,2009,2010 Olly Betts | /* Copyright (C) 2008,2009,2010,2014 Olly Betts | |||
* | * | |||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU General Public License as | * modify it under the terms of the GNU General Public License as | |||
* published by the Free Software Foundation; either version 2 of the | * published by the Free Software Foundation; either version 2 of the | |||
* License, or (at your option) any later version. | * License, or (at your option) any later version. | |||
* | * | |||
* This program is distributed in the hope that it will be useful, | * This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | * GNU General Public License for more details. | |||
skipping to change at line 143 | skipping to change at line 143 | |||
* unspecified). In this state, next() will advance to the first matc hing | * unspecified). In this state, next() will advance to the first matc hing | |||
* position after document @a did, and skip_to() will act as it would if | * position after document @a did, and skip_to() will act as it would if | |||
* the position was the first matching position after document @a did. | * the position was the first matching position after document @a did. | |||
* | * | |||
* Currently the inmemory, flint, and remote backends behave in the | * Currently the inmemory, flint, and remote backends behave in the | |||
* latter way because they don't support streamed values and so skip_t o() | * latter way because they don't support streamed values and so skip_t o() | |||
* must check each document it skips over which is significantly slowe r. | * must check each document it skips over which is significantly slowe r. | |||
* | * | |||
* @param docid The document id to check. | * @param docid The document id to check. | |||
*/ | */ | |||
#ifndef check | ||||
bool check(Xapian::docid docid); | bool check(Xapian::docid docid); | |||
#else | ||||
// The AssertMacros.h header in the OS X SDK currently defines a check | ||||
// macro. Apple have deprecated check() in favour of __Check() and | ||||
// plan to remove check() in a "future release", but for now prevent | ||||
// expansion of check by adding parentheses in the method prototype: | ||||
// http://www.opensource.apple.com/source/CarbonHeaders/CarbonHeaders-1 | ||||
8.1/AssertMacros.h | ||||
// | ||||
// We do this conditionally, as these parentheses trip up SWIG's | ||||
// parser: | ||||
// https://github.com/swig/swig/issues/45 | ||||
bool (check)(Xapian::docid docid); | ||||
#endif | ||||
/// Return a string describing this object. | /// Return a string describing this object. | |||
std::string get_description() const; | std::string get_description() const; | |||
/** @private @internal ValueIterator is what the C++ STL calls an | /** @private @internal ValueIterator is what the C++ STL calls an | |||
* input_iterator. | * input_iterator. | |||
* | * | |||
* The following typedefs allow std::iterator_traits<> to work so that | * The following typedefs allow std::iterator_traits<> to work so that | |||
* this iterator can be used with with STL. | * this iterator can be used with with STL. | |||
* | * | |||
End of changes. 3 change blocks. | ||||
1 lines changed or deleted | 15 lines changed or added | |||
version.h | version.h | |||
---|---|---|---|---|
skipping to change at line 46 | skipping to change at line 46 | |||
#error was not compiled with this flag. The settings must match or your | #error was not compiled with this flag. The settings must match or your | |||
#error program will not work correctly. | #error program will not work correctly. | |||
#endif | #endif | |||
#endif | #endif | |||
#endif | #endif | |||
/// The library was compiled with GCC's -fvisibility=hidden option. | /// The library was compiled with GCC's -fvisibility=hidden option. | |||
#define XAPIAN_ENABLE_VISIBILITY | #define XAPIAN_ENABLE_VISIBILITY | |||
/// The version of Xapian as a C string literal. | /// The version of Xapian as a C string literal. | |||
#define XAPIAN_VERSION "1.2.16" | #define XAPIAN_VERSION "1.2.17" | |||
/** The major component of the Xapian version. | /** The major component of the Xapian version. | |||
* E.g. for Xapian 1.0.14 this would be: 1 | * E.g. for Xapian 1.0.14 this would be: 1 | |||
*/ | */ | |||
#define XAPIAN_MAJOR_VERSION 1 | #define XAPIAN_MAJOR_VERSION 1 | |||
/** The minor component of the Xapian version. | /** The minor component of the Xapian version. | |||
* E.g. for Xapian 1.0.14 this would be: 0 | * E.g. for Xapian 1.0.14 this would be: 0 | |||
*/ | */ | |||
#define XAPIAN_MINOR_VERSION 2 | #define XAPIAN_MINOR_VERSION 2 | |||
/** The revision component of the Xapian version. | /** The revision component of the Xapian version. | |||
* E.g. for Xapian 1.0.14 this would be: 14 | * E.g. for Xapian 1.0.14 this would be: 14 | |||
*/ | */ | |||
#define XAPIAN_REVISION 16 | #define XAPIAN_REVISION 17 | |||
/// XAPIAN_HAS_BRASS_BACKEND Defined if the brass backend is enabled. | /// XAPIAN_HAS_BRASS_BACKEND Defined if the brass backend is enabled. | |||
#define XAPIAN_HAS_BRASS_BACKEND 1 | #define XAPIAN_HAS_BRASS_BACKEND 1 | |||
/// XAPIAN_HAS_CHERT_BACKEND Defined if the chert backend is enabled. | /// XAPIAN_HAS_CHERT_BACKEND Defined if the chert backend is enabled. | |||
#define XAPIAN_HAS_CHERT_BACKEND 1 | #define XAPIAN_HAS_CHERT_BACKEND 1 | |||
/// XAPIAN_HAS_FLINT_BACKEND Defined if the flint backend is enabled. | /// XAPIAN_HAS_FLINT_BACKEND Defined if the flint backend is enabled. | |||
#define XAPIAN_HAS_FLINT_BACKEND 1 | #define XAPIAN_HAS_FLINT_BACKEND 1 | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||