[Groonga-commit] groonga/groonga at 872b9d1 [master] ii regexp: ensure setting end_pos

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 18 13:26:37 JST 2017


Kouhei Sutou	2017-04-18 13:26:37 +0900 (Tue, 18 Apr 2017)

  New Revision: 872b9d13527d24aab15f2303bc4c693b1a3c3113
  https://github.com/groonga/groonga/commit/872b9d13527d24aab15f2303bc4c693b1a3c3113

  Message:
    ii regexp: ensure setting end_pos

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+3 -0)
===================================================================
--- lib/ii.c    2017-04-18 11:58:08 +0900 (ddaad60)
+++ lib/ii.c    2017-04-18 13:26:37 +0900 (be51cb8)
@@ -7978,6 +7978,9 @@ grn_ii_select_cursor_next(grn_ctx *ctx,
           if (ti->pos == pos) {
             score += ti->p->weight + ti->cursors->bins[0]->weight;
             count++;
+            if (ti->p->pos > end_pos) {
+              end_pos = ti->p->pos;
+            }
           } else {
             score = ti->p->weight + ti->cursors->bins[0]->weight;
             count = 1;
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index