[Groonga-commit] groonga/groonga [master] set similarity_threshold large enough.

Zurück zum Archiv-Index

null+****@clear***** null+****@clear*****
2010年 8月 24日 (火) 01:37:27 JST


Daijiro MORI	2010-08-23 16:37:27 +0000 (Mon, 23 Aug 2010)

  New Revision: ec87c2ab3bf0aeebdb5df341cd54605b960be894

  Log:
    set similarity_threshold large enough.

  Modified files:
    modules/suggest/suggest.c

  Modified: modules/suggest/suggest.c (+1 -0)
===================================================================
--- modules/suggest/suggest.c    2010-08-23 16:31:29 +0000 (8b713c8)
+++ modules/suggest/suggest.c    2010-08-23 16:37:27 +0000 (bd2a7d5)
@@ -75,6 +75,7 @@ func_suggest(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data)
           grn_select_optarg optarg;
           memset(&optarg, 0, sizeof(grn_select_optarg));
           optarg.mode = GRN_OP_SIMILAR;
+          optarg.similarity_threshold = 1048576;
 
           grn_ii_select(ctx, (grn_ii *)grn_ctx_get(ctx, CONST_STR_LEN("SuggestBigram.suggest_key")),
                         GRN_TEXT_VALUE(VAR(2)), GRN_TEXT_LEN(VAR(2)), (grn_hash *)res, GRN_OP_OR, &optarg);




Groonga-commit メーリングリストの案内
Zurück zum Archiv-Index