[Groonga-commit] groonga/groonga [master] [suggest][complete] prefix-search with normalized query

Back to archive index

null+****@clear***** null+****@clear*****
2012年 1月 19日 (木) 17:42:02 JST


Ryo Onodera	2012-01-19 17:42:02 +0900 (Thu, 19 Jan 2012)

  New Revision: 9e9d598918e22f4d1600a598bb7891e5dd1a1d7f

  Log:
    [suggest][complete] prefix-search with normalized query

  Modified files:
    plugins/suggest/suggest.c

  Modified: plugins/suggest/suggest.c (+1 -1)
===================================================================
--- plugins/suggest/suggest.c    2012-01-19 17:39:29 +0900 (3919932)
+++ plugins/suggest/suggest.c    2012-01-19 17:42:02 +0900 (12450a0)
@@ -276,7 +276,7 @@ complete(grn_ctx *ctx, grn_obj *items, grn_obj *items_boost, grn_obj *col,
       if (((prefix_search_mode == GRN_SUGGEST_PREFIX_SEARCH_YES) ||
            (prefix_search_mode == GRN_SUGGEST_PREFIX_SEARCH_AUTO &&
             !grn_table_size(ctx, res))) &&
-          (cur = grn_table_cursor_open(ctx, items, TEXT_VALUE_LEN(query),
+          (cur = grn_table_cursor_open(ctx, items, norm->norm, norm->norm_blen,
                                        NULL, 0, 0, -1, GRN_CURSOR_PREFIX))) {
         grn_id id;
         while ((id = grn_table_cursor_next(ctx, cur))) {




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