Kouhei Sutou
null+****@clear*****
Wed Oct 19 20:10:13 JST 2016
Kouhei Sutou 2016-10-19 20:10:13 +0900 (Wed, 19 Oct 2016) New Revision: 7e4d6bbd852808962c191bff610ae43f31080f7c https://github.com/groonga/groonga/commit/7e4d6bbd852808962c191bff610ae43f31080f7c Message: ii: show used index report even if term ID for equal index isn't found Modified files: lib/expr.c Modified: lib/expr.c (+3 -2) =================================================================== --- lib/expr.c 2016-10-18 18:24:22 +0900 (61cc28f) +++ lib/expr.c 2016-10-19 20:10:13 +0900 (0be94a9) @@ -5973,6 +5973,9 @@ grn_table_select_index_equal(grn_ctx *ctx, if (domain) { grn_id tid; + + grn_table_select_index_report(ctx, tag, index); + if (GRN_OBJ_GET_DOMAIN(si->query) == DB_OBJ(domain)->id) { tid = GRN_RECORD_VALUE(si->query); } else { @@ -5986,8 +5989,6 @@ grn_table_select_index_equal(grn_ctx *ctx, grn_ii *ii = (grn_ii *)index; grn_ii_cursor *ii_cursor; - grn_table_select_index_report(ctx, tag, index); - sid = GRN_UINT32_VALUE_AT(&(si->wv), 0); weight = GRN_INT32_VALUE_AT(&(si->wv), 1); ii_cursor = grn_ii_cursor_open(ctx, ii, tid, -------------- next part -------------- HTML����������������������������...Download