Navigation Menu

Skip to content

Commit

Permalink
keep up-to-date with new groonga.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikdttr committed Jul 16, 2009
1 parent cc3f6d2 commit c5f7eb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/driver.c
Expand Up @@ -99,7 +99,7 @@ int mrn_init()
if ((mrn_lexicon = grn_table_create(&ctx, MRN_LEXICON_TABLE_NAME,
strlen(MRN_LEXICON_TABLE_NAME), NULL,
GRN_OBJ_TABLE_PAT_KEY|GRN_OBJ_PERSISTENT,
grn_ctx_at(&ctx,GRN_DB_SHORTTEXT), 0)))
grn_ctx_at(&ctx,GRN_DB_SHORT_TEXT), 0)))
{
GRN_LOG(&ctx, GRN_LOG_NOTICE, "lexicon table created");
}
Expand Down
6 changes: 3 additions & 3 deletions src/ha_groonga.cc
Expand Up @@ -550,8 +550,8 @@ FT_INFO *ha_groonga::ft_init_ext(uint flags, uint inx,String *key)
/* boolean search */
grn_query *query;
this->res = grn_table_create(ctx, NULL, 0, NULL, GRN_TABLE_HASH_KEY, share->obj, 0);
query = grn_query_open(ctx, match_param, strlen(match_param), GRN_SEL_OR, 32);
grn_obj_search(ctx, share->field[1]->index, (grn_obj*) query, this->res, GRN_SEL_OR, NULL);
query = grn_query_open(ctx, match_param, strlen(match_param), GRN_OP_OR, 32);
grn_obj_search(ctx, share->field[1]->index, (grn_obj*) query, this->res, GRN_OP_OR, NULL);
this->cursor = grn_table_cursor_open(ctx, res, NULL, 0, NULL, 0, 0);
//grn_query_close(ctx, query);
} else {
Expand All @@ -560,7 +560,7 @@ FT_INFO *ha_groonga::ft_init_ext(uint flags, uint inx,String *key)
this->res = grn_table_create(ctx, NULL, 0, NULL, GRN_TABLE_HASH_KEY, share->obj, 0);
GRN_TEXT_INIT(&buff, 0);
GRN_TEXT_SET(ctx, &buff, match_param, strlen(match_param));
grn_obj_search(ctx, share->field[1]->index, &buff, this->res, GRN_SEL_OR, NULL);
grn_obj_search(ctx, share->field[1]->index, &buff, this->res, GRN_OP_OR, NULL);
this->cursor = grn_table_cursor_open(ctx, res, NULL, 0, NULL, 0, 0);
//grn_obj_close(ctx, &buff);
}
Expand Down

0 comments on commit c5f7eb9

Please sign in to comment.