CC: | Robert Krimen <robertkrimen [...] gmail.com> |
Subject: | repeated results |
Date: | Tue, 30 Jun 2009 17:18:30 +0200 |
To: | bug-Google-Search [...] rt.cpan.org |
From: | Aaron Naiman <naiman [...] math.jct.ac.il> |
Dear Robert,
Hi. I seem to be getting repeated results.
I am using Google::Search (thanx again!) for results, with the search string
(with double-quotes):
"Andrea Heutschi"
I get back 60 results, but the first 4 are identical to the next 4 and the
next 4, etc., all the way to 15 copies of the same 4 results.
I have not seen this happen before, and it *seems* to perhaps be due to the
fact that the Google resultsSize is 4.
BTW, this happens whether I iterate through with next(), or use all() from
the start.
Please note that using REST::Google::Search, the estimatedResultCount is
indeed 4.
One last thing, I get *slightly* different results -- 60, vs. 61 or 62
results, if I invoke next():
$result = $result->next;
as in your code example at the top, or:
$result = $searcht->next;
as in the function definition further down on the web page.
Why is there a difference, and which is the correct interface?
adTHANXvance!
Aharon
--
Aaron ("Aharon") Naiman
Jerusalem College of Technology--Machon Lev
naiman@math.jct.ac.il
http://math.jct.ac.il/~naiman <http://math.jct.ac.il/%7Enaiman>