Kouhei Sutou
null+****@clear*****
Fri Mar 27 10:53:13 JST 2015
Kouhei Sutou 2015-03-27 10:53:13 +0900 (Fri, 27 Mar 2015) New Revision: ca7302d079dd1e18b2b3cfba6d16e854bf097069 https://github.com/groonga/groonga/commit/ca7302d079dd1e18b2b3cfba6d16e854bf097069 Message: doc: describe more about _score type change Modified files: doc/source/news.rst Modified: doc/source/news.rst (+13 -1) =================================================================== --- doc/source/news.rst 2015-03-27 10:44:36 +0900 (76c2952) +++ doc/source/news.rst 2015-03-27 10:53:13 +0900 (b767ae3) @@ -18,7 +18,19 @@ Improvements * [:doc:`/references/commands/logical_range_filter`] Supported filter and sort. * Supported range search by multiple column index. * Added API :doc:`/reference/api/overview` document for users who want to use Groonga as library. -* Changed internal value type of ``_score`` to double. This is incompatible change for DB API users. +* [incompatible] Changed internal type of ``_score`` to floating point number from 32bit integer number. This is incompatible change for DB API users. This *isn't* incompatible change for query API users. It means that users who just use :doc:`/reference/commands/select` aren't affected. Use the following code that works with both older and newer Groonga: + + .. code-block:: c + + grn_obj *score; + double score_value; + + if (score->header.domain == GRN_DB_FLOAT) { + score_value = GRN_FLOAT_VALUE(score); + } else { + score_value = (double)GRN_INT32_VALUE_FLOAT_VALUE(score); + } + * Added more strict check for invalid drilldown parameter. * Added :c:func:`grn_ctx_get_all_tables()`. [Suggested by Masatoshi Teruya] * ??? Supported sort by index value. -------------- next part -------------- HTML����������������������������... Download