Akopia Akopia Services

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

Re: [mv] mv_range_lock doesn't work in MV4!



******    message to minivend-users from jojo@buchonline.net     ******

On 30 Mar, Mike Heins wrote:
> ******    message to minivend-users from Mike Heins <mikeh@minivend.com>     ******
[DEL]
> 
> I took out the ability to combine range look with coordinated search, and
> I think I documented that in WHATSNEW. The reasons were performance, code
> complexity, and correctness. If you are strong of stomach, try reading
> the get_limit subroutine in Search.pm. 8-)

I´ve read WHATSNEW and there are no hints to range_look or whatsoever.
Maybe the english text is too difficult for me?

I _must_ be strong of stomach! I _must_ be strong of head to understand
all english text and and your fine codes. I make a survival training
every day (eating iron and beating my head with wooden beam). ;-))


> You can do instead:
>  
>  <FORM ACTION="[area search]" METHOD=POST><INPUT TYPE=hidden NAME="mv_search_map" VALUE="
>                                 mv_searchspec=search_min
>                                 mv_searchspec=search_max
>                                 mv_searchspec=search12
>                                 mv_searchspec=search14
>                                 mv_searchspec=search1
>                                 mv_searchspec=search11">
> 
>                 <INPUT TYPE=hidden NAME="mv_column_op" VALUE=">=">
>                 <INPUT TYPE=hidden NAME="mv_column_op" VALUE="<=">
>                 <INPUT TYPE=hidden NAME="mv_numeric" VALUE=1>
>                 <INPUT TYPE=hidden NAME="mv_numeric" VALUE=1>
> 
>                 <INPUT TYPE=hidden NAME="mv_search_field" Value="author">
>                 <INPUT TYPE=hidden NAME="mv_search_field" Value="title">
>                 <INPUT TYPE=hidden NAME="mv_search_field" Value="0">
>                 <INPUT TYPE=hidden NAME="mv_search_field" Value="verlag">
>                 <INPUT TYPE=hidden NAME="mv_search_field" Value="erjahr">
>                 <INPUT TYPE=hidden NAME="mv_search_field" Value="erjahr">
>                 <INPUT TYPE=hidden NAME="mv_search_match_count" Value="0">
>                 <INPUT TYPE=hidden NAME="mv_coordinate" VALUE="yes">
>                 <INPUT TYPE="hidden" NAME="mv_matchlimit" VALUE="10">
>                 <INPUT TYPE="hidden" NAME="mv_min_string" VALUE="3">
> 
>  [L]Author[/L] :<INPUT NAME=search12 VALUE="">
>  [L]Title[/L]-[L]Catchword[/L] :<INPUT NAME=search14 VALUE="Kind">
>  [L]Code[/L] :<INPUT NAME=search1 VALUE="">
>  [L]Publisher[/L] :<INPUT NAME=search11 VALUE="">
>  
>  <INPUT TYPE=hidden NAME=mv_range_look VALUE=erjahr>
>  min. <INPUT TYPE=text NAME=search_min VALUE=2000>
>  max. <INPUT TYPE=text NAME=search_max VALUE=2000>
>  
>  <INPUT TYPE="hidden" NAME="mv_first_match" VALUE=""></TD>
>  <INPUT TYPE="hidden" NAME="mv_doit" VALUE="search">
>  <INPUT TYPE=image SRC="icon/[L]Search[/L].gif" BORDER=0 NAME="[L]Search[/L]"></TD>
>  <INPUT TYPE="hidden" NAME="mv_searchtype" VALUE="text">
>  </FORM>
> 
> (I assume the type=hidden is an error on the min/max values.)

I´ve copy and paste your above codes and i get

------------snipp---------
Sorry, there was an error in processing this form action. Please report the error or try again later. (Can't use an undefined value as an ARRAY reference at
/home/mvend4/lib/Vend/TextSearch.pm line 142. )
------------snipp---------

If i delete <INPUT TYPE=hidden NAME=mv_range_look VALUE=erjahr>, it
can´t find ..."2000 | 2000 | Kind".

I´ve updated minivend from 4.02 to 4.03 today. I´m sure, your codes
works well for you. I make my survival training once more and read your
codes get_limit in Search.pm and TextSearch.pm at the line 142.

Hmmmm....i look into your codes like a cow with no idea how to play
piano. ;-)

Another results differences between MV4.03 and MV3.14-3.

1) Searching for "Kind" with no mv_range_look
	MV 3.14-3          MV 4.03
        289 items          17 items

2) Searching for "Kind" and publisher is "Juventa" with no mv_range_look
	MV 3.14-3          MV 4.03
        40 items           2 items

3) Searching for "Kind" and author is "a" with no mv_range_look
	MV 3.14-3          MV 4.03
        253 items          blank page (no message like 
                           "Bad Search Specification 
                            The search could not be done. The problem was:",
                           but value mv_match_count is "-1")

4) Searching for "Kind", author is "Hans", Publisher is "Juventa",
the part of code is "37799", with no mv_range_look
	MV 3.14-3          MV 4.03
        6 items            The same as (3).


5) The same as (4), but without "<INPUT TYPE=hidden NAME=mv_coordinate VALUE=yes>"
	MV 3.14-3          MV 4.03
        6 items            6 items

6) Searching for "Kind", Publisher is "Juventa" *and* *with* range_look
for the years "1994" and "1996"
	MV 3.14-3          MV 4.03
        14 items           14 items

Very strange! Check with "Kind", publisher "Juventa" and min/max with
"2000" results
	MV 3.14-3          MV 4.03
        2 items            2 items

Well duh! I get it! This is what i want! It works with the same old
codes as MV 3.14 without mv_coordinate. Is strange!


> By the way, this isn't documented yet, but you can easily build coordinated
> scan links. Perhaps I should make this available in the search form....

This would be very very fine!

> 
> [page 	search.0='
> 		sf=foo
> 		se=bar
> 	'
> 	search.1='
> 		sf=buz
> 		se=baz
> 		op=ne
> 	'
> 	search.2='
> 		sf=zip
> 		se=[value zap]
> 		op=gt
> 		nu=1
> 	'
> ]Search for foo containing bar, buz!=baz, zip > value of zap[/page]
> 
> The advantage of this is that you don't have to coordinate your op=
> and nu= and cs= things, it is done automagically. You can also use the
> new search grouping feature of MV4, which allows the equivalent of (
> foo =~ bar AND buz!=baz) OR zip>zap.  All this just awaits documentation
> time.... 8-)

Regards,

	Joachim
 

-- 
Hans-Joachim Leidinger
buch online                 jojo@buchonline.net
Munscheidstr. 14            FAX: +49 209 1971449
45886 Gelsenkirchen         FAX: 0209 1671449

-
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: