PDA

View Full Version : pulling out the results i want? is there a technique to getting better results


ljackson09
29-01-10, 16:58
Hi,

does anyone know how to pullout the top 10 books for example im looking to receive titles like the lost symbol, the davinchi code, etc that sort of book, but i have not been able to find the right set of keywords to use to get them, anyone else using a boolean search to get the top 10 'reading'

if so what keywords are you using?

this (http://www.kernow-connect.com/booksnew.php)is my page results using:
$aw_id = "538";
$aw_name = "Books";
$keywords = "books -calendar";

$oRefineBy = new stdClass();
$oRefineBy -> iId = 4;
$oRefineBy -> sName = 'Category';
$oRefineByDefinition = new stdClass();
$oRefineByDefinition -> sId = $AW_catid;
$oRefineByDefinition -> sName = $AW_cat;
$oRefineBy -> oRefineByDefinition = $oRefineByDefinition;
$returnedcolumns = array(iCategoryId, sBrand, sModel, iMerchantId, sAwImageUrl, fStorePrice, sAwThumbUrl, sName,sAwImageUrl,sMerchantImageUrl,sMerchantThumb Url,sDescription,sBrand);
$booleansearch = array('sQuery'=> $keywords, 'oActiveRefineByGroup' => $oRefineBy, 'iAdult' => 1, 'iLimit'=>10, 'sColumnToReturn' => $returnedcolumns, 'sMode' => 'boolean');
$oResponse= $oClient->call('getProductList', $booleansearch);


thanks
Luke

Raid
29-01-10, 17:56
I thought I'd reply because it can get a bit quiet around here, although I don't really now the answer :D . Are you relying on ShopWindow's "by popularity" search to get the top 10? What bit of your code would be getting the top 10??

Can you improve your results by restricting your query to only one of the big book merchants?

Rgds :cool:

ljackson09
29-01-10, 19:08
hi mate thanks for your reply :)

yeah im using the by popularity to get the top 10 products(think popularity is set as default), the code i use is whats posted above, but it seems to be a bit hit and miss though, some results are great whilst others arnt so :)

i'd of thought that the top merchants would have the most popular items as a rule so surley this should be reflected in my api call?

will continue to play around with it see if i can get something together :D

thanks again for your reply..
Luke

Raid
29-01-10, 19:44
The other thing is, are you signed up to all the appropriate book merchants? In particular, Foyles looks as though it might give you the results you need.

The other one is Blackwell Books, but that doesn't seem to give such good results for the latest bestsellers.

These two seem to be the major sellers of current books on Awin ...

Rgds :cool:

ljackson09
29-01-10, 22:03
ah never thought of that :)

thats a very good point will apply to those!

cheers mate