Gravatar for loebrandy@gmail.com

Question by rloeb, Dec 1, 2016 5:11 PM

Quickview highlighting like in Admin tool?

We're using the Quickview feature with coveo for sitecore to preview documents (.pdf, .doc) by retrieving the html from here: /coveo/rest/html?uniqueId={0}

This works fine, but we'd like to highlight the search terms just like the Index Browser in the Admin tool does.

Are there additional querystring parameters we can add to get back highlighted key words (or otherwise markedup) and what about thesaurus match highlighting?

Thanks

1 Reply
Gravatar for mlaporte@coveo.com

Answer by Martin Laporte, Dec 2, 2016 3:46 AM

You can pass query keywords using the q argument to get them highlighted.

Gravatar for loebrandy@gmail.com

Comment by rloeb, Dec 2, 2016 9:57 AM

Thanks alot. Do you happen to know if the highlighting facility recognizes and highlights a word that is a thesaurus match?

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Dec 2, 2016 10:19 AM

Yes, it expands the words with stemming and matches all of them if I remember correctly. I'm not sure for thesaurus but I think it is highlighting those as well as the thesaurus effectively modifies the query.

Ask a question