Skip to content

Commit

Permalink
Support 'r' argument for grn_query_search().
Browse files Browse the repository at this point in the history
  • Loading branch information
daijiro committed May 25, 2009
1 parent f8b179f commit 3546f82
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions lib/query.c
Original file line number Diff line number Diff line change
Expand Up @@ -794,24 +794,8 @@ exec_search(grn_ctx *ctx, grn_ii *i, grn_query *q, grn_cell *c,
op1 = q->default_op;
}
if (n) {
switch (op) {
case GRN_SEL_OR :
// todo if (!grn_records_union(r, s)) { grn_records_close(s); }
break;
case GRN_SEL_AND :
// todo if (!grn_records_intersect(r, s)) { grn_records_close(s); }
break;
case GRN_SEL_BUT :
// todo if (!grn_records_subtract(r, s)) { grn_records_close(s); }
break;
/* todo: adjust
case GRN_SEL_ADJUST :
break;
*/
default :
grn_hash_close(ctx, s);
break;
}
grn_table_setoperation(ctx, (grn_obj *)r, (grn_obj *)s, (grn_obj *)r, op);
grn_hash_close(ctx, s);
}
}

Expand Down

0 comments on commit 3546f82

Please sign in to comment.