Navigation Menu

Skip to content

Commit

Permalink
Use grn_table_group_add_subrec() to support calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 19, 2015
1 parent a881995 commit 686c1a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/db.c
Expand Up @@ -3229,8 +3229,10 @@ grn_table_group_single_key_records(grn_ctx *ctx, grn_obj *table,
if (grn_table_add_v_inline(ctx, res,
content, content_length,
&value, NULL)) {
grn_table_add_subrec_inline(res, value, ri ? ri->score : 0,
(grn_rset_posinfo *)&id, 0);
grn_table_group_add_subrec(ctx, res, value,
ri ? ri->score : 0,
(grn_rset_posinfo *)&id, 0,
calc_target);
}
}
}
Expand Down

0 comments on commit 686c1a8

Please sign in to comment.