[ic] [ic 4.6.0] Userdb search problem

jojo@buchonline.net jojo@buchonline.net
Mon, 6 Nov 2000 09:39:24 +0100 (CET)


On  5 Nov, Martin Kisser wrote:
> I wanted to get a list of all Customers which are on my mailing-list, but no
> search got it... I also tried:
> 
> (complete html-file):
> 
> <html><head></head><body>
> [loop search="
>   fi=userdb
>   sf=mail_list
>   se=1
>   op=eq
>   nu=0
>   ml=50
>   tf=email
> "]
> [loop-code]<br>[/loop]
> </body></html>
> 
> I've also tried it at your public store:
> http://demo.akopia.com/cgi-bin/iccvsrw/scan/fi=userdb/sf=mail_list/se=1/op=e
> q/nu=0/ml=50/tf=lname/to=x.html
> (i know, thats not the right result page, but if you get sku's as result you
> can see it easily)
> Why is the result a list of SKU's ?
> 
> setting of co=1 or ra=1 results in a:
>  search error: Limit subroutine creation: Can't use an undefined value as an
> ARRAY reference at /home/sites/site43/ichange/lib/Vend/Search.pm line 673,
> <SEARCH> chunk 1.
> 
> adding st=db gives me:
>  search error: your search file a valid dat abase reference, was ''.
> 
> nu=1 changes nothing
> 
> I've tried it with the Construct demo-Store an IC 4.6.0.
> 
> Suggestions are welcome ;-)
> 
> Martin Kisser

The userdb file is protected per default. If you want this file
searchable, you have to unset "NoSearch" first. Add this lines at the
top of your search page:


[perl arg=scratch]
        $Config->{NoSearch} = '';
        return '';
[/perl]

Hope, this helps!

Joachim

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