Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Search field Question



******    message to minivend-users from Ramsey French <rammjet@mac.com>     ******



> From: Mike Heins <mikeh@minivend.com>
> Date: Thu, 25 May 2000 10:14:18 -0400
> 
> ******    message to minivend-users from Mike Heins <mikeh@minivend.com>
> ******
> 
> Quoting Ramsey French (rammjet@mac.com):
>> 
>> Giving it another try....
>> 
>> 
>> Hi - I have looked through the docs and the archives, but I cannot get a
>> clear explanation on what is happening here.
>> 
>> In the simple demo, there is a search box in the logobar.  Some of the
>> arguments in the form variables are:
>> 
>> <INPUT TYPE=hidden NAME=mv_coordinate VALUE=1>
>> <INPUT TYPE=hidden NAME=mv_search_field VALUE=category>  <===
>> <INPUT TYPE=hidden NAME=mv_search_field
>> VALUE=":artist,title,comment,display">  <===
>> ^
>> 
>> What is happening with this pair of search_field values?  What does the
>> colon (:) in front of the string "artist,title,comment,display" do?
>> 
>> I'm assuming some "pairing" happens where category:artist becomes a pair and
>> category:title becomes a pair.  What type of search is happening here?
> 
> The intent is a coordinated search for
> 
> category =~ /searchstring 1/
> 
> and
> 
> (artist . title . comment . display) =~ /searchstring 2/

Mike, thanks for the reply.  I'm not heavily perl conversant, I'm guessing
(artist . title . comment . display) is a series of "or's".

> After looking at the code, I am not sure it works quite right. I think
> the second value should actually be :artist:title:comment:display if I
> read it correctly.

You wrote it...I just copy/pasted it...and am trying to understand it..  8-)

> -- 
> Internet Robotics, 131 Willow Lane, Floor 2, Oxford, OH  45056
> phone +1.513.523.7621 fax 7501 <mikeh@minivend.com>
> 
> Friends don't let friends use Outlook. -- Bob Blaylock
> -
> To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: