Yutaro SHIMAMURA
yu****@irx*****
2016年 3月 15日 (火) 13:15:31 JST
しまむらです。 Unmap/reopenが必要な状態の時、selectではエラーコードを返してくれますが、loadの時には正常に完了した処理コードを返します。 この時unmap対象となるテーブルは更新されておらず、値も欠損する状態なので ロードも同じようにエラーコードとかがついて判別できる状態だと良いな、と思いました。 是非ご検討いただければと思います! * DDL > groonga -n testdb table_create test TABLE_HASH_KEY ShortText column_create test txt COLUMN_SCALAR ShortText table_create idx_txt TABLE_PAT_KEY ShortText --default_tokenizer TokenDelimit column_create idx_txt test_txt COLUMN_INDEX test txt > groonga -d -p 10041 > groonga -c -p 10041 load --table test [ ["_key","txt"], ["test4","ghi"], ["test5","mno"], ] > groonga testdb reindex idx_txt [[0,1458013867.93469,0.0146846771240234],true] * 再現 > groonga -c -p 10041 select test --match_columns txt --query 'abc' [[-53,1458013893.81232,0.0009918212890625,"[]",[["c_output","groonga.c",425]]]] load --table test [ ["_key","txt"], ["test4","ghi"], ["test5","mno"], ] [[0,1458013957.60843,0.000190973281860352],2] # 正常に登録されていない select test [[0,1458014398.3884,0.000233888626098633],[[[5],[["_id","UInt32"],["_key","ShortText"],["txt","ShortText"]], [1,"test1","abc"],[2,"test2","def"],[3,"test3","xyz"],[4,"test4",""],[5,"test5",""]]]] select idx [[0,1458014463.95954,7.15255737304688e-05],[[[3],[["_id","UInt32"],["_key","ShortText"],["test_txt","UInt32"]], [1,"abc",1],[2,"def",1],[3,"xyz",1]]]]