[groonga-dev,04058] grn_ii_posting_add(res_add)とgrn_table_setoperationのGRN_OP_ADJUSTの挙動が違う

Back to archive index

Naoya Murakami visio****@gmail*****
2016年 6月 17日 (金) 19:18:25 JST


村上です。

queryをごにょごにょするセレクタ関数を自作してて気づいた
のですが、grn_ii_posting_addとgrn_table_setoperationの
でGRN_OP_ADJUSTの挙動が違うことに気が付きました。

grn_ii_posting_add(res_add)の場合、スコアの足し算なのですが、
https://github.com/groonga/groonga/blob/master/lib/ii.c#L6455

grn_table_setoperationの場合、値のコピーすなわちスコアごと上書き
になります。
https://github.com/groonga/groonga/blob/master/lib/db.c#L4512

grn_table_setoperationのGRN_OP_ADJUSTもスコアの足し算の方が
望ましいと思うのですが、いかがでしょうか?
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Descargar 



groonga-dev メーリングリストの案内
Back to archive index