PDA

View Full Version : Getting Random Results rather than Relevant?


nick-harper
07-03-10, 22:54
I want to do a search for football boots, so I use this:

$footballboots = 'Football Boot';
$aParams7 = array("sQuery" => $footballboots, "iLimit"=>100, "bAdult" => False, "sSort" => "relevancy");
$search = $oClient->call('getProductList', $aParams7);

This gets me the same 58 results every time, how would I go about mixing it up a bit and getting some different ones?

I have tried:

$footballboots = 'Football Boot';
$aParams7 = array("sQuery" => $footballboots, "iLimit"=>100, "bAdult" => False, "sSort" => "random");
$search = $oClient->call('getProductList', $aParams7);

But this doesn't work?

Are there really only 58 results?

Thanks

Ollie
08-03-10, 09:55
Random is recalculated every few hours. Its not randomised on the fly to keep requests being processed as quick as possible.

Random is also only available in V3 of the API. So make sure you are on that platform.

And yes, its very possible there are only 58 results. Running the same query on shopwindow.com (http://www.shopwindow.com/productlist.php?q=Football+Boot&rb=4-0) i get 1550 results so make sure you have a valid membership with all the football boot merchants.

Cheers