Gravatar for amy.windhorst@bbdo.com

Question by coveo-marketer, Aug 27, 2015 4:38 PM

Invoke QRE only when certain terms are searched?

I am struggling to write an expression that helps solve the following use case:

The user searches for "pants" - I would like for any item with "pants" in the title to be boosted by a modifier of 50. I assume this should look something like:

&qre(expression:@systitle=pants AND [the term the user searched for]==pants, modifier:'50')

Is this kind of expression possible?

1 Reply
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Aug 28, 2015 5:17 PM

The @systitle field is already searched in and boost automatically by CES when ranking results. You can adjust the global ranking weight of search terms found in the title of documents in the CES Admin Tool (Index > Ranking > Ranking Weights > Term in title) (see Understanding Search Results Ranking and Customizing Search Results Ranking).

Ask a question