Gravatar for bhargava_aloori@dell.com

Question by BhargavaAloori, Feb 2, 2018 10:38 AM

How to create 2 or more document ID's in featured results for keyword at a time

How to create 2 or more document ID's in featured results for keyword at a time

1 Reply
Gravatar for sbelzile@coveo.com

Answer by Sébastien Belzile, Feb 2, 2018 11:42 AM

Currently not possible via the UI, but if you :

  1. Click on your rule
  2. Click More
  3. Click Edit Code...

You can edit directly the code of the "query". This code is called Query Pipeline Language (QPL). The feature that the top results uses is called top. The documentation explains how to build the expression to take into account multiple expressions. Ex: "top foo, bar" will top the foo and bar query expression. Simply add an expression that matches multiple doc or multiple expressions that match a single document.

Ask a question