[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
cyrillic).
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 :
--snip--
<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"
VALUE="sku,autor,category,description,comment">
<INPUT TYPE="hidden" NAME="mv_field_names"
VALUE="sku,autor,category,description,comment">
<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"
VALUE="??????">
<INPUT TYPE="image" src="/images/go.gif" alt="Find" width=20 height=14
border=0 align=absmiddle>

</FORM>
--snap--


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
expresssion.
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,

Lars



More information about the interchange-users mailing list