Skip Menu |

This queue is for tickets about the Net-Amazon CPAN distribution.

Report information
The Basics
Id: 28135
Status: resolved
Priority: 0/
Queue: Net-Amazon

People
Owner: Nobody in particular
Requestors: gmueller [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: "blended" request returns nonsensical results
Date: Thu, 12 Jul 2007 13:09:07 -0700
To: bug-Net-Amazon [...] rt.cpan.org
From: Garrett <gmueller [...] gmail.com>
Hiya! Great module. The only problem I currently have is that the "blended" search returns very strange results. I'm not sure if this is a problem with the module or with the Amazon API. If I attempt a "blended" search of "Perl", these are the results I get (printed with as_string()): [1] "", , B000HZH9LQ [2] Gunther Leib/Hans Hotter/Karl Schmitt-Walter/Herbert Alsen/Ken Gould/Alain Meunier/Herre-Jan Stegenga/Janos Starker/Moray Welsh/Sharon Robinson/Wolfgang Boettcher/Karl Leister/Nash Ensemble, "Brahms: The Masterworks (Box Set)", 2004, $124.97, B00062FLIS [3] Jacopo Peri/Ellen L. Hargis/Paul O'Dette/Andrew Lawrence-King/Hille Perl, "Il Zazzerino: Music of Jacopo Peri", 1999, $21.98, B000026D4Z [4] Hille Perl/Lorenz Duftschmidt/Lee Santana/Andrew Lawrence-King, "Sainte Colombe: Retrouvé & Change - Hille Perl", 1997, , B000001TZK [5] "", , 6304326246 [6] "", , 6302513367 [7] "", , 0740026712 [8] "", , B000JLUPEG [9] "", , B000JM0MUW [10] "", , B000NT7QSW [11] "Supernova", 2005, $6.99, B000BYY0TW [12] "Pick a Card", 1998, $17.99, B000055ZFO [13] "God's Sandbox", 2002, $22.99, B000FOPPYW [14] "", , B00070FXD2 [15] "", , B000O1D1W4 [16] "", , B000N2N1HO [17] "", $89.98, B000R94J6U [18] "", Too low to display, B000ID10JE [19] "", $0.01, B000O1D36S [20] "", , B000PL0OLO [21] "", , B000MVJHBU [22] "", , B000RNBOOQ [23] "", , B000NY8NXY [24] "", , B000JDJQQM [25] "", , B000I4FVRK [26] "", , B000I4CSV2 [27] "", , B000I4CS94 [28] Larry Wall/Tom Christiansen/Jon Orwant, "Programming Perl (3rd Edition)", 2000, $32.97, 0596000278 [29] David Flanagan, "JavaScript: The Definitive Guide", 2006, $32.99, 0596101996 [30] Dave Thomas/David Hansson/Leon Breedt/Mike Clark/James Duncan Davidson/Justin Gehtland/Andreas Schwarz, "Agile Web Development with Rails (Pragmatic Programmers)", 2006, $26.37, 0977616630 [31] Windows NT/Windows 98/Windows 2000/Windows Me, "Using Perl/GCI Scripts", , B0000C0YMS [32] , "CIW Application Developer: CGI Using Perl Fundamentals Curriculum CBT Training CDs", , B0002Y0WZC [33] , "CIW Fundamentals of CGI Using Perl Part 2: Advanced Features CBT Training CD", , B0004K5EHU [34] "", , B000EWVP76 [35] "", , B000B755FW There's a tendency to retrieve items that appear to be from the "Kitchen" catalog for just about any search, with valid ASINs. Is there something that can be done to address this? Oh, I'm using version 0.43 with perl 5.8.8. Thanks! ..Garrett
From: boumenot [...] gmail.com
Thanks for you report! Would you please send me a code snippet to reproduce the problem. What results are you expecting, or why are the returned data strange? Regards, Christopher
Subject: Re: [rt.cpan.org #28135] "blended" request returns nonsensical results
Date: Thu, 12 Jul 2007 13:32:43 -0700
To: bug-Net-Amazon [...] rt.cpan.org
From: Garrett <gmueller [...] gmail.com>
Sure! This will reproduce the behavior: --- use strict; use Net::Amazon; my $ua = Net::Amazon->new( token => 'YOUR_AMZN_TOKEN', max_pages => 1 ); my $res = $ua->search(blended => "Perl"); if ($res->is_success) { print $res->as_string(); } --- And I was hoping it'd behave more like the overall search you can do from Amazon's website, where your search category is "Amazon.com" and it returns very relevant results. Thanks! ..Garrett
I have been thinking about this, and I don't think the result are nonsensical. I think the results returned just do not have a specific property (book, DVD, etc) defined in Net::Amazon, which causes the summary results to appear nonsensical. The real solution is to define properties for all those missing types, and an appropriate as_string() method.