PDA

View Full Version : Boolean search example


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.

Val
19-10-10, 16:19
Hi

Has this information changed recently?
I have found that the '-keyword' does not act as a negative filter, but a positive filter. How can we set up a product search with negative filters please?

Thanks.
Val

gez
29-10-10, 13:00
Hi Val

Seems a bit deserted around here these days...

I've asked a similar / related question here http://www.shopwindowforum.com/showpost.php?p=6777&postcount=2 but no response after 5 weeks. Submitted a ticket to SW 2 weeks ago...

- cue tumbleweed blowing across the scene...

Gez

GeorgeGaz
29-10-10, 13:28
Hi gez,

It's a shame that the forum is a little quiet these days as there are so many talented individuals on here with a wealth of information. With the run up to Christmas now upon us I know you will all be full-steam ahead focussing your attention on the festive season.

If you have any more details about the ticket that you raised please PM me as I am going to track it down.

Kind regards

gez
29-10-10, 14:09
If you have any more details about the ticket that you raised please PM me as I am going to track it down.

Thanks George - have sent PM, though content was pretty much as my post which would be public for benefit of all.

Regards
Gez