Gravatar for gordon.kessler@gmail.com

Question by Gordon Kessler, Apr 12, 2019 7:45 PM

How can I add a QRF to a query pipeline

I have articles in my result set that have a "publishdate" date field on them and I want to boost those articles based on most recent publish date. Is there a way to put a QRF in the query pipeline via the Coveo Cloud Platform? Here is the QRF that I'm trying to use:
$qrf(expression:'@publishdate', normalizeWeight: 'True')

1 Reply
Gravatar for amoreau@coveo.com

Answer by amoreau, Apr 12, 2019 8:27 PM

You can add your QRF in the query parameters of your query pipeline.

For more information, see https://docs.coveo.com/en/1963/cloud-v2-administrators/managing-query-pipeline-query-parameters .

Let me know if this helped!

- Alex

Gravatar for gordon.kessler@gmail.com

Comment by Gordon Kessler, Apr 18, 2019 3:06 PM

Thanks for your response Alex. That would work, but the search interface developers are already sending aq and cq parameters to Coveo and I don't want to overwrite those parameters, simply add another.

Unless you know of another way to accomplish this without involving the developers, I'll mark this answer as complete and I'll go to the interface developers to have them implement the QRF.

Ask a question