currentstyle
22-08-09, 00:46
Heres an example of a boolean product search, for some reason any negatives beyond 4 get ignored, so, thats the negative limit.
define('API', 'PS');
require_once('constants.inc.php');
require_once('classes/class.ClientFactory.php');
$oClient = ClientFactory::getClient();
$returnedcolumns = array(sAwImageUrl,sDescription,sBrand,iMerchantId) ;
$booleansearch = array("sQuery" => "digital camera -nokia -C6380 -samsung -lcd", "bAdult" => false, "iLimit"=>20, "sColumnToReturn" => $returnedcolumns, "sMode" => "boolean");
$oResponse= $oClient->call('getProductList', $booleansearch);
You can see the effects by removing the negative keywords or adding your own.
define('API', 'PS');
require_once('constants.inc.php');
require_once('classes/class.ClientFactory.php');
$oClient = ClientFactory::getClient();
$returnedcolumns = array(sAwImageUrl,sDescription,sBrand,iMerchantId) ;
$booleansearch = array("sQuery" => "digital camera -nokia -C6380 -samsung -lcd", "bAdult" => false, "iLimit"=>20, "sColumnToReturn" => $returnedcolumns, "sMode" => "boolean");
$oResponse= $oClient->call('getProductList', $booleansearch);
You can see the effects by removing the negative keywords or adding your own.