Gravatar for linda.bell@nt.gov.au

Question by labell, May 27, 2016 4:16 AM

Linking related documents

Do you know if it's possible to link related documents in a search result? I have a transcript (Word) and sound file of the same interview (WAV) that I would like to display together in a search result. Is that possible?

1 Reply
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, May 27, 2016 8:30 AM

Hi Linda,

It is possible to link search results together at the UI level with Coveo. You need to link them at the field value level first in order to be able to use it in the UI.

It can be done 2 ways:

  • Through the attachment concept: An indexed document is marked as an attachment of another.
  • Through parent-child relationship: Documents share the same value for some fields and their child/parent documents are linked to them.

With the Coveo JavaScript Search Framework, it relates to those components:

  • ResultAttachment: https://developers.coveo.com/display/JsSearchV1/ResultAttachment+Component
  • ResultFolding, Folding, and FoldingForThread:
    • https://developers.coveo.com/display/JsSearchV1/ResultFolding+Component
    • https://developers.coveo.com/display/JsSearchV1/Folding+Component
    • https://developers.coveo.com/display/JsSearchV1/FoldingForThread+Component

This blog post explains the folding. What to store in the field values and how to use those components: http://source.coveo.com/2014/09/30/grouping-related-search-results/

With the Coveo .Net Front-End (older UI framework), it is different.

I hope this helps,

Jeff

Ask a question