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

Back to archive index

Kouhei Sutou kou****@clear*****
2016年 6月 21日 (火) 19:06:50 JST


須藤です。

In <CANM+HhfMnG0vRmVPygvjbYq3_=dL7i0LC3mA1U4=yn9y0****@mail*****>
  "[groonga-dev,04058] grn_ii_posting_add(res_add)とgrn_table_setoperationのGRN_OP_ADJUSTの挙動が違う" on Fri, 17 Jun 2016 19:18:25 +0900,
  Naoya Murakami <visio****@gmail*****> wrote:

> 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もスコアの足し算の方が
> 望ましいと思うのですが、いかがでしょうか?

まったくもってその通りなのでそのようにしました!


-- 
須藤 功平 <kou****@clear*****>
株式会社クリアコード <http://www.clear-code.com/>

Groongaベースの全文検索システムを総合サポート:
  http://groonga.org/ja/support/
パッチ採用 - プログラミングが楽しい人向けの採用プロセス:
  http://www.clear-code.com/recruitment/
リーダブルコードワークショップ:
  http://www.clear-code.com/services/code-reader/readable-code-workshop.html




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