[ic] RE: Problems with simple Search Interchange 4.9.5

Giles Hayes interchange-users@icdevgroup.org
Mon Dec 23 08:55:01 2002


Thanks Ed

Sorry about the whitespace.

I tried what you suggested but that returned a Cartesian product for
some reason.

I have managed to find a workaround though but I'm not sure why it
works.

For some reason, when you change the value mv_searchspec to 5
Ie
   <INPUT TYPE=hidden NAME=mv_searchspec VALUE=5>
   <INPUT MAXLENGTH=30 NAME=mv_searchspec type=text size=8>

It works fine

Is there an article anywhere which explains what that attribute does. I
have looked in the IC Tags Reference manual but information seams to be
a little scarce.

Thanks

Giles

-----Original Message-----
From: interchange-users-admin@icdevgroup.org
[mailto:interchange-users-admin@icdevgroup.org] On Behalf Of Ed LaFrance
Sent: 23 December 2002 00:09
To: interchange-users@icdevgroup.org
Subject: Re: [ic] (no subject)

At 10:10 PM 12/22/2002 +0000, you wrote:
>I have been experiencing some weirdness with the simple search utility
>with Interchange 4.9.5
>
>
>
>I have uploaded a products table with 63 items in it.
>
>
>
>The problem is that some of the items do not show up when I use
>search.html search to find them.
>
>
>
>As if by magic when I use advancedsearch.html they suddenly appear.
>
>
>
>I thought the problem might have been due to importing to the products
>table via a Mircrosoft Excell workbook, but the problem still manifests
>itself when I add records through the UI.
>
>
>
>Has anyone experienced a similar problem, and if so is there a
>workaround
>
>
>
>Best regards
>
>
>
>
>
>Giles Hayes

Giles - a bit less white space in these emails, please :-)

The 'basic' sidebar search has been a bit of a kludge since the 4.7.x 
branch; it is intended to screen out products which have their inactive 
field set to 1, but I think the method employed is a bit imprecise (I'm
not 
criticizing whoever wrote it, it is tough to match broadly AND exclude 
narrowly in a single search using the Interchange search terms), and
when 
you add in the fact the the inactive field disappeared from the
foundation 
demo item editor at some unknown point in the past, the search is now 
arbitrarily screening out otherwise valid matches for some people.

Try editing yourcat/templates/components/search_box_small to look more
like 
this:

   <form action="[area search]" method=post>
           <input type=hidden name=mv_session_id value="[data session
id]">
       <table border="0" width="95%">
       <tr>
             <td align="left">
               <INPUT TYPE=hidden NAME=mv_searchtype VALUE=db>
               <INPUT TYPE=hidden NAME=mv_matchlimit VALUE=10>
               <INPUT TYPE=hidden NAME=mv_sort_field VALUE=category>
               <input type=hidden name=mv_substring_match value=1>
               <INPUT MAXLENGTH=30 NAME=mv_searchspec type=text size=8>
             </td>
                 ...
       </tr>
       </table>
       </form>

It won't exclude 'inactive' items, but you are probably not using that 
feature any way.

- Ed L.

_______________________________________________________________
«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»)
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
New Media E.M.S.              Technology Solutions for Business
463 Main St., Suite D         eCommerce | Consulting | Hosting
Placerville, CA  95667        edl@newmediaems.com
(530) 622-9421                http://www.newmediaems.com
(866) 519-4680 Toll-Free      (530) 622-9426 Fax
_______________________________________________________________
«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»)
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users