My index has a category field and I would like to apply a negative boost to 
certain categories. For example, if I search for "thinkpad", it should push 
results for the laptop bag and other accessory categories to the bottom.

So, I first tried altering the bq field with category:(batteries bags 
cables)^0.3.

In fact, this seems to positively boost products in those categories. This 
actually makes sense because the parsedQuery is something like:

+DisjunctionMaxQuery((category:thinkpad^1.75 | description:thinkpad^1.3 | 
manufacturer:thinkpad^1.6)~1.1) DisjunctionMaxQuery((category:thinkpad^1.75 | 
description:thinkpad^1.3 | manufacturer:thinkpad^1.6)~1.1) ((category:batteries 
category:bags category:cables)^0.3)

So, since only the negatively boosted categories are in the query, those 
categories make their way to the top when they are matched.

Is the only way to make this work to postively boost certain categories?



      

Reply via email to