- Timestamp:
- 1999-12-11T04:02:41+13:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/packages/mg/src/text/bool_parser.y
r439 r819 49 49 static bool_tree_node *tree_base = NULL; 50 50 static TermList **term_list; 51 static int stemmer_num; 51 52 static int stem_method; 52 53 /* [RPAP - Jan 97: Stem Index Change] */ … … 77 78 78 79 79 term: TERM { $$ = CreateBoolTermNode(term_list, $1, 1, word_num, count, doc_count, invf_ptr, invf_len ); }80 term: TERM { $$ = CreateBoolTermNode(term_list, $1, 1, word_num, count, doc_count, invf_ptr, invf_len, stemmer_num); } 80 81 | '(' or ')' { $$ = $2; } 81 82 | '*' { $$ = CreateBoolTreeNode(N_all, NULL, NULL); } … … 139 140 buf_ptr++; 140 141 141 if ( INAWORD(*buf_ptr))142 if (inaword(buf_ptr, end)) 142 143 { 143 144 static char word[MAXSTEMLEN + 1]; /* [RJM 07/98: Memory Leak] */ … … 168 169 169 170 bcopy ((char *) word, (char *) sWord, *word + 1); 170 stemmer (stem_to_apply, s Word);171 stemmer (stem_to_apply, stemmer_num, sWord); 171 172 172 173 if (stem_to_apply == 0 || !indexed || p__sd == NULL) … … 290 291 bool_tree_node * 291 292 ParseBool(char *query_line, int query_len, 292 TermList **the_term_list, int the_stem _method, int *res,293 TermList **the_term_list, int the_stemmer_num, int the_stem_method, int *res, 293 294 stemmed_dict * the_sd, int is_indexed, /* [RPAP - Jan 97: Stem Index Change] */ 294 295 QueryTermList **the_query_term_list) /* [RPAP - Feb 97: Term Frequency] */ … … 296 297 /* global variables to be accessed by bison/yacc created parser */ 297 298 term_list = the_term_list; 299 stemmer_num = the_stemmer_num; 298 300 stem_method = the_stem_method; 299 301 ch_buf = query_line;
Note:
See TracChangeset
for help on using the changeset viewer.