X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Frpnsearch.c;h=873ca912e80196a46b66a34c07042dcfe24aece0;hb=dccd483bc75013a7b16542d27f92f956146aa570;hp=3fbaa8368420ed720e4929bdc960d15570dbb480;hpb=d5bb5b72d912f673c7d123fc54d735dee2146003;p=idzebra-moved-to-github.git diff --git a/index/rpnsearch.c b/index/rpnsearch.c index 3fbaa83..873ca91 100644 --- a/index/rpnsearch.c +++ b/index/rpnsearch.c @@ -433,7 +433,7 @@ static int term_102(zebra_map_t zm, const char **src, } -/* term_104: handle term, process # and ! */ +/* term_104: handle term, process ?n * # */ static int term_104(zebra_map_t zm, const char **src, WRBUF term_dict, int space_split, WRBUF display_term) { @@ -502,7 +502,7 @@ static int term_104(zebra_map_t zm, const char **src, return i; } -/* term_105/106: handle term, where trunc = Process * and ! and right trunc */ +/* term_105/106: handle term, process * ! and possibly right_truncate */ static int term_105(zebra_map_t zm, const char **src, WRBUF term_dict, int space_split, WRBUF display_term, int right_truncate) @@ -1147,7 +1147,7 @@ static ZEBRA_RES string_term(ZebraHandle zh, Z_AttributesPlusTerm *zapt, } wrbuf_putc(term_dict, ')'); break; - case 104: /* process # and ! in term */ + case 104: /* process ?n * # term */ wrbuf_putc(term_dict, '('); if (!term_104(zm, &termp, term_dict, space_split, display_term)) { @@ -1156,7 +1156,7 @@ static ZEBRA_RES string_term(ZebraHandle zh, Z_AttributesPlusTerm *zapt, } wrbuf_putc(term_dict, ')'); break; - case 105: /* process * and ! in term */ + case 105: /* process * ! in term and right truncate */ wrbuf_putc(term_dict, '('); if (!term_105(zm, &termp, term_dict, space_split, display_term, 1)) { @@ -1165,7 +1165,7 @@ static ZEBRA_RES string_term(ZebraHandle zh, Z_AttributesPlusTerm *zapt, } wrbuf_putc(term_dict, ')'); break; - case 106: /* process * and ! in term */ + case 106: /* process * ! in term */ wrbuf_putc(term_dict, '('); if (!term_105(zm, &termp, term_dict, space_split, display_term, 0)) {