Branch: Tag:

2000-11-01

2000-11-01 19:39:03 by Martin Nilsson <mani@lysator.liu.se>

Fixed some problems.

Rev: lib/modules/Search.pmod/filters/text_html.pike:1.5
Rev: lib/modules/Search.pmod/module.pmod:1.6
Rev: lib/modules/Search.pmod/simple_sql_db.pike:1.5

77:    return indices(filters);   }    - array(mapping) splitter(array(string) text, array(int) context, array(int) offset, + array(mapping) splitter(array(string) text, array(int) context,    function(string:string) post_normalization,    function(mapping:int) ranking)   { -  if(sizeof(text)!=sizeof(context) || -  sizeof(text)!=sizeof(offset) ) return 0; +  if(sizeof(text)!=sizeof(context)) +  return 0;       array(mapping) result=({});    for(int i=0; i<sizeof(text); i++)
97:    if(!sizeof(word)) continue;    mapping n_word=([ "word":word,    "type":context[i], -  "offset":offset[i]+oldinc, +  // "offset":offset[i]+oldinc,    // This might be destroyed by pre_normalization    ]);    n_word->rank=ranking(n_word);