[Groonga-commit] groonga/groonga [master] Switched grn_pat to grn_dat as temporary lexicons of the offline index builder

Back to archive index

null+****@clear***** null+****@clear*****
2012年 1月 24日 (火) 10:43:36 JST


Daijiro MORI	2012-01-24 10:43:36 +0900 (Tue, 24 Jan 2012)

  New Revision: 713c6876d6adcf732302b567bd81ada247f8b4d9

  Log:
    Switched grn_pat to grn_dat as temporary lexicons of the offline index builder

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+3 -1)
===================================================================
--- lib/ii.c    2012-01-24 07:40:29 +0900 (20a5919)
+++ lib/ii.c    2012-01-24 10:43:36 +0900 (93a0293)
@@ -6511,7 +6511,9 @@ grn_ii_builder_tokenize(grn_ctx *ctx, grn_ii_builder *builder, grn_id rid, grn_o
       grn_obj *tokenizer;
       grn_obj_flags flags;
       grn_table_get_info(ctx, builder->lexicon, &flags, NULL, &tokenizer);
-      flags &= ~GRN_OBJ_PERSISTENT;
+      //      flags &= ~GRN_OBJ_PERSISTENT;
+      flags &= GRN_OBJ_KEY_NORMALIZE;
+      flags |= GRN_OBJ_TABLE_DAT_KEY;
       builder->tmp_lexicon = grn_table_create(ctx, NULL, 0, NULL, flags, domain, range);
       grn_obj_set_info(ctx, builder->tmp_lexicon, GRN_INFO_DEFAULT_TOKENIZER, tokenizer);
     }




Groonga-commit メーリングリストの案内
Back to archive index