Branch: Tag:

2000-05-16

2000-05-16 02:30:22 by Martin Nilsson <mani@lysator.liu.se>

Pre-normalization already done

Rev: lib/modules/Search.pmod/module.pmod:1.2

80:   }      array(mapping) splitter(array(string) text, array(int) context, array(int) offset, -  function(string:string) pre_normalization, +     function(string:string) post_normalization,    function(mapping:int) ranking) {    if(sizeof(text)!=sizeof(context) ||
88:       array(mapping) result=({});    for(int i=0; i<sizeof(text); i++) { -  array words=pre_normalization(text[i])/" "; +  array words=text[i]/" ";    int inc=0, oldinc;    foreach(words, string word) {    oldinc=inc;