Product DocsMenu

Adding Top Results

As a Coveo administrator, you can create Top Results for specific queries to ensure that important documents or items appear at the top of the search results when users perform those specific queries.

The Top Results feature is useful when someone in your organization wants to increase the visibility of a document. You can identify frequent queries to which the document is related and create a Top Result for this document for each of the queries.

You can also use the Analytics module (see About the Analytics Module) or the query log (see What Information Is Displayed in the Query Log?) to identify frequent queries for which the searched documents do not rank as high as they should, and create Top Results for these documents.

Note: As a Coveo administrator, you can choose to show or not show the Top Result icon next to the Top Result title/subject. This is done for each search interface using the Display top results icon option in the Interface Editor (see Activating Search Interface Options).

To add Top Results

  1. On the Coveo server, access the Administration Tool (see Opening the Administration Tool).

  2. Select Index > Top Results.

  3. In the Top Results page, click Add.

  4. In the Add Top Results page:
    1. In the Queries field, on separate lines, enter one or more query expressions which return the Top Result.

    2. Click Add Top Result.

      The Collection, Source and Address drop-down list appear.

    3. In the Collection drop-down list, select the collection where the document to promote as a Top Result resides.

    4. In the Source drop-down list, select the source where the document to promote as a Top Result resides.

    5. In the Address field, enter the path of the document to promote as a Top Result. You can get this path from the Index Browser on the Properties line for the specific document (see How to Use the Index Browser).

      Note: In some cases, the Top Result may not work most likely because the path visible in the Index Browser and the path stored into the index are different. You can get the path stored into the index by modifying the search result template of a test search interface (see Finding the Hidden Path of a Document ).

    6. To add another Top Result document for the same set of queries, click Add Top Result.

    7. When you enter more than one Top Result document for a given set of queries, click the arrows ( and ) to set the order in which they are displayed in the search interface.

    8. Click Save.

Finding the Hidden Path of a Document

The following procedure describes how to modify the result template of a skin to display the hidden path of a document to be use in the Address field when defining Top Results.

Important: It is recommended to perform this procedure using a test search interface.

  1. Using an administrator account, connect to the Coveo Master server.

  2. Create a test skin by making a copy of the skin folder that you want to use.

    Example: When using the Default skin, copy the C:\Program Files\Coveo Enterprise Search 6\Web\Coveo\Skins\Default\ folder and rename the copy to C:\Program Files\Coveo Enterprise Search 6\Web\Coveo\Skins\DefaultTEST\.

  3. Using a text editor:

    1. Open the ResultTemplate.aspx file from your test skin folder.

    2. In the file, locate the </ces:ResultOpenLink> line.

    3. Insert <%=Result.ResultObject.Uri%> on the following line. The modified section should be as shown below.

    4. Save the file.

  4. Using the Interface Editor, assign your modified skin to a test search interface (see Creating a Search Interface).

  5. In the test search interface that uses the modified skin, search for the document that you want to add as a Top Result.

    The URI to use in the Top Result Address field appears after the document title.

    Example: In the following modified result, the URI to use to make the Customer Support page a Top Result appears after the document title and before the document excerpt.

  6. If necessary, using the text editor, undo the changes made to the ResultTemplate.aspx file.