|
From: John L. <gal...@ho...> - 2009-09-24 20:30:52
|
Hi,
I attempted to make a basic search functionality and using Net::Amazon. I am searching by browsenode.
I am having some issues with the search results being very inaccurate. Could you help me?
This is my code snippet:
my $search = param('search');
my $department = param('department');
my $response;
my %browsernodeids = (
books => 1000,
clothing => 1036682,
electronics => 493964,
dvd => 130,
videogames => 493964
);
if ($search)
{
if ($department eq "all")
{
$response = $ua->search(blended => $search);
}
else
{
if (exists $browsernodeids{$department})
{
$response = $ua->search(browsenode => $browsernodeids{$department},
mode => $department,
keywords => $search);
}
}
}
My first case for Books is working pretty well. I tested this with 'Harry potter'. No big issues.
My second case for Video Games, however, is not looking good. I searched for "mario" and got very few results, all which are accessories without any "mario" word in it. I also searched for "zelda" and no results found.
Is there something wrong with my code? Why isn't it working?
John
_________________________________________________________________
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290 |