<div dir="ltr"><div><div>村上です。<br><br></div>queryをごにょごにょするセレクタ関数を自作してて気づいた<br>のですが、grn_ii_posting_addとgrn_table_setoperationの<br>でGRN_OP_ADJUSTの挙動が違うことに気が付きました。<br><br></div><div>grn_ii_posting_add(res_add)の場合、スコアの足し算なのですが、<a href="https://github.com/groonga/groonga/blob/master/lib/ii.c#L6455"><br>https://github.com/groonga/groonga/blob/master/lib/ii.c#L6455</a><br><br></div><div>grn_table_setoperationの場合、値のコピーすなわちスコアごと上書き<br>になります。<br><a href="https://github.com/groonga/groonga/blob/master/lib/db.c#L4512">https://github.com/groonga/groonga/blob/master/lib/db.c#L4512</a><br><br></div><div>grn_table_setoperationのGRN_OP_ADJUSTもスコアの足し算の方が<br>望ましいと思うのですが、いかがでしょうか?<br><br><br></div></div>