[ic] Partial search

Kevin Walsh interchange-users@interchange.redhat.com
Tue Apr 2 03:45:01 2002


>
> I am trying to inplement my search in such way that I do not have to
> enter full search text just partial text, ie. for example I want to be
> able to enter just alm not full text alma and still get some results.
>
> Do you guys have any ideas  how to do this???
>
> I tried following (whcih works fine with full text match),, but not with
> partial text match:
>
> [...snip...]
>
>   for(my $i = 0; $i < @f; $i++) {
>    next unless length $s[$i];
>    $found++;
>    push @q, "lf=$f[$i]";
>    push @q, "ls=$s[$i]";
>   }
>
Have you tried the following?

    push @q, "sf=$f[$i]";
    push @q, "se=$s[$i]";
    push @q, "su=1";

"su" is "mv_substring_match".

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/