[ic] Search.pm : case insensitiv problem

Lars Tode tode at bpanet.de
Mon Nov 29 12:29:54 EST 2004

Hallo list.

Since a few weeks we've a problem with the case insensitiv search.
We are using the current interchange version (5.x) on a FreeBSD 4.7 with
Perl 5.8.5.

As Example we had 36 records, that contain the word 'Puschkin' (in
If you search for 'Puschkin' you get 36 hits. If you search for 'puschkin',
and set mv_case to 0 and mv_substing_match to 1, only 1 record match.

Here is the search form :
<FORM ACTION="[process]"  method=post>
<INPUT TYPE="hidden" NAME="mv_session_id" VALUE="[data session id]">
<INPUT TYPE="hidden" NAME="mv_doit" VALUE="search">
<INPUT TYPE="hidden" NAME=mv_searchtype VALUE="text">
<INPUT TYPE="hidden" NAME="mv_matchlimit" VALUE="10">
<INPUT TYPE="hidden" NAME="mv_all_chars" VALUE="1">
<INPUT TYPE="hidden" NAME="mv_coordinate" VALUE="1">
<INPUT TYPE="hidden" NAME="mv_case" VALUE="0">
<INPUT TYPE="hidden" NAME="mv_orsearch" VALUE="1">
<INPUT TYPE="hidden" NAME="mv_search_field"
<INPUT TYPE="hidden" NAME="mv_field_names"
<INPUT TYPE="hidden" NAME="mv_sort_field" VALUE="autor,category">
<INPUT TYPE="hidden" NAME="mv_sort_option" VALUE="f">
<INPUT TYPE="hidden" NAME="mv_substring_match" value="1">
<INPUT TYPE=text name="mv_searchspec" size="15" maxLength="30"
<INPUT TYPE="image" src="/images/go.gif" alt="Find" width=20 height=14
border=0 align=absmiddle>


After I'd a look in Search.pm, I rebuild a simple search based on the
function create_search_or in Vend::Search, means a simple regular
First I got the same results, but solved the Problems by handle the locales.
Now my Regular expression works fine, interchange still not.

Now, i want to figure out where the reason for that behaviour is located.

May be I want to try use Vend::Search outside Interchange for some test.

Has anyone some hints for me? Possible someone had the same problems?

Thanks in Advanced,


More information about the interchange-users mailing list