[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Search Syntax Question - mv 3.14
I'm using a database delimited by pipe (|) - I really can't change
that; the data comes from another source that is auto delimited by
pipe. I've set the catalog.cfg to
Database products products.asc PIPE
This works (text search):
<INPUT TYPE="hidden" NAME="mv_searchtype" VALUE="text">
<INPUT TYPE="hidden" NAME="mv_sort_field" VALUE="category">
<INPUT TYPE="hidden" NAME="mv_substring_match" VALUE="yes">
<INPUT TYPE="hidden" NAME="mv_match_limit" VALUE="50">
<INPUT TYPE="hidden" NAME="mv_index_delim" VALUE="\|">
<INPUT TYPE="hidden" NAME="mv_doit" VALUE="search">
<INPUT MAXLENGTH="30" NAME="mv_searchspec" SIZE="13" VALUE="">
This works (glimpse search):
<A HREF="[area scan
di=category
df=yes
tf=title
ml=99
dl=Art Print]">Art Prints</A>
This doesn't work (text search):
By: <A HREF="[area scan
sf=author
su=yes
st=text
tf=category
id=|
ml=50
se=[item-field author]
]">[item-field author]</A><BR>
If I escape the pipe in any way, I get a "no match" message. If I run
as above without escaping the pipe, I get results, but the entire record
is crammed into the [item-code] field and doesn't display. I have tried
all the different variations on scan (using &, /, etc) with escaping or
not escaping, but it always comes back to no matches or all crammed
together, no matter what I do.
This seems to have been a bug in minivend (yes, I know, the bad word)
since I've been using it. Even though the file is clearly defined as
pipe delimited in the catalog.cfg, I still have to manually tell
minivend to use pipe on *some* searches. I've been able to correct the
problem in past catalogs by setting the default file delimiter to
pipe, but in this case, I have a number of tab-delimited files that I
don't want to mess with, either.
Any suggestions?
-- Loy
--
Loy Ellen Gross * Web Designer & Programmer * Xcalibur Internet
Voice: 716-344-1114 * design@iinc.com * http://www.iinc.com