Gravatar for

Question by jlefrancois, Oct 7, 2015 5:51 PM

Boosting results using QRE

Hello !

I am currently using QRE to boost my search results and it had noticeable improvements on the relevance so far. At first i was using a single QRE line to help get better results if i search a particular author.

However i'd also like to give extra point to the article who are the most recent. I am using the following code :

var qre = createQre('@Model.ToCoveoFieldName("csmgarticleauthorname")=="' + searchText + '"', "100"); 
var qre2 = createQre('@sysdate>=DateTime.Now.Year/01/01', "70");

Is it possible to configure that sysdate impact and frequency impact are comparable? Is it possible to make sysdate weight much higher?

Thank you !

1 Reply
Gravatar for

Answer by Luc Bergeron, Oct 8, 2015 8:38 AM


I'm not sure whether it will completely answer your question, but I'm trying anyway. When defining QRE you can set a weight above 100 points. You could set it to 1000 or even higher if it suits you better. However, when setting a weight above 100, your QRE will most likely override the ranking logic implemented in CES. Sometimes, that could be what you want. It depends on your use case.

I would suggest to tweak the weights of your two QRE, but trying to keep the weight below 100 as much as possible.

I hope this helps

Gravatar for

Comment by Jean-François L'Heureux, Oct 8, 2015 9:30 AM

In addition to Luc's answer, @sysdate is already used in CES basic ranking algorithm as well as term frequency. Both are configurable for the entire index (all the queries) in the CES Administration Tool (see Customizing Search Results Ranking).

Gravatar for

Comment by jlefrancois, Oct 9, 2015 3:18 PM

Hello !

Thank you for your suggestion. I think i will go ahead and adjust the values until i get a nice balance.

Ask a question