[ic] mv_action_map search question

Brian Kosick interchange-users@interchange.redhat.com
Thu Jan 31 13:38:32 2002


At 12:14 PM 1/31/02 -0500, you wrote:
>Quoting Brian Kosick (briank@nacs.net):
> > Hello list,
> >
> >          I'm trying to create an search map.  I had one working a while
> > ago, but now it is broken.  I couldn't figure it out, so created a new 
> very
> > very simple one to test it out.  I'm using 4.8.3, perl 5.6.1,
> > RH7.1.  Here's the simple search
> >
> > <form action="[area search]" METHOD=POST>
> > <INPUT TYPE="hidden" NAME="mv_search_map" VALUE="
> >          mv_searchspec=search1
> >          ">
> > <INPUT TYPE="hidden" NAME="mv_search_field" VALUE="ac_color">
> > <INPUT Type="TEXT" NAME="search1" VALUE="">
> > <INPUT TYPE="submit" VALUE="[L]Search[/L]">
> >
> > </form>
> >
> > ^^^This returns every item in the database.  And causes an error 
> message of
> > "No search string specified" to be entered in the error log.
>
>I cannot confirm this. Tested on 4.8.3 with your exact form and did not
>observe this. It also works on 4.9.
>
>When I add
>
>         ::logGlobal("search_map: " . ::uneval($ref));
>
>near the bottom of Vend::Scan::parse_map, I see:
>
>10.10.10.6 Gnhs3Dwk:10.10.10.6 - [31/January/2002:12:07:27 -0500] testing 
>/cgi-bin/testing/search.html parse_map: {
> >   'mv_search_field' => 'ac_color',
> >   'mv_cache_key' => '3693fb21732988d3bfb3a3688558b885',
> >   'mv_searchspec' => [
> >     'junky'
> >   ],
> >   'mv_session_id' => 'Gnhs3Dwk',
> >   'search1' => 'junky'
> > }
> >
>
>That is what it should be, and the search returns empty with the
>bad field name. When I change the field name to a valid "description"
>for the demo, then it works as expected -- "neverbe" as a search
>term returns empty, and "Tool" returns two items.
>
>Must be something else going on....

You're right, I tried it on another site, and it worked fine also.  I tried 
adding the logging line to the parse_map subroutine.  However, when ever I 
try to activate ICDEBUG, I get an undefined catalog error.

I also tried creating a empty search profile for the simple one, but to no 
avail.
Anyone have any ideas on what it could be?